summaryrefslogtreecommitdiff
path: root/wifi
AgeCommit message (Collapse)Author
2024-11-14Remove the flag for the SharedConnectivityManager.getBroadcastReceiver() method. Andrew Sapperstein
TestApis don't need flags and this feature already shipped. Change-Id: Ib848fb9e98fda533145b7df9f24670fc98f45351 Fixes: 378546519 Test: atest SharedConnectivityManagerTest Flag: EXEMPT removing FLAG_SHARED_CONNECTIVITY_BROADCAST_RECEIVER_TEST_API
2024-11-11Add a feature flag for USD maheshkkv
USD stands for Unsynchronized Service Discovery. It's a key feature that allows devices to discover each other directly without needing a time synchronization. It also enables service discovery and sending messages using wifi action frames. Bug: 340878198 Flag: android.net.wifi.flags.usd Test: build successfuly Change-Id: I1fd83a8543fb975968998fce98e6fe626951cd42
2024-10-02Convert migrateLegacyKeystoreToWifiBlobstore to Gabriel Biren
an asynchronous method. API council suggested that the migration can be a heavy operation, so it is best handled in the background. Bug: 358618927 Flag: android.net.wifi.flags.legacy_keystore_to_wifi_blobstore_migration_read_only Test: atest WifiMigrationTest Change-Id: I1a61eda93e9f3e2cf0081326777d20a618acb456
2024-09-24Merge "Revert "Run callback registration on the worker provided by the ↵ Isaac Katzenelson
client."" into main
2024-09-24Revert "Run callback registration on the worker provided by the client." Isaac Katzenelson
This reverts commit 1b917593dd7a42212e87ee8221b98f510f0b953e. Reason for revert: Causes NPE in internalRegisterCallback, probably a race condition. Bug: b/369292752 Change-Id: Ic58e7eee51e0f3a15d62ca6e5db85f1b291bd865
2024-09-18Merge "Run callback registration on the worker provided by the client." into ↵ Isaac Katzenelson
main
2024-09-17Run callback registration on the worker provided by the client. Isaac Katzenelson
Since the worker is provided in the callback proxy object, added a method to get the worker. Flag: EXEMPT bugfix Bug: 351495492 Test: atest SharedConnectivityManagerTest Change-Id: If5eaa939419503121708ac746354a6159543e6df
2024-09-16Merge "Return an status code from ↵ Gabriel Biren
WifiMigration#migrateLegacyKeystoreToWifiBlobstore." into main
2024-09-13Return an status code from Gabriel Biren
WifiMigration#migrateLegacyKeystoreToWifiBlobstore. Bug: 358618927 Flag: android.net.wifi.flags.legacy_keystore_to_wifi_blobstore_migration_read_only Test: atest WifiMigrationTest Change-Id: I310819dcb2d47286326d4f808efba9136ae5f5c0
2024-09-11Make java_sdk_library dependencies explicit Jihoon Kang
modules should specify the submodule of java_sdk_library that the module actually depends on Test: CI Ignore-AOSP-First: resolving merge conflicts Flag: EXEMPT build dependency cleanup Bug: 358613520 Change-Id: I80af0b9efa88c668306f0ff1d51491a8180dc57f
2024-08-14Call onServiceDisconnected on callback executor Quang Anh Luong
SharedConnectivityClientCallback.onServiceDisconnected is being called directly on the main thread instead of the callback executor, which is causing race conditions. Make sure to call this via the proxy so it runs on the executor instead. Flag: EXEMPT bugfix Bug: 331652253 Test: atest SharedConnectivityManagerTest Change-Id: I5f74632538fca10e0b6e2b4270345634b50d2513
2024-08-02Update WifiKeystore and WifiMigration behavior Gabriel Biren
when the supplicant cannot access WifiBlobstore. On vendor partitions that are <= T, the supplicant will expect certs to be in the Legacy Keystore database. This means that: - New certs should be stored in Legacy Keystore - Certificates should not be migrated out of Legacy Keystore on bootup. Bug: 353140706 Flag: EXEMPT bugfix Test: atest WifiKeystoreTest WifiMigrationTest Test: Manual test - verify that the certs are stored in the expected database on a V device and a V sys + T vend device Change-Id: Ic7c49b5b3d1ad310b23f201d20c45b4fee142d22
2024-08-02Merge "Add method to check whether the vendor partition version is > T." ↵ Treehugger Robot
into main
2024-08-01Add method to check whether the vendor partition Gabriel Biren
version is > T. Bug: 353140706 Flag: EXEMPT bugfix Test: Manual test - check for the expected result on a device with a T vendor partion, and another with a V vendor partition. Change-Id: Ie96855f477dfc388885f97335516c54f16e389a5
2024-07-31Replace Keystore Migration flag with a new Gabriel Biren
read-only flag. Bug: 353597412 Bug: 352733140 Flag: android.net.wifi.flags.legacy_keystore_to_wifi_blobstore_migration_read_only Test: atest WifiMigrationTest Change-Id: Ia9dc6d08bd5a49383670c140fbc20e80cd5d43b1
2024-07-23Add flag for Instant Hotspot connecting status on details page. Matt Walliser
Bug: 321096462 Flag: android.net.wifi.flags.hotspot_network_connecting_state_for_details_page Change-Id: I6e5fe3e49aa139e00dd89d622841cffe2a2b5c78
2024-07-16Add flag for Instant Hotspot connection canceled behavior. Matt Walliser
Bug: 329670511 Flag: android.net.wifi.flags.hotspot_network_unknown_status_resets_connecting_state Change-Id: Ibb65829e4608bae0fa222fdf243c4fab766935d8
2024-06-26Add Keystore migration method to WifiMigration. Gabriel Biren
Bug: 332560152 Flag: android.net.wifi.flags.legacy_keystore_to_wifi_blobstore_migration Test: atest WifiMigrationTest Change-Id: I2ee61f765c8a1922563fa1242d6ce838a0a22863
2024-06-07Remove execute bit from non-executable files. Michael Wright
This is almost certainly a mistake in all cases, and any files that are text-based have been spot checked to make sure they don't contain a shebang or have any other indications of intentionally being executable. Commands run: fdfind -t x -e java -x chmod -x fdfind -t x -e kt -x chmod -x fdfind -t x -e ogg -x chmod -x fdfind -t x -e xml -x chmod -x fdfind -t x -e aidl -x chmod -x fdfind -t x -e html -x chmod -x fdfind -t x -e png -x chmod -x Bug: 345485143 Test: N/A Flag: Exempt, mechanical change Change-Id: I2902380611eb51d0c0e18f2f31e41f37163bd922
2024-05-10Update the src to use newly added feature flag instead. Gurpreet Singh
Replace the flag used in src to use newly added flag in ag/27264595. Bug: 339181644 Test: lunch sdk-next-eng && croot && ./build/tools/check-flagged-apis/check-flagged-apis.sh Change-Id: If4c75f91e95f7cbe0cd41aab7dbffcd21615182f
2024-05-08Add a new feature flag in android.net.wifi Gurpreet Singh
Add a new feature flag - "network_provider_battery_charging_status" in android.net.wifi package. It is the same flag which was added in ag/25092320 in the wifi module. framework-minus-apex depends on a flag defined in wifi_aconfig_flags but framework-minus-apex does not depend on the corresponding aconfig java lib wifi_aconfig_flags_lib. Therefore Soong doesn't know about the dependency -> Soong won't tell Metalava about the flag -> Metalava will default to reverting the API to the previous SDK snapshot -> API will not be present in the SDK and docs artifacts. Solution: 1) define a new flag in frameworks/base 2) Work with relteam to ramp it to next ASAP 3) Move NetworkProviderInfo to use this new flag Bug: 339181644 Test: N/A Change-Id: I358638546dc888a41498ec066d548c6612ea4f60
2024-04-19Revert^2 "Set container to system for aconfig_declarations in AconfigFlags.bp" Dennis Shen
This reverts commit 02287dc9e3dcf1fef015ca0db73d595800386f25. Reason for revert: Performance regression is gone based on go/abtd verification, reintroduce the change. Change-Id: I0dceae0d564612925f23002ac76fb60bbbe599f1
2024-04-17Merge "Update API documentation for MBSSID" into main Mahesh KKV
2024-04-17Update API documentation for MBSSID Mahesh KKV
Bug: 334107186 Test: m Change-Id: If493fc400114829ba0375228d4e65f7d2a6ee308
2024-04-08Merge "Revert "Set container to system for aconfig_declarations in ↵ Treehugger Robot
AconfigFlags.bp"" into main
2024-04-08Revert "Set container to system for aconfig_declarations in AconfigFlags.bp" Yu Liu
This reverts commit f6293f716fa867f4abfb2f66725acd9081254f9a. Reason for revert: potentially causing boot time regression Change-Id: If744c038f0ef00178a8b3fc73cc5d674d15bed25
2024-04-01Merge "Set container to system for aconfig_declarations in AconfigFlags.bp" ↵ Yu Liu
into main
2024-03-30Set container to system for aconfig_declarations in AconfigFlags.bp Yu Liu
Bug: 330354107 Test: CI Flag: NONE Ignore-AOSP-First: It is easier to detect all the mismatch in internal master. Change-Id: I41c11c7deda2936d39701a3a694166c5e49d423a
2024-03-29Add unit tests for WifiKeystore. Gabriel Biren
These will be useful for verifying the cases where we fall back to Legacy KS. Bug: 304553176 Test: atest WifiKeystoreTest Change-Id: Idb3905ce9e7ee091b00652217e8ab1c5149f064b
2024-03-27Move getLegacyKeystore to the WifiBlobStore class. Gabriel Biren
Will allow for easier mocking of the database objects in the unit tests. Bug: 304553176 Test: m Change-Id: I5111a20af7a1057bdc29107c34ae1ccc9ae50114
2024-03-27Use Extended Mockito in the frameworks/base Gabriel Biren
unit tests. Will allow static mocking in the future WifiKeystore tests. Bug: 304553176 Test: atest FrameworksWifiNonUpdatableApiTests Change-Id: Ifa05cfc154bd4993f9df8f6d683e78381acb8a57
2024-03-21Use ConnectivityBlobStore as the main storage Gabriel Biren
mechanism in WifiKeystore. See aosp/2859045 as an example of using ConnectivityBlobStore. The expected behavior per-API is: - put: Always write to ConnectivityBlobStore. - get: Attempt to get from ConnectivityBlobStore. If alias is not found there, try checking in LegacyKeystore. - remove: Remove alias from both ConnectivityBlobStore and LegacyKeystore. - list: List aliases from both ConnectivityBlobStore and LegacyKeystore. Deduplicate before returning. Bug: 304553176 Test: atest WifiKeyStoreTest Test: Manual test - Added test commands to WifiShellCommand to test all of the APIs. Change-Id: I30b7553bf0ca6a76f81f52aa06f67126fffc4127
2024-03-21Export flags used in FlaggedApi annotations Oriol Prieto Gasco
Before calling a flagged API, client code must check the value of the flag which gates it. Those flags must be exported in order to be accessible from containers other than the container where the flag and the API are hosted. Bug: 320984775 Bug: 322839671 Test: m all_aconfig_declarations Test: printflags --format='{fully_qualified_name}:{is_exported}' | grep true Ignore-AOSP-First: LSC Change-Id: I8c2d111fd4ffb23f3f52c9d00bf6bbd2456d7f05
2024-03-06Merge "Catch NullPointer caused by race of setting mWifiCond" into main Oscar Shu
2024-03-05Catch NullPointer caused by race of setting mWifiCond Oscar Shu
Similar to ag/25108489, but protecting all places where mWifiCond is used. Due to many places changed, uses catch exception instead of synchronized to minimize risk of breaking. Bug: 327918402 Test: build and flash Change-Id: I1760a524ac0eedbf21cea84f893be6ffd618d9d9
2024-02-15Move to presubmit Nate Jiang
Bug: 324961716 Test: TH Change-Id: I6c2454aadcd2b7b1cdd85cc606751b3530434dae
2024-02-13Merge "Add CtsWifiNonUpdatableTestCases to test mapping" into main Nate Jiang
2024-02-13Add CtsWifiNonUpdatableTestCases to test mapping Nate Jiang
Bug: 324961716 Test: TH Change-Id: Iec642d60ac8edbc7d6f73da46aa7d914b02f5786
2024-02-13Upgrade WifiKeystore to @SystemApi. Gabriel Biren
Previously, these APIs were annoted with @SystemApi(client = SystemApi.Client.MODULE_LIBRARIES). Bug: 324601616 Bug: 296077015 Test: Manual test - create local shell command to write/read to WifiKeystore. Verify that all operations work as expected. Change-Id: I59259019ad631472a87ebd6bdad3bced983ac8ef
2024-01-31Get the device support for cross-akm roaming Sunil Ravi
Read NL80211_ATTR_MAX_NUM_AKM_SUITES attribute from wiphy info to get the device support for cross-akm roaming feature. Bug: 313038031 Test: Manual - STA connection Test: atest DeviceWiphyCapabilitiesTest Test: atest WifiNl80211ManagerTest Change-Id: Ib429a4826ed3110d128c7a6929c73b73d89f06a3
2024-01-31Add aconfig for Wifi non-updatable part Nate Jiang
Bug: 301145404 Test: Manual STA-AP connection & confirmed from the logs that cross-akm feature support is obtained via wificond Test: atest WifiNl80211ManagerTest DeviceWiphyCapabilitiesTest Change-Id: Ia1f2fe60c2e0044b65d9b6fb3d05b15638196980
2023-11-07Restore connecting state for hotspot network on service connected. Matt Walliser
Bug: 308475152 Test: atest android.net.wifi.sharedconnectivity.service.SharedConnectivityServiceTest Change-Id: Id19a627ca8434f3af84929db1b21019bef88da83
2023-10-18Flag new SharedConnectivity APIs added post-U. Andrew Sapperstein
isBatteryCharging/setBatteryCharging and getBroadcastReceiver() were added post-U. Fixes: 305067231 Test: atest -c CtsWifiTestCases Change-Id: I6dbc979ab4a5711799208f6e56c5627296b1d5aa
2023-10-18Add a lock around the wificond death handler and Gabriel Biren
teardownInterfaces in WifiNl80211Manager. Prevents a specific race condition when the wificond service dies at the same time as the Vendor HAL (whose death handler calls into teardownInterfaces). No other race conditions have been observed in this file, so we can limit the locks to these 2 methods. Bug: 273175980 Test: atest WifiNl80211ManagerTest Change-Id: Ib3936ed8ddb3c0dc5fb25a56e535ab27a28cfa65
2023-10-06Clean up obsolete aliases for Truth. Krzysztof Kosiński
Bug: 255714762 Test: presubmit Change-Id: I7e29732e1e77e37cfb491521d14d2f3eb07deb36
2023-09-22Merge "Clean up SharedConnectivityManager on unbind." into udc-qpr-dev am: ↵ Matt Walliser
eaa8764caa am: 288bc59298 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/24830074 Change-Id: Ib3f48028dce8882acf266710aa21157ae29a3dcd Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-22Merge "Clean up SharedConnectivityManager on unbind." into udc-qpr-dev am: ↵ Matt Walliser
eaa8764caa Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/24830074 Change-Id: Ib7368fc177a1d169c55db6a97fdc86e30ac946fd Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-22Clean up SharedConnectivityManager on unbind. Matt Walliser
mService is used by registerCallback as an indication of if the service is bound to. This was only being set to null when the service was unbound from the service side, not when unbound from the manager side. Bug: 301296167 Test: atest -c android.net.wifi.sharedconnectivity.cts.app.SharedConnectivityManagerTest Change-Id: I2ef94cf0489b41a48a4279fbe3f9041ae0271280
2023-09-15Merge "Retry bind to SharedConnectivityService for manager created before ↵ Matt Walliser
login." into udc-qpr-dev am: bd46b6253f Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/24681235 Change-Id: I5be7cbd443699159bddb07807ba7b019b8bdcdab Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-14Retry bind to SharedConnectivityService for manager created before login. Matt Walliser
Bug: 299187614 Fixes: 299187614 Test: atest -c android.net.wifi.sharedconnectivity.cts.app.SharedConnectivityManagerTest Change-Id: If00d686f8f95433d951f80faafb99d94ee758805