diff --git a/healthd.te b/healthd.te index 4f2a2eaad5569461ceb19124311244f85d094a02..f54d716a9b0ca34452b820657b19a0160fee9cee 100644 --- a/healthd.te +++ b/healthd.te @@ -41,7 +41,7 @@ allow healthd self:process execmem; allow healthd proc_sysrq:file rw_file_perms; allow healthd self:capability sys_boot; -allow healthd healthd_service:service_manager { add find }; +allow healthd batteryproperties_service:service_manager { add find }; # Healthd needs to tell init to continue the boot # process when running in charger mode. diff --git a/service.te b/service.te index 9a4da4b4f11bfc1e86edf024809e80da50b6b218..3c3d82526845c78576165aac426972410cff7d30 100644 --- a/service.te +++ b/service.te @@ -5,7 +5,7 @@ type default_android_service, service_manager_type; type drmserver_service, service_manager_type; type gatekeeper_service, app_api_service, service_manager_type; type fingerprintd_service, service_manager_type; -type healthd_service, service_manager_type; +type batteryproperties_service, app_api_service, service_manager_type; type inputflinger_service, service_manager_type; type keystore_service, service_manager_type; type mediaserver_service, service_manager_type; diff --git a/service_contexts b/service_contexts index 681521d77a667d582b14f61e7126171aaa3ce5a9..8bd4e0cc24ad1ce52175372b59f4994700dee41f 100644 --- a/service_contexts +++ b/service_contexts @@ -10,8 +10,7 @@ appwidget u:object_r:appwidget_service:s0 assetatlas u:object_r:assetatlas_service:s0 audio u:object_r:audio_service:s0 backup u:object_r:backup_service:s0 -batteryproperties u:object_r:healthd_service:s0 -batterypropreg u:object_r:healthd_service:s0 +batteryproperties u:object_r:batteryproperties_service:s0 batterystats u:object_r:batterystats_service:s0 battery u:object_r:battery_service:s0 bluetooth_manager u:object_r:bluetooth_manager_service:s0 diff --git a/system_server.te b/system_server.te index fc0ad8e0bf99e17f21f73ba5b18a2feff99d5331..11c40eddaaa1087acf6769a90b1e7cdcd42f1bff 100644 --- a/system_server.te +++ b/system_server.te @@ -403,7 +403,7 @@ allow system_server sysfs_zram:file r_file_perms; allow system_server audioserver_service:service_manager find; allow system_server cameraserver_service:service_manager find; allow system_server drmserver_service:service_manager find; -allow system_server healthd_service:service_manager find; +allow system_server batteryproperties_service:service_manager find; allow system_server keystore_service:service_manager find; allow system_server gatekeeper_service:service_manager find; allow system_server fingerprintd_service:service_manager find; diff --git a/untrusted_app.te b/untrusted_app.te index 34e592981590d5ad143ca9fdc3ec659ee474d402..07b754f91a0c8efa588f2130e9cc8de96994c38f 100644 --- a/untrusted_app.te +++ b/untrusted_app.te @@ -69,7 +69,6 @@ allow untrusted_app servicemanager:service_manager list; allow untrusted_app audioserver_service:service_manager find; allow untrusted_app cameraserver_service:service_manager find; allow untrusted_app drmserver_service:service_manager find; -allow untrusted_app healthd_service:service_manager find; allow untrusted_app mediaserver_service:service_manager find; allow untrusted_app mediaextractor_service:service_manager find; allow untrusted_app mediacodec_service:service_manager find;