aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes2015-04-10 12:01:53 -0500
committerElliott Hughes2015-04-10 12:01:53 -0500
commitec28340cf3af1029a00db1c83d78d14e8798e245 (patch)
tree9cd50e1cce726c3a32b440012f09d63825cfcbee /device.cpp
parent18eaa0cfe7aa775546369de829a1ff3049cf82a5 (diff)
downloadplatform-bootable-recovery-ec28340cf3af1029a00db1c83d78d14e8798e245.tar.gz
platform-bootable-recovery-ec28340cf3af1029a00db1c83d78d14e8798e245.tar.xz
platform-bootable-recovery-ec28340cf3af1029a00db1c83d78d14e8798e245.zip
Move "Mount /system" to the main menu.
Everyone's adding secret key combinations for this anyway, and it's very useful when debugging. Change-Id: Iad549452b872a7af963dd649f283ebcd3ea24234
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 20a763f2..af92b15b 100644
--- a/device.cpp
+++ b/device.cpp
@@ -31,6 +31,7 @@ static const char* ITEMS[] = {
31 "Apply update from SD card", 31 "Apply update from SD card",
32 "Wipe data/factory reset", 32 "Wipe data/factory reset",
33 "Wipe cache partition", 33 "Wipe cache partition",
34 "Mount /system",
34 "View recovery logs", 35 "View recovery logs",
35 "Power off", 36 "Power off",
36 NULL 37 NULL
@@ -44,11 +45,12 @@ Device::BuiltinAction Device::InvokeMenuItem(int menu_position) {
44 case 0: return REBOOT; 45 case 0: return REBOOT;
45 case 1: return REBOOT_BOOTLOADER; 46 case 1: return REBOOT_BOOTLOADER;
46 case 2: return APPLY_ADB_SIDELOAD; 47 case 2: return APPLY_ADB_SIDELOAD;
47 case 3: return APPLY_EXT; 48 case 3: return APPLY_SDCARD;
48 case 4: return WIPE_DATA; 49 case 4: return WIPE_DATA;
49 case 5: return WIPE_CACHE; 50 case 5: return WIPE_CACHE;
50 case 6: return READ_RECOVERY_LASTLOG; 51 case 6: return MOUNT_SYSTEM;
51 case 7: return SHUTDOWN; 52 case 7: return VIEW_RECOVERY_LOGS;
53 case 8: return SHUTDOWN;
52 default: return NO_ACTION; 54 default: return NO_ACTION;
53 } 55 }
54} 56}