diff options
author | Mark Salyzyn <salyzyn@google.com> | 2019-05-20 19:36:16 +0200 |
---|---|---|
committer | Mark Salyzyn <salyzyn@google.com> | 2019-05-23 22:58:53 +0200 |
commit | 488cc05c9685277bfba148ad259bde10bdc4a439 (patch) | |
tree | ec6d221f9f9986f70d9df3660972c7c87d70aaf8 /recovery_ui | |
parent | Merge "Move off the Next ZipString overload." (diff) | |
download | android_bootable_recovery-488cc05c9685277bfba148ad259bde10bdc4a439.tar android_bootable_recovery-488cc05c9685277bfba148ad259bde10bdc4a439.tar.gz android_bootable_recovery-488cc05c9685277bfba148ad259bde10bdc4a439.tar.bz2 android_bootable_recovery-488cc05c9685277bfba148ad259bde10bdc4a439.tar.lz android_bootable_recovery-488cc05c9685277bfba148ad259bde10bdc4a439.tar.xz android_bootable_recovery-488cc05c9685277bfba148ad259bde10bdc4a439.tar.zst android_bootable_recovery-488cc05c9685277bfba148ad259bde10bdc4a439.zip |
Diffstat (limited to 'recovery_ui')
-rw-r--r-- | recovery_ui/include/recovery_ui/device.h | 2 | ||||
-rw-r--r-- | recovery_ui/ui.cpp | 2 |
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..78b014a88 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("userrequested,recovery,ui"); while (true) { pause(); } |