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

Commit f917eaec authored by Mark Kim's avatar Mark Kim Committed by Android (Google) Code Review
Browse files

Merge "Fix the way caller is verified to support different profiles (personal,...

Merge "Fix the way caller is verified to support different profiles (personal, working, etc.) during app (un-)archiving" into main
parents daa367eb bad878c2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -165,7 +165,7 @@ public class PackageArchiver {
        Computer snapshot = mPm.snapshotComputer();
        int userId = userHandle.getIdentifier();
        int binderUid = Binder.getCallingUid();
        if (!PackageManagerServiceUtils.isRootOrShell(binderUid)) {
        if (!PackageManagerServiceUtils.isSystemOrRootOrShell(binderUid)) {
            verifyCaller(snapshot.getPackageUid(callerPackageName, 0, userId), binderUid);
        }
        snapshot.enforceCrossUserPermission(binderUid, userId, true, true,