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

Commit 29df0fe6 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add missing check for recents component caller"

parents 685f7766 d9866e80
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -4288,8 +4288,12 @@ public class PackageManagerService extends IPackageManager.Stub
            int filterCallingUid, int userId) {
        if (!sUserManager.exists(userId)) return null;
        flags = updateFlagsForApplication(flags, userId, packageName);
        if (!isRecentsAccessingChildProfiles(Binder.getCallingUid(), userId)) {
            mPermissionManager.enforceCrossUserPermission(Binder.getCallingUid(), userId,
                false /* requireFullPermission */, false /* checkShell */, "get application info");
                    false /* requireFullPermission */, false /* checkShell */,
                    "get application info");
        }
        // writer
        synchronized (mPackages) {