Fix bug checking incorrect AppOp
Bug: 199684120 Test: manual Change-Id: I3afe345537f2fe8141e781886a4352dd1a472d1b
This commit is contained in:
@@ -100,7 +100,7 @@ public abstract class LocationPermissionsHelper {
|
||||
return false;
|
||||
}
|
||||
|
||||
return mAppOps.checkOpNoThrow(permissionLevel, identity);
|
||||
return mAppOps.checkOpNoThrow(LocationPermissions.asAppOp(permissionLevel), identity);
|
||||
}
|
||||
|
||||
protected abstract boolean hasPermission(String permission, CallerIdentity callerIdentity);
|
||||
|
||||
Reference in New Issue
Block a user