summaryrefslogtreecommitdiffstats
path: root/recovery_ui/include/recovery_ui/device.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2019-04-23 20:46:25 +0200
committerTao Bao <tbao@google.com>2019-04-28 21:14:16 +0200
commit75321ade8733317bfe7bf0b1850c94b055c8a1c1 (patch)
treeb0e3acf9305aec92ab4f388b6948caeccb05a8f7 /recovery_ui/include/recovery_ui/device.h
parentminadbd: Support `adb reboot` under sideload/rescue modes. (diff)
downloadandroid_bootable_recovery-75321ade8733317bfe7bf0b1850c94b055c8a1c1.tar
android_bootable_recovery-75321ade8733317bfe7bf0b1850c94b055c8a1c1.tar.gz
android_bootable_recovery-75321ade8733317bfe7bf0b1850c94b055c8a1c1.tar.bz2
android_bootable_recovery-75321ade8733317bfe7bf0b1850c94b055c8a1c1.tar.lz
android_bootable_recovery-75321ade8733317bfe7bf0b1850c94b055c8a1c1.tar.xz
android_bootable_recovery-75321ade8733317bfe7bf0b1850c94b055c8a1c1.tar.zst
android_bootable_recovery-75321ade8733317bfe7bf0b1850c94b055c8a1c1.zip
Diffstat (limited to 'recovery_ui/include/recovery_ui/device.h')
-rw-r--r--recovery_ui/include/recovery_ui/device.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/recovery_ui/include/recovery_ui/device.h b/recovery_ui/include/recovery_ui/device.h
index 09b5d1f4d..7c76cdb0a 100644
--- a/recovery_ui/include/recovery_ui/device.h
+++ b/recovery_ui/include/recovery_ui/device.h
@@ -33,6 +33,10 @@ class Device {
static constexpr const int kHighlightDown = -3;
static constexpr const int kInvokeItem = -4;
+ // ENTER vs REBOOT: The latter will trigger a reboot that goes through bootloader, which allows
+ // using a new bootloader / recovery image if applicable. For example, REBOOT_RESCUE goes from
+ // rescue -> bootloader -> rescue, whereas ENTER_RESCUE switches from recovery -> rescue
+ // directly.
enum BuiltinAction {
NO_ACTION = 0,
REBOOT = 1,
@@ -50,11 +54,10 @@ class Device {
KEY_INTERRUPTED = 13,
ENTER_FASTBOOT = 14,
ENTER_RECOVERY = 15,
- // ENTER vs REBOOT: The latter will trigger a reboot that uses `rescue` as the reboot target.
- // So it goes from rescue -> bootloader -> rescue, whereas ENTER_RESCUE switches from recovery
- // -> rescue directly.
ENTER_RESCUE = 16,
- REBOOT_RESCUE = 17,
+ REBOOT_FASTBOOT = 17,
+ REBOOT_RECOVERY = 18,
+ REBOOT_RESCUE = 19,
};
explicit Device(RecoveryUI* ui);