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
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp
index c8277fe..91d5524 100644
--- a/cmds/dumpstate/dumpstate.cpp
+++ b/cmds/dumpstate/dumpstate.cpp
@@ -1350,7 +1350,7 @@
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;
}