From f635d2e91006028afa8b0fc53f80e5c157c495e6 Mon Sep 17 00:00:00 2001 From: Doug Zongker Date: Mon, 2 Aug 2010 11:34:46 -0700 Subject: don't go into file select menu when mounting external storage fails Change-Id: If0efeddc28e1dbb52d9e52abf53323e2cc97c8f0 --- recovery.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/recovery.c b/recovery.c index a0df165df..40e79d73a 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, -- cgit v1.2.3