Revert "Only invoke for callbacks watching the given package"

Revert submission 21960657

Reason for revert: Testing if this change is a possible cause for b/275108108

Reverted changes: /q/submissionid:21960657

Change-Id: Ib3048b3df85fc173cf88154d454619e8b0189b1c
This commit is contained in:
Nate Myren
2023-03-24 23:04:00 +00:00
committed by Android (Google) Code Review
parent 42d533d317
commit f93e55cfa7

View File

@@ -1856,10 +1856,6 @@ public class AppOpsService extends IAppOpsService.Stub {
for (int i = 0; i < callbackCount; i++) {
OnOpModeChangedListener callback = callbacks.valueAt(i);
if (!callback.isWatchingUid(uid)) {
continue;
}
if (onlyForeground && (callback.getFlags()
& WATCH_FOREGROUND_CHANGES) == 0) {
continue;