History log of /frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStoreLegacy.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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