summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2022-10-14 22:32:11 +0200
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-10-14 22:32:11 +0200
commit31d74fa4ea2227d19e52336c92e775555f3140cc (patch)
treec3c04ec970b0041511ade3733ecf7e7acbaa3b23
parentMerge tm-qpr-dev-plus-aosp-without-vendor@9129937 (diff)
parentMerge "Only check for powerwash in A/B ota packages" (diff)
downloadandroid_bootable_recovery-31d74fa4ea2227d19e52336c92e775555f3140cc.tar
android_bootable_recovery-31d74fa4ea2227d19e52336c92e775555f3140cc.tar.gz
android_bootable_recovery-31d74fa4ea2227d19e52336c92e775555f3140cc.tar.bz2
android_bootable_recovery-31d74fa4ea2227d19e52336c92e775555f3140cc.tar.lz
android_bootable_recovery-31d74fa4ea2227d19e52336c92e775555f3140cc.tar.xz
android_bootable_recovery-31d74fa4ea2227d19e52336c92e775555f3140cc.tar.zst
android_bootable_recovery-31d74fa4ea2227d19e52336c92e775555f3140cc.zip
-rw-r--r--install/install.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/install/install.cpp b/install/install.cpp
index 83f3cad6b..044856b6b 100644
--- a/install/install.cpp
+++ b/install/install.cpp
@@ -551,7 +551,9 @@ static InstallResult TryUpdateBinary(Package* package, bool* wipe_cache,
} else {
LOG(FATAL) << "Invalid status code " << status;
}
- PerformPowerwashIfRequired(zip, device);
+ if (package_is_ab) {
+ PerformPowerwashIfRequired(zip, device);
+ }
return INSTALL_SUCCESS;
}