Add policies for new services HDMI and HDMICEC
Test: atest vts_treble_vintf_framework_test atest vts_treble_vintf_vendor_test Change-Id: Ic2c0525368218e207be236d073a3fe736151c43f
This commit is contained in:
parent
e3245a40df
commit
38ff3b4115
12 changed files with 40 additions and 0 deletions
|
@ -82,6 +82,8 @@ var (
|
|||
"android.hardware.sensors.ISensors/default": []string{},
|
||||
"android.hardware.soundtrigger3.ISoundTriggerHw/default": []string{},
|
||||
"android.hardware.thermal.IThermal/default": []string{},
|
||||
"android.hardware.tv.cec.IHdmiCec/default": []string{},
|
||||
"android.hardware.tv.hdmi.IHdmi/default": []string{},
|
||||
"android.hardware.tv.input.ITvInput/default": []string{},
|
||||
"android.hardware.tv.tuner.ITuner/default": []string{},
|
||||
"android.hardware.usb.IUsb/default": []string{},
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
hal_remoteaccess_service
|
||||
hal_thermal_service
|
||||
hal_tv_input_service
|
||||
hal_tv_hdmi_service
|
||||
hal_tv_hdmi_cec_service
|
||||
healthconnect_service
|
||||
keystore_config_prop
|
||||
permissive_mte_prop
|
||||
|
|
|
@ -67,6 +67,8 @@ android.hardware.security.sharedsecret.ISharedSecret/default u:objec
|
|||
android.hardware.sensors.ISensors/default u:object_r:hal_sensors_service:s0
|
||||
android.hardware.soundtrigger3.ISoundTriggerHw/default u:object_r:hal_audio_service:s0
|
||||
android.hardware.thermal.IThermal/default u:object_r:hal_thermal_service:s0
|
||||
android.hardware.tv.cec.IHdmiCec/default u:object_r:hal_tv_hdmi_cec_service:s0
|
||||
android.hardware.tv.hdmi.IHdmi/default u:object_r:hal_tv_hdmi_service:s0
|
||||
android.hardware.tv.tuner.ITuner/default u:object_r:hal_tv_tuner_service:s0
|
||||
android.hardware.tv.input.ITvInput/default u:object_r:hal_tv_input_service:s0
|
||||
android.hardware.usb.IUsb/default u:object_r:hal_usb_service:s0
|
||||
|
|
|
@ -330,6 +330,8 @@ hal_client_domain(system_server, hal_sensors)
|
|||
hal_client_domain(system_server, hal_tetheroffload)
|
||||
hal_client_domain(system_server, hal_thermal)
|
||||
hal_client_domain(system_server, hal_tv_cec)
|
||||
hal_client_domain(system_server, hal_tv_hdmi)
|
||||
hal_client_domain(system_server, hal_tv_hdmi_cec)
|
||||
hal_client_domain(system_server, hal_tv_input)
|
||||
hal_client_domain(system_server, hal_usb)
|
||||
hal_client_domain(system_server, hal_usb_gadget)
|
||||
|
|
|
@ -369,6 +369,8 @@ hal_attribute(telephony);
|
|||
hal_attribute(tetheroffload);
|
||||
hal_attribute(thermal);
|
||||
hal_attribute(tv_cec);
|
||||
hal_attribute(tv_hdmi);
|
||||
hal_attribute(tv_hdmi_cec);
|
||||
hal_attribute(tv_input);
|
||||
hal_attribute(tv_tuner);
|
||||
hal_attribute(usb);
|
||||
|
|
7
public/hal_tv_hdmi.te
Normal file
7
public/hal_tv_hdmi.te
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Binder IPC from clients into server, and callbacks
|
||||
binder_call(hal_tv_hdmi_client, hal_tv_hdmi_server)
|
||||
binder_call(hal_tv_hdmi_server, hal_tv_hdmi_client)
|
||||
binder_call(hal_tv_hdmi_client, servicemanager)
|
||||
binder_call(hal_tv_hdmi_server, servicemanager)
|
||||
|
||||
hal_attribute_service(hal_tv_hdmi, hal_tv_hdmi_service)
|
7
public/hal_tv_hdmi_cec.te
Normal file
7
public/hal_tv_hdmi_cec.te
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Binder IPC from clients into server, and callbacks
|
||||
binder_call(hal_tv_hdmi_cec_client, hal_tv_hdmi_cec_server)
|
||||
binder_call(hal_tv_hdmi_cec_server, hal_tv_hdmi_cec_client)
|
||||
binder_call(hal_tv_hdmi_cec_client, servicemanager)
|
||||
binder_call(hal_tv_hdmi_cec_server, servicemanager)
|
||||
|
||||
hal_attribute_service(hal_tv_hdmi_cec, hal_tv_hdmi_cec_service)
|
|
@ -306,6 +306,8 @@ type hal_secureclock_service, protected_service, hal_service_type, service_manag
|
|||
type hal_sharedsecret_service, protected_service, hal_service_type, service_manager_type;
|
||||
type hal_system_suspend_service, protected_service, hal_service_type, service_manager_type;
|
||||
type hal_thermal_service, protected_service, hal_service_type, service_manager_type;
|
||||
type hal_tv_hdmi_service, protected_service, hal_service_type, service_manager_type;
|
||||
type hal_tv_hdmi_cec_service, protected_service, hal_service_type, service_manager_type;
|
||||
type hal_tv_input_service, protected_service, hal_service_type, service_manager_type;
|
||||
type hal_tv_tuner_service, protected_service, hal_service_type, service_manager_type;
|
||||
type hal_usb_service, protected_service, hal_service_type, service_manager_type;
|
||||
|
|
|
@ -97,6 +97,8 @@ userdebug_or_eng(`
|
|||
typeattribute su hal_tetheroffload_client;
|
||||
typeattribute su hal_thermal_client;
|
||||
typeattribute su hal_tv_cec_client;
|
||||
typeattribute su hal_tv_hdmi_client;
|
||||
typeattribute su hal_tv_hdmi_cec_client;
|
||||
typeattribute su hal_tv_input_client;
|
||||
typeattribute su hal_tv_tuner_client;
|
||||
typeattribute su hal_usb_client;
|
||||
|
|
2
vendor/file_contexts
vendored
2
vendor/file_contexts
vendored
|
@ -94,6 +94,8 @@
|
|||
/(vendor|system/vendor)/bin/hw/android\.hardware\.thermal@1\.[01]-service u:object_r:hal_thermal_default_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/android\.hardware\.thermal-service\.example u:object_r:hal_thermal_default_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/android\.hardware\.tv\.cec@1\.[01]-service u:object_r:hal_tv_cec_default_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/android\.hardware\.tv\.cec-service u:object_r:hal_tv_hdmi_cec_default_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/android\.hardware\.tv\.hdmi-service u:object_r:hal_tv_hdmi_default_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/android\.hardware\.tv\.input@1\.0-service u:object_r:hal_tv_input_default_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/android\.hardware\.tv\.input-service\.example u:object_r:hal_tv_input_default_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/android\.hardware\.tv\.tuner@1\.[01]-service u:object_r:hal_tv_tuner_default_exec:s0
|
||||
|
|
5
vendor/hal_tv_hdmi_cec_default.te
vendored
Normal file
5
vendor/hal_tv_hdmi_cec_default.te
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
type hal_tv_hdmi_cec_default, domain;
|
||||
hal_server_domain(hal_tv_hdmi_cec_default, hal_tv_hdmi_cec)
|
||||
|
||||
type hal_tv_hdmi_cec_default_exec, exec_type, vendor_file_type, file_type;
|
||||
init_daemon_domain(hal_tv_hdmi_cec_default)
|
5
vendor/hal_tv_hdmi_default.te
vendored
Normal file
5
vendor/hal_tv_hdmi_default.te
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
type hal_tv_hdmi_default, domain;
|
||||
hal_server_domain(hal_tv_hdmi_default, hal_tv_hdmi)
|
||||
|
||||
type hal_tv_hdmi_default_exec, exec_type, vendor_file_type, file_type;
|
||||
init_daemon_domain(hal_tv_hdmi_default)
|
Loading…
Reference in a new issue