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

Commit 1c060ac5 authored by Philip P. Moltmann's avatar Philip P. Moltmann Committed by Android (Google) Code Review
Browse files

Merge "AppOpsService: Watch op mode changes when an AppOp restriction dies"

parents c88fcb41 b420a64e
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -807,7 +807,12 @@ public class AppOpsService extends IAppOpsService.Stub {
        public void binderDied() {
            synchronized (AppOpsService.this) {
                for (int i=mStartedOps.size()-1; i>=0; i--) {
                    finishOperationLocked(mStartedOps.get(i), /*finishNested*/ true);
                    final Op op = mStartedOps.get(i);
                    finishOperationLocked(op, /*finishNested*/ true);
                    if (op.startNesting <= 0) {
                        scheduleOpActiveChangedIfNeededLocked(op.op, op.uidState.uid,
                                op.packageName, false);
                    }
                }
                mClients.remove(mAppToken);
            }