9ef555a48ac600c8766f703fa60db15b69e20301 |
|
10-Mar-2017 |
Peter Qiu <zqiu@google.com> |
WifiConfigurationXmlUtil: persist additional fields for legacy Passpoint configuration When migrating legacy Passpoint configurations, the configuration will only get migrated when its owner logs in. In the meantime, we will need persist all the required data in the share store temporarily. So persist the additional required fields for Passpoint to the storage to avoid any data loss in the case when migration took multiple boots to complete. Bug: 36099588 Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh Test: manual test updating a device from N to O, verify all configs are migrated. Change-Id: I040dfd9f207ed1a9b2e3ccd50eca50560d6e1444
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/NetworkListStoreDataTest.java
|
7d100897cd3ab3a05c3925da42bd25af6e3c8c4a |
|
15-Feb-2017 |
Roshan Pius <rpius@google.com> |
NetworkListStoreData: Handle runtime exceptions The enterprise config setters can raise Illegal argument exceptions if the data being set is incorrect. This shouldn't normally happen until someone manipulates the XML (or downgrades as in the linked bug). Handle such runtime exceptions gracefully and skip over that network block. While there made a small nit, Rename parse/writeWifiConfig to parse/writeNetwork to be symmetric with other method names in the file. Bug: 35244730 Test: Unit tests Change-Id: I168eb383090712f7c5df388a6fcc3a1ed1055fe3
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/NetworkListStoreDataTest.java
|
6296902ef69724b106973b57b268c30ea4f1ab51 |
|
10-Feb-2017 |
Roshan Pius <rpius@google.com> |
XmlUtil: Persist WifiConfiguration.status field Since WifiConfiguration.status field is publicly exposed we need to persist this field across reboots. We could either, a) Directly persist this field, or b) Reset the field on every load using the retrieved NetworkSelectionStatus. Going with option a) since i want to try and avoid too much logic like this in the data loading path as much as possible. We don't use this field internally and it's only used for external apps to check the status of the network. Bug: 35210874 Test: Unit test Change-Id: I80d692affe628a29c29ad2f4b66f8c1e522b114b
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/NetworkListStoreDataTest.java
|
0a0b5035ce8013ed327a0802357a1b7df3061912 |
|
07-Feb-2017 |
Peter Qiu <zqiu@google.com> |
Wifi configuration store data refactor Currently, the unified config store files contained data for network list and deleted ephemeral SSID list. Since both of them are owned by WifiConfigManager, it is tightly integrated into WifiConfigManager, results in complexities when need to add new data that's not owned by WifiConfigManager (e.g. Passpoint configurations) to the store file. To reduce the complexity, an abstraction is provided for the store data to be persist to the store files. Any interested module can register its own store data to the store file. Then at read/ write time, WifiConfigStore will iterate through each registered store data to deserialize/serialize configuration data from/to a XML block, to be persist to the store file. So each StoreData is responsible for serialization/deserialization of a XML block denoted by its tag. For example, WifiNetworkListStoreData is responsible for the XML block under tag <NetworkList>. Bug: 31065385 Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh Test: Manual test to verify saved networks are persisted over boots Test: Manual test to verify migration of legacy store file still works Test: Regression integration test Change-Id: I83c2eb7cd907188f392b5179405f19182ee13bb9
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/NetworkListStoreDataTest.java
|