From 82674dedcdd04569a68559bf92763265e3a88c19 Mon Sep 17 00:00:00 2001 From: Lisa Liu Date: Tue, 16 Mar 2021 17:43:32 +0800 Subject: [PATCH] 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 --- bootstat/bootstat.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/bootstat/bootstat.cpp b/bootstat/bootstat.cpp index ee1ae3178..d6ebb0d54 100644 --- a/bootstat/bootstat.cpp +++ b/bootstat/bootstat.cpp @@ -438,6 +438,7 @@ const std::map 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