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

Commit 35b1a471 authored by Alex Buynytskyy's avatar Alex Buynytskyy Committed by Android (Google) Code Review
Browse files

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

parents 6faf0345 c091f7f5
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -13237,6 +13237,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