Merge "Fix bug checking incorrect AppOp" into sc-qpr1-dev

This commit is contained in:
TreeHugger Robot
2021-10-06 22:45:53 +00:00
committed by Android (Google) Code Review

View File

@@ -100,7 +100,7 @@ public abstract class LocationPermissionsHelper {
return false; return false;
} }
return mAppOps.checkOpNoThrow(permissionLevel, identity); return mAppOps.checkOpNoThrow(LocationPermissions.asAppOp(permissionLevel), identity);
} }
protected abstract boolean hasPermission(String permission, CallerIdentity callerIdentity); protected abstract boolean hasPermission(String permission, CallerIdentity callerIdentity);