Skip to content
Snippets Groups Projects
Commit 75cc6bf2 authored by Wei Wang's avatar Wei Wang
Browse files

Move thermal service into system_server

Bug: 118510237
Test: Boot and test callback on ThermalHAL 1.1 and ThermalHAL 2.0
Change-Id: I87e5563b9af605e6ea333dd5182131af6341fc86
parent 61deceb5
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
(type qtaguid_proc) (type qtaguid_proc)
(type thermalcallback_hwservice) (type thermalcallback_hwservice)
(type untrusted_v2_app) (type untrusted_v2_app)
(type thermalserviced)
(type thermalserviced_exec)
;; Public 28.0 SEPolicy is divergent on different devices w.r.t ;; Public 28.0 SEPolicy is divergent on different devices w.r.t
;; exported_audio_prop type. We need this typeattribute declaration so that the ;; exported_audio_prop type. We need this typeattribute declaration so that the
...@@ -729,8 +731,6 @@ ...@@ -729,8 +731,6 @@
(expandtypeattribute (textservices_service_28_0) true) (expandtypeattribute (textservices_service_28_0) true)
(expandtypeattribute (thermalcallback_hwservice_28_0) true) (expandtypeattribute (thermalcallback_hwservice_28_0) true)
(expandtypeattribute (thermal_service_28_0) true) (expandtypeattribute (thermal_service_28_0) true)
(expandtypeattribute (thermalserviced_28_0) true)
(expandtypeattribute (thermalserviced_exec_28_0) true)
(expandtypeattribute (timezone_service_28_0) true) (expandtypeattribute (timezone_service_28_0) true)
(expandtypeattribute (tmpfs_28_0) true) (expandtypeattribute (tmpfs_28_0) true)
(expandtypeattribute (tombstoned_28_0) true) (expandtypeattribute (tombstoned_28_0) true)
...@@ -1594,8 +1594,6 @@ ...@@ -1594,8 +1594,6 @@
(typeattributeset textservices_service_28_0 (textservices_service)) (typeattributeset textservices_service_28_0 (textservices_service))
(typeattributeset thermalcallback_hwservice_28_0 (thermalcallback_hwservice)) (typeattributeset thermalcallback_hwservice_28_0 (thermalcallback_hwservice))
(typeattributeset thermal_service_28_0 (thermal_service)) (typeattributeset thermal_service_28_0 (thermal_service))
(typeattributeset thermalserviced_28_0 (thermalserviced))
(typeattributeset thermalserviced_exec_28_0 (thermalserviced_exec))
(typeattributeset timezone_service_28_0 (timezone_service)) (typeattributeset timezone_service_28_0 (timezone_service))
(typeattributeset tmpfs_28_0 (tmpfs)) (typeattributeset tmpfs_28_0 (tmpfs))
(typeattributeset tombstoned_28_0 (tombstoned)) (typeattributeset tombstoned_28_0 (tombstoned))
......
...@@ -286,7 +286,6 @@ ...@@ -286,7 +286,6 @@
/system/bin/update_engine u:object_r:update_engine_exec:s0 /system/bin/update_engine u:object_r:update_engine_exec:s0
/system/bin/bspatch u:object_r:update_engine_exec:s0 /system/bin/bspatch u:object_r:update_engine_exec:s0
/system/bin/storaged u:object_r:storaged_exec:s0 /system/bin/storaged u:object_r:storaged_exec:s0
/system/bin/thermalserviced u:object_r:thermalserviced_exec:s0
/system/bin/wpantund u:object_r:wpantund_exec:s0 /system/bin/wpantund u:object_r:wpantund_exec:s0
/system/bin/virtual_touchpad u:object_r:virtual_touchpad_exec:s0 /system/bin/virtual_touchpad u:object_r:virtual_touchpad_exec:s0
/system/bin/hw/android\.frameworks\.bufferhub@1\.0-service u:object_r:fwk_bufferhub_exec:s0 /system/bin/hw/android\.frameworks\.bufferhub@1\.0-service u:object_r:fwk_bufferhub_exec:s0
......
...@@ -659,7 +659,6 @@ allow system_server netd_service:service_manager find; ...@@ -659,7 +659,6 @@ allow system_server netd_service:service_manager find;
allow system_server nfc_service:service_manager find; allow system_server nfc_service:service_manager find;
allow system_server radio_service:service_manager find; allow system_server radio_service:service_manager find;
allow system_server stats_service:service_manager find; allow system_server stats_service:service_manager find;
allow system_server thermal_service:service_manager find;
allow system_server storaged_service:service_manager find; allow system_server storaged_service:service_manager find;
allow system_server surfaceflinger_service:service_manager find; allow system_server surfaceflinger_service:service_manager find;
allow system_server vold_service:service_manager find; allow system_server vold_service:service_manager find;
......
typeattribute thermalserviced coredomain;
init_daemon_domain(thermalserviced)
...@@ -29,7 +29,6 @@ type secure_element_service, service_manager_type; ...@@ -29,7 +29,6 @@ type secure_element_service, service_manager_type;
type storaged_service, service_manager_type; type storaged_service, service_manager_type;
type surfaceflinger_service, app_api_service, ephemeral_app_api_service, service_manager_type; type surfaceflinger_service, app_api_service, ephemeral_app_api_service, service_manager_type;
type system_app_service, service_manager_type; type system_app_service, service_manager_type;
type thermal_service, service_manager_type;
type update_engine_service, service_manager_type; type update_engine_service, service_manager_type;
type virtual_touchpad_service, service_manager_type; type virtual_touchpad_service, service_manager_type;
type vold_service, service_manager_type; type vold_service, service_manager_type;
...@@ -147,6 +146,7 @@ type task_service, system_server_service, service_manager_type; ...@@ -147,6 +146,7 @@ type task_service, system_server_service, service_manager_type;
type textclassification_service, app_api_service, ephemeral_app_api_service, system_server_service, service_manager_type; type textclassification_service, app_api_service, ephemeral_app_api_service, system_server_service, service_manager_type;
type textservices_service, app_api_service, ephemeral_app_api_service, system_server_service, service_manager_type; type textservices_service, app_api_service, ephemeral_app_api_service, system_server_service, service_manager_type;
type telecom_service, app_api_service, ephemeral_app_api_service, system_server_service, service_manager_type; type telecom_service, app_api_service, ephemeral_app_api_service, system_server_service, service_manager_type;
type thermal_service, system_server_service, service_manager_type;
type timedetector_service, system_server_service, service_manager_type; type timedetector_service, system_server_service, service_manager_type;
type timezone_service, system_server_service, service_manager_type; type timezone_service, system_server_service, service_manager_type;
type timezonedetector_service, system_server_service, service_manager_type; type timezonedetector_service, system_server_service, service_manager_type;
......
# thermalserviced -- thermal management services for system and vendor
type thermalserviced, domain;
type thermalserviced_exec, system_file_type, exec_type, file_type;
binder_use(thermalserviced)
binder_service(thermalserviced)
add_service(thermalserviced, thermal_service)
hwbinder_use(thermalserviced)
hal_client_domain(thermalserviced, hal_thermal)
add_hwservice(thermalserviced, thermalcallback_hwservice)
binder_call(thermalserviced, platform_app)
binder_call(thermalserviced, system_server)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment