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

Commit d07ec304 authored by Jason Chiu's avatar Jason Chiu
Browse files

bootstat: add more bootreasons



add more bootreasons for new design.

Bug: 296637681
Test: trigger apc watchdog then "adb root; adb shell bootstat -p"
Change-Id: Ia78146ba9299eea45e7d89376179e01cbd37cca8
Signed-off-by: default avatarJason Chiu <jasoncschiu@google.com>
parent 3ef4da2f
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -461,6 +461,14 @@ const std::map<std::string, int32_t> kBootReasonMap = {
    {"reboot,smpl_timeout,pmic,main", 229},
    {"reboot,ota,.*", 230},
    {"reboot,periodic,.*", 231},
    {"reboot,early,abl", 232},
    {"reboot,early,bl2", 233},
    {"reboot,longkey,pmic_cold", 234},
    {"reboot,longkey,master_dc", 235},
    {"reboot,ocp2,pmic,if", 236},
    {"reboot,ocp,pmic,if", 237},
    {"reboot,fship", 238},
    {"reboot,ocp,.*", 239},
};

// Converts a string value representing the reason the system booted to an