summaryrefslogtreecommitdiffstats
path: root/recovery_ui
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2019-04-26 01:18:08 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-04-26 01:18:08 +0200
commite645ba5acae703f4728f9bac199119369f1ec4e6 (patch)
tree1b468f56bbc5bfe34fae36e35f977f926a11f104 /recovery_ui
parentMerge "Add TEST_MAPPING." (diff)
parentParse BCB command to enter rescue mode. (diff)
downloadandroid_bootable_recovery-e645ba5acae703f4728f9bac199119369f1ec4e6.tar
android_bootable_recovery-e645ba5acae703f4728f9bac199119369f1ec4e6.tar.gz
android_bootable_recovery-e645ba5acae703f4728f9bac199119369f1ec4e6.tar.bz2
android_bootable_recovery-e645ba5acae703f4728f9bac199119369f1ec4e6.tar.lz
android_bootable_recovery-e645ba5acae703f4728f9bac199119369f1ec4e6.tar.xz
android_bootable_recovery-e645ba5acae703f4728f9bac199119369f1ec4e6.tar.zst
android_bootable_recovery-e645ba5acae703f4728f9bac199119369f1ec4e6.zip
Diffstat (limited to '')
-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);