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

Commit 381c7933 authored by Todd Kennedy's avatar Todd Kennedy Committed by android-build-merger
Browse files

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

am: f8c35ac8

Change-Id: I0e170e7111e82116e60f5620e467d7e0378d8d50
parents 4857792f f8c35ac8
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");