diff --git a/services/core/java/com/android/server/AppOpsService.java b/services/core/java/com/android/server/AppOpsService.java index c38a89e30807e..b5a72fafb0642 100644 --- a/services/core/java/com/android/server/AppOpsService.java +++ b/services/core/java/com/android/server/AppOpsService.java @@ -979,6 +979,7 @@ public class AppOpsService extends IAppOpsService.Stub { usageRestrictions.put(usage, r); } } + notifyWatchersOfChange(code); } @Override @@ -2280,6 +2281,10 @@ public class AppOpsService extends IAppOpsService.Stub { pruneUserRestrictionsForToken(token, userHandle); } + notifyWatchersOfChange(code); + } + + private void notifyWatchersOfChange(int code) { final ArrayList clonedCallbacks; synchronized (this) { ArrayList callbacks = mOpModeWatchers.get(code);