summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2020-03-11 11:05:37 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-03-11 11:05:37 +0000
commitd8e89c7580cc1b3fe4fe45f36246f4a8c69af30d (patch)
treef01cd567f0fc4be5c9a3b8f106336fe6011bbabb /service
parent7f39a020bc43910aedd6559fb2117494ca5a5e24 (diff)
parent661ab8b4e7ceee019fc029fc542c2d2e7c41e821 (diff)
Merge "wifi: Check network setting permission for getSoftApConfiguration" into rvc-dev
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/WifiServiceImpl.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/service/java/com/android/server/wifi/WifiServiceImpl.java b/service/java/com/android/server/wifi/WifiServiceImpl.java
index d8d7672a9..e009f7257 100644
--- a/service/java/com/android/server/wifi/WifiServiceImpl.java
+++ b/service/java/com/android/server/wifi/WifiServiceImpl.java
@@ -1841,15 +1841,8 @@ public class WifiServiceImpl extends BaseWifiService {
@NonNull
@Override
public SoftApConfiguration getSoftApConfiguration() {
- enforceAccessPermission();
+ enforceNetworkSettingsPermission();
int uid = Binder.getCallingUid();
- // only allow Settings UI to get the saved SoftApConfig
- if (!mWifiPermissionsUtil.checkConfigOverridePermission(uid)) {
- // random apps should not be allowed to read the user specified config
- throw new SecurityException("App not allowed to read or update stored WiFi Ap config "
- + "(uid = " + uid + ")");
- }
-
if (mVerboseLoggingEnabled) {
mLog.info("getSoftApConfiguration uid=%").c(uid).flush();
}