commit | e089b78334cd314204fc13672bf071d545811d34 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Fri Oct 14 21:00:51 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Oct 14 21:00:51 2022 +0000 |
tree | c3c04ec970b0041511ade3733ecf7e7acbaa3b23 | |
parent | af1a8af75528169487760f1e9612081bc11ee6ea [diff] | |
parent | 31d74fa4ea2227d19e52336c92e775555f3140cc [diff] |
Merge "Only check for powerwash in A/B ota packages" am: 56bca1f2d5 am: 31d74fa4ea Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/2256203 Change-Id: I980e9a342f7ca39adb7a9c611afff695ba5a68e1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/install/install.cpp b/install/install.cpp index 83f3cad..044856b 100644 --- a/install/install.cpp +++ b/install/install.cpp
@@ -551,7 +551,9 @@ } else { LOG(FATAL) << "Invalid status code " << status; } - PerformPowerwashIfRequired(zip, device); + if (package_is_ab) { + PerformPowerwashIfRequired(zip, device); + } return INSTALL_SUCCESS; }