ff27ddf1923d9d4d4cfa8cc1a1ddb8748d0f2426 |
|
08-May-2017 |
Ningyuan Wang <nywang@google.com> |
Do not remove and add the same network This patch allows SupplicantStatIfaceHal to skip the "remove and add" process for supplicant network if there is already the same network saved in supplicant. This will be helpful when phone reconnects to a EAP-SIM network. In that case, EAP state parameters will not be cleared by removing network, so supplicant can take advantage of those parameters for fast-reauth. Bug: 37529849 Test: compile. unit test, integration test, manual test Change-Id: I4326e9f60f4f8a64674a52d1dbbcd34c5e709064
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigurationUtil.java
|
b40cf26e34638abeca1844a1b7de3ee1bcdb17da |
|
01-Sep-2016 |
Glen Kuhne <kuh@google.com> |
Http Proxy Profile & Device Owner permission check Adding permissions checks to ensure callers of WifiManager.SAVE_NETWORK and addOrUpdateNetwork() have either Profile Owner policy, Device Owner policy, or the System Uid. if they're setting the Http Proxy. While I was here: Fixed a bug where IpManager wasn't notified of an IP settings change when a WifiConfiguration's STATIC proxy was modified. Bug: 14669153 Bug: 32584568 Test: extended WifiConfigManagerTest Change-Id: I5bc3b1bff6628ffeea7bf6ecd0f6f25a671ab682
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigurationUtil.java
|
6259b630ddb59b642729a2d2113d81ed8e33a0e3 |
|
12-Sep-2016 |
Roshan Pius <rpius@google.com> |
WifiScanningService: Change hidden/PNO scan params Since networks are no longer configured in wpa_supplicant, network IDs/priorities being passed around for hidden/PNO scanning does not make any sense. Changing the wifi scanner interface to remove all network ID/priority references. For hidden networks, we'll now send a sorted array of <ssid> for each network (similar to PNO). This should help wificond prioritize networks when the size exceed the max supported by driver. Also, since wpa_supplicant already supports sending a list of ssids for scanning, plumb it all the way through. NOTE: 1. The backend for all these scans will eventually be replaced by wificond. 2. Hidden networks are no longer considered in bgscan requests. This was anyway not workin in HalWifiScanner's gscan backed bgscan. BUG: 29503772 TEST: Existing unit tests. TEST: Successfully connected to a hidden network on device Change-Id: Ie7783353d2eb87c2fd7b9a10f44e3e5df4cbc218
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigurationUtil.java
|
3bc487aa49deecbc358ee819e0dd4b2534412281 |
|
30-Aug-2016 |
Roshan Pius <rpius@google.com> |
Integrate new config manager Misc changes in other modules to integrate the new WifiConfigManager class. BUG: 31009287 TEST: Unit tests TEST: Integrated with WSM and verified wifi connectivity. Change-Id: I389ff314160ee6288c25c578c62c2a4102bdb88e
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigurationUtil.java
|
6d9904fdafe96b09babe5b2ec2b90557e75ce94c |
|
17-Aug-2016 |
Roshan Pius <rpius@google.com> |
WifiConfigManagerNew: Check UID belongs to foreground user Add a utility method to check if the provided UID belongs to either the current foreground user or if the SysUI. This is used to check the UID of the app in all the methods invoked from public WifiManager API's. This utility method is used to validate the following methods: 1. addOrUpdateNetwork 2. removeNetwork 3. enableNetwork 4. disableNetwork 5. checkAndUpdateLastConnectUid While there, a. Add the missing |uid| parameter in |removeNetwork| & |removeNetworkInternal|. We need to check both if the the uid belongs to the current user and that the uid has enough permission to delete the network. b. Setup the user profiles for the default user in the setup for each test. BUG: 30891063 Change-Id: Ia03490c9dce7722b8d046a324004448e911257b6 TEST: Added a Unit test.
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigurationUtil.java
|
fb93fa366b9e705ff014bec41dbd1d709e29e44c |
|
25-Jul-2016 |
Roshan Pius <rpius@google.com> |
WifiConfigManagerNew: PNO network list generation Migrate over the PNO network list generation logic from old WifiConfigManager. We're not going to have 2 separate sorting logic for connected/disconnected PNO now. The general sorting algo is as follows: Place the enabled networks first, followed by temporarily disabled ones, followed by permanently disabled ones. Among the networks with the same status, sort them according to the number of times the network was associated. If they'r still the same, prefer networks that were last seen in the scan results. Also, add methods to set/clear the |ScanResultCandidate| parameter for the provided network via QNS. BUG: 30156343 TEST: Unit tests Change-Id: Ic398feee01a99141a545b363801873d52b36f221
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigurationUtil.java
|
2d327a58a4d39c7b1b700bf06d2fbbe7fb68c7c4 |
|
16-Jul-2016 |
Roshan Pius <rpius@google.com> |
WifiConfigManagerNew: Unit tests for |hasEverConnected| Changes in the CL: 1. Migrated the existing unit test scenarios for |hasEverConnected| flag setting to WifiConfigManagerNew. 2. Moved the enterprise config change detection tests to |WifiConfigurationUtilTest|. BUG: 30156343 Change-Id: I1fed945c4d5b0e65841718bfa38ca50610a90393 TEST: Unit tests
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigurationUtil.java
|
a03a9976eb3186a25fa8341706ef807fe6ac1afd |
|
18-Jul-2016 |
Roshan Pius <rpius@google.com> |
WifiConfigManagerNew: Set |hasEverConnected| flag 1. Migrate the existing |wasCredential| change method in |WifiConfigManager| to |WifiConfigurationUtil|. 2. Integrate this into the |WifiConfigManagerNew|. 3. Move/Refactor the |hasIpChanged| & |hasProxyChanged| helper methods to |WifiConfigurationUtil| as well. While there, Change couple of occurences of {@code true} to |true| in javadocs to be consistent across the class. BUG: 30156343 Change-Id: If22de02b6ea6f5a9b0e718c9d3dbd9693d9db599 TEST: Unit tests in the next CL.
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigurationUtil.java
|
22b5eca14a99c2bbeeae8361c665923ce71e1603 |
|
28-Jun-2016 |
Roshan Pius <rpius@google.com> |
WifiConfigManagerNew: Scan results to config lookup Add methods to perform: 1. Scan results to saved network lookup. 2. Cache the scan results for each saved network. Also, need to maintain this list so that it doesn't grow uncontrolled. 3. Rename ScanDetailUtil to ScanResultUtil to accomodate scan result helper classes for encryption type lookup. 4. Change ScanDetailCache to always trim the cache to the provided fixed size. While there, Fix couple of checkstyle errors in the test. BUG:29822168 TEST: Unit tests Change-Id: I281ddcd606d73b8d04d6c9b33b9fc2d4f408f173
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConfigurationUtil.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/WifiConfigurationUtil.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/WifiConfigurationUtil.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/WifiConfigurationUtil.java
|