diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2019-08-03 06:21:08 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-08-03 06:21:08 +0000 |
commit | 43dbd2ea7c484a687b0019522e9b57715e3013a9 (patch) | |
tree | ad0386efcc1a0687aaf693cc2dacfa0b3a682dd9 /service | |
parent | b7de92f5a3cf0113ff4e892c7e536e5b58c2e4f8 (diff) | |
parent | 68c549b0814a3129c97ed9c67a005d18601dbe17 (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.java | 2 |
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(); |