Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 65d8b9be authored by Mark Salyzyn's avatar Mark Salyzyn
Browse files

recovery: report compliant reboot reason (Part Deux)

shutdown and reboot should have a corresponding sub-reason.

Updating:
    "reboot,userrequested,fastboot"
    "reboot,userrequested,recovery"
    "reboot,userrequested,recovery,ui"
    "shutdown,userrequested,fastboot"
    "shutdown,userrequested,recovery"
    "reboot,unknown#" (Can't happen, debug)

Test: none
Bug: 133326470
Change-Id: Icf1ab0d462ec2de2272914a36994a095998d6186
parent 691e0e15
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -304,11 +304,11 @@ const std::map<std::string, int32_t> kBootReasonMap = {
    {"reboot,pmic_off_fault,.*", 175},
    {"reboot,pmic_off_s3rst,.*", 176},
    {"reboot,pmic_off_other,.*", 177},
    {"reboot,fastboot_menu", 178},
    {"reboot,recovery_menu", 179},
    {"reboot,recovery_ui", 180},
    {"shutdown,fastboot", 181},
    {"shutdown,recovery", 182},
    {"reboot,userrequested,fastboot", 178},
    {"reboot,userrequested,recovery", 179},
    {"reboot,userrequested,recovery,ui", 180},
    {"shutdown,userrequested,fastboot", 181},
    {"shutdown,userrequested,recovery", 182},
    {"reboot,unknown[0-9]*", 183},
};