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

Commit f6e08db0 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Always check eval-ed mode, not raw mode"

parents 96892f43 721c968a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2335,7 +2335,7 @@ public class AppOpsService extends IAppOpsService.Stub {
            } else {
                final Op switchOp = switchCode != code ? getOpLocked(ops, switchCode, true) : op;
                final int mode = switchOp.evalMode();
                if (switchOp.mode != AppOpsManager.MODE_ALLOWED) {
                if (mode != AppOpsManager.MODE_ALLOWED) {
                    if (DEBUG) Slog.d(TAG, "noteOperation: reject #" + mode + " for code "
                            + switchCode + " (" + code + ") uid " + uid + " package "
                            + packageName);