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

Commit ffe032c1 authored by Mayank Dandwani's avatar Mayank Dandwani Committed by Android (Google) Code Review
Browse files

Merge "Don't allow non-system uids to use "android" as calling package." into udc-dev

parents 1744dc9a 3ae94b0d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -13804,8 +13804,7 @@ public class ActivityManagerService extends IActivityManager.Stub
                return null;
            }
            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);
            }