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
Merged-In: I158e327d5c5a13c64e48d5711f82903d4a50b8f0
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp
index 957dfa1..3c4e33e 100644
--- a/cmds/dumpstate/dumpstate.cpp
+++ b/cmds/dumpstate/dumpstate.cpp
@@ -1509,6 +1509,8 @@
 static void DumpstateRadioCommon() {
     DumpIpTablesAsRoot();
 
+    ds.AddDir(LOGPERSIST_DATA_DIR, false);
+
     if (!DropRootUser()) {
         return;
     }
@@ -1519,6 +1521,7 @@
     DoKmsg();
     DumpIpAddrAndRules();
     dump_route_tables();
+    DumpHals();
 
     RunDumpsys("NETWORK DIAGNOSTICS", {"connectivity", "--diag"},
                CommandOptions::WithTimeout(10).Build());
@@ -1588,8 +1591,6 @@
     RunDumpsys("DUMPSYS", {"wifi"}, CommandOptions::WithTimeout(90).Build(),
                SEC_TO_MSEC(10));
 
-    DumpHals();
-
     printf("========================================================\n");
     printf("== dumpstate: done (id %d)\n", ds.id_);
     printf("========================================================\n");