summaryrefslogtreecommitdiffstats
path: root/default_device.cpp
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2014-04-01 22:20:23 +0200
committerDoug Zongker <dougz@android.com>2014-04-01 22:20:23 +0200
commit8d9d3d5cbe240d09db10d08956d152dce934e892 (patch)
treee0bb35703cb670a2fc9d697927528314008348ee /default_device.cpp
parentremove DefaultDevice's UI subclass (diff)
downloadandroid_bootable_recovery-8d9d3d5cbe240d09db10d08956d152dce934e892.tar
android_bootable_recovery-8d9d3d5cbe240d09db10d08956d152dce934e892.tar.gz
android_bootable_recovery-8d9d3d5cbe240d09db10d08956d152dce934e892.tar.bz2
android_bootable_recovery-8d9d3d5cbe240d09db10d08956d152dce934e892.tar.lz
android_bootable_recovery-8d9d3d5cbe240d09db10d08956d152dce934e892.tar.xz
android_bootable_recovery-8d9d3d5cbe240d09db10d08956d152dce934e892.tar.zst
android_bootable_recovery-8d9d3d5cbe240d09db10d08956d152dce934e892.zip
Diffstat (limited to '')
-rw-r--r--default_device.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/default_device.cpp b/default_device.cpp
index 1f181318e..a25f05f8e 100644
--- a/default_device.cpp
+++ b/default_device.cpp
@@ -29,6 +29,8 @@ static const char* ITEMS[] = {"reboot system now",
"apply update from ADB",
"wipe data/factory reset",
"wipe cache partition",
+ "reboot to bootloader",
+ "power down",
NULL };
class DefaultDevice : public Device {
@@ -65,6 +67,8 @@ class DefaultDevice : public Device {
case 1: return APPLY_ADB_SIDELOAD;
case 2: return WIPE_DATA;
case 3: return WIPE_CACHE;
+ case 4: return REBOOT_BOOTLOADER;
+ case 5: return SHUTDOWN;
default: return NO_ACTION;
}
}