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

Commit 59428aa4 authored by Sanjana Sunil's avatar Sanjana Sunil Committed by Android (Google) Code Review
Browse files

Merge "Include SDK sandbox process in package uid check" into main

parents 76fd35ec 1e41cea3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2027,7 +2027,9 @@ public class WindowManagerService extends IWindowManager.Stub
            // Otherwise, look at the package
            final ApplicationInfo appInfo = mPmInternal.getApplicationInfo(
                    packageName, 0 /* flags */, SYSTEM_UID, UserHandle.getUserId(callingUid));
            if (appInfo == null || appInfo.uid != callingUid) {
            if (appInfo == null
                    || !mPmInternal.isSameApp(
                            packageName, callingUid, UserHandle.getUserId(callingUid))) {
                throw new SecurityException("Package " + packageName + " not in UID "
                        + callingUid);
            }