recovery: Don't consider manual install aborts as errors
* From android-11, recovery warns the user about the danger of
rebooting after a failed update, but if we didn't even start
the install procedure it doesn't really make much sense.
Change-Id: Ifaf5eae9fe6e1d915a035e2570c22260de59f99b
diff --git a/recovery.cpp b/recovery.cpp
index 4d6e929..92afa23 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -487,6 +487,9 @@
if (status == INSTALL_REBOOT) {
return reboot_action;
}
+ if (status == INSTALL_NONE) {
+ update_in_progress = false;
+ }
if (status == INSTALL_SUCCESS) {
update_in_progress = false;