summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorMike Ma <yanmin@google.com>2019-08-21 14:52:46 -0700
committerMike Ma <yanmin@google.com>2019-09-23 16:20:53 -0700
commit15f83a3118949d5993b662d1365fe3071a0352f4 (patch)
tree197d0ae37452ce4d18cedfe273281aa6332dd22f /tools/aapt2/java/JavaClassGenerator.cpp
parentd9bce3cfffdd08f34684e7757cb76f460b6f2c8f (diff)
Add an API to dump incident report for dumpstate
Instead of just relying on the regular iteration through the system services inside dumpstate, add another API to IIncidentManager dedicated for dumpstate. - It is only callable by dumpstate() (check the calling uid) - It has the same behavior as the current call inside dump() Advantages: - More explicit function name, right next to takeIncidentReport will make it easier to keep them in sync. - Nobody else can call it, make security easier. - If dumpstate calls it explicitly, it can skip the 10 second timeout - The regular dump() call should provide debugging data about incidentd itself, for example timestamps for the most recent N incident reports taken and the current state of the work directory, allowing us to debug incidentd itself. Bug: 137493082 Test: Manually trigger a bug report, and verify /proto/incident_log.proto in the zip file. Change-Id: I19139c765b53ede63d3beb3ea3ac40ada1aba42d Merged-In: I19139c765b53ede63d3beb3ea3ac40ada1aba42d
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions