aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2010-08-02 11:34:46 -0700
committerDoug Zongker <dougz@android.com>2010-08-02 11:34:46 -0700
commitf635d2e91006028afa8b0fc53f80e5c157c495e6 (patch)
tree9d6143cbd08de806d8d189309ba7df97ee5a37e0
parentdc9e87c44bac4504aed26061736cbc6e439bec51 (diff)
downloadbootable_recovery-f635d2e91006028afa8b0fc53f80e5c157c495e6.zip
bootable_recovery-f635d2e91006028afa8b0fc53f80e5c157c495e6.tar.gz
bootable_recovery-f635d2e91006028afa8b0fc53f80e5c157c495e6.tar.bz2
don't go into file select menu when mounting external storage fails
Change-Id: If0efeddc28e1dbb52d9e52abf53323e2cc97c8f0
-rw-r--r--recovery.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/recovery.c b/recovery.c
index a0df165..40e79d7 100644
--- a/recovery.c
+++ b/recovery.c
@@ -479,7 +479,10 @@ sdcard_directory(const char* root_path) {
// Mount the sdcard when the package selection menu is enabled so
// you can "adb push" packages to the sdcard and immediately
// install them.
- ensure_root_path_mounted(EXT_ROOT);
+ if (ensure_root_path_mounted(EXT_ROOT) < 0) {
+ ui_print("Failed to mount external storage.\n");
+ return INSTALL_ERROR;
+ }
const char* MENU_HEADERS[] = { "Choose a package to install:",
root_path,