History log of /frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3c8094ab45f3320dbe45e6460c5d62dcc24ce7ae 04-May-2016 Mitchell Wills <mwills@google.com> Clear auth identity if sim removed while the device is off

TEST: Validated that changing a SIM both when the device is on and when
it is off results in the correct identity being used when trying
to authenticate with an EAP-SIM network.
Fixes: 28163651
Change-Id: I3dda95308a527be225a9f70636c727c9826ac939
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
46216839c58e6aa6933eae304da750cd46148837 14-Apr-2016 Samuel Tan <samueltan@google.com> Merge changes Ia5efa8a0,I2ec700c3 into nyc-dev

* changes:
WifiConfigStore: remove migrateCerts()
WifiConfigStore: remove migrateOldEapTlsNative()
d347f07ab5908f1736a912e1305cdc653fb606fe 14-Apr-2016 Jan Nordqvist <jannq@google.com> Merge "Fixed incomplete OSEN config code." into nyc-dev
b571743f406cbe1c13cc0fdfcd9fc58093728f4c 12-Apr-2016 Samuel Tan <samueltan@google.com> WifiConfigStore: remove migrateCerts()

The abovementioned method was introduced 3 years ago,
and should not be needed anymore.

BUG: 28124406
Change-Id: Ia5efa8a068c1a68b875bcbe1b21424d7ab201e4a
TEST: 'runtest frameworks-wifi' passes.
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
41a43eccc1f100f15bc37755d9824494d1ea773a 12-Apr-2016 Samuel Tan <samueltan@google.com> WifiConfigStore: remove migrateOldEapTlsNative()

The abovementioned method was introduced 4 years ago,
and should not be needed anymore.

BUG: 28124210
Change-Id: I2ec700c3a96cc2c37831394f6bc7b4075270f3fb
TEST: 'runtest frameworks-wifi' passes.
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
42396f489e485671100353beb6102d315ff3a542 13-Apr-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "WifiConfigStore: set requirePMF when ieee80211w==2" into nyc-dev
af3c71f28531c8d52ebc8e913f34b674f91b9fd8 13-Apr-2016 Rebecca Silberstein <silberst@google.com> WifiConfigStore: set requirePMF when ieee80211w==2

When reading back WifiConfigurations, the ieee80211w value is
incorrectly defaulting to 3, this is causing the requirePMF value to be
incorrectly set to true. Change this behavior to only set requirePMF
when the value read is 2.

BUG: 28159304
Change-Id: I0896b1feb10415c04b335ac1b91844ae0fe87f2d
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
30925b4fe118d954c671523b71ecd8820e70d962 13-Apr-2016 Samuel Tan <samueltan@google.com> Merge "Remove WifiConfigManager.mDeletedSSIDs" into nyc-dev
feaedc1a064de293bc18ab1e522a7953b7fa2719 31-Mar-2016 Jan Nordqvist <jannq@google.com> Fixed incomplete OSEN config code.

Changed the makeString method to comply with new Hotspot 2.0 release 2
group cipher name with underscores in the value.
The legacy code bluntly assumed that all wpa_supplicant values used
dashes only and no underscores.

BUG=27929688

Change-Id: I74f7549b7771402121570f725e9d2f95be8d19c4
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
329b3a9a9bc32d14649e91c15876ea7f95f148d1 13-Apr-2016 Roshan Pius <rpius@google.com> WifiConfigManager: Remove dead code

BUG: 28164778
Change-Id: I1e09b8039dbf7d220fd699b5be3b29330d02a305
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
913bb9047c0eab77653b47a0ed69dbe0bd3d479f 13-Apr-2016 Samuel Tan <samueltan@google.com> Remove WifiConfigManager.mDeletedSSIDs

mDeletedSSIDs are introduced in WifiConfigStore in
go/ag/585797, where it was used in
WifiConfigStore.associateWithConfiguration(). This method
was later removed in go/pag/215262, but mDeletedSSIDs
was not. Later, mDeletedSSIDs was moved to WifiConfigManager
in a WifiConfigStore refactor.

Since this variable is no longer used, delete it and all
references to it.

BUG: 28088479
Change-Id: I056ae6f6654269100fc96f25b299a9fece85be93
TEST: 'runtest frameworks-wifi' passes.
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
eaea4b75c2ecfd192d5dcefcf67bb851bf031f5e 12-Apr-2016 Rebecca Silberstein <silberst@google.com> WifiConfigStore: read requirePMF config variable

When saving a wifi configuration, we set the requirePMF variable from
the config, but it is never read back.

Add the getNetworkVariable call for pmfVarName and add a call to verify
the attempt to read it back in the WifiConfigManagerTest.

Additionally fixed a checkstyle issue for unused imports.

BUG: 28088226
Change-Id: Ib7b2ba796e31ae57273c34b6845c218419125b72
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
9b5ffdfd63416af3245a89058fde1c3ebbfb5645 01-Apr-2016 Samuel Tan <samueltan@google.com> WifiConfigStore: write configKey for legacy networks to WPA supplicant

Whenever WifiConfigStore encounters a legacy network that does not have a
configKey (i.e. its configuration was written by a pre-N version of
Android), force an update of this network by immediately writing the
computed configKey into wpa_supplicant.conf (via supplicant's SET_NETWORK
control interface method).

This will ensure that all network configurations stored in
wpa_supplicant.conf will have configKeys available for parsing.

BUG: 27962844
Change-Id: Icdcac80d1ce06a50f99556e3c451543abeb59f75
TEST: 'runtest frameworks/wifi' succeeds.
TEST: Created network config with WiFi UI, deleted its id_str in
wpa_supplicant.conf manually via adb, restarted device using
'adb reboot', read wpa_supplicant.conf again and verified
that the id_str field was restored for that network.
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
aa10749aa9063a03c6e66af336c85863949fdbb1 01-Apr-2016 Ritesh Reddy <riteshr@google.com> Merge "Calling BackupManager.dataChanged for WifiNetwork Changes" into nyc-dev
2fc3d4dcabb6ddcd72dc335d908aa192c38c5e5f 26-Mar-2016 Samuel Tan <samueltan@google.com> WifiConfigStore: use configKey instead of SSID as unique ID in
...readNetworkVariablesFromSupplicantFile

Use the configKey stored in the id_str field of wpa_supplicant.conf,
rather than SSID, to uniquely identify networks in
readNetworkVariablesFromSupplicantFile.

Also:
- Remove WifiConfigStore.readNetworkVariableFromSupplicantFile(),
and move the logic in that method into
WifiConfigManager.readNetworkVariableFromSupplicantFile().
- Add a helper method, WifiConfigStore.readNetworkVariablesFromReader(),
so that we can inject a test supplicant config file during testing.
- Add WifiConfigStoreTest.java, which currently only contains unit tests
for WifiConfigStore.readNetworkVariablesFromSupplicantFile().

BUG: 26733972
Change-Id: Ice2dcdae0c2e95b4df6459f75f3a98df30290256
TEST: 'runtest frameworks-wifi' succeeds.
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
08c939fa7f1fcd666a3076b6921864b4bf70308f 21-Mar-2016 Roshan Pius <rpius@google.com> WifiConfigManager: Update network metadata

The configkey saved for new networks may change after we save the
network. This is because some of the default values are not specified
when saving the network to supplicant, but these values are filled when
reading the config back from supplicant.
The configKey which depends on the |authAlgorithms| field needs to be
updated after all of these default values are read.

BUG: 27756946
TEST: Compiles & unit-test passes
TEST: Manually executed the failing test in the above bug and verified
that it passes now.

Change-Id: Ia568a2804f69697a8342e666d2ec3b269dbc9922
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
4bf1cc8cc917441bef9e53cda2c5ceb7f048a3e4 14-Mar-2016 Ritesh Reddy <riteshr@google.com> Calling BackupManager.dataChanged for WifiNetwork Changes

Using the BackupManager Proxy in the service package
to stage a backup of com.android.providers.settings when
Wifi Networks are added/removed.

Bug: 26087998
Change-Id: Ie91d40870fc843e67e99c6fbda26b14d281e96bb
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
163d510aac068682c390664e51e83bbf870fe5f5 08-Mar-2016 Sunil Dutt <usdutt@qti.qualcomm.com> Wifi: send an explicit ENABLE_NETWORK with "no-connect"

ENABLE_NETWORK command is called from the framework because of PNO state
change, which triggers the connect.This command is only expected to
enable the network and not issue a connect because from framework the
expected sequence of operations for a connect are SET_NETWORK,
ENABLE_NETWORK and SELECT_NETWORK.
Send an explicit ENABLE_NETWORK with "no-connect" to avoid connection.

Change-Id: I7583e9ff0c5b8700d9ec945d93b5175c134e8e76
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
cf608a89599ccd38b1471af2e2546638fc4d3142 26-Feb-2016 Roshan Pius <rpius@google.com> WifiConfigStore: Cleanup logging in the module

Adding some localLog debug messages in every method in the class.

BUG: 27375886
Change-Id: Iaf54c642b767c5052613fa8951e97ea1b0e98dfe
TEST: `runtest frameworks-wifi`
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
e812d55a5329a42726f2e257c0f16a29c2a451dd 24-Feb-2016 Roshan Pius <rpius@google.com> WifiConfigStore: New WifiConfigStore (Part 1)

This is part 1 of creating the new WifiConfigStore class.

Trying to move parts of WifiConfigManager that deal with only
saving/loading wifi configurations from wpa_supplicant into a separate
class. Some of the methods are direct copies of the methods in
WifiConfigManager, but there are others which needed some modifications.
Tried to keep the new class to only contain direct interactions with
supplicant, but there are a some dependencies which needed to pulled
in along with those like:
1. Keystore interactions for enterprise networks.
2. Certificate migration

Will put up a follow-up CL for integrating this class into
WifiConfigManager.

BUG=27299172
Change-Id: I3e4527a310e0d39202c9ae9433e9a5a891443eef
TEST:`mmma -j32 frameworks/opt/net/wifi/service/`
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
c2a0ff06d58e1cfb9b69fa5b6a8fef5929812f27 22-Feb-2016 Roshan Pius <rpius@google.com> Rename WifiConfigStore to WifiConfigManager

Rename WifiConfigStore class to WifiConfigManager and replace all
existing occurences of WifiConfigStore.
This is in preparation of refactoring WifiConfigStore into a
separate class which will only deal with storing/reading configurations
from a perisistent database.

BUG: 27296463
Change-Id: Ib4c4bd3bdf3fa28771a646e1f3d244f73b690d5e
TEST: Ran unit-tests
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
ba035ceba49da6c3fa4e9407900655ab5cb5e006 23-Feb-2016 Roshan Pius <rpius@google.com> Merge "WifiConfigStore: Remove IpConfigStore inheritance" into mm-wireless-dev
c1bc5a14b94276421f741eaebb54daa8e63e4a05 22-Feb-2016 Roshan Pius <rpius@google.com> WifiConfigStore: Remove IpConfigStore inheritance

Move IpconfigStore instance to be a member of the WifiConfigStore and
create a new DelayedDiskWriter for writing the other configurations.

BUG: 27293150
Change-Id: I76654d49848c417599996b0a8b510ff2b04a3d4a
TEST: `runtest frameworks-wifi`
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
cb3aa74733cef68dd30d5e6aa8f252cd749b4143 22-Feb-2016 Jan Nordqvist <jannq@google.com> Exclude implicit MO creation when creating Hotspot 2.0 release 2 networks.

Bug=27294473

Change-Id: I8f13cd49e8b2d17e9451625ab1b01dd16c057f2e
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
5c3c06082b24f9ff0d479e82a63b52220c86598b 12-Feb-2016 Roshan Pius <rpius@google.com> WifiConfigStore: API for fetching PNO network list

Modify the existing API for retrieving PNO network list to
differentiate the list for disconnected vs connected PNO scenarios.
The network sorting orders are different for each of these PNO
scenarios. Use different comparator objects to sort the network list for
the 2 scenarios.

Also, merging the existing ePNO network class (WifiPnoNetwork) with the
supplicant based PNO network class (PnoNetworkPriority). This allows the
Connectivity manager to use a single class for all types of PNO.

While there,
Remove dead code in WifiConfigStore (buildPnoList) which was written for
ePNO.

While there,
Add back the numAssociation counter increment because we're now using
it to sort PNO list.

BUG: 27151228
Change-Id: I6d48dab367a2106eef4f1d3f396f391c57a22339
TEST: Ran unit tests
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
0fa719c7706dc6e447d16543518d4ecb269b91d0 16-Jan-2016 Paul Stewart <pstew@google.com> Refactor for accessor changes to WifiEnterpriseConfig [Re-Land]

WifiEnterpriseConfig has changed to provide more sane accessors.
Now, callers are not given blanket access to the internal fields
and need to pass an accessor object to either save or restore
wpa_supplicant configuration.

This CL also adds unit tests to validate the new behavior of EAP
and Phase 2 parameters to ensure that recent changes do not cause
any regressions.

Bug:26400915
Change-Id: I294d804b431e216071905b96c51e023ea424aaf5
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
f41a9021a7374c2ce6c1c658bc721ce4eef3e2ae 16-Feb-2016 Ningyuan Wang <nywang@google.com> Merge "Mark status DISABLED when disabling a network" into mm-wireless-dev
303b05a42b953f325fa3cea3e0021684741554c5 09-Feb-2016 Ningyuan Wang <nywang@google.com> Mark status DISABLED when disabling a network

This marks the status as DISABLED in WifiConfiguration when
the WifiConfigStore disables a network.
This also fixes a comment typo.

Bug: 26985338
TEST=cts WifiManagerTest
Change-Id: Idb10a4e53cf07b8e56f260bd7f846b3967862140
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
ae815bc71287f8a85727034c40bb07247a3d9415 26-Jan-2016 Vinit Deshpande <vinitd@google.com> UnitTests for MOManager and AnqpCache

MOManager is the repository that holds management
objects for Passpoint networks. This change adds tests
to add/remove and modify management objects.

AnqpCache holds results to save power; this test
verifies basic adding/querying and expiry of entries.

Change-Id: I9b12a6661f689227f7564cc6a7e0fd7e338e1e8a
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
0fb9cf43830d67894b519c9a6271320c4842a5c0 12-Feb-2016 Bartosz Fabianowski <bartfab@google.com> Allow managed profile to modify networks

If the current foreground user has a managed profile, apps running in that
profile should have the same permissions to add/remove/modify networks as
apps running as the foreground user itself.

This is a re-submit of
https://partner-android-review.googlesource.com/#/c/529950/
with updated unit tests that will also work after merging to N/master.

BUG=26867426

Change-Id: If97734abad801ae1264919c91c3ef4236469cfde
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
9f8586ea6d640e86560efd9a2d9c1909b08a3ef4 11-Feb-2016 Mitchell Wills <mwills@google.com> Revert "Allow managed profile to modify networks"

This reverts commit bbb3149f3bc301e81c202438b77c45574a90a851.

Bug: 27145628
Change-Id: I05ac9c714373b98fa73e0dba21ec4d815200af75
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
bbb3149f3bc301e81c202438b77c45574a90a851 11-Feb-2016 Bartosz Fabianowski <bartfab@google.com> Allow managed profile to modify networks

If the current foreground user has a managed profile, apps running in that
profile should have the same permissions to add/remove/modify networks as
apps running as the foreground user itself.

BUG:26867426

Change-Id: I6ab891625b673e617e1c38863b9c6e71e4938a0b
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
ac9ad3283508db15b65b1cbb89b841278973276b 28-Jan-2016 Roshan Pius <rpius@google.com> Update network priorities before PNO is triggered

The max SSID watch list size for PNO supported by wlan drivers is fixed
to a certain size. wpa_supplicant sorts this SSID watch list based on
the priorities assigned to those networks. This may result in us losing
some frequently used networks from the PNO list because they have lower
priorities. This is a side effect of how we assign priorities to
network configuration as they're added.
So before we trigger PNO, re-sort the network list based on the
'numAssociation' value and assign them relative priorities. This will make
sure that the PNO SSID watch list contains all the frequent SSID's to
which we were connected to.
PS: This change has a side-effect of ignoring the configured priorities
during PNO.

While there,
1. Add a common test utils class for common utility functions for all
tests.
2. Annotate all tests in WifiConfigStore so that
|WifiTestUtil.getTestMethod| works reliably.

BUG: 26763375
Change-Id: I2c82254b2cb83aef0dd4da9e7d9b2eb5b376bead
TEST: `adb shell am instrument -e class
'com.android.server.wifi.WifiConfigStoreTest' -w
'com.android.server.wifi.test/android.support.test.runner.AndroidJUnitRunner'`
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
435d037ed4e5da4cd2e73a6f089382deb79c1fc0 05-Feb-2016 Samuel Tan <samueltan@google.com> WifiConfigStore: Add CA_PATH_KEY to ENTERPRISE_CONFIG_SUPPLICANT_KEYS

Add CA_PATH_KEY to ENTERPRISE_CONFIG_SUPPLICANT_KEYS, so that the
|ca_path| WPA supplicant directive will be saved and loaded.

BUG: 25180141
Change-Id: Id425270644c64d89f7094ebd756093e57e848ee4
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
ddc9e6bd99cf28b4b7304672b7ecc1ead9cdd0b4 04-Feb-2016 xin He <xinhe@google.com> Merge "fix the broken network selection BSSID disable / enable" into mm-wireless-dev
2e814680f4dd27a5f825afab189843582235cedc 24-Jan-2016 Jan Nordqvist <jannq@google.com> New System APIs for Passpoint r2 app.

Change-Id: If23e6ab432e871a407cbff94292673524c6d72bd
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
7b6cd1fce7850fc2aa0e510b170e6fd509308d21 02-Feb-2016 xinhe <xinhe@google.com> fix the broken network selection BSSID disable / enable

In this bug, AP try to steer the STA from 2.4GHz to 5GHz
band. Thus, the 2.4GHz BSSID reject the association request.
In theory, framework should disable this bssid for future
connection. However, this is broken. This CL fix the broken
network selection BSSID disable/enable

BUG=26916700

Change-Id: Ib358dd5a8481c4785391345df33b08459f781b81
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
bade25ebb7b4137521576ba01e77adbda382ac11 02-Feb-2016 Pankaj Kanwar <pkanwar@google.com> Merge "Add DhcpFailure and BadNetworkEvent tests to WifiStateMachine" into mm-wireless-dev
c94a64a292925a00c33413c81a46941093495b3e 24-Jan-2016 pkanwar <pkanwar@google.com> Add DhcpFailure and BadNetworkEvent tests to WifiStateMachine

This CL adds 2 tests for WifiStateMachine:

- TestDhcpFailure tests failure in dhcp client.
- TestBadNetworkEvent tests sending the NETWORK_DISCONNECTION_EVENT
during connection to make sure that the state machine does not break.

BUG=26901681

Change-Id: I9e79d8a07d18f397a38816e0a508d13482143937
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
2c990df82a9e01a29b4cbe682226b22b805f527f 28-Jan-2016 xin He <xinhe@google.com> Merge "Remodel Network Selection" into mm-wireless-dev
b50356194ccfdaf5e127d9f705f99713d6f1e98c 26-Jan-2016 xinhe <xinhe@google.com> Remodel Network Selection

There are two main changes in this CL:
(1) Add user selection preference support. If user
explicitly chooses a network, framework will remember
it and consider user has a higher preference of this
network over all other visible networks.

(2) Seperate user set BSSID and framework chosen BSSID.
The BSSID under WifiConfiguration is set by user and is
not allowed to be overrided. The BSSID under Network
selection status is the best BSSID chosen by the
framework to associate with.

BUG=26012244
BUG=26721725

Change-Id: I3cfb7db870c6abe933a296267bc1909b4810c8f8
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
fbda49b838947610deb378d501c686965fef134e 27-Jan-2016 Rubin Xu <rubinxu@google.com> Merge "Support multiple CA certificates for EAP network" into mm-wireless-dev
7be46e76ac639934f19e84f897cbe8b698e56dff 26-Jan-2016 Bartosz Fabianowski <bartfab@google.com> Update bug numbers referenced by TODOs

P2 and lower-priority pieces of b/25600871 were split out into their own
bugs. This CL updates bug references in TODOs accordingly.

BUG:25600871
Change-Id: Ic196506b45e87adac390252ff8b0cf5a403214e9
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
78463be32c01259841f4c0b670b742c3c2040cf3 29-Nov-2015 Rubin Xu <rubinxu@google.com> Support multiple CA certificates for EAP network

Copy all configured CA certificates to key store and set up their aliases
when adding networks. Remove all certificates when the network is removed.

Bug: 22547958
Change-Id: I91836911bfc84ec2922c5db4e9019a2872f361f0
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
bcdabb1fa1894fcca610692ec94459fe623afa74 22-Jan-2016 Bartosz Fabianowski <bartfab@google.com> Implement private network configurations in WifiService

* Make ConfigurationMap aware of the current foreground user. Suffix each
accessor with one of:
- ForCurrentUser() (operates on network configurations visible to the
current user only)
- ForAllUsers() (operates on all network configurations)
* Make WifiConfigStore aware of the current foreground user:
- Whenever the user changes, networks that are no longer visible are
disabled and networks that newly became visible are enabled.
- Account for the fact that the configKey cannot be computed from
information stored in wpa_supplicant.conf alone while loading
network configurations from disk.
- Have all public methods that add/remove/modify network configurations
operate on configurations visible to the current foreground user only.

BUG=25600871

Change-Id: Id1e81dd649ac5253c94e65b6a25e239fc3cf09a4
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
fbb081b7c28c18f0644701061a1ab38a4627db27 15-Jan-2016 Bartosz Fabianowski <bartfab@google.com> Store configKey in wpa_supplicant.conf

With per-user networks, the data normally present in wpa_supplicant.conf
will no longer be sufficient to reconstruct a network's configKey. The
configKey must thus explicitly be stored with each wpa_supplicant.conf
entry.

The wpa_supplicant.conf format provides a single variable for keeping
such metadata, "id_str". Since that variable is already used to store the
FQDN for Passpoint networks, it must be extended to hold both the FQDN
and the configKey. This is done by changing the variable's data format to
a serialized JSON dictionary. For future reference, the configuration's
creator UID is also added to the dictionary.

BUG=25600871

Change-Id: I2d63e21d1a87bb9645fed957479dcdb3d2642e38
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
39c3574fa3be035eafbf86462f3ca1bb859060fa 15-Jan-2016 Bartosz Fabianowski <bartfab@google.com> Revert "Store configKey in wpa_supplicant.conf"

This reverts commit 3552d3bc8329aa9bc843f62c3a854e5ad2b41037.

Change-Id: Ib0d425baa3ac38a20d3ba660e5e5da490a1551e0
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
3552d3bc8329aa9bc843f62c3a854e5ad2b41037 14-Jan-2016 Bartosz Fabianowski <bartfab@google.com> Store configKey in wpa_supplicant.conf

With per-user networks, the data normally present in wpa_supplicant.conf
will no longer be sufficient to reconstruct a network's configKey. The
configKey must thus explicitly be stored with each wpa_supplicant.conf
entry.

The wpa_supplicant.conf format provides a single variable for keeping
such metadata, "id_str". Since that variable is already used to store the
FQDN for Passpoint networks, it must be extended to hold both the FQDN
and the configKey. This is done by changing the variable's data format to
a serialized JSON dictionary. For future reference, the configuration's
creator UID is also added to the dictionary.

BUG=25600871

Change-Id: I01518fee6237f4cf60efa4be92c3c7a1aff32704
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
f26259a93c77a0069deb46ca29a864de31c99ba6 15-Jan-2016 xin He <xinhe@google.com> Merge "Broken WifiStateMachine and Network Selection Test" into mm-wireless-dev
2ada3ea8a48bfc8202d692a70bde6bc14708b4b5 07-Jan-2016 Vinit Deshpande <vinitd@google.com> Reset idenitities for EAP-SIM networks when SIM is pulled [DO NOT MERGE]

This change resets identity and anonymous_identity for all
netorks that use SIM based auth. This ensures that all cached
data is destoryed when SIM is removed; and newly added SIM
must be authorized on the network to connect again.

Bug: 23703716

Change-Id: I83d80336b2089c73d99214651b64b79443faf7f7
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
8f3ec73d1ce52b3f23e4cccd6a202b5707874f46 15-Jan-2016 xinhe <xinhe@google.com> Broken WifiStateMachine and Network Selection Test

Fix the broken on Network Selection Test

BUG=26549815

Change-Id: I1e331c6c677b050b3625ca708c8513dcbd3c192f
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
65b752f1da25f028a204a88264380c610866c027 14-Jan-2016 Mitchell Wills <mwills@google.com> Cleanup some of the wifi logging

There were many things that were being logged as errors that
weren't. This either removes those log statements entirely if they are no
longer needed or reduces the log level.

Change-Id: I4a150b7bb862b187cb52d03a9714ddfc496a775b
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
8f0f666c8bdaf508f191f8590755140b92d970ea 01-Dec-2015 xinhe <xinhe@google.com> Initial codes for Quality network selection [DO NOT MERGE]

In this change list, the old WifiAutojoin module is
refactored initially. The old WifiAutojoinController is
replaced with a new WifiQualifiedNetworkSelector.
WifiConfiguration, WifiConfigureStore and
WifiStateMachine have been modified accordingly. The new
network selection logic is refactored with a more clear
and deterministci one. To refer to thedescribed in
details, in "Quality Network Selection and Connectivity
Scan Management in N". The link of the document is:
https://docs.google.com/document/d
/1JPTa2NEk-PgjCJ16fIrR6ohV-kDKveDlYDOeiMCB2_c

Also the initial unit test codes are added. Test case of
5GHz network over 2GHz network is added.

Bug:26012244

Change-Id: I8dc240115c0625c0fae13a5b3965f70556040448
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
eee1d479d8d402a2e78e2f143e957030cfc77749 29-Dec-2015 Vinit Deshpande <vinitd@google.com> First WifiStateMachine UnitTests

Change-Id: I044b54f18f1a75b5b33c3fc9fc71a8da820d2521
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
6dd42662e45750910d8743f7f154269c2755df93 19-Nov-2015 Jan Nordqvist <jannq@google.com> DO NOT MERGE Changed to use special "in-memory" icon command to wpa_supplicant.

Hotspot2.0: Icon query changed to use new command.
Cherry-picked from e511ec7a4f53f7204a85075b23318f9f11c46d94
Bug: 24681079
Change-Id: Iac65eddff82763d42193edfb683266e7b0b8d720
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
36514deaa0890e080185d6d03dd9403b7632ab21 03-Dec-2015 Jan Nordqvist <jannq@google.com> Merge "Network scoring of all WiFi networks, final version."
4b7bc26fb99803f0cedcca16310d345e337f950c 03-Dec-2015 Jan Nordqvist <jannq@google.com> Network scoring of all WiFi networks, final version.

Bug: 25562019
Change-Id: I250cbb823aec6f366bcf2d84e19f7e4a9e75954b
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
18786eca942042388748b0d98979f21c9dff4a89 20-Nov-2015 Mitchell Wills <mwills@google.com> Turn WifiNative into a singleton for each interface

Change-Id: Ida8225c1c8434f5cffbdfd2ebbc4a7b240976a15
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
7955da2fd9044beb2663227be4faebf024792123 16-Oct-2015 xin He <xinhe@google.com> am 72790f92: am a8249332: am c9bea298: am f2e7f4fa: Merge "Security Vulnerability in android::onPnoNetworkFound" into mnc-dr-dev

* commit '72790f92ae580758df92444b6f96d7a27bb9571d':
Security Vulnerability in android::onPnoNetworkFound
f2e7f4fa1ac1481cdbc7bf3296321ac0fa159cc6 16-Oct-2015 xin He <xinhe@google.com> Merge "Security Vulnerability in android::onPnoNetworkFound" into mnc-dr-dev
20de5ba628240951562958595d5b6ec8edc2b13e 16-Oct-2015 xinhe <xinhe@google.com> Security Vulnerability in android::onPnoNetworkFound

Ask for system permission to enable ePNO

b/24872703

Change-Id: I8a7aafdb3f4074089777ad6b1402d4bf4954e81a
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
9bf7c88906843aad03d7c96ebda9a5c6b5a9e683 15-Oct-2015 xin He <xinhe@google.com> Merge "Disable networks with no internet connectivity and user confirmed"
edfae468ff546b7d52f8a7693520f27eecd087e4 28-Aug-2015 xinhe <xinhe@google.com> Disable networks with no internet connectivity and user confirmed

This shall ensure that such networks are not configured by PNO
and thus shall avoid unnecessary host wake ups.

b/23398768

Change-Id: I1a3c0789b1bd25c210b0d22dfd8fc3a43be4c9ef
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
5683efb3213ad63499399be823f47f60dd869022 15-Oct-2015 Pankaj Kanwar <pkanwar@google.com> am 7d504906: am 98f03db9: am 7af1ef61: am 7b97c836: Merge "Set hs20 property to 1 when connecting to passpoint network" into mnc-dr-dev

* commit '7d5049066cb72d12c76260f8b5dd108bb8248022':
Set hs20 property to 1 when connecting to passpoint network
56845c30ef2bc7ccfd92764e4c7352aee03ec3a8 14-Oct-2015 Vinit Deshpande <vinitd@google.com> Set hs20 property to 1 when connecting to passpoint network

Setting this property has some consequences - it will stop
using prohibited security parameters when connecting to AP
and will express some capabilities of the STA.

Bug: 24374083
Change-Id: I80abef812b272ce3384a13e7b3c44e56db4cffbd
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
428079ef0616c7dce48a22ca4a7dbc50506cf3ea 18-Aug-2015 xinhe <xinhe@google.com> Handle duplicate network configuration created by WPS

WPS configurations are created by Supplicant, and may collide with
configuration created by Framework. This change updates framework's
notion configuration with the newly created WPS network.

b/22250876

Change-Id: Ic2505c634d907eb0d7c531b83395ecef7bed2b33
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
259b345a237c2b79d465ebd28807d64523f0b0c3 02-Oct-2015 xinhe <xinhe@google.com> am 54cd5e91: am 937c699b: am ac71270e: resolved conflicts for 57b578f2 to cw-e-dev

* commit '54cd5e91a0c8a4ab982d6a96cf1ac5a183ddeebc':
Phone rebooted when trying to select problematic WiFi network
57b578f21d16d3b0da0162cb6eb9fa8b29895d8f 30-Sep-2015 xinhe <xinhe@google.com> Phone rebooted when trying to select problematic WiFi network

b/24515222

Change-Id: Id18dcbdae97ad6a5fb22dfd8e9cf7c117a3bffa9
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
a7fb235eb00711dbc436e5fea0e4f4e12750c87d 25-Sep-2015 Sharvil Nanavati <sharvil@google.com> am 024f57be: am 362185fa: am d2c4a206: Merge "Fix incorrect comparator implementation leading to IllegalArgumentException." into cw-e-dev

* commit '024f57be6c866dd4b900d71b1cdaa28bd208e355':
Fix incorrect comparator implementation leading to IllegalArgumentException.
bddf925068d0037a1298ff3ffd1b17ffedb43745 25-Sep-2015 Sharvil Nanavati <sharvil@google.com> Fix incorrect comparator implementation leading to IllegalArgumentException.

The current comparator implementation does not implement the compare()
function according to the interface definition. In particular, the
following clause is violated:

"The implementor must ensure that sgn(compare(x, y)) == -sgn(compare(y, x))
for all x and y."

If a.priority == b.priority, the comparator throws.

Bug: 24223197
Change-Id: Ibff94067de272d8c9372474fa24a161bf95bf6f1
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
1d5cd3938f9191184cd9aea3059a3b62bf3a0372 22-Jul-2015 Jan Nordqvist <jannq@google.com> Hotspot 2.0 relase 2 first cut.

Policy provisioning.
API methods.
Timers for policy and remediation.
Icon and friendly name checking.
Channel bindings for EST.

Change-Id: Ifa7125743ea93d7d4329cb53fd70c99b9b06fffe
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
90c01769ebbae7d5256ef1e1675c1f21dd94ea70 27-Aug-2015 Jan Nordqvist <jannq@google.com> Merge "Moved domain suffix enforcement setting to WifiConfigStore." into mnc-dev
5f30066b5609002673289860cd1cdae49c5e83dc 25-Aug-2015 Jan Nordqvist <jannq@google.com> Moved domain suffix enforcement setting to WifiConfigStore.

Bug: 23359149
Change-Id: I2f66041e5125b1b032da54616b152cf6990c3bc8
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
8be016e09c31c9d0fb9044a9d3a9008bde559ca8 19-Aug-2015 Jan Nordqvist <jannq@google.com> Ignoring SSID for Passpoint networks.

Bug: 23108342
Change-Id: I73eec12165cc7d506dbce99cd6752a4ca3232737
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
82a40869d64684bd8f73001aba80516503f43ed9 07-Aug-2015 xinhe <xinhe@google.com> Bad Wifi = strange looping of trying to connect

b/22682106

Change-Id: I74111c145a9935d8b5d0651035147eade89042db
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
1c95611caf52644154f6c5ddd6cde843b63c5231 01-Aug-2015 Vinit Deshpande <vinitd@google.com> Merge "Remove more spammy logs" into mnc-dev
807f6a8502cc35bd250b903e2315bcdc34c49a92 31-Jul-2015 Vinit Deshpande <vinitd@google.com> Remove more spammy logs

Bug: 20416721

Change-Id: I2ddcc405d120208271e3a4740053987538924690
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
bd139462d94f581f8e2e9c906c10ffec0bc18aa9 29-Jul-2015 Vinit Deshpande <vinitd@google.com> Fix incorrect network selection despite enableNetwork(disableOthers)

App selection is overridden by auto-join selection, if network isn't
connected to. This change fixes the problem by adding a timeout during
which auto-join selection isn't allowed to be made.

Bug: 22127532

Change-Id: Ief78b6bf6e69d38ea8f43021e2a5316d52f8809f
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
68aaaa93878daeb9f1cb95baca79ee03154f15f5 24-Jul-2015 xinhe <xinhe@google.com> Framework should not call blacklist API on HAL unless ePNO is enabled

b/22699627

Change-Id: I270d2d628d989dbd03934c9449bf3db6101f28f5
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
266f3111427002d10ffd85fcea828a2725e540de 18-Jul-2015 xinhe <xinhe@google.com> Merge "Add API to turn OFF "best network selection" feature" into mnc-dev
a8647b8cb29de22765062714cb265247234c3d32 10-Jul-2015 xinhe <xinhe@google.com> Add API to turn OFF "best network selection" feature

b/14990268

Change-Id: Ifa96a08f4bf9868afc8ddc88e178fc6375e70f8b
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
9f7795c694d048fdfecc4117cf5ddbd3e6ae1406 14-Jul-2015 Jan Nordqvist <jannq@google.com> Added dump of ANQP cache to bugreport.

Bug: 22410118
Change-Id: Ibc396ecf779087473f5fee0db732baf3ece16aab
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
39dc3af67b55e5472b0bbf11ce5932f7496a15d8 09-Jul-2015 Jan Nordqvist <jannq@google.com> Allowing rewrite of Passpoint credential.

Bug: 21779835
Change-Id: I4f1e265bbf222b64935613ef8fa1519a54aab0f8
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
84649ea634d480be6bee19f155a1da5a4ec93e60 07-Jul-2015 Vinit Deshpande <vinitd@google.com> Add information in logs about lost wifi networks

We have multiple files of interest; this change dumps them
all if we lose networks.

Change-Id: Ie80085834b0dfe7d1c0480fdeac013e7293c6d2c
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
b9766f51bcbd50f178d2c20d61f3d631c699b836 01-Jul-2015 Pierre Vandwalle <vandwalle@google.com> Merge changes I03899867,I225e875d into mnc-dev

* changes:
restart PNO/AutoJoinOffload when a network gets disabled Bug:22062116
add HS20 event strings to the WifiStateMachine logs
a07f06ccec5576e99e2c2c213ceb84cd1425e3fb 01-Jul-2015 Vinit Deshpande <vinitd@google.com> Merge "Fixed bad check for Passpoint being enabled." into mnc-dev
1816209b3c52f1debacd275aec2148cd89ff3444 01-Jul-2015 Pierre Vandwalle <vandwalle@google.com> restart PNO/AutoJoinOffload when a network gets disabled
Bug:22062116

Change-Id: I03899867b1ecfa6985ad57e0ccba8c4e1c9aa5b6
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
80270e911b86a78f7512fed4ad1172c8034b7159 30-Jun-2015 Zoltan Szatmary-Ban <szatmz@google.com> Merge "Clear WiFi bitset variables before reading them from supplicant" into mnc-dev
83e653cbdcb944038927e4c25837895626354e61 26-Jun-2015 Jan Nordqvist <jannq@google.com> Fixed bad check for Passpoint being enabled.

Bug: 21170278
Change-Id: Id4bee1851ace4673688bc0087e9c4fe40f66c25f
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
1efb8a06775f612c57603a8107ffe87f0ae90b29 26-Jun-2015 Shirish Kalele <kalele@google.com> Merge "Surface ephemeralness of connection in WifiInfo." into mnc-dev
86b1b52530bba4a35e81bd7c5d7d52139fa0c822 25-Jun-2015 Shirish Kalele <kalele@google.com> Surface ephemeralness of connection in WifiInfo.

Bug: 21960219
Change-Id: I3d63633fcb30785328d030660951f9e96f0e53ad
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
b724ba818fa8ba5c2887de16250ff46193b0d9ea 23-Jun-2015 Zoltan Szatmary-Ban <szatmz@google.com> Merge "Respect all factors in determining editability of a WiFi config" into mnc-dev
cd08c5daab08121d7f4ffc211ce477a412247bc4 23-Jun-2015 Vinit Deshpande <vinitd@google.com> Merge "Address API review comments" into mnc-dev
b4ece4e093647267e9b57a5eee2754fa0fc6ae09 23-Jun-2015 Vinit Deshpande <vinitd@google.com> am 364f83d..034205e from mirror-m-wireless-internal-release

034205e Added config_wifi_hotspot2_enabled.
883e4cb Merge "dont optimize the pno set/clear commands since framework and driver can get out of sync Bug:21734054" into m-wireless-dev
2f1c1c7 dont optimize the pno set/clear commands since framework and driver can get out of sync Bug:21734054
d565262 add creation/update time to WifiConfiguration fix carry over of validatedInternetAccess Bug:21390908
40c87db Merge "Support 32 channels from different band per bucket for scanning" into m-wireless-dev
7ee84d8 make sure ephemeral config are written to file Bug:21293078
28fc233 Support 32 channels from different band per bucket for scanning
3baa176 Separated auth checking from SP matching.
486cc89 call setWifiLinkLayerStats Bug:21617639
7a94f84 Missing final keyword.
c465290 ANQP cache sweeping.
890e70d make sure validatedInternetAccess boolean is written to disk right away Bug:21390908

Change-Id: Ibacd79799465f11bd82311391f7a9420e0c50927
d9f37b2f3df18e96246db93ec4c2a5159b5d3915 13-Jun-2015 Vinit Deshpande <vinitd@google.com> Address API review comments

Added a flags field in ScanResult; along with flag
values and methods to read them.

Changed types of passpoint related fields.

Bug: 21342042

Change-Id: I413960de88b387853d11b9e10f92665e9c06a81b
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
d9dcc7c6d03a0d93c50bada805ad4047aab8642a 19-Jun-2015 Pierre Vandwalle <vandwalle@google.com> reload the wifi config when autoconnecting, after updating the config
Bug:20299767

Change-Id: I41f60c1c91778570d63262c608052eb57e99e3d0
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
1a86f1f7c11aaa9070a356ed2606c2a5d8d19adb 27-May-2015 Zoltan Szatmary-Ban <szatmz@google.com> Respect all factors in determining editability of a WiFi config

Also, use creatorUid instead of lastUpdateName in determining
modifiability of config.

Bug: 21427528
Bug: 21150087
Bug: 21612565
Bug: 21887465
Change-Id: I0f8fb72bf9da1597e08d3dfc631d37b6b4178ff5
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
034205ec8ee3d608546ab9327fb650d9a259efad 12-Jun-2015 Jan Nordqvist <jannq@google.com> Added config_wifi_hotspot2_enabled.

Change-Id: I9c48f9ab9698c167b29af887015442e739af4997
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
fdb4e3e460b501148032546ccb8ad633af71faea 18-Jun-2015 Zoltan Szatmary-Ban <szatmz@google.com> Clear WiFi bitset variables before reading them from supplicant

Otherwise if the config that is being filled in may have some bits
already set.
Also refactored repetitive code.

Bug: 21152481
Change-Id: I3506c4b2472577dd355e94d40783c2c1dd31dc98
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
a233de4a7978d98b515a6c7c27a45b6b55bde5aa 12-Jun-2015 Zoltan Szatmary-Ban <szatmz@google.com> Make WiFi network history be actually read

Reintroduced mistakenly removed line in WifiConfigStore.readNetworkHistory
which prevented any of the network history being read from file.

Bug: 20846840
Change-Id: Id98404bd40d48b8ee0fce6f668334460348fb495
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
866c5b061e6e762f2627e3467afc0fe6f29c2668 12-Jun-2015 Jan Nordqvist <jannq@google.com> Separated auth checking from SP matching.

Bug: 21729565

Change-Id: Ia0617efaf32f4dc9dddc6059322265520f2d5c3a
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
e63336e926e60ba9b0cf0702be9bec2718de27d8 16-Jun-2015 Pierre Vandwalle <vandwalle@google.com> add creation/update time to WifiConfiguration
fix carry over of validatedInternetAccess
Bug:21390908

Change-Id: I723f4fd740959b2d4f9898846897e37734b2a438
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
fb650bfb264b7ff31c927498faf8343b5895c6ab 12-Jun-2015 Pierre Vandwalle <vandwalle@google.com> make sure ephemeral config are written to file
Bug:21293078

Change-Id: I84346d1a8d766205be57e5e624614a70511f7862
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
d565262c07df6c7cf58a6f800c77a596ae0e4610 16-Jun-2015 Pierre Vandwalle <vandwalle@google.com> add creation/update time to WifiConfiguration
fix carry over of validatedInternetAccess
Bug:21390908

Change-Id: I723f4fd740959b2d4f9898846897e37734b2a438
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
7ee84d83c86794ad2330563565119d5e31f88891 12-Jun-2015 Pierre Vandwalle <vandwalle@google.com> make sure ephemeral config are written to file
Bug:21293078

Change-Id: I84346d1a8d766205be57e5e624614a70511f7862
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
3baa1769b394a44351228f1b6950706d56fe61fa 12-Jun-2015 Jan Nordqvist <jannq@google.com> Separated auth checking from SP matching.

Bug: 21729565

Change-Id: Ia0617efaf32f4dc9dddc6059322265520f2d5c3a
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
c465290772b735d97cba451c9bc5b6cc76db9147 11-Jun-2015 Jan Nordqvist <jannq@google.com> ANQP cache sweeping.

Bug: 21786417

Change-Id: I44b44dd09c00364b0dc7d21640d5e803ffa6263c
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
bf5f728c6dd10bcdfb184339c3471ffae43b2e5e 11-Jun-2015 Vinit Deshpande <vinitd@google.com> Disable long running chronograph thread

Bug: 21781020
Change-Id: Ia9ad08faf18fd890ee6ce63c83a45938dd7a0a47
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
c85fd892c72e7d15f7e092f29f6cf095b46783a0 09-Jun-2015 Vinit Deshpande <vinitd@google.com> am 5bee0e4..7ec7de9 from mirror-m-wireless-internal-release

7ec7de9 Fixed PLMN ANQP parsing and added Runtime guard on parsing.
54fcb6c Prevent repeating EAP connection forever

Change-Id: I3006e488d5c422330f4cc2aee0d366351ecc36e1
5bee0e4616e2f8025d60cbfe3eec3e274a68a452 06-Jun-2015 Jan Nordqvist <jannq@google.com> ANQP caching cleaned up.

Disabling all HS2.0 logic with no SPs.

Bug: 21306404
Bug: 21660552

Change-Id: I080e99b5e41ead0b718c9e14514fba3108f19ac9
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
10943fe0f4b3beb8998300b6a2517bbd8bac9f0a 08-Jun-2015 Alex Klyubin <klyubin@google.com> Switch from KeyStore.delKey to KeyStore.delete.

KeyStore.delKey's functionality is now covered by KeyStore.delete.

Bug: 18088752
Change-Id: I71aa8ef21c63744cf60cc85a5e88020229f102da
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
3f6620290d7462f3642c82e535146ce9de5e20b3 03-Jun-2015 Vinit Deshpande <vinitd@google.com> am a40265e..7ab5189 from mirror-m-wireless-internal-release

7ab5189 Merge "Make autojoin parameters configurable" into m-wireless-dev
7ff782a Make autojoin parameters configurable
f49a59b Issue start/stop HAL along with load/unload driver
cbda71c Merge "make WiFi No Network Periodic Scans Interval to 5 minutes Bug:21274132" into m-wireless-dev
c538878 make WiFi No Network Periodic Scans Interval to 5 minutes Bug:21274132
7ff782a43c621f1ba554948fe6e82069740c0b17 03-Jun-2015 Pierre Vandwalle <vandwalle@google.com> Make autojoin parameters configurable

Fix typos which were preventing autojoin parameters to be
configurable thru /data/misc/wifi/autojoinconfig.txt

Change-Id: Icc3aac71e860c14f75dfc6d2cf29b92b6bfd0962
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
d03a9283285bb7adef6c687eb3a91fa4a8c4b502 02-Jun-2015 Vinit Deshpande <vinitd@google.com> Fix build breaks from last merge

Change-Id: I6ef088cfd3a796b7455df025b37a017c3a4da483
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
cd0af1c9ddcac881f49c815fb9da45433eb50736 02-Jun-2015 Vinit Deshpande <vinitd@google.com> am 21d43c4..9a270a7 from mirror-m-wireless-internal-release

9a270a7 Merge "Removed cert verification from ConfigBuilder." into m-wireless-dev
31891af Minor fixes from comments.
fce249d Merge changes I1da47e51,I5d6b0cbe into m-wireless-dev
0600b63 Removed cert verification from ConfigBuilder.
03a529a Fixed incorrect mnc-mcc matching.
6f3626f dont use wifiscanner pauseScan/restartScan
a203056 fix crash in autojoincontroller Bug:21495346
07a3f9d Fixed sequencing issue for Hotspot 2.0 IMSI matching.
ea748f7 Merge "update current configuration based on wifi SSID whitelist roam" into m-wireless-dev
f71c259 Fix bad logs and a crash while reading configs [DO NOT MERGE]
605c327 Fixed bad network history saving and reading. [DO NOT MERGE]
6dd83f1 Merge "fix handling of command for bssid hot list" into m-wireless-dev
a63da80 fix handling of command for bssid hot list

Change-Id: I1ba36f5939f44551946b4756c2074e02f71cedc9
f72f48afc909bd4b7371559aa034054da979942d 02-Jun-2015 Vinit Deshpande <vinitd@google.com> am 22fd854..6dd83f1 from mirror-m-wireless-internal-release

6dd83f1 Merge "fix handling of command for bssid hot list" into m-wireless-dev
a63da80 fix handling of command for bssid hot list
b090f62 make sure unblacklist thresholds are initialized Bug:21161557
4c94fc6 Wifi: Disable PNO (if enabled) only when the scan is allowed to trigger
be2981a fix enabling autojoin offload based on tx/rx counters
a3e4c84 Move Halutil to vendor/google_testing/comms

Change-Id: I9663436ad92094b1cde0e00d217b1fd9ca728351
a40265e3235b984099c59dfc5ce155d251fcae9e 02-Jun-2015 Pierre Vandwalle <vandwalle@google.com> Remove quotes around SSID when calling ssid white list API

Change-Id: I20b18e7abbfff869bbe02f42d81b9743132eecfd
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
483cef98baaff3d4de18dc29aa5e5cce2ccd9716 02-Jun-2015 Vinit Deshpande <vinitd@google.com> am 9ccffbb..5a091fb from mirror-m-wireless-internal-release

5a091fb Wifi log spam is still a thing The root cause is that inner class WifiScanningStateMachine of WifiScanningServiceImpl use the log from WifiStateMachine rather than from WifiScanningServiceImpl. Reanme log to logLocal
b66b29a turn off WifiNative DBG
98dca33 FW memory dump should be compressed
e5c48b5 wifi: Do not kill the supplicant on a request to stop it
5caa43b add ssid white list for roam offload
31891afce40b903ada9b24ec12e3648ae6aa27b2 29-May-2015 Jan Nordqvist <jannq@google.com> Minor fixes from comments.

Bug: 21306404
Bug: 21283355
Bug: 21171957

Fixed trust cert validation.

Fixed bad network history saving and reading.
Bug: 21022868

Bug in domain matcher, fixed some log levels.

Finished HS2.0/legacy network persistence consistency.

Change-Id: Ic93093a41dd87d70a386909bdea744b5810c7299
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
07a3f9d97394b97965e6754271fb66c1d6bd1753 28-May-2015 Jan Nordqvist <jannq@google.com> Fixed sequencing issue for Hotspot 2.0 IMSI matching.

Change-Id: I5d6b0cbe85d1598901695f923be33ec672580e2d
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
f71c25960b4fdaf8c1cc7d42ddcad37fd967b63a 21-May-2015 Vinit Deshpande <vinitd@google.com> Fix bad logs and a crash while reading configs [DO NOT MERGE]

(cherry-picked from 33bc37d3a0de7d0043c43a6e77beaff8d82837af in mnc-dev)

Some users have seen NumberFormatExeptions; while this is not
fully explained, it results in a crash. This change fixes that
by handling the exception.

There is also a misleading log (complains about error writing
file) and there's a spammy log about RSSI.

Bug: 21338785

Change-Id: Ifc7c04785ac6cccced2896ccccbedfbb3470fb01
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
605c327fbf1562e3e66eef8c1ad56bcbdffb3de5 19-May-2015 Jan Nordqvist <jannq@google.com> Fixed bad network history saving and reading. [DO NOT MERGE]

(cherry-picked from 8bc78bddb29cdd9e845f313fabb08c485aa40c21 in mnc-dev)

Bug: 21022868

Change-Id: I62ebbac09da14d140655af4aa69fb8b50fc703f4
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
b92960b9bd5b7bbad332f9dee801937a1f76befa 23-May-2015 Pierre Vandwalle <vandwalle@google.com> make sure unblacklist thresholds are initialized
Bug:21161557

Change-Id: Ibba1bc6b0cd2f15d91521c523a2da6357320c5be
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
b090f622d0fd9dcdc22d3f54265b72982a2eeed3 23-May-2015 Pierre Vandwalle <vandwalle@google.com> make sure unblacklist thresholds are initialized
Bug:21161557

Change-Id: Ibba1bc6b0cd2f15d91521c523a2da6357320c5be
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
33bc37d3a0de7d0043c43a6e77beaff8d82837af 21-May-2015 Vinit Deshpande <vinitd@google.com> Fix bad logs and a crash while reading configs

Some users have seen NumberFormatExeptions; while this is not
fully explained, it results in a crash. This change fixes that
by handling the exception.

There is also a misleading log (complains about error writing
file) and there's a spammy log about RSSI.

Bug: 21338785

Change-Id: Ifc7c04785ac6cccced2896ccccbedfbb3470fb01
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
be2981ae2e3d7d8325fa7815731e45bc64e17f2f 21-May-2015 Pierre Vandwalle <vandwalle@google.com> fix enabling autojoin offload based on tx/rx counters

Change-Id: I2fa7970d249638b17f06763246af15f5308d4d55
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
8bc78bddb29cdd9e845f313fabb08c485aa40c21 19-May-2015 Jan Nordqvist <jannq@google.com> Fixed bad network history saving and reading.

Bug: 21022868

Change-Id: I62ebbac09da14d140655af4aa69fb8b50fc703f4
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
22fd854ef9c1fd6df6542c87e1e26e88a66e1fc3 20-May-2015 Pierre Vandwalle <vandwalle@google.com> enable SSID whitelist

Change-Id: I59e8acb0ea0224bc3c365041913f4f375fb03606
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
5caa43b34e0445ff08bff5931b84ffbc850b2a66 16-May-2015 Pierre Vandwalle <vandwalle@google.com> add ssid white list for roam offload

Change-Id: I9fad659cc6527a271251c7403852dc87ef460207
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
6a95e83c7e411a21cf6f6d912ab8498d2de858c9 18-May-2015 xinhe <xinhe@google.com> Merge remote-tracking branch 'goog/mirror-m-wireless-internal-release' into merging

Change-Id: Iec12d73f244bc58e7fcf1154ea8047a03925c241
9ccffbb6c3fe8eaa7d70cc3076d0dc3c6a9073e7 16-May-2015 Pierre Vandwalle <vandwalle@google.com> add BSSID blacklist to autojoin/roam offload

Change-Id: I7eced80f7406de44e96bebc9a3ac3dc648a23eef
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
4bc2080c7eac7d06913715fc09d242ba515b14cf 15-May-2015 Zoltan Szatmary-Ban <szatmz@google.com> Merge "Restrict Wifi config editability lockdown" into mnc-dev
b0b0cc202b7d7aaad7b3f69d73e9b58ea2968b05 06-May-2015 Pierre Vandwalle <vandwalle@google.com> hal based Pno and lazy roam implementation

Change-Id: Ib814ff6d29c8d7f1b579f7c088cd4eb104e5b637
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
a6a56c98a21a07d874abbed2b5f83d8a9be7f2f7 14-May-2015 Lorenzo Colitti <lorenzo@google.com> Merge "Keep track of lastConnectUid in more cases." into mnc-dev
ab99a7a345781a9f3ff07335744c1f2073c44ac6 13-May-2015 Lorenzo Colitti <lorenzo@google.com> Keep track of lastConnectUid in more cases.

1. When we switch from a different network, and the connect
happens via AutoJoinController sending us CMD_AUTO_CONNECT.
2. When we interpret SAVE_NETWORK as a request to connect.
3. When we interpret CMD_ADD_OR_UPDATE_NETWORK as a request to
connect.

We were already keeping track of lastConnectUid when receiving
CMD_ENABLE_NETWORK because WifiConfigStore.enableNetwork takes
care of that.

Bug: 20081183
Change-Id: Icb9873057c30e73ad5a105083aa3d60d31d2ce32
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
347a9779b10304865e478af01ab95871c7614b29 14-May-2015 Vinit Deshpande <vinitd@google.com> am d7cbebf..6111ff7 from mirror-m-wireless-internal-release

6111ff7 minor fix for warning
e026d53 Added cert path validation for CA cert.
9a64375 Changed SSID consistency check to deal with hidden SSIDs (logging only).
1c03d75 Changed log tag, and fixed a NPE.
7d5357a Disable PDBG in WifiStateMachine

Change-Id: I0100a9e48f383266487c43426a55509cf8868f47
e5bf4b884cbbb435dc9268dff61955bcc2b81471 14-May-2015 Vinit Deshpande <vinitd@google.com> am 03ba4a5..ed3f1dd from mirror-m-wireless-internal-release

ed3f1dd Fix permissions check on WifiScanner APIs
f4b30aa Don't pause/restart scans across network connections
ad99846 Remove old (KK based) batched scan API support
fc42a2c Introduce battery blaming for WifiScanner
87df79e make autojoin more deterministic
d79bb0e Merge "enable background scan as soon as screen is off Bug:20909311" into m-wireless-dev
9ac124e enable background scan as soon as screen is off Bug:20909311
6d0cd10 change wifi Logging header
d4c25fd 5GHz roam configuration

Change-Id: Ib7621b11ca851236f9003947c24c5d84670fac94
28d09d2d947ee5814401d1778b7038db23f1a6ba 14-May-2015 Zoltan Szatmary-Ban <szatmz@google.com> Restrict Wifi config editability lockdown

DO created WiFi configurations are now only locked down
for editing/removing if DISALLOW_CONFIG_WIFI is not set.

Bug: 20719934
Change-Id: Ibd218821ab46cca8396084e2d73ae5ee00b584b3
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
b86f76f28ae06442e458a8cd4d7ddca210a102ef 12-May-2015 xinhe <xinhe@google.com> Diff SSID 2.5 to 5Ghz auto switching

Bug:20631573
Change-Id: I5e36c38e795429be1a527e79e69b7243395a511f
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
1c03d75c73b9f5fa24a795a0d546f4f56b82ab9b 27-Apr-2015 Jan Nordqvist <jannq@google.com> Changed log tag, and fixed a NPE.

Change-Id: I216a9df2397427a1175ea930c501f47cd843b742
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
03ba4a5b108ab2bbdb5d0e7be46ac45c00a6d9ff 28-Apr-2015 xinhe <xinhe@google.com> Initial bring up for debug framework

Change-Id: I0e78897d1440f0b7c56740ff7890e2f3d6a0d951
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
c308372401d89ad7a4ec1e04e72d25f3fc34ddb4 01-May-2015 Prerepa Viswanadham <dham@google.com> Merge commit '5199fba' into master_merge
230e384850ce825e335bb2cb3e06e676b3e9571a 30-Apr-2015 Zoltan Szatmary-Ban <szatmz@google.com> Fix NPE on devices without DPM service

Bug: 20563108
Change-Id: Ie2bda65c834ddad9db8753f7616c2754072551cd
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
8f4eb8631b1b3f3a462d43d280d85983af8ae3e9 29-Apr-2015 Jan Nordqvist <jannq@google.com> Fixed a crash matching home SPs

Change-Id: I1a662063c5043ba9f0e318a8d6c12933194d6997
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
bd6653f996468560cf636e513ec5eda8cbb18b18 24-Apr-2015 Etan Cohen <etancohen@google.com> Merge commit '05d2f4e' into merge2
fa0502b4e2171143f133bb46e03143328c15e995 24-Apr-2015 Etan Cohen <etancohen@google.com> Merge commit 'baa9bdf' into merge2
126f922831da97d28e6a52ffb30d36b9f21233d2 24-Apr-2015 Jan Nordqvist <jannq@google.com> Fixed FQDN matching of HomeSP.

Change-Id: I6a958ea992918e76c8417120801cfff9508f199a
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
2070c02cdd4fc765747121c9b02caf1b1bab89fb 24-Apr-2015 Jan Nordqvist <jannq@google.com> Reworked persistence semantics for MO.

Change-Id: I03c44ea9dae2c07634bc8ce1508c80ef78f1892a
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
820d73615f338d6c71f2d75aba0ad8410e9eed3e 22-Apr-2015 Jan Nordqvist <jannq@google.com> Fixes related to config persistence in PPS.
o Fixed up comparison criteria for rewriting of PPS MO.
o Quoting of id_string added to make wpa_supplicant happy.
o Expire and creation time of credential fully supported in MO.

Change-Id: If7e8104bdec396837d32d11b63ce2dced9a29e95
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
bb6942c6b6d129fd8904e341c9ce4a4118ed3e0b 11-Apr-2015 Vinit Deshpande <vinitd@google.com> Fix WifiScanner's getChannelsForBand logspam

Change-Id: Ie0e0ce69877200ea5652f8f11df611cfe7890397
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
8366a82ee1bff4c66d3f3642bf0a60538de5d9da 22-Apr-2015 Jan Nordqvist <jannq@google.com> Clearing ANQP cache when stopping WiFi service, moved ANQP result handling to DriverStartedState.

Change-Id: I8b9aa953cbf1309ff2d0174c8a23946b3f7086a8
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
a818ef7d4d9a1212daed202eb7b583a9badc9441 22-Apr-2015 Zoltan Szatmary-Ban <szatmz@google.com> Merge "WiFi config editability lockdown for Device Owner created configs"
70be7f18b526243679eaaa5f03b7f53417ecf1c7 11-Apr-2015 Vinit Deshpande <vinitd@google.com> Fix WifiScanner's getChannelsForBand logspam

Change-Id: Ie0e0ce69877200ea5652f8f11df611cfe7890397
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
05d2f4e6f26834a94b53187e6121379a16749088 17-Apr-2015 Jan Nordqvist <jannq@google.com> Various Passpoint Fixes

- Changed lifecycle of MOManager and confined all PPS access to it.
- Fixed topology issues in the MO.
- Added all HomeSP fields to MO.
- A number of tidy ups: Changed to Java7 diamonds, added curlies, "m_" fixes and dropped a few more PARSE-LOG
- Added anonynmous@realm as anonymous identity to HS2.0 configs.
- Implemented domain_suffix_match for AAA server cert matching.

Change-Id: I79c7a545b396ba3cd409d923c4ee339a1d6fea27
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
4e940bb499f65b4305dbeb2e01237c43c2b0b42d 15-Apr-2015 Jan Nordqvist <jannq@google.com> Various minor fixes.

Change-Id: I227c67740f7c18f059e37b3c41fd18225365c7d1
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
965101c0a9af6e9194a04b77c22b0e7fcad481a8 16-Apr-2015 Pierre Vandwalle <vandwalle@google.com> Merge commit '5040e99' into mg

Change-Id: I133038f35817681a74664d0ad66594615d35f6e9
a4a473dfad55b2b9edfe5058779531daf01c82f5 16-Apr-2015 Vinit Deshpande <vinitd@google.com> Merge "am f24e3d7..a547460 from mirror-m-wireless-internal-release"
dd490cf1df37b70a8625dc4ec8e712f740dd1e4a 21-Mar-2015 Pierre Vandwalle <vandwalle@google.com> epno initial implementation

Change-Id: I47ede001aa22089bab099072810d648999104091
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
50bb8f65526b16ca8a354fd485d2ed7a343e97ae 15-Apr-2015 Zoltan Szatmary-Ban <szatmz@google.com> WiFi config editability lockdown for Device Owner created configs

Any WiFi configuration created by an active DO app is neither modifiable
nor removable.

Bug:18930324
Change-Id:I3fa986c10b6ff47d1a897794213c225c8c6f579b
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
5ee18dc63952ff80f4ea21296a0df4f7b27eafe6 15-Apr-2015 Vinit Deshpande <vinitd@google.com> am f24e3d7..a547460 from mirror-m-wireless-internal-release

a547460 Fix incorrect matching of Passpoint networks
93a1dbd fix RTT crashes runtime This is due to local referencs have been used up Bug:20143987
5faa29d changes to support wifi_logger.h API changes
a7ead3d Corrected and tightened up MO tree and mapping from/to configs.
71cd814 Merge "Use PasspointMatchInfo to select good passpoint network" into m-wireless-dev
0c14982 Merge "Store PasspointMatchInfo in ScanDetailCache" into m-wireless-dev
8eefaf2 Use PasspointMatchInfo to select good passpoint network
4d381bc Store PasspointMatchInfo in ScanDetailCache

Change-Id: If9ce95af4968cee4a458dddf21151eaf015880dc
f7afe8414224cb9a959c18763a489ef33a8265fe 06-Apr-2015 Lorenzo Colitti <lorenzo@google.com> Make connecting to a wifi network set config.lastConnectUid.

Bug: 20081183
Change-Id: I2add0cfe870f18dd3ef98e7a311b5ac75e5438d9
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
a547460e835d6dfde84eda72df470846d11ba807 11-Apr-2015 Vinit Deshpande <vinitd@google.com> Fix incorrect matching of Passpoint networks

Change-Id: I09cd67d666a781ec6eb2c0f339331d5725149799
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
6aef95a3cfa0b825ff93c45e95f89cc8c5c85164 11-Apr-2015 Prerepa Viswanadham <dham@google.com> Merge commit '70deeca' into merge_work

Change-Id: I77fdf057818f0bc2742e923e71b248648e152e1a
b2ee665db50bad2a0df9b495fc5d6b1dc40a5328 11-Apr-2015 Prerepa Viswanadham <dham@google.com> Merge commit 'bed4746' into merge_work

Change-Id: Ie8a9a1e34650e8b177b99acd2fbf17b5f70be592
a7ead3d4be45cb69bb5851f1a6f9673e93607fc2 10-Apr-2015 Jan Nordqvist <jannq@google.com> Corrected and tightened up MO tree and mapping from/to configs.

Change-Id: Ia5d8aac3131b5b1985c200b565b692499cc4ae92
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
4d381bc39f5263effdae73ec99065eb299b806ca 09-Apr-2015 Vinit Deshpande <vinitd@google.com> Store PasspointMatchInfo in ScanDetailCache

This change moves ScanDetailCache as a stand alone class; since
it has lot of logic related sorting and finding candidates.

This will get used in network selection going forward.

Change-Id: If039779f4274dca64fa7aceae62dca26caeae2d4
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
a1edc185d46d85e04930a5e12b465de9fea64afe 19-Mar-2015 Jan Nordqvist <jannq@google.com> Various fixes for Passpoint.

A couple of fixes in AnqpCache, better logging.

Fixed BufferUnderdflowException in NetworkDetail.

Bug: 19888749

Modifications to support WiFi config app.

Rework to fit config builder into apps framework.

API for WiFi config app, 3GPP matching, BufferUnderflowException bug fix and some other fixes.

Fixed a log statement.

Clean up.

Change-Id: I763d47b9c7943a8aa4c94afd2678ccea2dd915cc
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
ccbe820337a230f0827f734aca2c51a244a0837f 04-Apr-2015 Vinit Deshpande <vinitd@google.com> Implement 'Available via Passpoint' feature

This also fixes the issues related to explicit connection
to passpoint AP, and fixes occassional mention of
'connected via Wi-Fi Assistent'

Change-Id: Ib4de956f2ea29709d0212fbcb392815644800e78
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
05d04f448d8e2d44f9eae8e54f17a7bdf57ca1f7 02-Apr-2015 Etan Cohen <etancohen@google.com> Merge commit 'b151395' into merge_yet_again
a389bb4bb5a30d77d026851d2f57b60d1ef6a5ab 01-Apr-2015 Vinit Deshpande <vinitd@google.com> Fix a crash in auto-join selection

Change-Id: I91b1ded0477b098acbc21ee90a427ea2c0a377a9
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
25ee2d5d30434712b28aef6eec9460035101e493 31-Mar-2015 Vinit Deshpande <vinitd@google.com> Stop using scanResultCache, and move to ScanDetailCache

Change-Id: I28898eb8f1dfc0b8d6a8f9029e94784e99565fa1
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
b151395e1d4de62ea8a9254e69e1878d3d1cde28 25-Mar-2015 Vinit Deshpande <vinitd@google.com> Set passpointNetwork flag and a crash on forgetNetwork

Crash is due to an incorrect lookup of WifiConfiguration.

Change-Id: Ib273f820f149fd195c7b4cb9b74ae783b2518550
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
e9418ca9dd1975f84260e491a041cac87381693c 24-Mar-2015 Prerepa Viswanadham <dham@google.com> Merge remote-tracking branch 'goog/mirror-m-wireless-internal-release' into master_merge

Change-Id: Id9033b0a7d6bd3c8ecab1648fc8c67feae18c41c
c55fc72b3c2fa2f47a52138e53a86460ba87a1c5 19-Mar-2015 Pierre Vandwalle <vandwalle@google.com> fix writing of networkHistory.txt file
Bug:19770620

Change-Id: I469a50ffc5f33101ed5e46eb5603689f2982f30d
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
0047ccf563baa288777e06c6fe95d3681fcf5ccd 18-Mar-2015 Vinit Deshpande <vinitd@google.com> More bug fixes to enable passpoint

Change-Id: Icbf65a731c93deecc49178f9628b1ee3a9c91a00
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
d3fb9cbb12d013dd70e672ace5c41ab18a3679a0 18-Mar-2015 Vinit Deshpande <vinitd@google.com> Connect to passpoint end-to-end

Change-Id: I9bdec486b2a5963ce8858ad1ed322f6d62e6349f
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
af955ffa0082189fb688429732427c333f2491ce 12-Mar-2015 Vinit Deshpande <vinitd@google.com> Integration fixes to add/save/restore passpoint networks

Change-Id: Ic7fad523e1fe2bdc7ac9509b5998576b62909fcd
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
00367222c429bcbe2f6071f480981a049cf5aaf9 15-Mar-2015 Vinit Deshpande <vinitd@google.com> am "Couple of bug fixes to enable/disable wifi"

merged from goog/mirror-m-wireless-internal-release
e2434ec Couple of bug fixes to enable/disable wifi
8b63d114d1cbfd270f6d2f07675fafa3183b38c7 15-Mar-2015 Vinit Deshpande <vinitd@google.com> am "HS20: Selection code moved to WifiAutoJoinController"

merged from goog/mirror-m-wireless-internal-release
ef1567e HS20: Selection code moved to WifiAutoJoinController
ec544b277cb2444f66fa1738027874e057048061 15-Mar-2015 Vinit Deshpande <vinitd@google.com> am "Integrate passpoint with existing Wifi infrastructure"

merged from goog/mirror-m-wireless-internal-release
77f2b82 Integrate passpoint with existing Wifi infrastructure

Change-Id: If4e54914a5c2c37733e488969e85a3a8312bb71d
44c4650300148f52d476708790074ee0ae4ba3dd 15-Mar-2015 Vinit Deshpande <vinitd@google.com> am "Passpoint API - Take 1"

merged from goog/mirror-m-wireless-internal-release
03e92b9 Passpoint API - Take 1
b88096a09212ab483e1a7b8b3a6cde011d8fb0e6 07-Mar-2015 Vinit Deshpande <vinitd@google.com> am "Couple of bug fixes to enable/disable wifi"

merged from partner/m-wireless-wifi-dev
e2434ec Couple of bug fixes to enable/disable wifi
a5c1a1d6af3ce2586f41cf44477837a7488d600c 07-Mar-2015 Vinit Deshpande <vinitd@google.com> am "HS20: Selection code moved to WifiAutoJoinController"

merged from partner/m-wireless-wifi-dev
ef1567e HS20: Selection code moved to WifiAutoJoinController
171bc9b46cd9443088412dd3234b220f4d757524 07-Mar-2015 Vinit Deshpande <vinitd@google.com> am "Integrate passpoint with existing Wifi infrastructure"

merged from partner/m-wireless-wifi-dev
77f2b82 Integrate passpoint with existing Wifi infrastructure

Change-Id: I20355d2554ee38509c21aa954d21435c6b9a3716
03ec2b718f384de591ffaa525e5d0e8070aa3c57 07-Mar-2015 Vinit Deshpande <vinitd@google.com> am "Passpoint API - Take 1"

merged from partner/m-wireless-wifi-dev
03e92b9 Passpoint API - Take 1
e2434ec1d0c1c75709f55dcee5e8943c1d68e6c1 03-Mar-2015 Vinit Deshpande <vinitd@google.com> Couple of bug fixes to enable/disable wifi

It is broken, because we now try to read/write passpoint
configurations. Few null and empty checks are missing in
that code path.

Bug: 19568112

Change-Id: I4bfcbf95e19b050ba40d9df006c0f1e4880414ed
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
ef1567e413c9ed5f5c4fdb9e354861632f7b2f87 25-Feb-2015 Jan Nordqvist <jannq@google.com> HS20: Selection code moved to WifiAutoJoinController

Change-Id: Ic2f713758ec20f98f63d55b4a610e4dca07742fb
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
77f2b82a2e80af8da52c22d69a76def6d4209757 14-Feb-2015 Jan Nordqvist <jannq@google.com> Integrate passpoint with existing Wifi infrastructure

This change hooks passpoint with rest of the wifi infrastructure.

It includes changes related to passing ANQP and other passpoint
information along with scan results and various fixes to parsing
and selection logic.

Change-Id: Id15ef1aea65dedab3e8e3df0c8a7515974c94021
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
03e92b925a595a1a467290a2d54ca2602cce9b9e 18-Feb-2015 Vinit Deshpande <vinitd@google.com> Passpoint API - Take 1

Added some common fields to WifiConfigurations; which
should be used with WifiEnterpriseConfig. The network
information is saved in a file.

Change-Id: Ica2069900dfc373e14792cbe81a185586e2954cc
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
faa2ce7f93eef2c436796fb1ea3574e2d1412491 23-Jan-2015 Robin Lee <rgl@google.com> Remove wifi configs when secondary user is deleted

If any WiFi configs have been created for a secondary user then these
should be cleaned up when the user is deleted from Settings.

Bug: 18927999
Change-Id: If4a37085f1b82f30e5f4b44c7f597f4b2d620501
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
b4536bc5963dec0b2a6ae0ece3518a62e8aff87f 29-Jan-2015 vandwalle <vandwalle@google.com> am e828e7a7: am 4fa99f57: aggressively blacklist WifiConfiguration for the purpose of switching network

* commit 'e828e7a7f186e57c7709fc30eb6e8dcb5fadab0b':
aggressively blacklist WifiConfiguration for the purpose of switching network
4fa99f57077ab287d6ed1b51cf308c44ce8bbe0b 11-Jan-2015 vandwalle <vandwalle@google.com> aggressively blacklist WifiConfiguration for the purpose of switching network

In cases where networks are not properly configured, WiFi might tries to repeatdly
switch from one network to a bad network, or might try to roam and renew DHCP which can fail.
In KK, WiFi autojoin would try other networks (by cycling to network it sees) and
end up associated to a "good" network. In L release even thought WiFi might pick
a good network it will still repeatedly try to switch to what it thinks is a better
network and fail, thus annoying the user whose connection becomes unstable.

This CL tries to remember networks that have seen multiple DHCP or auth failure in
the past and for those networks it disable roaming temporarily.
That is, if wifi is not associated to any network, it will tries to join a network
aggressively, however if wifi is currently associated to a network, it will not try
to switch to a new network if that new network has seen multiple failure in the past.

The maximum blacklist time is set to 2 days for now.
An example of such situation is:
- user has multiple SSID at home, one of which is incorrectly configured with a wrong password
- broken DHCP situation (potentially: multiple servers on home network, broken implementation incorrecting NAK'ing DHCP requests but properly serving DHCP offer...)
Bug:18792931

Change-Id: Ib09eaaea978c772f630e86696f9a49f18ad708e2
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
17cfedf44f00d090553db145cd9749f920096055 15-Jan-2015 Vinit Deshpande <vinitd@google.com> am c9f3c26e: am 9572797c: Merge "Fix an NPE in WifiConfigStore" into lmp-mr1-dev

* commit 'c9f3c26ea33c7f065aa9e3692330bc40befcfb56':
Fix an NPE in WifiConfigStore
537324a497615d07b67ba4582e9aaababd77afd6 09-Jan-2015 Vinit Deshpande <vinitd@google.com> Fix an NPE in WifiConfigStore

Disabling an invalid configuration causes Wifi service
to crash. This change gaurds against bad API call.

Bug: 18904771
Change-Id: I8d853b754cbd4163c17f3d53bf81dc7625c95466
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
40b037205b28f5a257f0f690a0c39001ffabebfb 19-Dec-2014 vandwalle <vandwalle@google.com> am e25ab227: am e0230c82: Merge "add debug logs to confirm network flapping issue is fixed Bug:18706288" into lmp-mr1-dev

* commit 'e25ab227ca1c9f660dc5b464e28dbe01545a469d':
add debug logs to confirm network flapping issue is fixed Bug:18706288
f57f8918b8c5872ff4bb141fa9e407bec8442e8d 16-Dec-2014 vandwalle <vandwalle@google.com> add debug logs to confirm network flapping issue is fixed
Bug:18706288

Change-Id: I27a86aeb650a63511b667244b0138afbc1bc059e
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
b6077d350d0f9db5b59334956f3d6d1f977a7b94 15-Dec-2014 Jeff Sharkey <jsharkey@android.com> Merge "Use better API for checking UID permission."
611048d11641d9f8136cf2a7065aedbd57095cb9 15-Dec-2014 Jeff Sharkey <jsharkey@android.com> Use better API for checking UID permission.

Avoids crashing system process.

Bug: 18757340
Change-Id: I6b4828be27842496eebb83b4ec4a5e1a25297568
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
e5cb13ea857a8e419195c5fc22b33146b26dc817 15-Dec-2014 Prem Kumar <premk@google.com> am cab41c14: am 6a0c6896: Merge changes Ieee0b91a,I0093620c into lmp-mr1-dev

* commit 'cab41c14ea42fb652b9cf03d16ee0c70744c74cf':
fix logspam Bug:18589606
Apply 5GHz band preference only when comparing configurations on different bands
f67a8303cbf58f04e0b12fea46387030892010bf 15-Dec-2014 Prem Kumar <premk@google.com> am 01b061ce: am ff8ab9f7: Merge "make sure wificonfiguration scan cache doesnt grow unbounded Bug:18703749" into lmp-mr1-dev

* commit '01b061ce1c3285c2f840673d4253f20cd34e75d8':
make sure wificonfiguration scan cache doesnt grow unbounded Bug:18703749
7ba3d8532fbd7e799f29f87951c39ea12e1a3262 15-Dec-2014 Prem Kumar <premk@google.com> am a8cfeb7a: am e9775238: Merge "handle beacons reported with wrong RSSI value of 0 Bug:18654243" into lmp-mr1-dev

* commit 'a8cfeb7a685aa0870aa5bb29afe1cebb3cea93fd':
handle beacons reported with wrong RSSI value of 0 Bug:18654243
acb5ebbeedbd9a206e2ed82de3a365ceedb27d0c 10-Dec-2014 vandwalle <vandwalle@google.com> fix logspam
Bug:18589606

Change-Id: Ieee0b91ab96ec9392a9b91ac1017a319605425dc
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
63105d275289943504a292de18e6516e79b15148 10-Dec-2014 vandwalle <vandwalle@google.com> make sure wificonfiguration scan cache doesnt grow unbounded
Bug:18703749

Change-Id: If6452e7dbaaabb164cf2a99b48b3964f4cb86ee5
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
895761ea1de67d382964e381982e59aeea6546a7 11-Dec-2014 vandwalle <vandwalle@google.com> am abd4fa77: am 93a1fdde: adjust network switching thresholds Bug:18589301

* commit 'abd4fa7731235cc3e0df0a2f96f68ea981def0aa':
adjust network switching thresholds Bug:18589301
8ccabb81ad304b80dc8eaa162fd322643461529b 10-Dec-2014 vandwalle <vandwalle@google.com> handle beacons reported with wrong RSSI value of 0
Bug:18654243

Change-Id: Ied2fbc87c7effc23fecb68e9863153d63c0cfba4
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
93a1fddee50a244d31036cddae6b7db6630fd93d 07-Dec-2014 vandwalle <vandwalle@google.com> adjust network switching thresholds
Bug:18589301

Change-Id: Ifa2ae05620207798d24e5e196ff522a71fc0fd48
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
5ced0cedc941433da1e73e256138feba621fe7b5 10-Dec-2014 Prem Kumar <premk@google.com> am e3f48c70: am 4724608d: Merge changes I0d49fa29,I0acacd3f into lmp-mr1-dev

* commit 'e3f48c70338438ddcf9542b92032e966f84ca5a3':
rework scan logic so as to make use of delayed messages instead of scan alarm
reenable disabled config after a few minutes
03ffb1fd6ac5c8791e993b8a7864824a5660f63d 10-Dec-2014 Jeff Davidson <jpd@google.com> am d3a842ad: am a63fbdbb: Merge "- keep track of ephemeral configurations that are deleted by user - make sure we cleaned up prior ephemeral WiFiconfiguration from wpa_supplicant.conf Bug:18525241" into lmp-mr1-dev

* commit 'd3a842ad0052903fe94b745630dc20cb70ea4058':
- keep track of ephemeral configurations that are deleted by user - make sure we cleaned up prior ephemeral WiFiconfiguration from wpa_supplicant.conf Bug:18525241
4724608dce2e37b9c0b260c2c7dcf3161f474df2 06-Dec-2014 Prem Kumar <premk@google.com> Merge changes I0d49fa29,I0acacd3f into lmp-mr1-dev

* changes:
rework scan logic so as to make use of delayed messages instead of scan alarm
reenable disabled config after a few minutes
a63fbdbba96e242280267466b170e311e1f71dc3 06-Dec-2014 Jeff Davidson <jpd@google.com> Merge "- keep track of ephemeral configurations that are deleted by user - make sure we cleaned up prior ephemeral WiFiconfiguration from wpa_supplicant.conf Bug:18525241" into lmp-mr1-dev
8242cc81341c80ab5bc057ffdad99a3a1d95be5c 01-Dec-2014 vandwalle <vandwalle@google.com> rework scan logic so as to make use of delayed messages instead of scan alarm

Bug:18594119
Change-Id: I0d49fa2908d824de6adb125cf862de47f8ba5e91
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
abd1740f753ac14e9dec8fced8d3de5059122c2a 05-Dec-2014 vandwalle <vandwalle@google.com> reenable disabled config after a few minutes

This change also loose stale user selection which prevents device to re-join potentially
reenabled configs

Bug:18571727
Change-Id: I0acacd3fb1fbb64a48d0407d7b9e4e5403a93726
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
2ce99b40c36ed0352b31aa85d5f9383d5f0506f5 04-Dec-2014 vandwalle <vandwalle@google.com> - keep track of ephemeral configurations that are deleted by user
- make sure we cleaned up prior ephemeral WiFiconfiguration from wpa_supplicant.conf
Bug:18525241

Change-Id: I773cb9b28fe139d1cd5df622619b4a9cf866d6ce
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
1eed8cd5b7a60d9024e2937ee2be602543e1c198 05-Dec-2014 Vinit Deshpande <vinitd@google.com> am 839a47af: am e3939cb4: Read all networks despite message limit of 4096 bytes

* commit '839a47af5b48c487a0af377456e7ceffb3899fb9':
Read all networks despite message limit of 4096 bytes
e3939cb40d9ba3842be105a6e85172dc06e14758 02-Dec-2014 Vinit Deshpande <vinitd@google.com> Read all networks despite message limit of 4096 bytes

This change uses list_network last_id=x form of list_networks to
retrieve all networks saved in the system.

Bug: 18566264
Change-Id: Ie439acd98d39ca32417418944035dcce3068d44b
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
faff566684a044cce0da4eab11de79eec964d9fb 21-Nov-2014 Jeff Davidson <jpd@google.com> am 983b8383: Merge "Don\'t enable ephemeral networks when bringing up Wi-Fi." into lmp-mr1-dev automerge: 1a36bf3

* commit '983b8383021303e7a17e9fe72b93b363c5efc8ce':
Don't enable ephemeral networks when bringing up Wi-Fi.
ebfa1b39d313e987d4bb88440ebfd043965c7dba 14-Nov-2014 Jeff Davidson <jpd@google.com> Don't enable ephemeral networks when bringing up Wi-Fi.

Connections to these networks should only be managed by auto-join. If
we enable these configs then it is possible that the supplicant brings
up an unwanted ephemeral connection that auto-join will immediately
discard, which is wasteful.

Bug: 18389875
Change-Id: I0d3a9a35542eda71401920c0b600dcd2b1e134ba
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
43f539138be53a3884ce7b97b4d961ce6edee957 13-Nov-2014 vandwalle <vandwalle@google.com> resolve merge conflicts of 75b687a to master.

Change-Id: I1647a8be129a71bef2fcf2b3cad001a2d7c183b3
005c1ef113192f898499a407dd266393a8d6b076 12-Nov-2014 vandwalle <vandwalle@google.com> - better handling of deleted configurations, only keep a crc32 of deleted SSIDs
- trigger a scan when changing settings allowing use of untrusted networks
Bug:18221007
Bug:18269621

Change-Id: I7eec8913737726a1bf468a96eae562cc567ecfd3
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
13672de1d2124fcfb5bd03ebc962eae1ac75816b 12-Nov-2014 vandwalle <vandwalle@google.com> am 56c30f09: Merge "dont blacklist wifi config that have had validated internet status in the past" into lmp-mr1-dev automerge: f93f774

* commit '56c30f0998360fb4690538b90393eb92bb9a8ad3':
dont blacklist wifi config that have had validated internet status in the past
d30127db46224e45554f8964209221bba8ad41d9 08-Nov-2014 vandwalle <vandwalle@google.com> dont blacklist wifi config that have had validated internet status in the past

Change-Id: I4498888ffb1d3189204a553462ff4342239ed2af
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
9dac0da5b0c6fefa7f8b4e182faac955df9ff9b3 06-Nov-2014 Jeff Davidson <jpd@google.com> resolved conflicts for merge of 67930f53 to master

Change-Id: I7ec4cd0db477678376dd0cd605bfcd529651be8d
3aed1e5a7a7f2ec730c393e2c7d129e3e551a711 05-Nov-2014 Jeff Davidson <jpd@google.com> Support conversion of untrusted networks to trusted.

When the user requests to connect to a network which already has an
untrusted config, we update the existing config and clear the
ephemeral bit rather than creating a new config. We also maintain the
current connection if that ephemeral config matches the currently
connected configuration, and merely tell the system that the network
is now trusted.

The above also applies for AUTO_JOIN_DELETED networks, which are
similarly filtered out from the list of WifiConfigurations.

Bug: 18206275
Change-Id: I1dff7e3c073888c619e6a5c3a40295a44b12e403
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
ac06587f2505ca1db793ce2a7fc46bcc52fed5c1 03-Nov-2014 Jeff Davidson <jpd@google.com> am 6a9eea91: am 42f181ed: Propagate WifiConfiguration ephemeral bit to ScanResult.

* commit '6a9eea9102b46ca17a5431e5079a47ad1dcd10b5':
Propagate WifiConfiguration ephemeral bit to ScanResult.
42f181ed4277890489be016939209952959d5416 31-Oct-2014 Jeff Davidson <jpd@google.com> Propagate WifiConfiguration ephemeral bit to ScanResult.

Bug: 18206244
Change-Id: I82e8a359db32a84145716b43d8438767959a00b3
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
500ab3844f536a8c577a0025266bafb493e4789f 30-Oct-2014 vandwalle <vandwalle@google.com> am 7a05688a: am f9715cc1: various fixes: - Carry over the IP config when self adding a configuration - fix null pointer exception in wificonfigstore, trying to read the IPConfig file Bug:18058314 Bug:18057271

* commit '7a05688a05b34ae33c0a305f3d3b3fc78ce0b00f':
various fixes: - Carry over the IP config when self adding a configuration - fix null pointer exception in wificonfigstore, trying to read the IPConfig file Bug:18058314 Bug:18057271
f9715cc118c446695b2a82211881c7d6c5e59761 23-Oct-2014 vandwalle <vandwalle@google.com> various fixes:
- Carry over the IP config when self adding a configuration
- fix null pointer exception in wificonfigstore, trying to read the IPConfig file
Bug:18058314
Bug:18057271

Change-Id: Ia1922f0cf44aa6eaf67928ac392a6ec92431f279
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
0babf8db92db534bf5ce274b551aa6d9b8200ced 25-Oct-2014 Vinit Deshpande <vinitd@google.com> am 7078ccd6: am 88daa7e9: Mark configuration as disabled, if it is disabled by WifiManager automerge: b407b98

* commit '7078ccd6c3e9b65ee57ca1bc4726f4db698a3680':
Mark configuration as disabled, if it is disabled by WifiManager
b407b98190bc4a80b58285bbcd4751bf2a94c9b9 25-Oct-2014 Vinit Deshpande <vinitd@google.com> am 88daa7e9: Mark configuration as disabled, if it is disabled by WifiManager

* commit '88daa7e9d975b8b6674157dd6e81d358c7d16393':
Mark configuration as disabled, if it is disabled by WifiManager
88daa7e9d975b8b6674157dd6e81d358c7d16393 24-Oct-2014 Vinit Deshpande <vinitd@google.com> Mark configuration as disabled, if it is disabled by WifiManager

Bug: 17937171

Change-Id: Ic61439868f28899cc1c641c29ebcc8b7bfab35eb
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
9e0e2c97dc7be69ebb76017e6d3846e8fff130c6 23-Oct-2014 vandwalle <vandwalle@google.com> am 749c23d2: am c1bcb778: am 1ec92c57: - detect that firmware cant stay connected to 5GHz AP and tune down 5GHz preference accordingly - use a long random string so as to obfuscate PSK of WiFiConfiguration we have deleted but keep around in the autojoin database - if

* commit '749c23d2d7dc04dcdb8076ce81a213a86499cc72':
- detect that firmware cant stay connected to 5GHz AP and tune down 5GHz preference accordingly - use a long random string so as to obfuscate PSK of WiFiConfiguration we have deleted but keep around in the autojoin database - if autojoin doesn't find a known network to join, and sees a known network that ConnectivityService never marked as UNWANTED due to bad signal, then add a boost of up to +8dB to this network's autojoin threshold, also includes the boost in the network's score that is sent to connectivity service
c1bcb77843fecb661b5733ed5813e327313ce002 22-Oct-2014 vandwalle <vandwalle@google.com> am 1ec92c57: - detect that firmware cant stay connected to 5GHz AP and tune down 5GHz preference accordingly - use a long random string so as to obfuscate PSK of WiFiConfiguration we have deleted but keep around in the autojoin database - if autojoin doesn\'t find a kn

* commit '1ec92c57244311c7fca3ab6b244a06c2b2b58902':
- detect that firmware cant stay connected to 5GHz AP and tune down 5GHz preference accordingly - use a long random string so as to obfuscate PSK of WiFiConfiguration we have deleted but keep around in the autojoin database - if autojoin doesn't find a known network to join, and sees a known network that ConnectivityService never marked as UNWANTED due to bad signal, then add a boost of up to +8dB to this network's autojoin threshold, also includes the boost in the network's score that is sent to connectivity service
1ec92c57244311c7fca3ab6b244a06c2b2b58902 21-Oct-2014 vandwalle <vandwalle@google.com> - detect that firmware cant stay connected to 5GHz AP and tune down 5GHz preference accordingly
- use a long random string so as to obfuscate PSK of WiFiConfiguration we have deleted but keep around in the autojoin database
- if autojoin doesn't find a known network to join, and sees a known network that ConnectivityService never marked as UNWANTED due to bad signal, then add a boost of up to +8dB to this network's autojoin threshold, also includes the boost in the network's score that is sent to connectivity service

b/17960587
b/18038705
b/18030088
b/17870963

Change-Id: I6cb2c6fdff799453b3d780c43f99d070117e0dc7
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
be84b5394d1aefbf408a2b52aa8cb9633d9368d9 18-Oct-2014 vandwalle <vandwalle@google.com> am 327a5a8b: am dd0c5587: Taking into account user join preference more aggressively; add debug info for roaming Bug:17669859 Big:17651877 automerge: 0fd84c2

* commit '327a5a8b601a87fb565385884146ede95b444d4f':
Taking into account user join preference more aggressively; add debug info for roaming Bug:17669859 Big:17651877
0fd84c2577121d02f0d6436c84dcb1dd311911e5 18-Oct-2014 vandwalle <vandwalle@google.com> am dd0c5587: Taking into account user join preference more aggressively; add debug info for roaming Bug:17669859 Big:17651877

* commit 'dd0c558776fcfba3f754bb0cd6533f2c9c23ec1e':
Taking into account user join preference more aggressively; add debug info for roaming Bug:17669859 Big:17651877
dd0c558776fcfba3f754bb0cd6533f2c9c23ec1e 16-Oct-2014 vandwalle <vandwalle@google.com> Taking into account user join preference more aggressively; add debug info for roaming
Bug:17669859
Big:17651877

Change-Id: I3f763f354848d2bc3863f2887bccaf0ff9af426e
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
552b5e4984e7b1331e3c0f0d262196d98e49eb3c 16-Oct-2014 vandwalle <vandwalle@google.com> am 55323f85: am 0e89e053: am 6db73827: Merge "fix bssid blacklisting Bug:17960587 Bug:17966377" into lmp-dev

* commit '55323f85677f3c6aed2188fbae68154de61b1589':
fix bssid blacklisting Bug:17960587 Bug:17966377
0e89e0535f4f7b2a48384fc0b7ae779acd0376c7 16-Oct-2014 vandwalle <vandwalle@google.com> am 6db73827: Merge "fix bssid blacklisting Bug:17960587 Bug:17966377" into lmp-dev

* commit '6db73827acdedb707dd3e0f2fa2add833380a3b6':
fix bssid blacklisting Bug:17960587 Bug:17966377
078a7527951b1e8fb7722ab930760730cf54e572 15-Oct-2014 vandwalle <vandwalle@google.com> fix bssid blacklisting
Bug:17960587
Bug:17966377

Change-Id: I6ead5386f961e8bd0705ceea190752dd20f7e38a
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
8a5d615e95c6e71b1db7536fb28f3142b63649cb 15-Oct-2014 Jeff Davidson <jpd@google.com> resolved conflicts for merge of fd93b4ce to master

Change-Id: I1c81c9d9a9b8d3709473ee585b5b741624babf7a
8639f6266cb70bf92d1561af43ac2d7b2b97298e 19-Aug-2014 Jeff Davidson <jpd@google.com> Allow connections to untrusted SSIDs when requested.

When at least one NetworkRequest for an untrusted network is active,
autojoin will allow connections to untrusted connections. Upon
successful connection, we tell the framework whether Wifi is currently
connected to a trusted or untrusted network. If all requests for
untrusted networks are withdrawn, and we are currently connected to an
untrusted network, that connection is dropped.

Bug: 15892711
Change-Id: I3f8625996013ee850927fc2290a24c591e3db691
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
e0aacc7755f2ab48b081a1f119c05382779f306a 12-Oct-2014 vandwalle <vandwalle@google.com> am d2c137ad: am a5283c01: reenable networks completely, 5 mins after DHCP failure blacklist; revert aggressive wifi to cellular handover when handing over due to link speed Bug:17949093 Bug:17947372 Bug:17897698

* commit 'd2c137ad25e6e7f15570b989709b9ea9c3ff701a':
reenable networks completely, 5 mins after DHCP failure blacklist; revert aggressive wifi to cellular handover when handing over due to link speed Bug:17949093 Bug:17947372 Bug:17897698
a5283c01ac413e378e2261050cac3a6d6e9cf385 11-Oct-2014 vandwalle <vandwalle@google.com> reenable networks completely, 5 mins after DHCP failure blacklist; revert aggressive wifi to cellular handover when handing over due to link speed
Bug:17949093
Bug:17947372
Bug:17897698

Change-Id: I1d398238022fd380952cb8dc28f47cc38d0b7b06

Conflicts:
service/java/com/android/server/wifi/WifiStateMachine.java
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
6879b31beb6d899a178a3c7c10a5a37470179648 08-Oct-2014 vandwalle <vandwalle@google.com> am 7a693362: am a0708b09: various fixes: - adding debug information to bug report for Bug:16751877 - reenable networks when entering DisconnectedState - dont force MSG_INFO log level at supplicant Bug:16751877 Bug:17811889 Bug:17881399

* commit '7a6933624b11c833632f34750e454331e0b06f96':
various fixes: - adding debug information to bug report for Bug:16751877 - reenable networks when entering DisconnectedState - dont force MSG_INFO log level at supplicant Bug:16751877 Bug:17811889 Bug:17881399
a0708b09ad17b086c008ab100aec7143d7613c80 07-Oct-2014 vandwalle <vandwalle@google.com> various fixes:
- adding debug information to bug report for Bug:16751877
- reenable networks when entering DisconnectedState
- dont force MSG_INFO log level at supplicant
Bug:16751877
Bug:17811889
Bug:17881399

Change-Id: I89b4f5c05a1f64f9d1e8c407f62036efa0265043
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
c5199fd4dc2e0a90f7c5fd0d65185e6b2f8916ef 04-Oct-2014 vandwalle <vandwalle@google.com> am da247360: am e0ba94ba: - slightly better network log - add debug option to enable/disable associated full band scans - networkHistory.txt and wpa_supplicant.conf file get out of sync regarding config.status variable Bug:17648443

* commit 'da2473601be1e8917868d16af96f3243516e2a2d':
- slightly better network log - add debug option to enable/disable associated full band scans - networkHistory.txt and wpa_supplicant.conf file get out of sync regarding config.status variable Bug:17648443
e0ba94ba9abde13173ae0de8c8939aa4eb9a9085 01-Oct-2014 vandwalle <vandwalle@google.com> - slightly better network log
- add debug option to enable/disable associated full band scans
- networkHistory.txt and wpa_supplicant.conf file get out of sync regarding config.status variable
Bug:17648443

Change-Id: Ie1c6dac9f94b7d71599734e2263b9456cf6278ee
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
e487a4648dd41881e754f1224aaedead78a0777d 23-Sep-2014 Sky Faber <skyf@google.com> Separate wifi AP added by applications.

-Add dialog before connecting to an app added network
-Remove applicationss APs on uninstall
-Ban apps from modifying networks they don't own.
-Ensure app connections don't modify user preference.

Change-Id: I12943563ef714c4287e13488578f020d136d006d
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
70468b47454c8657e8963932f2e08a3f4d7e3881 25-Sep-2014 vandwalle <vandwalle@google.com> - make rssi poll and wifi scan when associated configurable
- fix regression when forgeting network
- fix NPE in calculateWifiScore
Bug:17564108

Change-Id: I47329b1fb0f23c72886bdd3de99b4f9242d59eec
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
e0aa0a004d161173992a0e9af1b431fae91f4a71 19-Sep-2014 vandwalle <vandwalle@google.com> - better sanity check on psk for linking config
- black list BSSID in case of repeated DHCP failures
- black list network with noInternet connectivity from autojoin
- clean up Disconnecting state transition
Bug:17512891
Bug:17395269
Bug:16480230
Bug:17518367
Bug:17545859

Change-Id: I1683a66fd58424ad2177c6508b101fd49392e22a
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
7b581f46f6c9bc6edf0edd287d47106712fb2144 17-Sep-2014 vandwalle <vandwalle@google.com> various fixes:

- additional debug logs
- allow a scan result to be associated to mulitple wifi configurations
- additional logs to track 17516271
Bug:17510471

Change-Id: I39975f17494c541989f7f0e0fd8fcf890934ee15
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
99d385e3b4d34841d6efcfd7cc9bf1d5ae25de14 16-Sep-2014 vandwalle <vandwalle@google.com> set proper link quality thresholds

Bug:17514073

Change-Id: Icf4dbd81e8547bb837c8346c9af5cfc98d7b00ab
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
9e806a8d9f297e4de826e65322859a89e4d95c8b 15-Sep-2014 vandwalle <vandwalle@google.com> improve debugging messages & logging

Change-Id: I7c668c24357663fff418c62d21c1fc6cb571590a
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
17e828848eebb4eb11d27ce32d02716334dd6011 13-Sep-2014 vandwalle <vandwalle@google.com> make wifi cellular handover params configurable

Change-Id: Icc1f722d3e0293ec58027770b941fc98dc24ce44
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
0eebae7334d6129f7ca1344e4b20199794994358 12-Sep-2014 vandwalle <vandwalle@google.com> various fixes:

- add null pointer check to wifi watchdog state machine
- correctly parse the REQUEST IDENTIY event sent by wpa_supplicant
- make autojoining wificonfiguration more aggressive based on user input
Bug:17469863
Bug:17426395
Bug:17475816

Change-Id: I1785c917c0e570de0edaa02bd0ca6536be9d7c0b
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
448c9536a302c58a79e271b1721c08b8882f800e 11-Sep-2014 vandwalle <vandwalle@google.com> dont accept CONNECTION_EVENT until roaming is complete

Change-Id: Iedde560abc9d2f4c3a3b9b9bfc5caaaa5584472e
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
2f2cf21662275a0e93d7d7a6ad3d98b4c596dcf0 10-Sep-2014 vandwalle <vandwalle@google.com> make autojoin configurable, clean up BSSID info that may be stake in WifiConfiguration

- allow scans in verifying poor link
Bug:17420929

Change-Id: I310ad60a443d648666ebac49b3eeb56c7e9a0ecc
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
b6defc9d7836cb440c0cdb0d1e1031a5fc83a4da 10-Sep-2014 vandwalle <vandwalle@google.com> Merge "various fixes:" into lmp-dev
b664cfeab6f02e24376ea0a15beb83d142f0b14d 09-Sep-2014 vandwalle <vandwalle@google.com> various fixes:

- persist Wificonfiguration.ephemeral
- dont trigger attemptRoam on previous configuration
- treat ADD_OR_UPDATE_NETWORK with highest priority as a user network selection
- add associated scan period in framework/base/core/res/res/

Bug:17202406

Change-Id: Ibd92af49c6b79c6799d90d4b72b72547a4c936ca
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
826cc083fdbef5680ff2052b02789326b44bb322 09-Sep-2014 Vinit Deshpande <vinitd@google.com> Merge "Fix leaking of WPA2 passcode for newly added networks" into lmp-dev
c9b047b4cb480edbb490516746cfcbb4a4eedeea 08-Sep-2014 vandwalle <vandwalle@google.com> dont debounce on locally generated disconnect

Change-Id: Id75a866959fc99828f6143230a9ade3e6a2b81b9
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
9f3349fa2cd39d690d1e2b7c3b71ced412e24f2c 05-Sep-2014 vandwalle <vandwalle@google.com> various fixes:

- cleanup setWifiEnable transitions
- dont scan right when entering connected and Disconnected state, instead startScan() adds a 200ms delay before starting the scans, so as to let the state machiine time to process deferred message
- dont forget to send the NetworkStateChanged Broadcast when we set the network detailed state
- autojoin dont attempt to join WifiConfigurations marked as noInternetAccess, unless explicitely selected by the user
- keep stats of user triggered wifi state disabling requests
- fix bad roaming situation when BSSID is specified in network block

Bug:17193677

Change-Id: Ia103a93232f40519c7b4eef07254f32342ea5615
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
e61237672316b46d7bec960a199bfbd5bfcca257 06-Sep-2014 Vinit Deshpande <vinitd@google.com> Fix leaking of WPA2 passcode for newly added networks

WifiConfigStore is firing broadcast with incorrect object which leaks
the passcode.

Bug: 17160254
Change-Id: Ia07897778d4b7a9865b883ae2a8bc3b01c58ae6a
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
14fd4783657cc19da98d964e61de6251d6c317c8 05-Sep-2014 Wenchao Tong <tongwenchao@google.com> Merge "Fix a bug in the wpa_supplicant parsing code." into lmp-dev
f2899b9c94fd1abbd01625dfe320dd3f1bc9cc9c 03-Sep-2014 Wenchao Tong <tongwenchao@google.com> Fix a bug in the wpa_supplicant parsing code.

line.indexOf("ssid=") matches both ssid=xxx and scan_ssid=1.
Fix a typo in the regex to match the end of network block.

Bug: 17363819
Change-Id: Ib240e16988867b9610691b3bf4bcf90130797dc9
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
be3095ed758fca076b9ccb9fdae48f7f865c078a 01-Sep-2014 vandwalle <vandwalle@google.com> AutoJoin fixes:

- Additional logs
- re-enable all network upon screen on and connection, even for blackliste networks due to auth failure
- watchdog the DisconnectingState
- remove mFrameworkAutoJoin which is not used anymore
- dont remove WPA_PSK configurations, instead mark them as AUTO_JOIN_DELETED and loose their history and keys

Bug:17261906
Bug:17330171
Bug:17339150
Bug:17063789

Change-Id: I12ea25142d0dcfc670d8970ed67624e8573d1ac2
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
e67ec726c07410073575473c0f50dc737629f5da 26-Aug-2014 vandwalle <vandwalle@google.com> autojoin fixes:

- Bug:17291273
- add persistent Wifi verbose logging option (/data/misc/wifi/autojoinconfig.txt)
- add config option for the associated scans period and backoff (/data/misc/wifi/autojoinconfig.txt)
- dont lock BSSID when roaming to 2.4GHz config
- issue single reassociate on roam
- make extended roaming 5GHz preference consistent with roaming 5GHz preference

Change-Id: I1525349e220cebb1b300753a707eb00fcc9d7d7b
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
0d616ef3bf635dff8722e064c0be842676390ed8 20-Aug-2014 vandwalle <vandwalle@google.com> add roam state watchdog.

Bug: 16823537

This CL is dependent on Id9411c8097337b37ac1ce1a6ac8b28b4bda31ff3

Change-Id: Iff32fae2cd67343e63046d58d75fa1e10d9775d0
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
1fd74be7eae25d58cc068e3e2f5eb9269ef4e369 20-Aug-2014 vandwalle <vandwalle@google.com> Merge "debug messages for link loss issues" into lmp-dev
e6574ec7b6b2e7a678da7f77bdaaf31463852b2f 19-Aug-2014 vandwalle <vandwalle@google.com> debug messages for link loss issues

Change-Id: Icbea4bac528eac8f25b8d1f9f1fa79d1ecadb7da
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
0ebd6d71cecb5147fad1ca7a7f807aec7ffeddd9 12-Aug-2014 Lorenzo Colitti <lorenzo@google.com> Clear IPv4 addresses when switching from DHCP to static.

This prevents the previous DHCP address from remaining assigned
to the interface, fixing a TODO.


Bug: 16893413
Change-Id: I84e09b8ac0325b839059b2d38086603bd11c7948
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
3b26801d62a06475b722bbf29cba7f48f376654e 31-Jul-2014 Lorenzo Colitti <lorenzo@google.com> Stop using LinkProperties for static configuration.

Bug: 16114392
Bug: 16893413
Change-Id: Ib33f35c004e30b6067bb20235ffa43c247d174df
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
8c0a54e9b0d3713cab52d06ad8fd7f3a1b6f73a8 14-Aug-2014 vandwalle <vandwalle@google.com> provide autojoin config threshold, fix bug16990104

Change-Id: Iac9ec4fe0a721df5f08b90d631025df4d944d088
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
4d3bff566b2cd0c3fd4d118eb6aae42ab3e9b5dd 08-Aug-2014 Lorenzo Colitti <lorenzo@google.com> Fix reading wifi configurations from the config store.

IpConfiguration's readIpAndProxyConfigurations method returns a
SparseArray mapping network IDs to IpConfiguration objects.
Unfortunately WifiConfiguration's readIpAndProxyConfigurations
iterates over the array and attempts to find the network the
configuration is for by looking at the sequence number of the
configuration, not the actual key in the SparseArray.

Bug: 16382665
Change-Id: I3dfef9123382b81a2a22cf5df7a5bb77611059aa
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
c290d8dff6172d5fde7b9dfd74d3a20785dab246 29-Jul-2014 vandwalle <vandwalle@google.com> fix handling DHCP status

Change-Id: Ib4dfc9a1f84d6faaaf71adf63c8e2457e95646fd
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
ede507649471f1113e9e1919812115ca5a6bc0c8 29-Jul-2014 vandwalle <vandwalle@google.com> add logs and fix compareWifiConfigurationsWithScorer

Change-Id: I7eeb489b89519bd79d7e3df0fe3ae400debfe566
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
c298087de50ea56c31a4ade7ee1e83b313bb63c7 26-Jul-2014 vandwalle <vandwalle@google.com> introduce WifiConnectionstatistics

This CL is dependent on I51fbbf062feb22c5f16b438675519064cc43e160

Change-Id: I10584a447fecd977df3eefd8e2cc028bd26ec0e3
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
2451dbcc4f9641df188326215b204b798eb70c46 23-Jul-2014 vandwalle <vandwalle@google.com> autojoin fixes:

- make use of network scorer for autojoin
- Bug:16484607

Change-Id: If658d82bb6e3f61ed0476d41b40bb274a1931b2f
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
5a5dc2c0e256ec34e75bb5ec92c4726f9bbc918a 21-Jul-2014 vandwalle <vandwalle@google.com> Merge "a few additional logs and code standard rules" into lmp-dev
931338d1533d1bd11ba0e5aebb4e4b7b2c8ab056 18-Jul-2014 vandwalle <vandwalle@google.com> a few additional logs and code standard rules

Change-Id: I932e895fefd7b6c9d8ad58ef99312c980643f2d2
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
0821ef3917e8305ceb58c8b9c6f7bc4c6d35252b 18-Jul-2014 Lorenzo Colitti <lorenzo@google.com> Merge "Properly quote WPA enterprise config fields." into lmp-dev
3249e2d02cd39f6e2fee093d6d8f4833a51001d5 15-Jul-2014 Lorenzo Colitti <lorenzo@google.com> Properly quote WPA enterprise config fields.

When filling in WifiConfiguration variables based on supplicant
state, properly quote WPA enterprise keys that need to be quoted.
Otherwise, when we attempt to set these config keys, we end up
sending commands ike "SET_NETWORK 4 identity foo", which are
invalid because "foo" needs to be quoted.

The list of fields that need to be quoted was based on the code
in WifiEnterpriseConfig.java.

Bug: 15870625
Change-Id: Icf06fbaa133ac5d195791fa4cfbce5d7d1e610bf
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
9878c61bbd81176561991be025af44efc67332fe 17-Jun-2014 Wenchao Tong <tongwenchao@google.com> Add a new SystemApi, getPrivilegedConfiguredNetworks(). Part 2 [DO NOT MERGE]

Implements the getPrivilegedConfiguredNetworks() in WifiServiceImpl.

Bug: 15703353
Change-Id: If3eaca3286e77b780272f42a28772d1d8d39db65
(cherry picked from commit 76ddde4965b1460248eb21d0ccebed687c2b3fb3)
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
40ff222cec1bd05879edb53abc75c6deead734ca 01-Jul-2014 vandwalle <vandwalle@google.com> handle IDENTITY message and bssid blacklist

Bug:15990551
Bug:15977507

Change-Id: I78b03915781bd6d5f9f5881c80324a2788b9e837
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
96d15e49bb2d9f22b307b4c9cafd5f51b87667a1 01-Jul-2014 Yuhao Zheng <yuhaozheng@google.com> Add two Passpoint fields to WifiConfiguration

We need two new fields in WifiConfiguration for Hotspot 2.0:
requirePMF & updateIdentifier

Change-Id: I46e5753d50423828f2aa531d469b49a88850e055
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
d31e487847b954a9e763c5dd72adbf5efd590814 26-Jun-2014 vandwalle <vandwalle@google.com> dont try to set an obfuscated password into wpa_supplicant

Bug: 15870625

Change-Id: I7d4b15cbd5d9ba6afefafe16f5ba8c0a8510cff3
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
a2903b7c6fc2419d48fd9976fa24852370653c4a 26-Jun-2014 vandwalle <vandwalle@google.com> fix a merge issue

Change-Id: Ic1e9bab8ec6cf4b4525d2815b29db8e617960504
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
b07da189850a4bfa268f8ab9be7867935eb2ecb5 24-Jun-2014 vandwalle <vandwalle@google.com> improve link flapping

Change-Id: Ie378dde318dccaa566f660c9497bae31d4a9f1ab
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
c6f06c628ee3583b60ff31a7da442e0ac7b26d97 19-Jun-2014 vandwalle <vandwalle@google.com> autojoin tuning, making LTE handover less aggressive

Bug: 15700122

Change-Id: I2836abf791f8c71c63a901170f247c4030e8e8f9
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
b97e66604f472f67c233bb8f8d9630bb36131e2c 13-Jun-2014 vandwalle <vandwalle@google.com> auto-roam fixes, disable scanning based on traffic at interface

Bug: 15575229
Bug: 15577651

Change-Id: I1157c7c9b83c1cafd67d4d4f1d4e1e6fc8d95323
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
4dc6f3a322806b25d50039614cde1b94fe91ab17 11-Jun-2014 vandwalle <vandwalle@google.com> auto-roam initial implementation

Bug:15553951

Change-Id: I04ebca4a4f5a9b408893ce1e9874f08aeff50ba2
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
f62893bfeaebeaa0f6a840b29f1b7f33493c8894 10-Jun-2014 vandwalle <vandwalle@google.com> Merge "remember and report network score"
27355a942653264388e909a4276196ee63e57811 03-Jun-2014 vandwalle <vandwalle@google.com> remember and report network score

Change-Id: Ie54afe724a3618ec3fd557850dbbbb8bbae49ecc
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
82d1c6aeadfa24797b314ae2b2a55717df064b57 08-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Apply LinkProperties API change.

bug:15142362
Change-Id: I1457111da7d3bd09998f7e010febb8bb4c45c8bc
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
cf5b8eb8a08c45bd4a82f1f4bb789c8a1b08744f 04-Jun-2014 vandwalle <vandwalle@google.com> resolved conflicts for merge of dfcb187e to master

Change-Id: I740b98b89fb25599a353abbfe919c6e5a0f1c098
dfcb187e5608e125fe161d70226c300bd7b781ad 24-May-2014 vandwalle <vandwalle@google.com> logs improvements, fix reading back networkHistory file

Change-Id: Iec4b11a3e0d8820b558abea6cc068a905199896d
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
0e3c67280365eb82fc15362a3b98a2c978bde766 01-Jun-2014 vandwalle <vandwalle@google.com> handle removal of self added configurations

Change-Id: I53122e704d8ef682c6c326b0588649ed9b7ba121
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
ad7319939c424d42fa6a3791c47f613db8ef3cd8 31-May-2014 vandwalle <vandwalle@google.com> Add supplicant debug information
992ae00f25a9cc22cf5db3261bd7e72927069cf7 30-May-2014 vandwalle <vandwalle@google.com> add debug info to wifi configure, check auth method for real before self-adding

Bug:15111865

Change-Id: I095fff870c7871e3cb7ae4b8e99034519eb26fa1
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
89dca79510af1fbe58c831e78edeccdb7db6e4cc 22-May-2014 vandwalle <vandwalle@google.com> DO NOT MERGE: revert change preventing NULL SSID in a WifiConfiguration

Change-Id: I131c429f4897c359004d6eae09f93550b8eaf0b1
(cherry picked from commit e86c962bb99a8b126ed64ddcc6b112161549e26d)
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
0888ce6f90bdaeee799dd8361ea4781e23a33b87 24-May-2014 vandwalle <vandwalle@google.com> logs improvements, fix reading back networkHistory file

Change-Id: Iec4b11a3e0d8820b558abea6cc068a905199896d
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
e86c962bb99a8b126ed64ddcc6b112161549e26d 22-May-2014 vandwalle <vandwalle@google.com> revert change preventing NULL SSID in a WifiConfiguration

Change-Id: I131c429f4897c359004d6eae09f93550b8eaf0b1
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
4bcdcfd19e3eaaacc54d8ec65149c6d7faa181af 22-May-2014 vandwalle <vandwalle@google.com> remember last failure and reenable networks disabled by supplicant

bug: 14834820

Change-Id: I3d9725ac7482cd8490b52239135a98dfe0f124a2
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
afbd80435faf3d3eda6e05fba3573a0ac4e762b6 22-May-2014 vandwalle <vandwalle@google.com> Merge "make verbose logging a wifimanager hidden API"
ed9938883ae2dade81c8be6cd6ceaef3febd5239 22-May-2014 vandwalle <vandwalle@google.com> make verbose logging a wifimanager hidden API

bug: 151386707

Change-Id: Ide885ce96621fe4bab6abf10291bc8441eecad4a
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
4a55fdc530854a4a0c1602d6dbe3e0c8519b1166 22-May-2014 Lorenzo Colitti <lorenzo@google.com> Merge "Properly check return value of readIpAndProxyConfigurations"
5f128f9e971b7120a776f8fafde3a0db889f847d 22-May-2014 Lorenzo Colitti <lorenzo@google.com> Properly check return value of readIpAndProxyConfigurations

On failure, it returns an empty SparseArray, not null.

Change-Id: I5d24fdcfd24eb92657bdca674b1a417508e5af56
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
453aee50caf7e332e77ab3d995d7c87a958e4fd4 21-May-2014 vandwalle <vandwalle@google.com> various autojoin fixes

Bug:15111865
Bug:15080778
Bug:14994925

Change-Id: I753ff62b48a87db4096fdec18b4de070656cf901
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
d66e62e78523abd1eb40694832d97fee7c91953b 21-May-2014 vandwalle <vandwalle@google.com> Merge "autojoin fix: only link equivalently secure configurations"
d2569dc2b19c401200fd2672acf83cfc35f1eb12 21-May-2014 vandwalle <vandwalle@google.com> autojoin fix: only link equivalently secure configurations

Change-Id: I4f3653af6bc7d641138ca41335e40bf5f6f291e4
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
117be607246604e875de62aa8cdd99700b77a2b4 20-May-2014 vandwalle <vandwalle@google.com> fix enableNetwork() logic:

should not mark forgotten network as selected

Change-Id: I0ebbc3082228feb482611e0a7b40ee8c18340dee
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
3ecf5a032e94b6538a56f94a5b33e50cbc464007 19-Mar-2014 Jaewan Kim <jaewan@google.com> Move IP config from WifiConfiguration to IpConfiguration.

Change-Id: I5d1189682b13f1088848809604690648d8d9ecca
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
0c8b99a3b78e458a5617cc449e2efe69c5bdd531 16-May-2014 vandwalle <vandwalle@google.com> fix for autojoin controller not requesting steen scores

Change-Id: I2546241c8b1eefe963f840c4a98a3f817694039c
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
e65cebc4284fd320a155a274cb647f73cecabd11 13-May-2014 Navtej Singh Mann <navtejsingh@google.com> Fix NullPointerException while WPS Push button/WPS Pin Entry

Fix NullPointerException in system server while authenticating AP
through WPS Push button/WPS Pin Entry

Bug: 14659351

Change-Id: I4c0616b320c49841fbb1ef0983d170b1178bf542
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
3137b27bbbaaf87267dea3bf95d1c027931b0b6a 07-May-2014 Navtej Singh Mann <navtejsingh@google.com> Fixed connection to AP with unicode emoji SSID

Fix for connection problem to wifi AP have
SSID of unicode emoji

Bug: 11690983

Change-Id: Icc6de6d49bbf42a1c26ae85bfee343a860ab3fb8
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
ede1310be531a84faa08f02c3fd243448dd936dd 16-May-2014 vandwalle <vandwalle@google.com> restore correct tracking of auth failure; bring up assoc reject info to supplicant

Change-Id: I7eeb110f1f14149f560630848f26f7cc9f5cbb67
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
ecd2b88214b5d214fd1f63a9560caff9058912dd 16-May-2014 vandwalle <vandwalle@google.com> fix for devices using enableNetwork API

Change-Id: Idf886dd01892d3f7ca463a44fd76030ddadcd238
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
62f1d0ca8ea4466628f6ff179b1f20e1279fa7e0 13-May-2014 vandwalle <vandwalle@google.com> autojoin is to eager to black list networks due to connection failure

Bug: 14834820

Change-Id: I81c05b657b3d218bb4d5f5bf82dd6a8ad3859bd1
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
952d359198cb1f04c180fc0f795dc316fe97cb5e 08-May-2014 vandwalle <vandwalle@google.com> fix for 14645794 Wifi flakiness triggering multiple crashesin volantis

Change-Id: Id2caa10964bbc02dbeff85ac6193f4be19f7bd39
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
f22d23092ab37286a5ef9d257d5bb32c421d2669 06-May-2014 vandwalle <vandwalle@google.com> autojoin initial implementation

Change-Id: Iea4e5c0b8e988e410d2f9885ecaf6317d34cc1d1
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
73281a1523e29b9717d0d952de1faf2b52281c7c 07-May-2014 Jason Monk <jmonk@google.com> Revert "Revert "Fix Build""

This reverts commit 439935a9ec391392a1aea323d7f18c328fea2490.

Change-Id: Idb1661d3d34461848f9812d637b173decd6ee9e7
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
439935a9ec391392a1aea323d7f18c328fea2490 07-May-2014 Jason Monk <jmonk@google.com> Revert "Fix Build"

This reverts commit 09af645cb252b60bd38747df458c6d93dad23e02.

Change-Id: I3122b7e117f022c3edb1bb439b13fe99a074e78d
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
09af645cb252b60bd38747df458c6d93dad23e02 07-May-2014 Jason Monk <jmonk@google.com> Fix Build

Change-Id: Idb7e11307f10bd9580a5b92182065c3ef237af91
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
d4d0c9ad1e3289702ec341521b9bd01b52e9c1d8 07-May-2014 Jason Monk <jmonk@google.com> Support renaming of ProxyProperties to ProxyInfo

Change-Id: Ie4ec0e94b901161af68d8979d8b3cfd0e6009798
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
b872cd1d58e1666a9066b136e28c49ed62f825ed 07-Apr-2014 Jaewan Kim <jaewan@google.com> Revert "Refactor IpConfiguration from WifiConfiguration"

This reverts commit 9790c81b2d0fb2b8c3790e4dbe6dd9fd5b93bd4d.

Change-Id: Idba522f04dd4a6a16e4829f68f70d3cc19016a81
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
9790c81b2d0fb2b8c3790e4dbe6dd9fd5b93bd4d 19-Mar-2014 Jaewan Kim <jaewan@google.com> Refactor IpConfiguration from WifiConfiguration

Bug: 7606609, Bug: 8687763
Change-Id: Iec5d3237c823c7893fbba3b3209fe2b03a27a583
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
155b9d09ef9b8ead3ca617afdd91e74070d3f0cb 09-Jan-2014 Vinit Deshpande <vinitd@google.com> Revert "Revert "Move Wifi services to a new git project""

This reverts commit 862f81faba40e9af8fb80744a22e968a298e814e.

Change-Id: I7b15e266a5948749026e01a61d8581746cfd0f5f
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
862f81faba40e9af8fb80744a22e968a298e814e 08-Jan-2014 Vinit Deshpande <vinitd@google.com> Revert "Move Wifi services to a new git project"

This reverts commit a07c419913bfae2a896fbc29e8f269ee08c4d910.

Change-Id: I1cd35cea1594cdbeae800b9130bc6f885f238b28
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java
a07c419913bfae2a896fbc29e8f269ee08c4d910 18-Dec-2013 Vinit Deshapnde <vinitd@google.com> Move Wifi services to a new git project

Bug: 12175455
Change-Id: I1fa07e29c6a9aae38d9e334d519a9f2445d15613
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigStore.java