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 /recovery.cpp | |
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 'recovery.cpp')
-rw-r--r-- | recovery.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/recovery.cpp b/recovery.cpp index 20e5a1be..eb0c2b21 100644 --- a/recovery.cpp +++ b/recovery.cpp @@ -356,6 +356,8 @@ static Device::BuiltinAction PromptAndWait(Device* device, InstallResult status) : device->InvokeMenuItem(chosen_item); switch (chosen_action) { + case Device::REBOOT_FROM_FASTBOOT: // Can not happen + case Device::SHUTDOWN_FROM_FASTBOOT: // Can not happen case Device::NO_ACTION: break; |