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

Commit f7310615 authored by Jackal Guo's avatar Jackal Guo Committed by Android (Google) Code Review
Browse files

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

parents 80f96120 1dafc385
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);
        }