From 78e524e418eb06273dbf211f7a840ce2a89d635c Mon Sep 17 00:00:00 2001 From: Tim Zimmermann Date: Fri, 14 Oct 2022 19:43:01 +0200 Subject: Only check for powerwash in A/B ota packages * A-only doesn't have payload_properties.txt causing an user-facing error Change-Id: If749c9a8cf1c3bbdf0300a2da06ec2246fc75484 --- install/install.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3