diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2018-06-08 03:00:26 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2018-06-08 03:00:26 +0000 |
commit | 97995da6e1d40a053402cc120944e3738a18d1a0 (patch) | |
tree | 4d18c745e2e534a048cfcf63065cf6a1c6aa69b2 | |
parent | 0f5f09844d845bfa62db113fd85b0d5f375773c0 (diff) | |
parent | 971dbcd63373b292d2a415196fd89bcca4e60567 (diff) | |
download | base-97995da6e1d40a053402cc120944e3738a18d1a0.tar.gz |
Merge "Revert "Allow instant apps to send broadcasts to themselves"" into pi-dev
-rw-r--r-- | services/core/java/com/android/server/am/ActivityManagerService.java | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/services/core/java/com/android/server/am/ActivityManagerService.java b/services/core/java/com/android/server/am/ActivityManagerService.java index 6d81163a1628..692d6063fc02 100644 --- a/services/core/java/com/android/server/am/ActivityManagerService.java +++ b/services/core/java/com/android/server/am/ActivityManagerService.java @@ -21036,15 +21036,9 @@ public class ActivityManagerService extends IActivityManager.Stub } private List<ResolveInfo> collectReceiverComponents(Intent intent, String resolvedType, - int callingUid, boolean callerInstantApp, int[] users) { + int callingUid, int[] users) { // TODO: come back and remove this assumption to triage all broadcasts int pmFlags = STOCK_PM_FLAGS | MATCH_DEBUG_TRIAGED_MISSING; - // Instant apps should be able to send broadcasts to themselves, so we would - // match instant receivers and later the broadcast queue would enforce that - // the broadcast cannot be sent to a receiver outside the instant UID. - if (callerInstantApp) { - pmFlags |= PackageManager.MATCH_INSTANT; - } List<ResolveInfo> receivers = null; try { @@ -21673,8 +21667,7 @@ public class ActivityManagerService extends IActivityManager.Stub // Need to resolve the intent to interested receivers... if ((intent.getFlags()&Intent.FLAG_RECEIVER_REGISTERED_ONLY) == 0) { - receivers = collectReceiverComponents(intent, resolvedType, callingUid, - callerInstantApp, users); + receivers = collectReceiverComponents(intent, resolvedType, callingUid, users); } if (intent.getComponent() == null) { if (userId == UserHandle.USER_ALL && callingUid == SHELL_UID) { |