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 /default_device.cpp
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 'default_device.cpp')
-rw-r--r--default_device.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/default_device.cpp b/default_device.cpp
index 1f181318..a25f05f8 100644
--- a/default_device.cpp
+++ b/default_device.cpp
@@ -29,6 +29,8 @@ static const char* ITEMS[] = {"reboot system now",
29 "apply update from ADB", 29 "apply update from ADB",
30 "wipe data/factory reset", 30 "wipe data/factory reset",
31 "wipe cache partition", 31 "wipe cache partition",
32 "reboot to bootloader",
33 "power down",
32 NULL }; 34 NULL };
33 35
34class DefaultDevice : public Device { 36class DefaultDevice : public Device {
@@ -65,6 +67,8 @@ class DefaultDevice : public Device {
65 case 1: return APPLY_ADB_SIDELOAD; 67 case 1: return APPLY_ADB_SIDELOAD;
66 case 2: return WIPE_DATA; 68 case 2: return WIPE_DATA;
67 case 3: return WIPE_CACHE; 69 case 3: return WIPE_CACHE;
70 case 4: return REBOOT_BOOTLOADER;
71 case 5: return SHUTDOWN;
68 default: return NO_ACTION; 72 default: return NO_ACTION;
69 } 73 }
70 } 74 }