diff options
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/util/WifiPermissionsUtil.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/service/java/com/android/server/wifi/util/WifiPermissionsUtil.java b/service/java/com/android/server/wifi/util/WifiPermissionsUtil.java index d767deb6e..5207bbbc4 100644 --- a/service/java/com/android/server/wifi/util/WifiPermissionsUtil.java +++ b/service/java/com/android/server/wifi/util/WifiPermissionsUtil.java @@ -367,7 +367,8 @@ public class WifiPermissionsUtil { } private boolean noteAppOpAllowed(String op, String pkgName, int uid) { - return mAppOps.noteOp(op, uid, pkgName, null) == AppOpsManager.MODE_ALLOWED; + // TODO moltmann: Set correct featureId + return mAppOps.noteOp(op, uid, pkgName, null, null) == AppOpsManager.MODE_ALLOWED; } private boolean checkAppOpAllowed(String op, String pkgName, int uid) { @@ -462,7 +463,7 @@ public class WifiPermissionsUtil { */ public boolean checkSystemAlertWindowPermission(int callingUid, String callingPackage) { final int mode = mAppOps.noteOp(AppOpsManager.OPSTR_SYSTEM_ALERT_WINDOW, callingUid, - callingPackage, null); + callingPackage, null, null); if (mode == AppOpsManager.MODE_DEFAULT) { return mWifiPermissionsWrapper.getUidPermission( Manifest.permission.SYSTEM_ALERT_WINDOW, callingUid) |