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

Commit 551caf64 authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android (Google) Code Review
Browse files

Merge "Further fix on issue #16013164" into lmp-dev

parents e39e5bff b64afe17
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -371,11 +371,10 @@ public class AppOpsService extends IAppOpsService.Stub {

    @Override
    public void setMode(int code, int uid, String packageName, int mode) {
        if (Binder.getCallingPid() == Process.myPid()) {
            return;
        }
        if (Binder.getCallingPid() != Process.myPid()) {
            mContext.enforcePermission(android.Manifest.permission.UPDATE_APP_OPS_STATS,
                    Binder.getCallingPid(), Binder.getCallingUid(), null);
        }
        verifyIncomingOp(code);
        ArrayList<Callback> repCbs = null;
        code = AppOpsManager.opToSwitch(code);