diff --git a/default_recovery_ui.c b/default_recovery_ui.c index 76c39af..d832794 100644 --- a/default_recovery_ui.c +++ b/default_recovery_ui.c @@ -31,6 +31,7 @@ char* MENU_ITEMS[] = { "reboot system now", "install zip from sdcard", "backup", "restore", + "mount sdcard", NULL }; int device_toggle_display(volatile char* key_pressed, int key_code) { diff --git a/recovery.c b/recovery.c index a88c696..f7d61d2 100644 --- a/recovery.c +++ b/recovery.c @@ -449,6 +449,11 @@ prompt_and_wait() case ITEM_RESTORE: show_nandroid_restore_menu(); break; + case ITEM_MOUNT_SDCARD: + if (ensure_root_path_mounted("SDCARD:") != 0) { + LOGE ("Can't mount /sdcard\n"); + } + break; } } } diff --git a/recovery_ui.h b/recovery_ui.h index 2964dfc..7165007 100644 --- a/recovery_ui.h +++ b/recovery_ui.h @@ -70,6 +70,7 @@ int device_wipe_data(); #define ITEM_INSTALL_ZIP 4 #define ITEM_BACKUP 5 #define ITEM_RESTORE 6 +#define ITEM_MOUNT_SDCARD 7 // Header text to display above the main menu. extern char* MENU_HEADERS[];