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

Commit d97cdded authored by Android Build Merger (Role)'s avatar Android Build Merger (Role) Committed by Android (Google) Code Review
Browse files

Merge "Merge "Allow the launcher to get all instant apps" into oc-mr1-dev am:...

Merge "Merge "Allow the launcher to get all instant apps" into oc-mr1-dev am: f8c35ac8 am: 381c7933"
parents d6a878ef 95184e15
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -8526,8 +8526,10 @@ public class PackageManagerService extends IPackageManager.Stub
        if (HIDE_EPHEMERAL_APIS || isEphemeralDisabled()) {
            return null;
        }
        if (!canViewInstantApps(Binder.getCallingUid(), userId)) {
            mContext.enforceCallingOrSelfPermission(Manifest.permission.ACCESS_INSTANT_APPS,
                    "getEphemeralApplications");
        }
        enforceCrossUserPermission(Binder.getCallingUid(), userId,
                true /* requireFullPermission */, false /* checkShell */,
                "getEphemeralApplications");
@@ -8612,9 +8614,10 @@ public class PackageManagerService extends IPackageManager.Stub
            return null;
        }
        if (!canViewInstantApps(Binder.getCallingUid(), userId)) {
            mContext.enforceCallingOrSelfPermission(Manifest.permission.ACCESS_INSTANT_APPS,
                    "getInstantAppIcon");
        }
        enforceCrossUserPermission(Binder.getCallingUid(), userId,
                true /* requireFullPermission */, false /* checkShell */,
                "getInstantAppIcon");