summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2022-10-14 22:04:25 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2022-10-14 22:04:25 +0200
commit56bca1f2d5602cbd86abae5c0a22e3f2b6317d74 (patch)
tree485fe91fe78460b67fe06fc9d4b7c64d759be926 /install
parentMerge "Fix doing silent update,power cut/restoration,screen is turned on" (diff)
parentOnly check for powerwash in A/B ota packages (diff)
downloadandroid_bootable_recovery-56bca1f2d5602cbd86abae5c0a22e3f2b6317d74.tar
android_bootable_recovery-56bca1f2d5602cbd86abae5c0a22e3f2b6317d74.tar.gz
android_bootable_recovery-56bca1f2d5602cbd86abae5c0a22e3f2b6317d74.tar.bz2
android_bootable_recovery-56bca1f2d5602cbd86abae5c0a22e3f2b6317d74.tar.lz
android_bootable_recovery-56bca1f2d5602cbd86abae5c0a22e3f2b6317d74.tar.xz
android_bootable_recovery-56bca1f2d5602cbd86abae5c0a22e3f2b6317d74.tar.zst
android_bootable_recovery-56bca1f2d5602cbd86abae5c0a22e3f2b6317d74.zip
Diffstat (limited to 'install')
-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;
}