Merge "Do not fail early when one of the verification fails so that we don't delete the apk file while the other verification is still accessing it."

This commit is contained in:
TreeHugger Robot
2020-02-14 13:53:16 +00:00
committed by Android (Google) Code Review

View File

@@ -14707,8 +14707,7 @@ public class PackageManagerService extends IPackageManager.Stub
void handleVerificationFinished() {
if (!mVerificationCompleted) {
mVerificationCompleted = true;
if (mIntegrityVerificationCompleted || mRet != INSTALL_SUCCEEDED) {
mIntegrityVerificationCompleted = true;
if (mIntegrityVerificationCompleted) {
handleReturnCode();
}
// integrity verification still pending.
@@ -14718,8 +14717,7 @@ public class PackageManagerService extends IPackageManager.Stub
void handleIntegrityVerificationFinished() {
if (!mIntegrityVerificationCompleted) {
mIntegrityVerificationCompleted = true;
if (mVerificationCompleted || mRet != INSTALL_SUCCEEDED) {
mVerificationCompleted = true;
if (mVerificationCompleted) {
handleReturnCode();
}
// verifier still pending