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

Commit 90e8d8dd authored by Yifan Hong's avatar Yifan Hong
Browse files

dumpstate: specify default args for lshal

Test: adb bugreport
Bug: 71555570
Change-Id: Id027425c677ff5585fcb554490456422eeb37805
parent 822a435c
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -1239,10 +1239,12 @@ static void dumpstate() {
    RunCommand("LIBRANK", {"librank"}, CommandOptions::AS_ROOT);
    RunCommand("LIBRANK", {"librank"}, CommandOptions::AS_ROOT);


    if (ds.IsZipping()) {
    if (ds.IsZipping()) {
        RunCommand("HARDWARE HALS", {"lshal"}, CommandOptions::WithTimeout(2).AsRootIfAvailable().Build());
        RunCommand("HARDWARE HALS", {"lshal", "-lVSietrpc", "--types=b,c,l,z"},
                   CommandOptions::WithTimeout(2).AsRootIfAvailable().Build());
        DumpHals();
        DumpHals();
    } else {
    } else {
        RunCommand("HARDWARE HALS", {"lshal", "--debug"}, CommandOptions::WithTimeout(10).AsRootIfAvailable().Build());
        RunCommand("HARDWARE HALS", {"lshal", "-lVSietrpc", "--types=b,c,l,z", "--debug"},
                   CommandOptions::WithTimeout(10).AsRootIfAvailable().Build());
    }
    }


    RunCommand("PRINTENV", {"printenv"});
    RunCommand("PRINTENV", {"printenv"});