From 8d1be80de2df00a483da0674cdaa8e4598b7952a Mon Sep 17 00:00:00 2001 From: Mark Salyzyn Date: Tue, 21 May 2019 10:47:55 -0700 Subject: [PATCH] bootstat: add recovery/fastboot boot reasons Test: none Change-Id: I3013c28d02c9744bdfa312c179143f7db9e51596 --- bootstat/bootstat.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bootstat/bootstat.cpp b/bootstat/bootstat.cpp index edec9e23e..da9d44c10 100644 --- a/bootstat/bootstat.cpp +++ b/bootstat/bootstat.cpp @@ -304,6 +304,12 @@ const std::map kBootReasonMap = { {"reboot,pmic_off_fault,.*", 175}, {"reboot,pmic_off_s3rst,.*", 176}, {"reboot,pmic_off_other,.*", 177}, + {"reboot,fastboot_menu", 178}, + {"reboot,recovery_menu", 179}, + {"reboot,recovery_ui", 180}, + {"shutdown,fastboot", 181}, + {"shutdown,recovery", 182}, + {"reboot,unknown[0-9]*", 183}, }; // Converts a string value representing the reason the system booted to an