5131ff6544
This prebuilt is based on the AOSP policy, but slightly manipulated so that the set of types and attributes are identical with R policy. Following types are removed. boot_status_prop dalvik_config_prop gnss_device surfaceflinger_color_prop surfaceflinger_prop systemsound_config_prop vold_config_prop vold_status_prop Following type is renamed. wificond_service -> wifinl80211_service Bug: 153661471 Test: N/A Change-Id: I018d5e43f53c2bf721db1d13f5f4be42b9782b29
23 lines
755 B
Text
23 lines
755 B
Text
typeattribute statsd coredomain;
|
|
|
|
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);
|