Allow communication between mediametrics & statsd

Bug: 141714243
Test: statsd_testdrive
Change-Id: I75fed754c04e3e031d5600d0487e83099402f814
This commit is contained in:
Robert Shih 2021-03-12 03:57:38 -08:00
parent c0119885d6
commit d37ba7316c
3 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,8 @@
typeattribute mediametrics coredomain;
init_daemon_domain(mediametrics)
# Needed for stats callback registration to statsd.
allow mediametrics stats_service:service_manager find;
allow mediametrics statsmanager_service:service_manager find;
binder_call(mediametrics, statsd)

View file

@ -43,6 +43,7 @@ neverallow {
-gmscore_app
-gpuservice
-incidentd
-mediametrics
-platform_app
-priv_app
-shell

View file

@ -33,6 +33,10 @@ binder_call(statsd, system_server)
allow statsd gpu_service:service_manager find;
binder_call(statsd, gpuservice)
# Allow statsd to interact with mediametrics
allow statsd mediametrics_service:service_manager find;
binder_call(statsd, mediametrics)
# Allow logd access.
read_logd(statsd)
control_logd(statsd)