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

Commit fa544b55 authored by Zheng Pan's avatar Zheng Pan
Browse files

bootstat: Remove long key press check

Current check is kind of device specfic and causes false positive.

Bug: 320829712
Test: Trigger long key press and check boot reason
Change-Id: I5b2b8307f16eecd05513bfa51494da174fc839bd
parent 14258369
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -1079,12 +1079,7 @@ std::string BootReasonStrToReason(const std::string& boot_reason) {
      }

      // Check for kernel panics, allowed to override reboot command.
      if (!addKernelPanicSubReason(console, ret) &&
          // check for long-press power down
          ((console.rfind("Power held for ") != std::string::npos) ||
           (console.rfind("charger: [") != std::string::npos))) {
        ret = "cold";
      }
      (void)addKernelPanicSubReason(console, ret);
    }

    // TODO: use the HAL to get battery level (http://b/77725702).