summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Zimmermann <tim@linux4.de>2022-10-14 19:43:01 +0200
committerTim Zimmermann <tim@linux4.de>2022-10-14 20:06:41 +0200
commit78e524e418eb06273dbf211f7a840ce2a89d635c (patch)
tree485fe91fe78460b67fe06fc9d4b7c64d759be926
parentMerge "Fix doing silent update,power cut/restoration,screen is turned on" (diff)
downloadandroid_bootable_recovery-78e524e418eb06273dbf211f7a840ce2a89d635c.tar
android_bootable_recovery-78e524e418eb06273dbf211f7a840ce2a89d635c.tar.gz
android_bootable_recovery-78e524e418eb06273dbf211f7a840ce2a89d635c.tar.bz2
android_bootable_recovery-78e524e418eb06273dbf211f7a840ce2a89d635c.tar.lz
android_bootable_recovery-78e524e418eb06273dbf211f7a840ce2a89d635c.tar.xz
android_bootable_recovery-78e524e418eb06273dbf211f7a840ce2a89d635c.tar.zst
android_bootable_recovery-78e524e418eb06273dbf211f7a840ce2a89d635c.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;
}