aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Zongker2014-04-01 15:20:23 -0500
committerDoug Zongker2014-04-01 15:20:23 -0500
commit8d9d3d5cbe240d09db10d08956d152dce934e892 (patch)
treee0bb35703cb670a2fc9d697927528314008348ee /device.h
parent02abde50851f66196c74d215150014f1378cb853 (diff)
downloadplatform-bootable-recovery-8d9d3d5cbe240d09db10d08956d152dce934e892.tar.gz
platform-bootable-recovery-8d9d3d5cbe240d09db10d08956d152dce934e892.tar.xz
platform-bootable-recovery-8d9d3d5cbe240d09db10d08956d152dce934e892.zip
add reboot-to-bootloader and power down options to recovery menu
Useful when debugging or developing for recovery. Change-Id: Ic3ab42d5e848ad3488f1c575339b55e45c8a024b
Diffstat (limited to 'device.h')
-rw-r--r--device.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/device.h b/device.h
index 583de75e..df71377c 100644
--- a/device.h
+++ b/device.h
@@ -66,7 +66,8 @@ class Device {
66 virtual int HandleMenuKey(int key, int visible) = 0; 66 virtual int HandleMenuKey(int key, int visible) = 0;
67 67
68 enum BuiltinAction { NO_ACTION, REBOOT, APPLY_EXT, APPLY_CACHE, 68 enum BuiltinAction { NO_ACTION, REBOOT, APPLY_EXT, APPLY_CACHE,
69 APPLY_ADB_SIDELOAD, WIPE_DATA, WIPE_CACHE }; 69 APPLY_ADB_SIDELOAD, WIPE_DATA, WIPE_CACHE,
70 REBOOT_BOOTLOADER, SHUTDOWN };
70 71
71 // Perform a recovery action selected from the menu. 72 // Perform a recovery action selected from the menu.
72 // 'menu_position' will be the item number of the selected menu 73 // 'menu_position' will be the item number of the selected menu