From b4389d9b481e9d869ee46fd23d4d098090e7d8f4 Mon Sep 17 00:00:00 2001 From: Jayachandran C Date: Mon, 8 Jul 2019 09:46:05 -0700 Subject: Dump HALs and enable persistent logs for radio bugreports HALs dumps are needed to debug WFC releated issues Persistent logs capture is needed to capture the history of logs that captures the scenario of telephony going to bad state. Bug: 138261934 Test: Triggered telephony dumpsys using connectivity monitor app and verified Change-Id: I158e327d5c5a13c64e48d5711f82903d4a50b8f0 --- cmds/dumpstate/dumpstate.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp index 4ac7b689cf..5de40776b9 100644 --- a/cmds/dumpstate/dumpstate.cpp +++ b/cmds/dumpstate/dumpstate.cpp @@ -1594,6 +1594,8 @@ static Dumpstate::RunStatus DumpstateDefault() { static void DumpstateRadioCommon() { DumpIpTablesAsRoot(); + ds.AddDir(LOGPERSIST_DATA_DIR, false); + if (!DropRootUser()) { return; } @@ -1604,6 +1606,7 @@ static void DumpstateRadioCommon() { DoKmsg(); DumpIpAddrAndRules(); dump_route_tables(); + DumpHals(); RunDumpsys("NETWORK DIAGNOSTICS", {"connectivity", "--diag"}, CommandOptions::WithTimeout(10).Build()); @@ -1673,8 +1676,6 @@ static void DumpstateWifiOnly() { RunDumpsys("DUMPSYS", {"wifi"}, CommandOptions::WithTimeout(90).Build(), SEC_TO_MSEC(10)); - DumpHals(); - printf("========================================================\n"); printf("== dumpstate: done (id %d)\n", ds.id_); printf("========================================================\n"); -- cgit v1.2.3-59-g8ed1b