summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-10-16 01:00:30 +0200
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-10-16 01:00:30 +0200
commit8c49d461b1ffd11161a1bc47826ae804086c3ee0 (patch)
tree485fe91fe78460b67fe06fc9d4b7c64d759be926
parentSnap for 9164037 from 73a020b1e4df5b9928bb5ab7b1052f3b993d8669 to udc-d1-release (diff)
parentMerge "Only check for powerwash in A/B ota packages" am: 56bca1f2d5 am: 31d74fa4ea am: e089b78334 (diff)
downloadandroid_bootable_recovery-8c49d461b1ffd11161a1bc47826ae804086c3ee0.tar
android_bootable_recovery-8c49d461b1ffd11161a1bc47826ae804086c3ee0.tar.gz
android_bootable_recovery-8c49d461b1ffd11161a1bc47826ae804086c3ee0.tar.bz2
android_bootable_recovery-8c49d461b1ffd11161a1bc47826ae804086c3ee0.tar.lz
android_bootable_recovery-8c49d461b1ffd11161a1bc47826ae804086c3ee0.tar.xz
android_bootable_recovery-8c49d461b1ffd11161a1bc47826ae804086c3ee0.tar.zst
android_bootable_recovery-8c49d461b1ffd11161a1bc47826ae804086c3ee0.zip
-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;
}