don't go into file select menu when mounting external storage fails
Change-Id: If0efeddc28e1dbb52d9e52abf53323e2cc97c8f0
This commit is contained in:
parent
dc9e87c44b
commit
f635d2e910
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user