diff options
author | Tao Bao <tbao@google.com> | 2019-04-18 23:45:50 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-04-18 23:45:50 +0200 |
commit | b951138ebe56a3b0a10764d5629479adfe3a3689 (patch) | |
tree | a5a2cf98f7b31abbfa6116be2037634a1925b88f /recovery_ui | |
parent | Merge "Move load & restore logs to logging.cpp" (diff) | |
parent | Allow entering rescue mode via recovery UI. (diff) | |
download | android_bootable_recovery-b951138ebe56a3b0a10764d5629479adfe3a3689.tar android_bootable_recovery-b951138ebe56a3b0a10764d5629479adfe3a3689.tar.gz android_bootable_recovery-b951138ebe56a3b0a10764d5629479adfe3a3689.tar.bz2 android_bootable_recovery-b951138ebe56a3b0a10764d5629479adfe3a3689.tar.lz android_bootable_recovery-b951138ebe56a3b0a10764d5629479adfe3a3689.tar.xz android_bootable_recovery-b951138ebe56a3b0a10764d5629479adfe3a3689.tar.zst android_bootable_recovery-b951138ebe56a3b0a10764d5629479adfe3a3689.zip |
Diffstat (limited to 'recovery_ui')
-rw-r--r-- | recovery_ui/device.cpp | 1 | ||||
-rw-r--r-- | recovery_ui/include/recovery_ui/device.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/recovery_ui/device.cpp b/recovery_ui/device.cpp index ddb0118db..e7ae1a3e1 100644 --- a/recovery_ui/device.cpp +++ b/recovery_ui/device.cpp @@ -37,6 +37,7 @@ static std::vector<std::pair<std::string, Device::BuiltinAction>> g_menu_actions { "View recovery logs", Device::VIEW_RECOVERY_LOGS }, { "Run graphics test", Device::RUN_GRAPHICS_TEST }, { "Run locale test", Device::RUN_LOCALE_TEST }, + { "Enter rescue", Device::ENTER_RESCUE }, { "Power off", Device::SHUTDOWN }, }; diff --git a/recovery_ui/include/recovery_ui/device.h b/recovery_ui/include/recovery_ui/device.h index 3c44510c8..8f17639d6 100644 --- a/recovery_ui/include/recovery_ui/device.h +++ b/recovery_ui/include/recovery_ui/device.h @@ -50,6 +50,7 @@ class Device { KEY_INTERRUPTED = 13, ENTER_FASTBOOT = 14, ENTER_RECOVERY = 15, + ENTER_RESCUE = 16, }; explicit Device(RecoveryUI* ui); |