Fix bug checking incorrect AppOp

Bug: 199684120
Test: manual
Change-Id: I3afe345537f2fe8141e781886a4352dd1a472d1b
This commit is contained in:
Soonil Nagarkar
2021-10-06 10:09:39 -07:00
parent f9883800a3
commit 5b26a98aba

View File

@@ -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);