Loading services/core/java/com/android/server/pm/InstallPackageHelper.java +3 −0 Original line number Diff line number Diff line Loading @@ -668,6 +668,9 @@ final class InstallPackageHelper { if (pkgSetting == null || pkgSetting.getPkg() == null) { return Pair.create(PackageManager.INSTALL_FAILED_INVALID_URI, intentSender); } if (instantApp && (pkgSetting.isSystem() || pkgSetting.isUpdatedSystemApp())) { return Pair.create(PackageManager.INSTALL_FAILED_INVALID_URI, intentSender); } 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 Loading Loading
services/core/java/com/android/server/pm/InstallPackageHelper.java +3 −0 Original line number Diff line number Diff line Loading @@ -668,6 +668,9 @@ final class InstallPackageHelper { if (pkgSetting == null || pkgSetting.getPkg() == null) { return Pair.create(PackageManager.INSTALL_FAILED_INVALID_URI, intentSender); } if (instantApp && (pkgSetting.isSystem() || pkgSetting.isUpdatedSystemApp())) { return Pair.create(PackageManager.INSTALL_FAILED_INVALID_URI, intentSender); } 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 Loading