Merge "Fix bug checking incorrect AppOp" into sc-qpr1-dev am: 886d034fb2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15994552 Change-Id: I52bcd825e62f64b5084bbc68fb51998a3af7c3af
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