summaryrefslogtreecommitdiff
path: root/wifi
AgeCommit message (Collapse)Author
2020-08-13wifi: Support SAE_TRANSITION when converting to WifiConfigurationlesl
In android R, framework use SoftApConfiguratio to replace WifiConfiguration. The mapping function between WifiConfiguration and SoftApConfiguration was desinged to return Null when the type doesn't support in WifiConfiguration. Likes security type WPA3_SAE_TRANSITION. But it causes the app crash because unexpected Null config. Solution: Add the mapping, SAE_TRANSITION to WPA2, when converting to avoid break the legacy apps since WPA2 config also works normally when LOHS enabled on WPA3_SAE_TRANSITION mode. Bug: 163687359 Test: atest FrameworksWifiTests Test: atest frameworks/base/wifi/tests/ Test: atest -c android.net.wifi.cts.WifiManagerTest#testStartLocalOnlyHotspotSingleRequestByApps Change-Id: I6afba22e4081ba58884ffd1b560b81b1e9960132
2020-08-13Merge "Rename Kotlin util files to not include the Kt suffix" am: b1a3247ab4 ↵Chalard Jean
am: 9da93f616e am: 70572e1b82 am: a0794291ec Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1350084 Change-Id: I69da39a99014256dd1188cb522e8d0900deb66d1
2020-08-13Merge "Rename Kotlin util files to not include the Kt suffix" am: b1a3247ab4 ↵Chalard Jean
am: 9da93f616e Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1350084 Change-Id: I6362695120ea8669e1da84bb686e886b85efd6a3
2020-08-12[Passpoint] Changes to Unique IDHai Shalom
Modify Unique ID calculation to use only FQDN for HomeSP hash and modify the hash of the Credential to produce an identical hash for user credential changes, except for username which will result in a different hash, and generate a different hash for SIM credential, Cert credential and realm changes. The result would allow multiple profiles with SIM credential or Cert credential for the same network and overwrite profiles with updates to the user credentials with changes other than the username. Bug: 161008339 Test: atest com.android.server.wifi Test: atest PasspointConfigurationTest CredentialTest Test: Install an OSU profile, then install R1 profile for the same network (HomeSP has a different friendly name), verify the OSU profile has been overwritten Change-Id: Ice11158078b5b86c721747b0d67ecfb09731a3c5 Merged-In: Ice11158078b5b86c721747b0d67ecfb09731a3c5
2020-08-12Rename Kotlin util files to not include the Kt suffixChalard Jean
Callers don't care what language the utilities are written in Test: builds Change-Id: Ie212144f36c50db223c05f3fcb6bad745842cb5e
2020-08-03DO NOT MERGE Revert "[NetworkSuggestion] Fix getEnterpriseConfig" am: f570f1bdccNate Jiang
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12294734 Change-Id: Id2f8900d4a08b3377f8d3fe232125dee34a7bf33
2020-08-03DO NOT MERGE Revert "[NetworkSuggestion] Fix getEnterpriseConfig"Nate Jiang
This reverts commit a03bcee78325faf5523d90ee7a7f927b49b65fb0. Reason for revert: failing test because prebuild module Bug: 162724237 Change-Id: I530123295c3366a6955076e9d9e031282c70c486
2020-07-31Merge "[NetworkSuggestion] Fix getEnterpriseConfig" into rvc-qpr-dev am: ↵Nate Jiang
66909a0d5d Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12265213 Change-Id: Iadd7252c58215fd9f2ed5ffd8fbe7097c76b6ec9
2020-07-31Merge "[Wifi] Update language to comply with Android’s inclusive language ↵Nate Jiang
guidance" am: 5be65d0810 am: 838b971cc4 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1380674 Change-Id: Iff94a433e6402214347c90651cd131e8ddd509ce
2020-07-30[Wifi] Update language to comply with Android’s inclusive language guidanceNate Jiang
This commit only cleans up in android.net.wifi.aware. (Cherry pick from internal branch) See https://source.android.com/setup/contribute/respectful-code for reference Bug: 161896447 Test: atest android.net.wifi Merged-In: Ia9a9b84c4587885a1a20327cbdec0b26eba0ba40 Change-Id: I958baea4804f818a02b8cf6f9a596e2ad18318b0
2020-07-29[NetworkSuggestion] Fix getEnterpriseConfigNate Jiang
Return null when getEnterpriseConfig() on a non enterprise WifiConfig. Bug: 162031037 Test: atest android.net.wifi Merged-In: I874b2f99fef693b34bad4b075eed595a0d89f392 Change-Id: I874b2f99fef693b34bad4b075eed595a0d89f392 (cherry picked from commit 1312174396fdccf4c731e81ddd026ec2e384114e)
2020-07-21Whitelist settings robotests to access wifi impl detailsAnton Hansson
The test is already accessing these via robolectric leaking the impl jar, so make the dep explicit. Note that the merged-in tag is unrelated to the actual change. Bug: 157451444 Bug: 161767237 Test: m RunSettingsRoboTests Merged-In: Ic1a14c34334eb276724d97c4e763360d51cb035b Change-Id: Id283ecb2b9b8bd087028f9a68604adc516e9ea9e
2020-06-24Merge "wifi: Update API java to match new design" into rvc-devLes Lee
2020-06-24Merge "wifi: add constant for OCSP field" into rvc-devJimmy Chen
2020-06-23wifi: add constant for OCSP fieldJimmy Chen
Bug: 143381682 Test: N/A Change-Id: I3eb92e63e5eb240848ca637dd6819ab838effdac
2020-06-23wifi: Update API java to match new designlesl
Update the java doc to match new behavior as below: ClientControlByUserEnabled (true) -> disconnect new/unknown MAC + Callback; New clients will need to attempt again and will be allowed/disallowed based on user action in the previous callback. ClientControlByUserEnabled (false=default) -> allow new/unknown MAC + Callback; New clients will not disconnect unless the user chooses to disallow the client by adding to the blocklist. Bug: 159582750 Test: atest FrameworksWifiTests Test: make docs frameworks/base/wifi/ Change-Id: I64a85db0a28342003f902c50f81531b2218a6252
2020-06-23Merge "CONFIGURED_NETWORKS_CHANGED_ACTION: update docs since we stop sending ↵David Su
WifiConfiguration" into rvc-dev
2020-06-20Merge "Use installed keystore alias to check if enterprise config is insure" ↵Nate Jiang
into rvc-dev
2020-06-19Use installed keystore alias to check if enterprise config is insureNate Jiang
Bug: 158582707 Test: atest WifiEnterpriseConfigTest Change-Id: Ic5818db5eac19b9480e1b30a8e596b176fdbee4b
2020-06-19Merge "[WifiEnterpriseConfig] Update javadoc for setCaCert/Path" into rvc-devTreeHugger Robot
2020-06-19[WifiEnterpriseConfig] Update javadoc for setCaCert/PathHai Shalom
Update javadoc for WifiEnterpriseConfig#setCaCert, setCaCerts and setCaPath to document that if not set, then the server certificate validation is skipped and the connection is not secure. Bug: 159458442 Test: No code changes Change-Id: Icb26b340f743faf129544a0d889dcb7bc1a76551
2020-06-18CONFIGURED_NETWORKS_CHANGED_ACTION: update docs since we stop sending ↵David Su
WifiConfiguration WifiConfiguration contains sensitive location information, so this extra is no longer included in the CONFIGURED_NETWORKS_CHANGED_ACTION broadcast. Update docs to reflect this change. Bug: 158874479 Test: compiles Change-Id: I72ba9f75a89519ef136cc2766a8551b606b218c7
2020-06-19Merge "Move Inet[4]AddressUtils to libs/net" into rvc-devRemi NGUYEN VAN
2020-06-16WifiManager: Fix javadoc in addNetworkSuggestionsRoshan Pius
The line break in the {@link} seems to be causing the formatting issue. Bug: 159123619 Test: Compiles Change-Id: I2ab1bb4da19fe74c850d66532380f1a1da9e7e03
2020-06-12Move Inet[4]AddressUtils to libs/netRemi NGUYEN VAN
The classes should not be picked up from frameworks/base, as they are part of several mainline modules. Also refine comments in DhcpResults following feedback in previous change. Bug: 151052811 Test: m; manual: flashed, wifi and telephony working Test: atest NetworkStackCoverageTests Change-Id: I7074651c6a2a7a6b11bcf13cc4bb03833d7d655f
2020-06-11Merge "framework-wifi & OsuLogin: set min & target SDK version to 30" into ↵David Su
rvc-dev
2020-06-11wifi: fix incorrect java doclesl
Bug: 158734072 Test: make docs frameworks/base/wifi/ Change-Id: I4627175cc52c066db58c624efa7c56cc423bc21b
2020-06-10framework-wifi & OsuLogin: set min & target SDK version to 30David Su
Bug: 158681189 Test: device boots up and connects to wifi Test: connect to OSU network Change-Id: I751bd3b7a89a7b3dab6a68e1b030651fbb801481
2020-06-08Merge "[Suggestion] block setting insecure enterprise config" into rvc-devTreeHugger Robot
2020-06-06Merge "[Passpoint] Clean up exception messages in PpsMoParser" into rvc-devHai Shalom
2020-06-05[Suggestion] block setting insecure enterprise configNate Jiang
If App set insecure enterprise config to suggestion builder, an exception will be raised. Bug: 157822251 Test: atest android.net.wifi Change-Id: I2e7a2421be2c1574801b853a1dddaff1d115a1b2
2020-06-05[Passpoint] Clean up exception messages in PpsMoParserHai Shalom
Clean up exception messages in PpsMoParser. Bug: 158325667 Test: Compiles. No changes to logic. Change-Id: Icf93aa3a30b8c985047a542301de34294da37405
2020-06-03Merge "Wifi: Add definitions for 6GHz" into rvc-devAhmed ElArabawy
2020-06-03Merge "Wifi: Remove unused permitted_package" into rvc-devTreeHugger Robot
2020-06-02Switch to standard naming schemePaul Duffin
Removes use of the special framework-modules naming scheme. Bug: 155164730 Test: m java Exempt-From-Owner-Approval: Build cleanup. Change-Id: I3b78fcbcacc3df787e171d6eedeef1e51b087615 Merged-In: I0c31e2183353dfb5bd49f04f3455cb7b10be6866 (cherry picked from 8b864fb45ce79051437f13c2a19510718ea3b7aa)
2020-06-01Wifi: Remove unused permitted_packageDavid Su
android.x.net.wifi is no longer used as the package name for jarjar'ed classes. Instead we have settled on com.android.wifi.x going forward. Bug: 157781374 Test: boots up and connects to wifi Change-Id: I4be1f50df9181e27769e1861b14969069a82aa60
2020-06-01Merge "wifi: jarjar ipmemorystore interfaces" into rvc-devMichael Plass
2020-06-01Wifi: Add definitions for 6GHzAhmed ElArabawy
This commit adds some definitions for 6GHz Bug: 139354972 Test: atest android.net.wifi Change-Id: I2e3378a65cbf96c4249cb3c123712b8b20798dbe
2020-05-31Clean up the visibility rules for framework modulesPaul Duffin
Switching from java_library to java_sdk_library switched the meaning of the module name from referring to the implementation library to referring to the stubs. This change updates the visibility rules to reflect that new meaning. Visibility rules that were previously set for the java_library have been moved to the impl_library_visibility property and the special //visibility:override value has been prepended to prevent it from inheriting the values from the visibility property. Visibility rules set for the stubs (via stubs_library_visibility) property have been moved to the visibility property. Bug: 155164730 Test: m nothing Exempt-From-Owner-Approval: Build cleanup Change-Id: Icc9bc5a9ef86cf7ba0f15c2b2a4abd596ec9f640
2020-05-30wifi: jarjar ipmemorystore interfacesMichael Plass
Bug: 146460486 Test: Boots and successfully adds and removes wifi networks Test: dexdump service-wifi.jar comes out clean with the following command dexdump out/target/product/vsoc_x86/apex/com.android.wifi/javalib/service-wifi.jar | grep 'Class descriptor' | grep -v -e "com/android/server/wifi" -e "com/android/wifi/x/" Change-Id: I2ebab938061f9da76219e5588007886915288644
2020-05-30Merge "Switch framework-wifi to use java_sdk_library" into rvc-devPaul Duffin
2020-05-29Merge "WifiNetworkSuggestion setIsMetered change to tri-state" into rvc-devNate Jiang
2020-05-29Switch framework-wifi to use java_sdk_libraryPaul Duffin
Had to build from srcs rather than statically linking to framework-wifi-pre-jarjar as java_sdk_library requires srcs because otherwise it cannot generate the stubs source or the API. The names of the individual modules do not quite follow the pattern that java_sdk_library uses so this temporarily sets the following: naming_scheme: "frameworks-modules" That causes java_sdk_library to use a naming scheme that matches the one used by the individual modules of this. It will be cleaned up later. Part of the purpose of the java_sdk_library is to hide the implementation code and force users of the library to depend on stubs for a well defined API. Ideally, it would allow access to the implementation in those cases where it is safe, e.g. from within the same APEX, or from tests for the implementation. Unfortunately, due to limitations in the build it does not yet have enough information to make that decision correctly which means that any code that needs to compile against the implementation is broken which would prevent us from converting the module to java_sdk_library. However, the only way to provide the additional information to allow the implementation to be correctly exposed is to convert the modules to java_sdk_library; a cycle. In order to break that cycle the java_sdk_library creates a special <module>.impl target which is used directly by tests and any other code that needs it. Once all the modules have been converted to a java_sdk_library then we can resolve the limitations in the build and remove the direct references to <module>.impl. Test: m droid checkapi Bug: 155164730 Change-Id: I5e1172761f260cf6a0b4f17e5247af92c520407f
2020-05-28WifiNetworkSuggestion setIsMetered change to tri-stateNate Jiang
setIsMetered: true for metered; false for not metered; not set for detect automatically Bug: 157341534 Test: atest android.net.wifi Change-Id: If4c028e184b44ae53db80b94fe6d9ae7d06b3cb6
2020-05-28framework-wifi: Add missing permitted packagePaul Duffin
A bug in Soong prevented the permitted package check from being performed. Fixing the bug revealed that there was a missing package on framework-wifi which this bug adds. Test: m framework-wifi Bug: 157633658 Change-Id: Ie0469de76a1bba6e9ad616a38b34e99236c7c1aa
2020-05-15Merge "WifiManager: Add a note for NETWORK_SETTINGS_RESET behavior" into rvc-devTreeHugger Robot
2020-05-15WifiManager: Add a note for NETWORK_SETTINGS_RESET behaviorRoshan Pius
Bug: 156657612 Test: Compiles Change-Id: I668c625d5a0b20bbc9e3e1a5c15c1ada6e1fa2bb
2020-05-12Wifi: Add constant and utility method for bandsAhmed ElArabawy
This commit adds a constant WIFI_BAND_ALL to refer to bit mask for all bands. It also adds a method to check on if previous scan covers all supported bands. Bug: 156053158 Test: atest android.net.wifi Change-Id: I426dd3940b7efd67eaf6e12f862a1e3f0ebc177a
2020-05-11Wifi: Add definitions for bands frequency boundriesAhmed ElArabawy
Channel frequency ranges for the three bands (2.4G, 5G, and 6G) are used in different places with separate definitions or via literal numbers. Also, the values are not accurate and sometimes not consistent. This commit defines those ranges in a single place for use of other classes. It also adds some utility methods that use those definitions. Bug: 153896822 Test: atest android.net.wifi Change-Id: Ifd19e245fd808c06d48d7557e30be3e92a9e7ec5
2020-05-09Merge "Revert "frameworks/base/wifi/tests: Run mts-wifi on AOSP builds"" ↵David Su
into rvc-dev