OSDN Git Service

Don't use su to when calling am or dumpsys.
authorFelipe Leme <felipeal@google.com>
Fri, 11 Mar 2016 18:38:19 +0000 (10:38 -0800)
committerFelipe Leme <felipeal@google.com>
Thu, 17 Mar 2016 16:50:39 +0000 (09:50 -0700)
commitcf6a8b47dc04f1c33ddc337b5e21f2c5b7354cb5
treec72806741a9278cd772b774a2e62f23fd97748e2
parentd3d45c3dddf48d557f2b0d622df8ebc1317f9bb5
Don't use su to when calling am or dumpsys.

su is not available on user builds anymore, hence the bugreport
notifications would never be sent on those builds. Instead, it should
explicitly drop root using system calls.

BUG: 27583193
Change-Id: Ia6256b241fdd6ab4c059fb764b10b4445ad6551d
cmds/dumpstate/dumpstate.cpp
cmds/dumpstate/dumpstate.h
cmds/dumpstate/utils.cpp