summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2010-08-02 20:34:46 +0200
committerDoug Zongker <dougz@android.com>2010-08-02 20:34:46 +0200
commitf635d2e91006028afa8b0fc53f80e5c157c495e6 (patch)
tree9d6143cbd08de806d8d189309ba7df97ee5a37e0
parentgeneralize "install from sdcard" to "install from external storage" (diff)
downloadandroid_bootable_recovery-f635d2e91006028afa8b0fc53f80e5c157c495e6.tar
android_bootable_recovery-f635d2e91006028afa8b0fc53f80e5c157c495e6.tar.gz
android_bootable_recovery-f635d2e91006028afa8b0fc53f80e5c157c495e6.tar.bz2
android_bootable_recovery-f635d2e91006028afa8b0fc53f80e5c157c495e6.tar.lz
android_bootable_recovery-f635d2e91006028afa8b0fc53f80e5c157c495e6.tar.xz
android_bootable_recovery-f635d2e91006028afa8b0fc53f80e5c157c495e6.tar.zst
android_bootable_recovery-f635d2e91006028afa8b0fc53f80e5c157c495e6.zip
Diffstat (limited to '')
-rw-r--r--recovery.c5
1 files changed, 4 insertions, 1 deletions
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,