diff options
| author | Mark Salyzyn <salyzyn@google.com> | 2019-05-20 10:36:16 -0700 |
|---|---|---|
| committer | Mark Salyzyn <salyzyn@google.com> | 2019-05-20 13:52:10 -0700 |
| commit | 6f4e4db4f9e0911a07c6393d01e4380e844f7891 (patch) | |
| tree | c39c8c28b494d05bb4bcaf0ca4d8e6dff2a3cc95 /fastboot | |
| parent | e7a0262c14e7bccbb0575e6025987b5dee5739f0 (diff) | |
recovery: report compliant reboot reason
shutdown and reboot should have a corresponding sub-reason.
Adding:
"reboot,fastboot_menu"
"reboot,recovery_menu"
"reboot,recovery_ui"
"shutdown,fastboot"
"shutdown,recovery"
"reboot,unknown#"
Test: none
Change-Id: Icf1ab0d462ec2de2272914a36994a095998d6186
Diffstat (limited to 'fastboot')
| -rw-r--r-- | fastboot/fastboot.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp index 14f5e4bd..20233499 100644 --- a/fastboot/fastboot.cpp +++ b/fastboot/fastboot.cpp @@ -30,10 +30,10 @@ #include "recovery_ui/ui.h" static const std::vector<std::pair<std::string, Device::BuiltinAction>> kFastbootMenuActions{ - { "Reboot system now", Device::REBOOT }, + { "Reboot system now", Device::REBOOT_FROM_FASTBOOT }, { "Enter recovery", Device::ENTER_RECOVERY }, { "Reboot to bootloader", Device::REBOOT_BOOTLOADER }, - { "Power off", Device::SHUTDOWN }, + { "Power off", Device::SHUTDOWN_FROM_FASTBOOT }, }; Device::BuiltinAction StartFastboot(Device* device, const std::vector<std::string>& /* args */) { |
