Loading bootstat/boot_reason_test.sh +1 −1 Original line number Diff line number Diff line Loading @@ -162,7 +162,7 @@ bootstat: Canonical boot reason: ${i}" fi done adb logcat -b all -d | grep bootstat | grep bootstat[^e] | grep -v -F "bootstat: Service started: /system/bin/bootstat --record_boot_complete${match} bootstat: Failed to read /data/misc/bootstat/post_decrypt_time_elapsed: No such file or directory bootstat: Failed to parse boot time record: /data/misc/bootstat/post_decrypt_time_elapsed Loading bootstat/bootstat.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -494,7 +494,8 @@ std::string BootReasonStrToReason(const std::string& boot_reason) { // String is either "reboot,<reason>" or "shutdown,<reason>". // We will set if default reasons, only override with detail if thermal. if (!isBluntRebootReason(content)) { if ((android::base::StartsWith(content, ret.c_str()) && (content[ret.length()] == ',')) || !isBluntRebootReason(content)) { // Ok, we want it, let's squash it if secondReason is known. pos = content.find(','); if (pos != std::string::npos) { Loading Loading
bootstat/boot_reason_test.sh +1 −1 Original line number Diff line number Diff line Loading @@ -162,7 +162,7 @@ bootstat: Canonical boot reason: ${i}" fi done adb logcat -b all -d | grep bootstat | grep bootstat[^e] | grep -v -F "bootstat: Service started: /system/bin/bootstat --record_boot_complete${match} bootstat: Failed to read /data/misc/bootstat/post_decrypt_time_elapsed: No such file or directory bootstat: Failed to parse boot time record: /data/misc/bootstat/post_decrypt_time_elapsed Loading
bootstat/bootstat.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -494,7 +494,8 @@ std::string BootReasonStrToReason(const std::string& boot_reason) { // String is either "reboot,<reason>" or "shutdown,<reason>". // We will set if default reasons, only override with detail if thermal. if (!isBluntRebootReason(content)) { if ((android::base::StartsWith(content, ret.c_str()) && (content[ret.length()] == ',')) || !isBluntRebootReason(content)) { // Ok, we want it, let's squash it if secondReason is known. pos = content.find(','); if (pos != std::string::npos) { Loading