OSDN Git Service

Found out it is not possible to exec procrank as non-root/shell.
authorYi Jin <jinyithu@google.com>
Thu, 8 Mar 2018 19:25:58 +0000 (11:25 -0800)
committerYi Jin <jinyithu@google.com>
Tue, 27 Mar 2018 22:01:20 +0000 (15:01 -0700)
commitc36e91dd127751b54ef0886175b56b4a2e6af28c
tree940c28feec5a6215b2de0985083c46af866b80ef
parent909402935c82027d313a58a73b3faa3da6bc618b
Found out it is not possible to exec procrank as non-root/shell.
But it is ok to disable procrank since the information can be obtain via
dumpsys meminfo

Optimize the code style a bit.

Bug: 72510307
Test: atest incidentd_test
Change-Id: If06201aa708461b569d9fb007f20d1e51342d5c2
cmds/incidentd/src/Section.cpp
cmds/incidentd/src/incidentd_util.cpp
cmds/incidentd/src/incidentd_util.h
cmds/incidentd/tests/Section_test.cpp
core/proto/android/os/incident.proto