diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2022-10-14 22:04:25 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2022-10-14 22:04:25 +0200 |
commit | 56bca1f2d5602cbd86abae5c0a22e3f2b6317d74 (patch) | |
tree | 485fe91fe78460b67fe06fc9d4b7c64d759be926 | |
parent | Merge "Fix doing silent update,power cut/restoration,screen is turned on" (diff) | |
parent | Only check for powerwash in A/B ota packages (diff) | |
download | android_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 |
-rw-r--r-- | install/install.cpp | 4 |
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; } |