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

Commit 469ec218 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: c61ee9f4 am: ed78735d

parents cd3ccabc ed78735d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -559,6 +559,9 @@ final class InstallPackageHelper {
                if (pkgSetting == null) {
                    return PackageManager.INSTALL_FAILED_INVALID_URI;
                }
                if (instantApp && (pkgSetting.isSystem() || pkgSetting.isUpdatedSystemApp())) {
                    return PackageManager.INSTALL_FAILED_INVALID_URI;
                }
                if (!snapshot.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