f5df7b4467
Bug: 119885568 Bug: 136597024 Test: adb shell cmd stats pull-source 10062 Test: statsd_testdrive 10062 Change-Id: Ide8ecd2683b3ea29a3207f89d35d7067490dabb1
24 lines
798 B
Text
24 lines
798 B
Text
typeattribute statsd coredomain;
|
|
typeattribute statsd stats_service_server;
|
|
|
|
init_daemon_domain(statsd)
|
|
|
|
# Allow to exec the perfetto cmdline client and pass it the trace config on
|
|
# stdint through a pipe. It allows statsd to capture traces and hand them
|
|
# to Android dropbox.
|
|
allow statsd perfetto_exec:file rx_file_perms;
|
|
domain_auto_trans(statsd, perfetto_exec, perfetto)
|
|
|
|
# Grant statsd with permissions to register the services.
|
|
allow statsd {
|
|
statscompanion_service
|
|
}:service_manager find;
|
|
|
|
# Allow incidentd to obtain the statsd incident section.
|
|
allow statsd incidentd:fifo_file write;
|
|
|
|
# Allow StatsCompanionService to pipe data to statsd.
|
|
allow statsd system_server:fifo_file { read getattr };
|
|
|
|
# Allow statsd to retrieve SF statistics over binder
|
|
binder_call(statsd, surfaceflinger);
|