diff --git a/private/healthd.te b/private/healthd.te index 0214c59f819b7174ff8454177881740505c564cd..fc13e28fd28a637a568afe6eb567537c591e3413 100644 --- a/private/healthd.te +++ b/private/healthd.te @@ -1,3 +1,6 @@ # type_transition must be private policy the domain_trans rules could stay # public, but conceptually should go with this init_daemon_domain(healthd) + +# Allow callback to storaged batteryproperties listener +binder_call(healthd, storaged) diff --git a/private/storaged.te b/private/storaged.te index 1d87251fd128a6dab19893f4ef062d5da74dd9e7..134bec4687cff64f338ef59bb22dc7065e136de8 100644 --- a/private/storaged.te +++ b/private/storaged.te @@ -29,6 +29,10 @@ add_service(storaged, storaged_service) binder_use(storaged) binder_call(storaged, system_server) +# use batteryproperties service +allow storaged batteryproperties_service:service_manager find; +binder_call(storaged, healthd) + ### ### neverallow ###