diff options
author | Doug Zongker <dougz@android.com> | 2010-08-02 11:34:46 -0700 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2010-08-02 11:34:46 -0700 |
commit | f635d2e91006028afa8b0fc53f80e5c157c495e6 (patch) | |
tree | 9d6143cbd08de806d8d189309ba7df97ee5a37e0 | |
parent | dc9e87c44bac4504aed26061736cbc6e439bec51 (diff) | |
download | bootable_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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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, |