summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2019-08-03 06:21:08 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2019-08-03 06:21:08 +0000
commit43dbd2ea7c484a687b0019522e9b57715e3013a9 (patch)
treead0386efcc1a0687aaf693cc2dacfa0b3a682dd9 /service
parentb7de92f5a3cf0113ff4e892c7e536e5b58c2e4f8 (diff)
parent68c549b0814a3129c97ed9c67a005d18601dbe17 (diff)
Merge "WifiService: Allow DO/PO apps to toggle wifi" into qt-qpr1-dev
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/WifiServiceImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/WifiServiceImpl.java b/service/java/com/android/server/wifi/WifiServiceImpl.java
index b25a84593..66b9b276a 100644
--- a/service/java/com/android/server/wifi/WifiServiceImpl.java
+++ b/service/java/com/android/server/wifi/WifiServiceImpl.java
@@ -874,7 +874,7 @@ public class WifiServiceImpl extends BaseWifiService {
return false;
}
boolean isPrivileged = isPrivileged(Binder.getCallingPid(), Binder.getCallingUid());
- if (!isPrivileged
+ if (!isPrivileged && !isDeviceOrProfileOwner(Binder.getCallingUid())
&& !mWifiPermissionsUtil.isTargetSdkLessThan(packageName, Build.VERSION_CODES.Q)) {
mLog.info("setWifiEnabled not allowed for uid=%")
.c(Binder.getCallingUid()).flush();