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

Commit 668ede4b authored by Chiachang Wang's avatar Chiachang Wang
Browse files

Run distinct command to dump HIGH connectivity

The dumpsys design in connectivity was updated due to mainline
modularization work. Module can only register with default
priority which is NORMAL. RunDumpSysHigh will not be able to
dump the priority high information in ConnectivityService.
Thus, dump HIGH connectivity specifically to align with legacy
behavior.

Bug: 188387185
Test: adb bugreport
Change-Id: I0b712143527b866d2d749e37aa3d7f0f85317b17
Merged-In: I0b712143527b866d2d749e37aa3d7f0f85317b17
parent 8c68daf6
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1696,6 +1696,12 @@ static Dumpstate::RunStatus dumpstate() {

    RUN_SLOW_FUNCTION_WITH_CONSENT_CHECK(RunDumpsysHigh);

    // The dump mechanism in connectivity is refactored due to modularization work. Connectivity can
    // only register with a default priority(NORMAL priority). Dumpstate has to call connectivity
    // dump with priority parameters to dump high priority information.
    RunDumpsys("SERVICE HIGH connectivity", {"connectivity", "--dump-priority", "HIGH"},
                   CommandOptions::WithTimeout(10).Build());

    RunCommand("SYSTEM PROPERTIES", {"getprop"});

    RunCommand("STORAGED IO INFO", {"storaged", "-u", "-p"});