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/fuse_install.cpp b/install/fuse_install.cpp
index 09d04a8..a7c5824 100644
--- a/install/fuse_install.cpp
+++ b/install/fuse_install.cpp
@@ -212,14 +212,14 @@
auto ui = device->GetUI();
if (ensure_path_mounted(SDCARD_ROOT) != 0) {
LOG(ERROR) << "\n-- Couldn't mount " << SDCARD_ROOT << ".\n";
- return INSTALL_ERROR;
+ return INSTALL_NONE;
}
std::string path = BrowseDirectory(SDCARD_ROOT, device, ui);
if (path.empty()) {
LOG(ERROR) << "\n-- No package file selected.\n";
ensure_path_unmounted(SDCARD_ROOT);
- return INSTALL_ERROR;
+ return INSTALL_NONE;
}
// Hint the install function to read from a block map file.