Merge "Add system property to allow testing OTA with the same build image"

This commit is contained in:
TreeHugger Robot
2017-10-10 22:51:47 +00:00
committed by Android (Google) Code Review

View File

@@ -3365,7 +3365,9 @@ public class PackageManagerService extends IPackageManager.Stub
@Override
public boolean isUpgrade() {
// allow instant applications
return mIsUpgrade;
// The system property allows testing ota flow when upgraded to the same image.
return mIsUpgrade || SystemProperties.getBoolean(
"persist.pm.mock-upgrade", false /* default */);
}
private @Nullable String getRequiredButNotReallyRequiredVerifierLPr() {