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

Commit 0109c597 authored by Alex Buynytskyy's avatar Alex Buynytskyy Committed by Automerger Merge Worker
Browse files

Merge "Disallow system apps to be installed/updated as instant." into rvc-dev am: 35b1a471

parents d69e6bcc 35b1a471
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -13263,6 +13263,9 @@ public class PackageManagerService extends IPackageManager.Stub
                if (pkgSetting == null) {
                    return PackageManager.INSTALL_FAILED_INVALID_URI;
                }
                if (instantApp && (pkgSetting.isSystem() || isUpdatedSystemApp(pkgSetting))) {
                    return PackageManager.INSTALL_FAILED_INVALID_URI;
                }
                if (!canViewInstantApps(callingUid, UserHandle.getUserId(callingUid))) {
                    // only allow the existing package to be used if it's installed as a full
                    // application for at least one user