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

Commit 82674ded authored by Lisa Liu's avatar Lisa Liu Committed by Lisa (LeeWei) Liu
Browse files

bootstat: Add Tj thermal shutdown

Add "reboot,thermal,tj" to kBootReasonMap

Bug: 174705050
Test: adb shell echo 110000 > /dev/thermal/tz-by-name/BIG/emul_temp
adb shell bootstat -p

Change-Id: Iea7da4024a57eff7a758e0e9a2321eb220fc5c28
parent 102f7e4d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -438,6 +438,7 @@ const std::map<std::string, int32_t> kBootReasonMap = {
    {"reboot,mount_userdata_failed", 190},
    {"reboot,forcedsilent", 191},
    {"reboot,forcednonsilent", 192},
    {"reboot,thermal,tj", 193},
};

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