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

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

Merge "Don't allow non-system uids to use "android" as calling package." into tm-dev am: 04edc239

parents 521022e0 04edc239
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -13155,8 +13155,7 @@ public class ActivityManagerService extends IActivityManager.Stub
                            + ") when registering receiver " + receiver);
                }
                if (callerApp.info.uid != SYSTEM_UID
                        && !callerApp.getPkgList().containsKey(callerPackage)
                        && !"android".equals(callerPackage)) {
                        && !callerApp.getPkgList().containsKey(callerPackage)) {
                    throw new SecurityException("Given caller package " + callerPackage
                            + " is not running in process " + callerApp);
                }