summaryrefslogtreecommitdiff
path: root/apex
AgeCommit message (Collapse)Author
2024-11-22Add UsdManager maheshkkv
Flag: android.net.wifi.flags.usd Bug: 340878198 Test: atest FrameworksWifiApiTests Change-Id: I4c7078aac27f86bf5d3ba10c263761c095a8a289
2024-11-13Add missing quotation marks to the list Gabriel Biren
of binaries in the Apex. Compilation will fail otherwise once the flag is enabled. Bug: 365585450 Test: Enable flag for the trunk_staging target and verify the build. Change-Id: I15656c1c230411fd9623e16f80e3923517c7d991
2024-11-11Include mainline supplicant binary in the Gabriel Biren
Wifi Apex. Binary is flagged behind a build flag, so it initially will not appear in any builds. Bug: 365585450 Flag: com.android.wifi.flags.mainline_supplicant Test: m Change-Id: I7689cd1ee69a3f0c2d7f27f980196575288e582a
2024-11-02Add the mainline supplicant rc and config files Gabriel Biren
to the Apex /etc directory. Bug: 365585450 Flag: com.android.wifi.flags.mainline_supplicant Test: Manual test - start the service lazily via a shell command Change-Id: Idd194e8ae6c8ca1567d1b70e590e10de1feecf4b
2024-10-08Add JNI method to retrieve the binder Gabriel Biren
for services in the mainline module. Bug: 365585450 Flag: com.android.wifi.flags.mainline_supplicant Test: Manual test - verify that we can retrieve the binder and call a method in the mainline supplicant service Change-Id: I1c25f839826042098f2186b03b0eb807edb76db8
2024-03-25Merge "Use certificate build target" into main am: 1c81ad357b am: 79e472ab81 Thiébaud Weksteen
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Wifi/+/3007244 Change-Id: Ie6f3dd4694709b627b8c6ad9bcd57d79cf705f91 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-20Use certificate build target Thiébaud Weksteen
With the support for multiple sources in prebuilt_etc, it is possible to simply reference the build target instead of all the certificates it contains. Bug: 328313691 Test: build Change-Id: Ic306fa22a7586d66642e30b7dfafadb91f14d65d
2024-02-11Add Target Wake Time (TWT) APIs Mahesh KKV
Bug: 296108122 Test: atest FrameworksWifiApiTests Change-Id: I904e5074d1aff54af86da6252f9f3d3dd2e34480
2022-07-15Merge "Dedup *fragments information common to apex and sdk" am: eb46945aec Paul Duffin
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Wifi/+/2152640 Change-Id: Ib3b410e25ca130475f71d3f16057a75782ec99f2 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-13Dedup *fragments information common to apex and sdk Paul Duffin
Previously, both the sdk and apex had to specify the same *fragments property to ensure that building a system image from a prebuilt version of the module (both APEX and sdk snapshots) would work. This change avoids the duplication by adding the apex to the sdk which allows the sdk to automatically export any APIs and related information provided by the APEX. At the moment that just includes information from *fragments properties but may expand in future. Bug: 232401814 Test: # Build snapshots with a fixed build number BUILD_NUMBER=fixed packages/modules/common/build/mainline_modules_sdks.sh # Remove api diff files as they contain file stamps of generated files so # differ every time they are generated. find out/dist/mainline-sdks -name \*txt | xargs rm # Save the snapshots away. mv out/dist/mainline-sdks before-changes # Apply this change. # Repeat the first two steps above and then run the following to verify # that this change had no effect on the generated snapshot contents. meld before-changes out/dist/mainline-sdks Change-Id: I0d69d80cd3ceae32768ce1a6ee0ce457d6e110ab
2022-07-11Setting apex version to the placeholder value Alexei Nicoara
When the apex version is set to 0, the version number will be replaced by the build system to the default value for the current branch. The default value for mainline module manifest version is stored in the defaultManifestVersion constant: https://android.googlesource.com/platform/build/soong/+/refs/heads/master/apex/constants.go#36 The version should not be changed manually in the manifest. Release tooling will set this version to the release version on the release branches. Test: presubmit Bug: 231691643 Change-Id: I30b5b486bca521ebdeed17dba7afc61f2c529ab8 Merged-In: I30b5b486bca521ebdeed17dba7afc61f2c529ab8 Ignore-AOSP-First: fixing merge conflicts (cherry picked from commit fe4dc25c518b56e96cd6975ccb4dbd7e187522b3) Merged-In: I30b5b486bca521ebdeed17dba7afc61f2c529ab8
2022-07-07Setting apex version to the placeholder value Alexei Nicoara
When the apex version is set to 0, the version number will be replaced by the build system to the default value for the current branch. The default value for mainline module manifest version is stored in the defaultManifestVersion constant: https://android.googlesource.com/platform/build/soong/+/refs/heads/master/apex/constants.go#36 The version should not be changed manually in the manifest. Release tooling will set this version to the release version on the release branches. Test: presubmit Bug: 231691643 Change-Id: I30b5b486bca521ebdeed17dba7afc61f2c529ab8 Merged-In: I30b5b486bca521ebdeed17dba7afc61f2c529ab8
2022-05-31Bump Mainline Module Version Codes in AOSP to 339990000 Alexei Nicoara
Test: presubmit Bug: 231691162 Merged-In: I242a27f91ec3fcaacafd90dc2a2cb838728d7463 Change-Id: Ibaf8a126b256794044755d73c73eba28ce008c32
2022-05-26Bump version codes in tm-dev to match tm-mainline-prod satayev
T FRC signals cannot be gathered from tm-frc-<module>-release branches and instead tm-release is being used. tm-release uses default source based version codes which are lower than prebuilts now. Bump them to allow installation on tm-release based system images. Bug: 233587299 Test: presubmit Merged-In: Ic96df0360b8dd1eb15e9635bd06ff165aa48ed9a Change-Id: I97b46289018a2546b0aebfcf006d48af48004488
2022-05-12Bump Mainline Module Version Codes in tm-dev to 330090000 Alexei Nicoara
Test: presubmit Bug: 231691162 Ignore-AOSP-First: overriding version code from aosp Change-Id: I242a27f91ec3fcaacafd90dc2a2cb838728d7463 Merged-In: I242a27f91ec3fcaacafd90dc2a2cb838728d7463
2022-04-19Bump apex version to 33xxxxxx in tm-dev. satayev
Bug: 229359315 Test: m && launch_cvd; presubmit Change-Id: Iedbef74f3456c207d0aded1880a385c021424d85
2022-04-01Remove implementation details from wifi hidden api flags am: 66cccbfe8d am: ↵ Paul Duffin
6c30056ac8 am: 309228c182 Original change: https://android-review.googlesource.com/c/platform/packages/modules/Wifi/+/2051301 Change-Id: Icac44731efe5ec0cd41f6365098317fa43136cf1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-31Remove implementation details from wifi hidden api flags Paul Duffin
Ran the following to compute the set of split_packages and package_prefixes properties. m analyze_bcpf && analyze_bcpf --bcpf com.android.os.wifi-bootclasspath-fragment --fix Bug: 194063708 Test: m out/soong/hiddenapi/hiddenapi-flags.csv Change-Id: Ie79bd04fb4a4b984a4e7dc3f195138c16c58b2fa
2022-03-07Using common apex_defaults for com.android.wifi module. am: 157827b8be am: ↵ Gurpreet Singh
3ebcbd0d10 am: 76a8dc9e4a Original change: https://android-review.googlesource.com/c/platform/packages/modules/Wifi/+/2007332 Change-Id: Ic785224e80e31de2fe88016d6a98e69ee9958cb3
2022-03-04Using common apex_defaults for com.android.wifi module. Gurpreet Singh
In /packages/modules/common/sdk/ModuleDefaults.bp file, some apex_defaults are added to provide common parameters corresponding to Q, R, S, and T releases. (Refer to CL link for above mentioned change - https://android-review.googlesource.com/c/platform/packages/modules/common/+/2005890?forceReload=true) This CL is using the apex_default corresponding to R release for the com.google.android.wifi module. Bug: 172589606 Test: USE_RBE=true m Since there are no runtime changes, successful code build is enough for testing. Change-Id: Ica997b0a2b628618f2e4c96a569338a6d419c3cc
2022-01-29wifi: Adding new API to indicate randomized MAC address Les Lee
Returns persistent MAC address for the SoftApConfiguration. Returns the persistent MAC randomization, even when the SoftAp is configured to a use non-randomized or non-persistent randomized MAC address. This is different from the WifiConfiguration equivalent method which returns the latest randomized MAC address - persistent or non-persistent. Note: Started from R, Soft AP had been supporting MAC ramdonization. So it is fine to add this API without SDK version check. i.e. It allows to use it from R. (first mainlined version) Note: Add multul exclusive check between BSSID and MAC randomization Setting. It requires to configure MAC randomization Setting to NONE when configuring BSSID. Bug: 209325943 Bug: 215656264 Test: atest -c FrameworksWifiTests Test: atest -c FrameworksWifiApiTests Test: adb shell dumpsys platform_compat Change-Id: Ia0691bffa4facaa98c69bf221f21945dd4add1fe
2022-01-20Create apk-in-apex to host wifi dialogs Quang Luong
Create a new application in the wifi apex to host wifi dialog UI. Implementation of the dialogs will be in later CLs. Certificates were generated via $ openssl req -x509 -newkey rsa:4096 -nodes -days 999999 -keyout key.pem -out com.android.wifi.dialog.x509.pem $ openssl pkcs8 -topk8 -inform PEM -outform DER -in key.pem -out com.android.wifi.dialog.pk8 -nocrypt as described in go/android-apex-howto Bug: 209032090 Test: build Change-Id: I4389101178bd48a5e88c8e41ad396c11a1d0a571
2021-12-21Dexopt service-wifi. am: c13f2db9cb am: 3e1fee95fc am: 67d2162681 am: b7ce1b0c2b Jiakai Zhang
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Wifi/+/1906158 Change-Id: I431b813cad25c7781ec9206ce4ed9d1c503667fd
2021-12-20Dexopt service-wifi. Jiakai Zhang
`service-wifi` is a jar that system_server loads dynamically. Such jars can be dexopted now. This CL adds `service-wifi` to a `systemserverclasspath_fragment`, which does not actually add the jar to the classpath, but tells the build system to dexopt it. NOTE: The corresponding `exported_systemserverclasspath_fragments` needs to be added to the `prebuilt_apex` once a new prebuilt is dropped. Bug: 203198541 Test: m com.android.wifi Change-Id: Iaf045fa8b320ab631c59a6f4a5165b8c3a7a7d13
2021-10-20Update Wifi Module version to 320000000 Nate Jiang
Update the module version to make it easy to kown it's from S or T. Bug: None Test: build Change-Id: I19724e27a2a9d7564bb8969dd9cd430fdd166bc4
2021-07-02Bump Wifi to SDK 31 Nate Jiang
- Set target SDK to 31 in release target instead of 30 - Update version codes as per convention Bug: 192703335 Test: build Change-Id: I0c42ddcc9e2401c697923d6301a74b2dade10ac1
2021-07-01Merge "Mark Wifi module as compressible" into sc-dev Mohammad Samiul Islam
2021-06-30Mark Wifi module as compressible Samiul Islam
All updatable modules with few MB in size are being marked as compressible. Compressed APEX saves up to 50% of space in /system partition. Bug: 169780183 Test: presubmit Change-Id: Id2298be07375c7ec37b8850e4dac2add37dc1f30
2021-06-28Enable wifi to perform its own hidden API processing Paul Duffin
Previously, the hidden API encoding of the wifi boot dex jars, i.e. those dex jars that wifi contributes to the bootclasspath were done as part of the monolithic hidden API processing. This change causes the encoding to be done by the wifi's bootclasspath_fragment. This change involves the following: * Addition of the fragments property to the wifi's bootclasspath_fragment module to list all the other bootclasspath_fragment modules on which this depends. * Addition of the additional_stubs property to add stubs for APIs that are not provided by another bootclasspath_fragment. * Moving hidden API flag file entries related to wifi from the flag files in frameworks/base/boot/hiddenapi directory into the wifi directory with an appropriate OWNERS file to allow them to be managed by the Soong and compat team. * Addition of a PREUPLOAD.cfg hook script to ensure that the flag files are sorted. The build automatically checks that the hidden API flags which are computed by wifi and encoded into its boot dex jars match those that are generated by the monolithic processing so this is guaranteed to be safe. Bug: 179354495 Test: m com.android.wifi - ensure that the generated APEX is byte-for-byte identical before and after these changes. m out/soong/hiddenapi/hiddenapi-flags.csv - make sure that they are not changed by this. Change-Id: I0788c8ac744a7ce57bd96a86edf233ffaf8302c3
2021-06-07Add wifi bootclasspath fragment to its sdk Anton Hansson
This subsumes the java_sdk_library in the sdk. Bug: 188427719 Test: build_mainline_modules.sh Change-Id: I67c283069117ddce76ff86211eecd0b1b64a08eb
2021-05-13Add bootclasspath_fragment. am: fdbab0c0f1 am: be6449b1c5 am: 2485db82f8 satayev
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Wifi/+/1705468 Change-Id: Ibaa22cc177f592dec7bbb587763232d4d0d7ce98
2021-05-12Add bootclasspath_fragment. satayev
Note that the contents of the bootclasspath_fragment are added as dependencies to an apex, so there is no need to duplicate them in java_libs. Bug: 180105615 Test: atest CtsClasspathsTestCases Change-Id: I248b3f99ba9de5d9ac965be72eb46b48bf929d15
2021-05-12Add wifi-module-sdk build target. Hai Zhang
Bug: 177884752 Test: m wifi-module-sdk Merged-In: I22c9f2d7a8a5f9b84f66012be91ec32a8232f30d Change-Id: I22c9f2d7a8a5f9b84f66012be91ec32a8232f30d (cherry picked from commit a171fa291e019533c68140af6bc23bbb59a17077)
2021-02-17Set updateable:false explicitly in apex rules. Mathew Inwood
Currently, this is the default so this is a no-op, But the default is changing to true. Bug: 180375550 Test: Treehugger Merged-In: I68114df38c7c5b6694db8c0a48fd1dce3a2e6572 Change-Id: I25249e6f6c68da85681f545fef1312f1ab0104f4
2021-02-13Add wifi-module-sdk build target. Hai Zhang
Bug: 177884752 Test: m wifi-module-sdk Change-Id: I22c9f2d7a8a5f9b84f66012be91ec32a8232f30d
2021-02-05Merge "[LSC] Add LOCAL_LICENSE_KINDS to packages/modules/Wifi" am: ↵ Bob Badour
0f69807b2c am: 0b111e9cf1 am: d52a57cb50 Original change: https://android-review.googlesource.com/c/platform/packages/modules/Wifi/+/1576216 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I6ffb51483991a70f1fc0ae4338c70732881c6cfb
2021-02-05[LSC] Add LOCAL_LICENSE_KINDS to packages/modules/Wifi Bob Badour
Added SPDX-license-identifier-Apache-2.0 to: OsuLogin/Android.bp apex/Android.bp framework/Android.bp framework/tests/Android.bp service/Android.bp service/ServiceWifiResources/Android.bp service/proto/Android.bp service/tests/mts/Android.bp service/tests/wifitests/Android.bp service/tests/wifitests/apex/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I3d7024e3b72f885f1cffb19fe6a8d9308e68303e
2021-02-02Mark Wifi apex updatable David Su
... to enable tracking of deps, min_sdk_version etc. Bug: 178711289 Test: m com.google.android.wifi Change-Id: I68114df38c7c5b6694db8c0a48fd1dce3a2e6572
2020-11-12Reland "Wifi apex: set min_sdk_version to 30" David Su
This reverts commit 153067128df09d5490224041af42f4715b0cd828. Reason for revert: Relanding once b/173120275 is resolved. Bug: 173120275 Bug: 171096530 Change-Id: I4c24373da7e889c22258161e3d21fe40f93ebca6 Test: compiles
2020-11-12Revert "Wifi apex: set min_sdk_version to 30" Dan Shi
Revert submission 13044295-wifi-min-sdk-version Reason for revert: b/173120275 Reverted Changes: I39428ab3e:modules-utils-os: set min_sdk_version to 30 I1d464732c:Wifi apex: set min_sdk_version to 30 Exempt-From-Owner-Approval: to fix b/173120275 Change-Id: I0e948f9289e121fdb309e5951c024b33c2e3dea0
2020-11-12Wifi apex: set min_sdk_version to 30 David Su
Bug: 171330443 Test: compiles Change-Id: I1d464732c712a40a0accef90d2f76c92d2b4d8d0
2020-10-16Bump up Wifi apex version to 310000000 for Android S David Su
The version code in the manifest is only used for development builds, as release builds dynamically replace it. Bug: 170183552 Test: compiles Change-Id: I06ed7a05733ab6cafb8629a3ef45cdbdcc11f825
2020-03-25Rename wifi-service-resources to ServiceWifiResources David Su
- ServiceWifi instead of wifi-service to be consistent with naming conventions for service jars - CamelCase to be consistent with other APKs Also added apex_available to ServiceWifiResources. Bug: 149589553 Test: compiles Change-Id: I2060d3eeb2a127fa17a2cabf09d7ef303a5ce391
2020-03-23Rename wifi-service to service-wifi Roshan Pius
Only rename the service.jar, the intermediates still use wifi-service. Bug: 145195135 Test: Device boots up and connects to wifi networks. Change-Id: Ic2f7bb39060235994ef39e445fd2a9fe074c40af
2020-02-21Merge "Include OsuLogin in Wifi apex" David Su
2020-02-20wifi.rc: Package wifi.rc separately into the build Roshan Pius
These contain a bunch of action triggers for setting some kernel flags for wifi driver logging. Apex'es don't support .rc with action triggers, so package it separately into the build (it does mean that this .rc is not updateable via wifi apex, but don't see a pressing need for it). Bug: 149909892 Test: Device boots up and connects to wifi networks. Test: Manually verified that the .rc file is run on bootup. Change-Id: Idf4a825170c68899bdfc3712958b3299a73d6672
2020-02-19Include OsuLogin in Wifi apex David Su
Bug: 149346045 Test: Attempted to connect to an OSU network, verify OsuLogin page pops up Change-Id: Ib9c04da1f3452afcb7c346ae72df39bb8f51b69d
2020-01-27Move cacerts_wfa from system to Wifi APEX David Su
This allows the WFA certificates to be updated when needed. Bug: 145199837 Test: atest android.security.cts.CertificateTest FrameworksWifiTests Test: Connected to OSU network successfully Change-Id: I63eb67c0eb520352835d1f21bf37b7d643a85393
2020-01-24Merge "Remove hard coded target/Max-SDK for 'R' version of modules" Baligh Uddin
2020-01-24wifi: Remove libwifijni & use logcat binary instead Roshan Pius
The only method used in the jni library is a call to fetch kernel logs when a disconnect occurs. We should be able to run the logcat binary with appropriate command line flags to get that info instead. Changes in the CL a) Remove libwifijni library & its dependencies. b) Remove WifiNative.readKernelLog() & instead to use the existing logcat runner with "-b kernel". Bug: 145196311 Test: Device boots up and connects to wifi networks. Test: Verified that the kernel logs are present in the bugreport on every disconnect in the wifi diagnostics section (modified the code to trigger a WifiDiagnostics report on every disconnect) Change-Id: Ia2d5c8f6fc509015dd0dbb174069a2c24fa0117e