From d51036d64110fc5cde6f55ff9425b3648dd02470 Mon Sep 17 00:00:00 2001 From: Jone Chou Date: Wed, 20 Mar 2019 19:38:05 +0800 Subject: [PATCH] bootstat: add 4 reboot reasons to known set - reboot,rtc - reboot,dm-verity_device_corrupted - reboot,dm-verity_enforcing - reboot,keys_clear Test: none Bug: 128929506 Bug: 128929604 Change-Id: I5438c236abb67b74c7b9d717930c0ea69f70540d Signed-off-by: Jone Chou --- bootstat/bootstat.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bootstat/bootstat.cpp b/bootstat/bootstat.cpp index ea49798c9..1ce0ec4c2 100644 --- a/bootstat/bootstat.cpp +++ b/bootstat/bootstat.cpp @@ -295,6 +295,10 @@ const std::map kBootReasonMap = { {"kernel_panic,_sde_encoder_phys_cmd_handle_ppdone_timeout", 168}, {"recovery,quiescent", 169}, {"reboot,quiescent", 170}, + {"reboot,rtc", 171}, + {"reboot,dm-verity_device_corrupted", 172}, + {"reboot,dm-verity_enforcing", 173}, + {"reboot,keys_clear", 174}, }; // Converts a string value representing the reason the system booted to an