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

This commit is contained in:
Treehugger Robot
2019-09-24 20:22:30 +00:00
committed by Gerrit Code Review

View File

@@ -705,7 +705,12 @@ public class AppOpsService extends IAppOpsService.Stub {
public void binderDied() { public void binderDied() {
synchronized (AppOpsService.this) { synchronized (AppOpsService.this) {
for (int i=mStartedOps.size()-1; i>=0; i--) { 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); mClients.remove(mAppToken);
} }