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

This commit is contained in:
Treehugger Robot
2020-04-16 04:33:28 +00:00
committed by Gerrit Code Review

View File

@@ -1789,7 +1789,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) {