summaryrefslogtreecommitdiffstats
path: root/device.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-04-10 19:28:24 +0200
committerAndroid Git Automerger <android-git-automerger@android.com>2015-04-10 19:28:24 +0200
commitc22f5774d04bed56c7c00874b5a0a0ec37f605aa (patch)
tree9cd50e1cce726c3a32b440012f09d63825cfcbee /device.cpp
parentam 18eaa0cf: Merge "Add ev_iterate_available_keys to minui." (diff)
parentMerge "Move "Mount /system" to the main menu." (diff)
downloadandroid_bootable_recovery-c22f5774d04bed56c7c00874b5a0a0ec37f605aa.tar
android_bootable_recovery-c22f5774d04bed56c7c00874b5a0a0ec37f605aa.tar.gz
android_bootable_recovery-c22f5774d04bed56c7c00874b5a0a0ec37f605aa.tar.bz2
android_bootable_recovery-c22f5774d04bed56c7c00874b5a0a0ec37f605aa.tar.lz
android_bootable_recovery-c22f5774d04bed56c7c00874b5a0a0ec37f605aa.tar.xz
android_bootable_recovery-c22f5774d04bed56c7c00874b5a0a0ec37f605aa.tar.zst
android_bootable_recovery-c22f5774d04bed56c7c00874b5a0a0ec37f605aa.zip
Diffstat (limited to 'device.cpp')
-rw-r--r--device.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/device.cpp b/device.cpp
index 20a763f2b..af92b15bd 100644
--- a/device.cpp
+++ b/device.cpp
@@ -31,6 +31,7 @@ static const char* ITEMS[] = {
"Apply update from SD card",
"Wipe data/factory reset",
"Wipe cache partition",
+ "Mount /system",
"View recovery logs",
"Power off",
NULL
@@ -44,11 +45,12 @@ Device::BuiltinAction Device::InvokeMenuItem(int menu_position) {
case 0: return REBOOT;
case 1: return REBOOT_BOOTLOADER;
case 2: return APPLY_ADB_SIDELOAD;
- case 3: return APPLY_EXT;
+ case 3: return APPLY_SDCARD;
case 4: return WIPE_DATA;
case 5: return WIPE_CACHE;
- case 6: return READ_RECOVERY_LASTLOG;
- case 7: return SHUTDOWN;
+ case 6: return MOUNT_SYSTEM;
+ case 7: return VIEW_RECOVERY_LOGS;
+ case 8: return SHUTDOWN;
default: return NO_ACTION;
}
}