summaryrefslogtreecommitdiff
path: root/wifi/java
AgeCommit message (Collapse)Author
2020-11-03Merge "Remove the constant boundary for permanently disabling configs"Oscar Shu
2020-11-02Merge "[AWARE] Add API to get available Aware resources"Nate Jiang
2020-11-02Move module utils to the module package.Chalard Jean
Test: FrameworksWifiTest FrameworksNetTest Change-Id: I067eeecd458c34b7f2fbfa439072682661ac750c
2020-10-31WifiNetworkSuggestion: Add setOemPrivate flagRoshan Pius
Also, plumb the flag to WifiInfo. Bug: 169413079 Test: atest android.net.wifi Change-Id: I4985c3a2544684fe067e3e5aaaa612a62c611880
2020-10-30Remove the constant boundary for permanently disabling configsxshu
Makes it easier to add new disable reasons in the future. Unblocks ag/12595269 Bug: 171993750 Test: atest com.android.server.wifi Change-Id: I48b3b969a21350ccd6aee67acd411477602bed9b
2020-10-30[AWARE] Add API to get available Aware resourcesNate Jiang
Bug: 171983651 Test: atest android.net.wifi Change-Id: I5a019cbd29c4c63e6559da9b733d82b1c0422d40
2020-10-30wifi: Allow specific channel + ACS in dual bands setting.lesl
Bug: 162686273 Test: Atest FrameworksWifiApiTests Change-Id: Iad0373683a2ea93ee05be949168156389e98ae23
2020-10-30wifi: Add new capability to indicate mac address customization supportlesl
Bug: 160752000 Test: atest -c FrameworksWifiApiTests Change-Id: Ifb6b63879eeb8cbb86b31ff2eff19a62f1fbdc95
2020-10-30Merge "API support for more recent failure statuses"Oscar Shu
2020-10-29Merge "Revert "[AWARE] Add API to get available aware resources""Steven Moreland
2020-10-29Revert "[AWARE] Add API to get available aware resources"Steven Moreland
Revert "[AWARE] API to get available aware resources" Revert "[CTS] Add test for AwareResources API." Revert submission 12903772-awareResources Reason for revert: b/171991392 Reverted Changes: I74949effc:[CTS] Add test for AwareResources API. I8ed29471b:[AWARE] Add API to get available aware resources Ie207af078:[AWARE] API to get available aware resources Change-Id: Icaea00cc84f406521f8181f2912f505d05a4bd72
2020-10-29Merge "[AWARE] Add API to get available aware resources"Nate Jiang
2020-10-29Add maxTargetSdk restriction to unused APIs.Mathew Inwood
These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. This is a resubmit of ag/12929664 with some APIs excluded that caused test failures; see bugs 171886397, 171888296, 171864568. APIs excluded: Landroid/bluetooth/le/ScanRecord;->parseFromBytes([B)Landroid/bluetooth/le/ScanRecord; Landroid/os/Process;->myPpid()I Landroid/os/SharedMemory;->getFd()I Landroid/hardware/input/InputManager;->INJECT_INPUT_EVENT_MODE_WAIT_FOR_FINISH:I Bug: 170729553 Test: Treehugger Change-Id: I8285daa8530260251ecad6f3f38f98e263629ca7
2020-10-28Merge "Revert "Add maxTargetSdk restriction to unused APIs.""Hongwei Wang
2020-10-28[AWARE] Add API to get available aware resourcesNate Jiang
Bug: 159100865 Test: atest android.net.wifi Change-Id: I8ed29471be987822ab27b91452c62e9e6a09cb12
2020-10-28Revert "Add maxTargetSdk restriction to unused APIs."Hongwei Wang
This reverts commit 72f07d6a8a32db4a0dedd7682a0b3385be2b9cd6. Reason for revert: Droidcop-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?testMethod=testAppZygotePreload&testClass=android.app.cts.ServiceTest&atpConfigName=suite%2Ftest-mapping-presubmit-retry_cloud-tf&testModule=CtsAppTestCases&fkbb=6936597&lkbb=6936969&lkgb=6936551&testResults=true&branch=git_master&target=cf_x86_phone-userdebug>, bug b/171886397 Bug: 171886397 Change-Id: Ibe0f0430a3451477c1ee8ef56a596e91ea1e7672
2020-10-28Migrate wifi.SdkLevelUtil to com.android.modules.utils.build.SdkLevelDavid Su
Migrate to standard implementation. Bug: 170538050 Test: boots up and connects to wifi Change-Id: I8fca04fa22d6053aff0f58730adfa87f0bafaa3a
2020-10-28Merge "wifi: Add APIs to set dual bands and dual channels"Les Lee
2020-10-28wifi: Add APIs to set dual bands and dual channelslesl
1. Add new APIs (get/set Bands/Channels) to support config the dual APs mode. 2. Update the old API (get Band/Channel) to return smallest band/channel which associated to the smallest band in dual bands setting. The valid bands doesn't limit to 2GHZ & 5GHZ, but the daul APs setting should be 2.4GHZ and 5GHZ on pixel. PS: Also fix incorrect java doc link and descritpion. Bug: 162686273 CTS-Coverage-Bug: 171179478 Test: atest FrameworksWifiApiTests Change-Id: Id000a600c4786bd343e0ef69a7d489658f017037
2020-10-27API support for more recent failure statusesxshu
Added new failure statuses and the ability to last update timestamp. Bug: 155697192 Test: atest android.net.wifi Change-Id: I46d20f2804601eb7efd3712928fd5c4727b17fb4
2020-10-27Merge SP1A.201015.001Scott Lobdell
Change-Id: Ie33f12a2f4c73443640c28ad128be96b3533fd8c
2020-10-27Add maxTargetSdk restriction to unused APIs.Mathew Inwood
These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. Bug: 170729553 Test: Treehugger Change-Id: I4c8fd0006f950de9955242e93968fb0996ceb372
2020-10-25Merge "wifi: fix wpa3 enterprise API"Jimmy Chen
2020-10-24wifi: fix wpa3 enterprise APIJimmy Chen
192-bit certificates could still be used for standard enterprise networks. If certificates meet EAP-Suite-B requirements, setWpa3EnterpriseConfig will create an EAP-Suite-B only configuration and lead to connection issues for stardard enterprise networks. setWpa3EnterpriseConfig is deprecated and there are 2 new APIs to create standard mode and 192-bit mode configurations. Bug: 170311014 Test: atest FrameworksWifiApiTest \ android.net.wifi.cts.WifiNetworkSpecifierTest \ android.net.wifi.cts.WifiNetworkSuggestionTest Change-Id: Iffd455a9e603666c20c2c728e478ce5d894582b1
2020-10-22Merge "wifi: make BAND_ANY to deprecated"Les Lee
2020-10-20Merge "[AWARE] Add new API to support instant communication mode"Nate Jiang
2020-10-19Merge "WifiConfiguration is captive portal never detected"Oscar Shu
2020-10-16[AWARE] update API to comply the API guidelineNate Jiang
Update onDataPathConfirm() with reason. Bug: 168216007 Test: atest android.net.wifi Change-Id: I70a88d2f017df13f9be6dd3686d663f13e995193
2020-10-15[AWARE] Add new API to support instant communication modeNate Jiang
Bug: 160725208 Test: atest android.net.wifi Change-Id: I88d9ebbf2dc6b89b888f204d4d350fbad0014f45
2020-10-15Merge "[Passpoint] New APIs for HomeSP OtherHomePartners"TreeHugger Robot
2020-10-15[Passpoint] New APIs for HomeSP OtherHomePartnersHai Shalom
Following feedback from API council, modified the OtherHomePartners get/set APIs back to be hidden, and created new APIs that use a Collection instaed of an array. Updated CTS tests. Bug: 169330230 Test: atest HomeSpTest PasspointConfigurationTest Change-Id: I454679196dabebdf0649a544b9b0c135800f5941
2020-10-15wifi: make BAND_ANY to deprecatedlesl
Require to use bands bit mask to replace BAND_ANY. The current bands are a bit mask. It already supported multi-bands setting. The BAND_ANY will causes limitation when adding the new band setting. Mark BAND_ANY to deprecated and replace all of the test code to use bit mask. Bug: 162899642 Test: atest FrameworksWifiApiTests Change-Id: I0d379e60ed52e569a992ee566e4281cffa42aec9
2020-10-14WifiConfiguration is captive portal never detectedxshu
Creates a new field in the WifiConfiguration to distinguish networks that have never used captive portal. Bug: 162801581 Test: atest android.net.wifi Change-Id: I027b1b45890f5d158350ab40023772493d98f8fd
2020-10-13Make app installed cert flags persistentHai Shalom
Store AppInstalledRootCaCert and AppInstalledPrivateKey flags in the config store to make them persistent. Resolves the issue of certs that remain on the device after a connection is removed. The reasone was that these flags were not persistent which caused the logic to treat the certs as installed by the user. Bug: 168871784 Test: Manually verify xml file contents Test: atest XmlUtilTest Change-Id: I06e93fa8688d1b483b68983d10b53fbe5acae32b
2020-10-09Merge SP1A.200921.001Scott Lobdell
Change-Id: I6a8d7215f874fed05e9fec71b17c8a3d1e2c94e0
2020-10-08Merge changes from topic "oct6"Jeff Sharkey
* changes: Upgrade AndroidFrameworkBinderIdentity to fatal. Tighten up Binder.clearCallingIdentity() usage. Tighten up Binder.clearCallingIdentity() usage. Tighten up Binder.clearCallingIdentity() usage.
2020-10-07Tighten up Binder.clearCallingIdentity() usage.Jeff Sharkey
This is a third CL in a chain that adjusts existing malformed code to follow AndroidFrameworkBinderIdentity best-practices. Specifically, if a thread clears an identity they need to restore it to avoid obscure security vulnerabilities. In addition, the relevant "try" block must start immediately after the identity is cleared to ensure that its restored if/when any exceptions are thrown. Bug: 155703208 Test: make Exempt-From-Owner-Approval: trivial refactoring Change-Id: I74cb958b68d55a647547aae21baff6ddc364859b
2020-10-06Create a separate method to get Mac Random KeyNate Jiang
To support multiple profile for same network, getKey() may be changed. Create a new method for random Mac generation to keep backward compatibility and consistent address for same profile. Bug: 142035508 Test: atest android.net.wifi Change-Id: I23a1bbf3a74f13252799a1b36df31f9d3d8ea359
2020-10-06[NetworkSuggestion] Allow app to set subId for the suggestionNate Jiang
SubId will be used to identify which SIM/subscription to use for this suggestion. Same network with different SubIds will be consider different suggestions. Also add a system API in WifiConfiguration to help data calculation for different SIM. Bug: 169275787 Test: atest android.net.wifi Change-Id: I093c0661e28cc2df5e97391342101e8ecc331a0f
2020-10-02Merge "Revert "Move module utils to the module package.""TreeHugger Robot
2020-10-01Revert "Move module utils to the module package."Hridya Valsaraju
Revert "Move util classes to their destination package" Revert "Move PacketReader and FdEventReader" Revert "Move static utils to a module package" Revert "Move static utils to a module package" Revert submission 12698912-move_packetreader Reason for revert: Broke presubmit on git_master, b/169861635 Reverted Changes: If5d1e4a58:Move module utils to the module package. I44ffaad3d:Move PacketReader and FdEventReader I93e9cfd96:Move util classes to their destination package Ia84d64130:Move static utils to a module package Iaac2810c7:Move static utils to a module package Change-Id: Ibbe59075cd7bc4c38e0707ea6ae3b3703b40986f
2020-09-30CONFIGURED_NETWORKS_CHANGED_ACTION: Add backwards compatibility notesDavid Su
Bug: 169763473 Test: compiles Change-Id: Iabbc1cc9412933694909e60923d24ca258169bc9
2020-09-30Merge changes from topics "oem_paid_suggestions", "sta_sta_feature"Roshan Pius
* changes: WifiNetworkSuggestion: Add setOemPaid flag WifiManager: Add public API for STA + STA concurrency support
2020-09-30Merge "Fix WifiConfiguration#getAuthType" into mainline-prodTreeHugger Robot
2020-09-30Merge "wifi: Move SAP passphrase ascii encodable check to wifi-service" into ↵TreeHugger Robot
mainline-prod
2020-09-29WifiNetworkSuggestion: Add setOemPaid flagRoshan Pius
Also, plumb the flag to WifiInfo. Bug: 169413079 Test: atest android.net.wifi Change-Id: Ic38dae4e2436937db0fb682bf204785cd181d159
2020-09-30wifi: Move SAP passphrase ascii encodable check to wifi-servicelesl
Add new overlay config to allow OEM bypass SAP passphrase ascii encodable check since it depends on HAL and driver. Bug: 168688691 Test: atest FrameworksWifiApiTests Test: Manual test to add non ascii passphrase Change-Id: If573acece96faf59c7804c6178d0f0200164f88e Merged-In: If573acece96faf59c7804c6178d0f0200164f88e
2020-09-30Merge "wifi: Move SAP passphrase ascii encodable check to wifi-service"Les Lee
2020-09-29Fix WifiConfiguration#getAuthTypeHai Shalom
Fix WifiConfiguration#getAuthType and add unit tests. The root cause for the crash is due to the outdated implementation of this method. When adding a suggestion of a WPA2/3-Enterprise network via the the ACTION_WIFI_ADD_NETWORKS action, Settings calls this method. WPA2/3-Enterprise networks have more than 1 bit set in the allowedKeyManagement bitset which the old implementation treated as an error and threw an exception. Bug: 169626258 Test: atest WifiConfigurationTest Merged-In: I85796299f119b84781148c949d701d10da506dc2 Change-Id: I00e112388b392868b0aa9e0ccb8a9b72236bfa2c
2020-09-29Merge "WifiManager: deprecate unused intent extras"David Su