Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment