summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxinhe <xinhe@google.com>2015-10-16 11:08:15 -0700
committerxinhe <xinhe@google.com>2015-10-19 11:42:55 -0700
commita15a2ee69156fa6fff09c0dd9b8182cb8fafde1c (patch)
treecd7431778028bb857b0e21a224682e2d4a98ae28
parent4436f1f214d4831e4b3615b3f4fc96abf3ffa20a (diff)
Security Vulnerability in android::onPnoNetworkFound [DO NOT MERGE]
Ask for system permission to enable ePNO b/24872703 Change-Id: I8a7aafdb3f4074089777ad6b1402d4bf4954e81a
-rw-r--r--service/java/com/android/server/wifi/WifiConfigStore.java4
-rw-r--r--service/java/com/android/server/wifi/WifiServiceImpl.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/service/java/com/android/server/wifi/WifiConfigStore.java b/service/java/com/android/server/wifi/WifiConfigStore.java
index 652899e80..02ddd0005 100644
--- a/service/java/com/android/server/wifi/WifiConfigStore.java
+++ b/service/java/com/android/server/wifi/WifiConfigStore.java
@@ -392,8 +392,8 @@ public class WifiConfigStore extends IpConfigStore {
public static final int maxNumScanCacheEntries = 128;
- public final AtomicBoolean enableHalBasedPno = new AtomicBoolean(true);
- public final AtomicBoolean enableSsidWhitelist = new AtomicBoolean(true);
+ public final AtomicBoolean enableHalBasedPno = new AtomicBoolean(false);
+ public final AtomicBoolean enableSsidWhitelist = new AtomicBoolean(false);
public final AtomicBoolean enableAutoJoinWhenAssociated = new AtomicBoolean(true);
public final AtomicBoolean enableFullBandScanWhenAssociated = new AtomicBoolean(true);
public final AtomicBoolean enableChipWakeUpWhenAssociated = new AtomicBoolean(true);
diff --git a/service/java/com/android/server/wifi/WifiServiceImpl.java b/service/java/com/android/server/wifi/WifiServiceImpl.java
index 46058ad2c..ca85fbc50 100644
--- a/service/java/com/android/server/wifi/WifiServiceImpl.java
+++ b/service/java/com/android/server/wifi/WifiServiceImpl.java
@@ -1913,7 +1913,7 @@ public final class WifiServiceImpl extends IWifiManager.Stub {
return mWifiStateMachine.getEnableAutoJoinWhenAssociated();
}
public void setHalBasedAutojoinOffload(int enabled) {
- enforceChangePermission();
+ enforceConnectivityInternalPermission();
mWifiStateMachine.setHalBasedAutojoinOffload(enabled);
}