summaryrefslogtreecommitdiffstats
path: root/device.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-04-10 19:53:22 +0200
committerAndroid Git Automerger <android-git-automerger@android.com>2015-04-10 19:53:22 +0200
commit2d71dcdc2acca82f4593ae5e6b482b7c79688700 (patch)
tree9cd50e1cce726c3a32b440012f09d63825cfcbee /device.h
parentam 10dacbce: am 18eaa0cf: Merge "Add ev_iterate_available_keys to minui." (diff)
parentam 6b0dd1d7: Merge "Move "Mount /system" to the main menu." (diff)
downloadandroid_bootable_recovery-2d71dcdc2acca82f4593ae5e6b482b7c79688700.tar
android_bootable_recovery-2d71dcdc2acca82f4593ae5e6b482b7c79688700.tar.gz
android_bootable_recovery-2d71dcdc2acca82f4593ae5e6b482b7c79688700.tar.bz2
android_bootable_recovery-2d71dcdc2acca82f4593ae5e6b482b7c79688700.tar.lz
android_bootable_recovery-2d71dcdc2acca82f4593ae5e6b482b7c79688700.tar.xz
android_bootable_recovery-2d71dcdc2acca82f4593ae5e6b482b7c79688700.tar.zst
android_bootable_recovery-2d71dcdc2acca82f4593ae5e6b482b7c79688700.zip
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 97ec2fb41..3d9101bf4 100644
--- a/device.h
+++ b/device.h
@@ -56,10 +56,19 @@ class Device {
// - invoke a specific action (a menu position: any non-negative number)
virtual int HandleMenuKey(int key, int visible) = 0;
- enum BuiltinAction { NO_ACTION, REBOOT, APPLY_EXT,
- APPLY_CACHE, // APPLY_CACHE is deprecated; has no effect
- APPLY_ADB_SIDELOAD, WIPE_DATA, WIPE_CACHE,
- REBOOT_BOOTLOADER, SHUTDOWN, READ_RECOVERY_LASTLOG };
+ enum BuiltinAction {
+ NO_ACTION = 0,
+ REBOOT = 1,
+ APPLY_SDCARD = 2,
+ // APPLY_CACHE was 3.
+ APPLY_ADB_SIDELOAD = 4,
+ WIPE_DATA = 5,
+ WIPE_CACHE = 6,
+ REBOOT_BOOTLOADER = 7,
+ SHUTDOWN = 8,
+ VIEW_RECOVERY_LOGS = 9,
+ MOUNT_SYSTEM = 10,
+ };
// Return the headers (an array of strings, one per line,
// NULL-terminated) for the main menu. Typically these tell users