summaryrefslogtreecommitdiffstats
path: root/install/install.cpp
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2022-10-14 23:00:51 +0200
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-10-14 23:00:51 +0200
commite089b78334cd314204fc13672bf071d545811d34 (patch)
treec3c04ec970b0041511ade3733ecf7e7acbaa3b23 /install/install.cpp
parent[automerger skipped] Merge tm-qpr-dev-plus-aosp-without-vendor@9129937 am: 8768f583c5 -s ours (diff)
parentMerge "Only check for powerwash in A/B ota packages" am: 56bca1f2d5 (diff)
downloadandroid_bootable_recovery-e089b78334cd314204fc13672bf071d545811d34.tar
android_bootable_recovery-e089b78334cd314204fc13672bf071d545811d34.tar.gz
android_bootable_recovery-e089b78334cd314204fc13672bf071d545811d34.tar.bz2
android_bootable_recovery-e089b78334cd314204fc13672bf071d545811d34.tar.lz
android_bootable_recovery-e089b78334cd314204fc13672bf071d545811d34.tar.xz
android_bootable_recovery-e089b78334cd314204fc13672bf071d545811d34.tar.zst
android_bootable_recovery-e089b78334cd314204fc13672bf071d545811d34.zip
Diffstat (limited to 'install/install.cpp')
-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;
}