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

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

Disallow system apps to be installed/updated as instant. am: 0d0f185c

parents 7140b51e 0d0f185c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -16296,6 +16296,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