Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea34308e authored by Mayank Dandwani's avatar Mayank Dandwani Committed by Automerger Merge Worker
Browse files

Allow core uids to register receiver as "android". am: e690fb63

parents 7a841c18 e690fb63
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -13154,7 +13154,7 @@ public class ActivityManagerService extends IActivityManager.Stub
                            + " (pid=" + Binder.getCallingPid()
                            + ") when registering receiver " + receiver);
                }
                if (callerApp.info.uid != SYSTEM_UID
                if (!UserHandle.isCore(callerApp.info.uid)
                        && !callerApp.getPkgList().containsKey(callerPackage)) {
                    throw new SecurityException("Given caller package " + callerPackage
                            + " is not running in process " + callerApp);