f210755c2ac34dc466bcab188b9716b2482bbfe1 |
|
03-Apr-2018 |
Roshan Pius <rpius@google.com> |
WifiConfigStorLegacy: Add null check during restore One of our OEM's is running into a crash in the config store migration logic added in O. See the below bug for more details. This issue is not seen on Pixel devices, because the |configKey| can never be null there. Also, added a wrapper for IpConfigStore to help in mocking static method in IpConfigstore. Note: This code is pretty much unused on Pixel devices & other OEM's who have upgraded from N to O. Only will help OEM's who upgrade from N to P directly. Bug: 73877225 Test: Unit tests Change-Id: I1b24c05bbb2bc488d77f3f93ec550517c1d1e5c3
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStoreLegacy.java
|
52ed1731664f7e0b76adb14eec7a76eaa95144c3 |
|
22-Dec-2017 |
Roshan Pius <rpius@google.com> |
WifiNative: Use iface name for WifiNative methods Remove any hardcoded interface name throughout the wifi framework codebase. Interface name will now be retrieved from the HAL using the WifiNative.setupInterfaceFor*Mode() methods. All interface specific operations in WifiNative will now accept the interface name as handle. The clients (WifiStateMachine, SoftApManager, etc) should use the appropriate interface name retrieved fom the setup method. The only exception is external clients like RttService, WifiScanningService, WifiDiagnostics, etc which will retrieve the active client interface name from WifiNative. Bug: 69426063 Test: Manually toggled wifi/softap/airplane mode on/off multiple times. Test: Unit tests. Test: Will send for regression tests Change-Id: If7b34f9c7714fcab8482e6f2cad9078d78229fe2
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStoreLegacy.java
|
e9471f7d35cb5a39af883b5379812eeaba8b12d0 |
|
08-Jan-2018 |
Roshan Pius <rpius@google.com> |
Revert "WifiConfigStore: Remove legacy modules" This reverts commit a83bd15861ae7175b1f62bc2dc8de63e0dbe808e. Bug: 31041781 Test: Unit tests Test: Upgraded a device from N to P and ensured that the saved networks are not lost. Test: Will send for integration tests Change-Id: I62ba62579b5a2004b1b854a53f4d465ee806a440
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStoreLegacy.java
|
a83bd15861ae7175b1f62bc2dc8de63e0dbe808e |
|
31-Aug-2017 |
Roshan Pius <rpius@google.com> |
WifiConfigStore: Remove legacy modules These modules were used to migrate store data out of the old store files. Now that O is released, these classes are unused so cleaning up dead code. Bug: 31041781 Test: Unit test passes. Test: Flashed a device and ensured that none of the saved networks are lost. Change-Id: Ib6936cace3c72408ba4be2e33226737228159a48
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStoreLegacy.java
|
347faef7fe3f5df209da431eb844bc026a1ba007 |
|
15-Aug-2017 |
Roshan Pius <rpius@google.com> |
WifiConfigManager: Skip data migration if new store is present If the new config store files are present, skip data migration from the older store file. The old store files may still be present in the device if WifiConfigStoreLegacy.removeStores() failed for some reason during the earlier migration. Also, ensure that we attempt to delete all the store files in WifiConfigStoreLegacy.removeStores(). Returning early on failure in that method may leave the device in an incoherent state (some old store files are deleted, while others are not). Bug: 63376504 Test: Unit tests Change-Id: If2e65a7e03677040dfccf88298887e21201aff92
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStoreLegacy.java
|
163f9765f9e4c3f868b1e0d630b6adeaa115fb4a |
|
17-Mar-2017 |
Roshan Pius <rpius@google.com> |
Split up WifiNative/WifiMonitor into STA-AP/P2P With HIDL, there isn't any dependencies between the STA & P2P WifiNative's. So, split up WifiNative/WifiMonitor into 2, one for P2P & non-P2P cases. The WifiP2pNative, WifiP2pMonitor & SupplicantP2pIfaceHal classes are now moved to p2p package. Also, added couple of missing methods in SupplicantP2pIfaceHal from SupplicantStaIfaceHal. Bug: 36371256 Test: Compiles, device boots up and connect to wifi networks. Change-Id: I85ea84355ab2a1803053f663f207b42b793c552c
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStoreLegacy.java
|
018e39e2f6201519373e7f4dbb1427f0e5274898 |
|
10-Mar-2017 |
Peter Qiu <zqiu@google.com> |
WifiConfigMangaer: use updated legacy Passpoint config indicator Bug: 36101691 Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh Change-Id: I85cd5619072ec978913df932c0b47ebe696074bc
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStoreLegacy.java
|
b8b3fb8228a1f90106bad8c59ce006b81ef7921c |
|
09-Mar-2017 |
Roshan Pius <rpius@google.com> |
Remove all legacy HAL usage from framework WifiNative now just becomes a module to route calls into the appropriate native module: WifiVendorHal, WificondControl, SupplicantStaIfaceHal, SupplicantP2pIfaceHal. Changes in the CL: 1. Cleanup WifiNative to remove the legacy HAL usage. 2. Remove the |HIDL*| flags in WifiNative. 3. Remove static instance of WifiNative/WifiMonitor. 4. Remove WifiMonitor code parsing the string events from wpa_supplicant. 5. Remove all unused jni code used for legacy HAL interactions. 6. Remove dependency of libwifi-hal & libwifi-system from framework. Notes: a) We can now potentially split up WifiNative into separate chunks: WifiStaNative, WifiP2pNative, WifiRttNative, etc instead of having a monolithic WifiNative instance. b) We may have to add back the local log in WifiNative (b/36059665). Bug: 35702893 Bug: 34457880 Bug: 34884202 Bug: 35421721 Test: Compiles, existing unit tests pass. Test: Device boots up and connects to wifi networks. Test: Verified with wifi regression (b/36068282) Change-Id: I3e13522c912242af8023471e029edb1ce47fd3e9
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStoreLegacy.java
|
498d406fbe956b1b9789a8739f6d7de9caaa851c |
|
23-Feb-2017 |
Peter Qiu <zqiu@google.com> |
Create user store when migrating legacy configs Currently, at the time when the migration starts, the user store for the current user might not have been initialized. This can happen if the user unlock before the config store is ever read after boot. To fix it, we will setup the user store for the current user if it is not setup yet, before persisting the migrated data to the config store. While there, fix a bug when retrieving the password for enterpise config from the legacy wpa_supplicant.conf file. The password stored in that file is enclosed in double quotes, and when we set the password in WifiEnterpriseConfig double quotes will also be added. This results in the password being enclosded in duplicated double quotes. So fix it by removing the double quotes when retrieving the password from wpa_supplicant.conf file. Bug: 35675098 Test: frameworks/opt/net/tests/wifitests/runtests.sh Test: manually updating a bullhead from N to O and verify user specific configurations are migrated Change-Id: I565e9dcea8c45ba21595c18161cb976fbb472bd0
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStoreLegacy.java
|
9432358b816df5530aed86d4107756854e5ac4f0 |
|
16-Feb-2017 |
Peter Qiu <zqiu@google.com> |
WifiConfigStoreLegacy: read legacy Passpoint configuration file Read and load Passpoint configuration from the legacy Passpoint configuration file (PerProviderSubscription.conf). Copy the missing configuration fields to WifiConfiguration, so that a WifiConfiguration will contained all configuration data for Hotspot 2.0 Release 1 configuration. The WifiConfiguration for Passpoint configuration will be stored temporarily in the share store until its owner logs in. When the configuration owner logs in, the configuration will be converted to PasspointConfiguration and added to PasspointManager. Then the shared WifiConfiguration will be removed to complete the migration. This will be done in the follow-on CLs. Bug: 34206769 Test: frameworks/opt/net/tests/wifitests/runtests.sh Change-Id: I946984822599b46e7e79babdf84272290ecf2431
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStoreLegacy.java
|
38a6c1ba5d461b8c7b11685c5dd2e98d9e106b55 |
|
22-Feb-2017 |
Roshan Pius <rpius@google.com> |
SupplicantStaNetworkHal: Fix network extra parsing/writing The HIDL interface doesn't need the string to have the quotes. So, refactor the helper functions so that it parses/creates an unquoted string. The existing socket interface will continue to use the quoted strings. Also, Don't attempt to read the wpa_supplicant.conf file in legacy store migration if HIDL is enabled. Bug: 35663125 Test: Unit tests Test: Migration from N to O using HIDL interface. Change-Id: I2ee9f61f6e9f393608982952986c5dd980c998f9
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStoreLegacy.java
|
f3aae0be78cd02f5fedd7d99b73536d2c799b030 |
|
18-Feb-2017 |
Roshan Pius <rpius@google.com> |
Remove unused/unwanted WifiNative methods Remove a bunch of unused/not needed WifiNative methods and change method signatures in preparation for integration with HIDL interface. 1. Remove the ping command since this is no longer exposed in the public API. 2. enable/disableNetwork, blacklist, hs20 methods are no longer used. 3. saveConfig method no longer needed since wpa_supplicant is not the config store. 4. setScanInterval is no longer needed since scanning is controlled by wificond. 5. enableAutoConnect is no longer needed since auto connect is controlled by QNS. Bug: 33383725 Test: Compiles Change-Id: Iaf8631b583cd380fbcbc90c88e2734c44c65049a
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStoreLegacy.java
|
a26a8b33616c94859ba33f33403794cf636baa54 |
|
16-Feb-2017 |
Roshan Pius <rpius@google.com> |
WifiSupplicantControl: Remove this class (Part 1) Make WifiSupplicantControl instance part of WifiNative and expose all the public methods of WifiSupplicantControl in WifiNative. This is a prelude to removing this class altogether. All of this methods have been exposed in SupplicantStaIface and WifiNative will use that once we switch over to HIDL. Note: Some of the existing methods in WifiSupplicantControl were just wrappers over WifiNative methods and hence removed them altogether. Bug: 35421721 Test: Existing unit tests. Test: Will send for regression tests. Change-Id: I1c90c8d13bec583ff4b2989c8d62b910c5e73e26
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStoreLegacy.java
|
3bc487aa49deecbc358ee819e0dd4b2534412281 |
|
30-Aug-2016 |
Roshan Pius <rpius@google.com> |
Integrate new config manager Misc changes in other modules to integrate the new WifiConfigManager class. BUG: 31009287 TEST: Unit tests TEST: Integrated with WSM and verified wifi connectivity. Change-Id: I389ff314160ee6288c25c578c62c2a4102bdb88e
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStoreLegacy.java
|
3a738a26918230b2469d917dbf14323234edd39b |
|
22-Aug-2016 |
Roshan Pius <rpius@google.com> |
WifiConfigManagerNew: Migration from legacy stores Integrated the new |WifiConfigStoreLegacy| into the new WifiConfigManager. Every invocation of |loadFromStore| will check if there is any data to be migrated from legacy store files if the new store files are not present. If legacy store data is present, it will migrate all of the data from those stores and delete them permanently. The deletion of legacy stores is commented out in the first roll out of the new config store changes. This will be re-enabled once things are stable so that we can revert to this data if needed. BUG: 29337176 Change-Id: I35d626ed8bae70c676cb10b307cb116ed837a529 TEST: Existing unit tests.
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStoreLegacy.java
|
ee7bdc30d102e05df8d275ebc133afed21808e34 |
|
19-Aug-2016 |
Roshan Pius <rpius@google.com> |
WifiConfigStoreLegacy: Migration from legacy store Add a new module |WifiConfigStoreLegacy| to perform the necessary migration of data from the legacy store files: 1. wpa_supplicant.conf (indirectly via wpa_supplicant ctrl iface) 2. networkHistory.txt 3. ipconfig.txt The new module exposes 3 methods to help in migration: 1. isStoresPresent() - to indicate the need for migration. 2. read() - to read data from all the store files. 3. removeStores() - to delete all the store files after migration. This is using the existing store read methods in WifiNetworkHistory, WifiSupplicantControl & IpconfigStore. TODO: Migrate passpoint info later. BUG: 29337176 TEST: Added a unit test. TEST: Manual tests using some hacks in WifiConfigManager. Change-Id: I143a4271cc63573a69a3008396d1396c1f36721b
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStoreLegacy.java
|