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

Commit 1c89e313 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

am: 70fbf026

Change-Id: I6a61cfdfd87f5fe838e5be08d6729fa6059af41f
parents 24bc2d7c 70fbf026
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"});