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