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

Commit 6129bd46 authored by Jackal Guo's avatar Jackal Guo Committed by Automerger Merge Worker
Browse files

Merge "Enfore cross user permission to getPackagesForUid" into sc-dev am: f7310615

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13432605

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I82ff165fd877fbe0a6f7aa8da10d44537d221dde
parents 943a8fd9 f7310615
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3622,6 +3622,8 @@ public class PackageManagerService extends IPackageManager.Stub
            final boolean isCallerInstantApp = getInstantAppPackageName(callingUid) != null;
            final int userId = UserHandle.getUserId(uid);
            final int appId = UserHandle.getAppId(uid);
            enforceCrossUserPermission(callingUid, userId,
                    /* requireFullPermission */ false, /* checkShell */ false, "getPackagesForUid");
            return getPackagesForUidInternalBody(callingUid, userId, appId, isCallerInstantApp);
        }