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/install/adb_install.cpp b/install/adb_install.cpp
index cf2fe60..9101e40 100644
--- a/install/adb_install.cpp
+++ b/install/adb_install.cpp
@@ -363,7 +363,7 @@
RecoveryUI* ui = device->GetUI();
- InstallResult install_result = INSTALL_ERROR;
+ InstallResult install_result = INSTALL_NONE;
std::map<MinadbdCommand, CommandFunction> command_map{
{ MinadbdCommand::kInstall, std::bind(&AdbInstallPackageHandler, device, &install_result) },
{ MinadbdCommand::kRebootAndroid, std::bind(&AdbRebootHandler, MinadbdCommand::kRebootAndroid,