aboutsummaryrefslogtreecommitdiff
path: root/fastboot
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2019-05-20 10:36:16 -0700
committerMark Salyzyn <salyzyn@google.com>2019-05-23 13:58:53 -0700
commit488cc05c9685277bfba148ad259bde10bdc4a439 (patch)
treeec6d221f9f9986f70d9df3660972c7c87d70aaf8 /fastboot
parent7b67d2851806a6c4d66953564b5d2c052bdc8f9c (diff)
recovery: report compliant reboot reason (Part Deux)
shutdown and reboot should have a corresponding sub-reason. Adding: "reboot,userrequested,fastboot" "reboot,userrequested,recovery" "reboot,userrequested,recovery,ui" "shutdown,userrequested,fastboot" "shutdown,userrequested,recovery" "reboot,unknown#" (Can't happen, debug) Test: manual, multiple targets, enter recovery, be able to exit recovery Bug: 133326470 Change-Id: Ibfcb2a23158e8e99922e8053edd815fb592150f2
Diffstat (limited to 'fastboot')
-rw-r--r--fastboot/fastboot.cpp4
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 */) {