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

Commit 9de8a1fc 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
Merged-In: If9e8169ff15842ea4ae4a9ff3d8a641216dc93bd
parent d0f1f1e3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1308,7 +1308,7 @@ static Dumpstate::RunStatus RunDumpsysNormal() {
static void DumpHals() {
    if (!ds.IsZipping()) {
        RunCommand("HARDWARE HALS", {"lshal", "--all", "--types=all", "--debug"},
                   CommandOptions::WithTimeout(10).AsRootIfAvailable().Build());
                   CommandOptions::WithTimeout(60).AsRootIfAvailable().Build());
        return;
    }
    DurationReporter duration_reporter("DUMP HALS");