Merge "Allow non-system server code to AppOpsManager.checkOp and NoteOp" into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-04-16 02:13:44 +00:00
committed by Android (Google) Code Review

View File

@@ -2830,7 +2830,6 @@ public class AppOpsService extends IAppOpsService.Stub {
private int checkOperationImpl(int code, int uid, String packageName, private int checkOperationImpl(int code, int uid, String packageName,
boolean raw) { boolean raw) {
verifyIncomingUid(uid);
verifyIncomingOp(code); verifyIncomingOp(code);
String resolvedPackageName = resolvePackageName(uid, packageName); String resolvedPackageName = resolvePackageName(uid, packageName);
if (resolvedPackageName == null) { if (resolvedPackageName == null) {