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

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

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

parents ae2aa397 d1b79a29
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -13803,7 +13803,7 @@ public class ActivityManagerService extends IActivityManager.Stub
                Slog.w(TAG, "registerReceiverWithFeature: no app for " + caller);
                return null;
            }
            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);