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

Commit 88b81e26 authored by sashwinbalaji's avatar sashwinbalaji
Browse files

bootstat: Add more thermal related reasons.

- Add "reboot,telemtemp,pmic,main" to kBootReasonMap.
- Add support to log Tj reset additional info, such as thermal zone and
  sensor.

Bug: 407475631
Bug: 400646348
Test: Trigger shutdown and validate adb shell bootstat -p
Change-Id: I787db76f7268262d153d193bbe678bc2b1528102
parent 1fc14317
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -424,7 +424,7 @@ const std::map<std::string, int32_t> kBootReasonMap = {
    {"reboot,mount_userdata_failed", 190},
    {"reboot,forcedsilent", 191},
    {"reboot,forcednonsilent", 192},
    {"reboot,thermal,tj", 193},
    {"reboot,thermal,tj.*", 193},
    {"reboot,emergency", 194},
    {"reboot,factory", 195},
    {"reboot,fastboot", 196},
@@ -472,6 +472,7 @@ const std::map<std::string, int32_t> kBootReasonMap = {
    {"reboot,fship.*", 238},
    {"reboot,ocp,.*", 239},
    {"reboot,ntc,pmic,sub", 240},
    {"reboot,telemtemp,pmic,main", 241},
};

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