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

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

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

parents ac718ee6 c7df7d7d
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");