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

Commit 70fbf026 authored by Yifan Hong's avatar Yifan Hong Committed by android-build-merger
Browse files

Merge "dumpstate: specify default args for lshal" into stage-aosp-master

am: d81eb0f2

Change-Id: I7df2e731acadbff677d14008fe6aaa7fb5e722ca
parents 8544224e d81eb0f2
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1239,10 +1239,12 @@ static void dumpstate() {
    RunCommand("LIBRANK", {"librank"}, CommandOptions::AS_ROOT);

    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();
    } 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"});