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

Commit b4389d9b authored by Jayachandran C's avatar Jayachandran C Committed by Jayachandran Chinnakkannu
Browse files

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
parent 4ede27d7
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -1594,6 +1594,8 @@ static Dumpstate::RunStatus DumpstateDefault() {
static void DumpstateRadioCommon() {
static void DumpstateRadioCommon() {
    DumpIpTablesAsRoot();
    DumpIpTablesAsRoot();


    ds.AddDir(LOGPERSIST_DATA_DIR, false);

    if (!DropRootUser()) {
    if (!DropRootUser()) {
        return;
        return;
    }
    }
@@ -1604,6 +1606,7 @@ static void DumpstateRadioCommon() {
    DoKmsg();
    DoKmsg();
    DumpIpAddrAndRules();
    DumpIpAddrAndRules();
    dump_route_tables();
    dump_route_tables();
    DumpHals();


    RunDumpsys("NETWORK DIAGNOSTICS", {"connectivity", "--diag"},
    RunDumpsys("NETWORK DIAGNOSTICS", {"connectivity", "--diag"},
               CommandOptions::WithTimeout(10).Build());
               CommandOptions::WithTimeout(10).Build());
@@ -1673,8 +1676,6 @@ static void DumpstateWifiOnly() {
    RunDumpsys("DUMPSYS", {"wifi"}, CommandOptions::WithTimeout(90).Build(),
    RunDumpsys("DUMPSYS", {"wifi"}, CommandOptions::WithTimeout(90).Build(),
               SEC_TO_MSEC(10));
               SEC_TO_MSEC(10));


    DumpHals();

    printf("========================================================\n");
    printf("========================================================\n");
    printf("== dumpstate: done (id %d)\n", ds.id_);
    printf("== dumpstate: done (id %d)\n", ds.id_);
    printf("========================================================\n");
    printf("========================================================\n");