summaryrefslogtreecommitdiffstats
path: root/recovery_ui
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2019-05-20 19:36:16 +0200
committerMark Salyzyn <salyzyn@google.com>2019-05-20 22:52:10 +0200
commit6f4e4db4f9e0911a07c6393d01e4380e844f7891 (patch)
treec39c8c28b494d05bb4bcaf0ca4d8e6dff2a3cc95 /recovery_ui
parentDO NOT MERGE - Skip pi-platform-release (PPRL.190505.001) in stage-aosp-master (diff)
downloadandroid_bootable_recovery-6f4e4db4f9e0911a07c6393d01e4380e844f7891.tar
android_bootable_recovery-6f4e4db4f9e0911a07c6393d01e4380e844f7891.tar.gz
android_bootable_recovery-6f4e4db4f9e0911a07c6393d01e4380e844f7891.tar.bz2
android_bootable_recovery-6f4e4db4f9e0911a07c6393d01e4380e844f7891.tar.lz
android_bootable_recovery-6f4e4db4f9e0911a07c6393d01e4380e844f7891.tar.xz
android_bootable_recovery-6f4e4db4f9e0911a07c6393d01e4380e844f7891.tar.zst
android_bootable_recovery-6f4e4db4f9e0911a07c6393d01e4380e844f7891.zip
Diffstat (limited to 'recovery_ui')
-rw-r--r--recovery_ui/include/recovery_ui/device.h2
-rw-r--r--recovery_ui/ui.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/recovery_ui/include/recovery_ui/device.h b/recovery_ui/include/recovery_ui/device.h
index 7c76cdb0a..9a4edf261 100644
--- a/recovery_ui/include/recovery_ui/device.h
+++ b/recovery_ui/include/recovery_ui/device.h
@@ -58,6 +58,8 @@ class Device {
REBOOT_FASTBOOT = 17,
REBOOT_RECOVERY = 18,
REBOOT_RESCUE = 19,
+ REBOOT_FROM_FASTBOOT = 20,
+ SHUTDOWN_FROM_FASTBOOT = 21,
};
explicit Device(RecoveryUI* ui);
diff --git a/recovery_ui/ui.cpp b/recovery_ui/ui.cpp
index 7ea9307c9..fc5177576 100644
--- a/recovery_ui/ui.cpp
+++ b/recovery_ui/ui.cpp
@@ -375,7 +375,7 @@ void RecoveryUI::ProcessKey(int key_code, int updown) {
case RecoveryUI::REBOOT:
if (reboot_enabled) {
- Reboot("");
+ Reboot("recovery_ui");
while (true) {
pause();
}