summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2019-03-19 07:19:58 +0100
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-03-19 07:19:58 +0100
commitf5b715b402565c7986ab9a5919ee56d2b6dd0097 (patch)
tree28b626d8a65064cd0f427a340b446485c70b6d7f
parentSnap for 5381581 from b44a9463808dc8523aa1ef7ba6fe625d578ba191 to qt-release (diff)
parentMerge "Skip calling verify_package_compatibility when resuming." am: 98beb6414b am: c4148b529a (diff)
downloadandroid_bootable_recovery-f5b715b402565c7986ab9a5919ee56d2b6dd0097.tar
android_bootable_recovery-f5b715b402565c7986ab9a5919ee56d2b6dd0097.tar.gz
android_bootable_recovery-f5b715b402565c7986ab9a5919ee56d2b6dd0097.tar.bz2
android_bootable_recovery-f5b715b402565c7986ab9a5919ee56d2b6dd0097.tar.lz
android_bootable_recovery-f5b715b402565c7986ab9a5919ee56d2b6dd0097.tar.xz
android_bootable_recovery-f5b715b402565c7986ab9a5919ee56d2b6dd0097.tar.zst
android_bootable_recovery-f5b715b402565c7986ab9a5919ee56d2b6dd0097.zip
-rw-r--r--install.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/install.cpp b/install.cpp
index 05f9af7a4..dbc815d47 100644
--- a/install.cpp
+++ b/install.cpp
@@ -606,8 +606,8 @@ static int really_install_package(const std::string& path, bool* wipe_cache, boo
return INSTALL_CORRUPT;
}
- // Additionally verify the compatibility of the package.
- if (!verify_package_compatibility(zip)) {
+ // Additionally verify the compatibility of the package if it's a fresh install.
+ if (retry_count == 0 && !verify_package_compatibility(zip)) {
log_buffer->push_back(android::base::StringPrintf("error: %d", kPackageCompatibilityFailure));
return INSTALL_CORRUPT;
}