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

Commit cabbe4ff authored by Mark Salyzyn's avatar Mark Salyzyn
Browse files

bootstat: add reboot,2sec

Test: system/core/bootreason/boot_reason_test.sh
Bug: 63736262
Change-Id: Ie2e5872adb14e0979ff87eb4d2f57ab2849facd4
parent 2a8e5cce
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -223,6 +223,7 @@ const std::map<std::string, int32_t> kBootReasonMap = {
    {"2sec_reboot", 83},
    {"reboot,by_key", 84},
    {"reboot,longkey", 85},
    {"reboot,2sec", 86},
};

// Converts a string value representing the reason the system booted to an
@@ -406,6 +407,7 @@ std::string BootReasonStrToReason(const std::string& boot_reason) {
        {"shutdown,thermal", "thermal"},
        {"warm,s3_wakeup", "s3_wakeup"},
        {"hard,hw_reset", "hw_reset"},
        {"reboot,2sec", "2sec_reboot"},
        {"bootloader", ""},
    };