OSDN Git Service

dumpstate: run lshal as root.
authorSteven Moreland <smoreland@google.com>
Fri, 24 Feb 2017 22:42:19 +0000 (14:42 -0800)
committerSteven Moreland <smoreland@google.com>
Fri, 24 Feb 2017 22:43:23 +0000 (14:43 -0800)
Running lshal as root gives additional information about which processes
have registered with which hals.

Test: adb bugreport and checked for appropriate output in lshal
Fixes: 35741078
Change-Id: I75606909ebccf2df3dc164d72edd2456facb3ad3

cmds/dumpstate/dumpstate.cpp

index 349bbed..3972cba 100644 (file)
@@ -960,7 +960,7 @@ static void dumpstate() {
                {"ps", "-A", "-T", "-Z", "-O", "pri,nice,rtprio,sched,pcy"});
     RunCommand("LIBRANK", {"librank"}, CommandOptions::AS_ROOT);
 
-    RunCommand("HARDWARE HALS", {"lshal"});
+    RunCommand("HARDWARE HALS", {"lshal"}, CommandOptions::AS_ROOT);
 
     RunCommand("PRINTENV", {"printenv"});
     RunCommand("NETSTAT", {"netstat", "-nW"});