Merge "Remove downgrade check for targetSandboxLevel" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
d55f0108c5
@@ -17260,17 +17260,6 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
+ "Persistent apps are not updateable.");
|
||||
return;
|
||||
}
|
||||
// Prevent apps from downgrading their targetSandbox.
|
||||
final int oldTargetSandbox = oldPackage.applicationInfo.targetSandboxVersion;
|
||||
final int newTargetSandbox = pkg.applicationInfo.targetSandboxVersion;
|
||||
if (oldTargetSandbox == 2 && newTargetSandbox != 2) {
|
||||
res.setError(PackageManager.INSTALL_FAILED_SANDBOX_VERSION_DOWNGRADE,
|
||||
"Package " + pkg.packageName + " new target sandbox "
|
||||
+ newTargetSandbox + " is incompatible with the previous value of"
|
||||
+ oldTargetSandbox + ".");
|
||||
return;
|
||||
}
|
||||
|
||||
// Prevent installing of child packages
|
||||
if (oldPackage.parentPackage != null) {
|
||||
res.setError(PackageManager.INSTALL_PARSE_FAILED_BAD_PACKAGE_NAME,
|
||||
|
||||
Reference in New Issue
Block a user