Merge "Allow dumpstate to call statsd. This is needed for bugreport."

This commit is contained in:
Treehugger Robot 2018-01-23 03:27:43 +00:00 committed by Gerrit Code Review
commit 7724907ff4
2 changed files with 7 additions and 0 deletions

View file

@ -27,5 +27,8 @@ userdebug_or_eng(`
# Allow dumpstate to make binder calls to storaged service
binder_call(dumpstate, storaged)
# Allow dumpstate to make binder calls to statsd
binder_call(dumpstate, statsd)
# Collect metrics on boot time created by init
get_prop(dumpstate, boottime_prop)

View file

@ -53,6 +53,10 @@ add_service(statsd, stats_service)
allow statsd stats:fd use;
allow statsd stats:fifo_file write;
# Allow statsd to send dump info to dumpstate
allow statsd dumpstate:fd use;
allow statsd dumpstate:fifo_file { getattr write };
# Allow statsd to call back to stats with status updates.
binder_call(statsd, stats)