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

Commit d3646e03 authored by Steven Moreland's avatar Steven Moreland
Browse files

dumpstate: more time for non-zipping lshal debug

In a normal zipped bugreport, each individual HAL is given 2s to dump
debug information. However, there may be dozens of HALs on a device. In
order to dump all of this information when not zipping, increasing the
timeout of debugging all of the HALs to 60s.

Bug: 169025960
Test: adb bugreport > bug.txt

Change-Id: If9e8169ff15842ea4ae4a9ff3d8a641216dc93bd
parent 487496c4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1350,7 +1350,7 @@ static Dumpstate::RunStatus RunDumpsysNormal() {
static void DumpHals(int out_fd = STDOUT_FILENO) {
    if (!ds.IsZipping()) {
        RunCommand("HARDWARE HALS", {"lshal", "--all", "--types=all", "--debug"},
                   CommandOptions::WithTimeout(10).AsRootIfAvailable().Build(),
                   CommandOptions::WithTimeout(60).AsRootIfAvailable().Build(),
                   false, out_fd);
        return;
    }