Statsd sepolicy hal_health

Statsd monitors battery capacity, which requires calls to the health
hal.

Fixes: 77923174
Bug: 77916472
Test: run cts-dev -m CtsStatsdHostTestCases -t android.cts.statsd.atom.HostAtomTests#testFullBatteryCapacity
Change-Id: I2d6685d4b91d8fbc7422dfdd0b6ed96bbddc0886
This commit is contained in:
Bookatz 2018-04-12 09:14:27 -07:00
parent 45c72ddfcf
commit 1300945c12

View file

@ -73,6 +73,7 @@ binder_call(statsd, stats)
# Allow access to with hardware layer and process stats. # Allow access to with hardware layer and process stats.
allow statsd proc_uid_cputime_showstat:file { getattr open read }; allow statsd proc_uid_cputime_showstat:file { getattr open read };
hal_client_domain(statsd, hal_health)
hal_client_domain(statsd, hal_power) hal_client_domain(statsd, hal_power)
hal_client_domain(statsd, hal_thermal) hal_client_domain(statsd, hal_thermal)