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

Commit e4e80e9b authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "bootstat: add more bootreasons" am: c91c8f88 am: a3d70004

Original change: https://android-review.googlesource.com/c/platform/system/core/+/1813399

Change-Id: Ic2ff2005a8efc8a26ee3476f51b830dc51b4d65f
parents e6bea430 a3d70004
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
@@ -439,6 +439,30 @@ const std::map<std::string, int32_t> kBootReasonMap = {
    {"reboot,forcedsilent", 191},
    {"reboot,forcednonsilent", 192},
    {"reboot,thermal,tj", 193},
    {"reboot,emergency", 194},
    {"reboot,factory", 195},
    {"reboot,fastboot", 196},
    {"reboot,gsa,hard", 197},
    {"reboot,gsa,soft", 198},
    {"reboot,master_dc,fault_n", 199},
    {"reboot,master_dc,reset", 200},
    {"reboot,ocp", 201},
    {"reboot,pin", 202},
    {"reboot,rom_recovery", 203},
    {"reboot,uvlo", 204},
    {"reboot,uvlo,pmic,if", 205},
    {"reboot,uvlo,pmic,main", 206},
    {"reboot,uvlo,pmic,sub", 207},
    {"reboot,warm", 208},
    {"watchdog,aoc", 209},
    {"watchdog,apc", 210},
    {"watchdog,apc,bl,debug,early", 211},
    {"watchdog,apc,bl,early", 212},
    {"watchdog,apc,early", 213},
    {"watchdog,apm", 214},
    {"watchdog,gsa,hard", 215},
    {"watchdog,gsa,soft", 216},
    {"watchdog,pmucal", 217},
};

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