Skip to content

Commit a3fb2ff

Browse files
committed
Revert "Allow core uids to register receiver as "android"."
This reverts commit a3c5baa.
1 parent a3c5baa commit a3fb2ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/core/java/com/android/server/am/BroadcastController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ private Intent registerReceiverWithFeatureTraced(IApplicationThread caller,
315315
Slog.w(TAG, "registerReceiverWithFeature: no app for " + caller);
316316
return null;
317317
}
318-
if (!UserHandle.isCore(callerApp.info.uid)
318+
if (callerApp.info.uid != SYSTEM_UID
319319
&& !callerApp.getPkgList().containsKey(callerPackage)) {
320320
throw new SecurityException("Given caller package " + callerPackage
321321
+ " is not running in process " + callerApp);

0 commit comments

Comments
 (0)