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.h
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.h')
-rw-r--r--device.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/device.h b/device.h
index 97ec2fb4..3d9101bf 100644
--- a/device.h
+++ b/device.h
@@ -56,10 +56,19 @@ class Device {
56 // - invoke a specific action (a menu position: any non-negative number) 56 // - invoke a specific action (a menu position: any non-negative number)
57 virtual int HandleMenuKey(int key, int visible) = 0; 57 virtual int HandleMenuKey(int key, int visible) = 0;
58 58
59 enum BuiltinAction { NO_ACTION, REBOOT, APPLY_EXT, 59 enum BuiltinAction {
60 APPLY_CACHE, // APPLY_CACHE is deprecated; has no effect 60 NO_ACTION = 0,
61 APPLY_ADB_SIDELOAD, WIPE_DATA, WIPE_CACHE, 61 REBOOT = 1,
62 REBOOT_BOOTLOADER, SHUTDOWN, READ_RECOVERY_LASTLOG }; 62 APPLY_SDCARD = 2,
63 // APPLY_CACHE was 3.
64 APPLY_ADB_SIDELOAD = 4,
65 WIPE_DATA = 5,
66 WIPE_CACHE = 6,
67 REBOOT_BOOTLOADER = 7,
68 SHUTDOWN = 8,
69 VIEW_RECOVERY_LOGS = 9,
70 MOUNT_SYSTEM = 10,
71 };
63 72
64 // Return the headers (an array of strings, one per line, 73 // Return the headers (an array of strings, one per line,
65 // NULL-terminated) for the main menu. Typically these tell users 74 // NULL-terminated) for the main menu. Typically these tell users