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

Commit f5976be9 authored by Winson Chung's avatar Winson Chung Committed by Android (Google) Code Review
Browse files

Merge "Allow the system recents component to fetch info for user and profiles" into pi-dev

parents c4b6bd34 dc0dd242
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4789,7 +4789,8 @@ public class PackageManagerService extends IPackageManager.Stub
            // require the permission to be held; the calling uid and given user id referring
            // to the same user is not sufficient
            mPermissionManager.enforceCrossUserPermission(
                    Binder.getCallingUid(), userId, false, false, true,
                    Binder.getCallingUid(), userId, false, false,
                    !isRecentsAccessingChildProfiles(Binder.getCallingUid(), userId),
                    "MATCH_ANY_USER flag requires INTERACT_ACROSS_USERS permission at "
                    + Debug.getCallers(5));
        } else if ((flags & PackageManager.MATCH_UNINSTALLED_PACKAGES) != 0 && isCallerSystemUser