Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4cf0958a authored by Nate Myren's avatar Nate Myren
Browse files

Allow self-blaming in noteProxyOp and startProxyOp

Test: manual
Bug: 162547999
Change-Id: I5428bc83c10236a4dddc166c680ef6cb832da47d
parent 88319e97
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -3065,7 +3065,7 @@ public class AppOpsService extends IAppOpsService.Stub {
        final int proxyMode = noteOperationUnchecked(code, proxyUid, resolveProxyPackageName,
                proxyAttributionTag, Process.INVALID_UID, null, null, proxyFlags,
                !isProxyTrusted, "proxy " + message, shouldCollectMessage);
        if (proxyMode != AppOpsManager.MODE_ALLOWED || Binder.getCallingUid() == proxiedUid) {
        if (proxyMode != AppOpsManager.MODE_ALLOWED) {
            return proxyMode;
        }

@@ -3550,8 +3550,7 @@ public class AppOpsService extends IAppOpsService.Stub {
                resolvedProxyPackageName, proxyAttributionTag, Process.INVALID_UID, null, null,
                proxyFlags, startIfModeDefault, !isProxyTrusted, "proxy " + message,
                shouldCollectMessage, false);
        if (!shouldStartForMode(proxyMode, startIfModeDefault)
                || Binder.getCallingUid() == proxiedUid) {
        if (!shouldStartForMode(proxyMode, startIfModeDefault)) {
            return proxyMode;
        }