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

Commit 061fda06 authored by Bruno Martins's avatar Bruno Martins Committed by android-build-merger
Browse files

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

am: a96bafd7

Change-Id: I6a3d410ab0caa0d9e1564e32b34a1f39cec8dcc3
parents 59bcfb47 a96bafd7
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -705,7 +705,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);
            }