diff --git a/private/compat/26.0/26.0.ignore.cil b/private/compat/26.0/26.0.ignore.cil index a04e02622cf961c928b03689245574c7ba57d149..a517b96055f43b244f548faa0725089d44c6b6b3 100644 --- a/private/compat/26.0/26.0.ignore.cil +++ b/private/compat/26.0/26.0.ignore.cil @@ -7,6 +7,7 @@ broadcastradio_service e2fs e2fs_exec + hal_broadcastradio_hwservice hal_cas_hwservice hal_neuralnetworks_hwservice hal_tetheroffload_hwservice diff --git a/private/hwservice_contexts b/private/hwservice_contexts index 107e483922a67891d9468cb11f9977c300dd33c3..e304495532ccb8cc3f9fc99978ca212136c8fbb2 100644 --- a/private/hwservice_contexts +++ b/private/hwservice_contexts @@ -6,7 +6,7 @@ android.hardware.audio::IDevicesFactory u:object_r:hal_a android.hardware.biometrics.fingerprint::IBiometricsFingerprint u:object_r:hal_fingerprint_hwservice:s0 android.hardware.bluetooth::IBluetoothHci u:object_r:hal_bluetooth_hwservice:s0 android.hardware.boot::IBootControl u:object_r:hal_bootctl_hwservice:s0 -android.hardware.broadcastradio::IBroadcastRadioFactory u:object_r:hal_audio_hwservice:s0 +android.hardware.broadcastradio::IBroadcastRadioFactory u:object_r:hal_broadcastradio_hwservice:s0 android.hardware.camera.provider::ICameraProvider u:object_r:hal_camera_hwservice:s0 android.hardware.configstore::ISurfaceFlingerConfigs u:object_r:hal_configstore_ISurfaceFlingerConfigs:s0 android.hardware.contexthub::IContexthub u:object_r:hal_contexthub_hwservice:s0 diff --git a/private/system_server.te b/private/system_server.te index e61b30353b8a4f4132491b90bff0f1f36a2d4703..a46272ad6be7a9fc8fa6fb82507a50b6a7e99451 100644 --- a/private/system_server.te +++ b/private/system_server.te @@ -186,6 +186,7 @@ binder_service(system_server) # Use HALs hal_client_domain(system_server, hal_allocator) +hal_client_domain(system_server, hal_broadcastradio) hal_client_domain(system_server, hal_configstore) hal_client_domain(system_server, hal_contexthub) hal_client_domain(system_server, hal_fingerprint) diff --git a/public/attributes b/public/attributes index 386b21a569ecf7b0503716484b8b44362b1edc47..d384efd8d8b33c9eaf7e5b0491bd101dc2125e27 100644 --- a/public/attributes +++ b/public/attributes @@ -214,6 +214,12 @@ attribute hal_bootctl_client; expandattribute hal_bootctl_client true; attribute hal_bootctl_server; expandattribute hal_bootctl_server false; +attribute hal_broadcastradio; +expandattribute hal_broadcastradio true; +attribute hal_broadcastradio_client; +expandattribute hal_broadcastradio_client true; +attribute hal_broadcastradio_server; +expandattribute hal_broadcastradio_server false; attribute hal_camera; expandattribute hal_camera false; attribute hal_camera_client; diff --git a/public/hal_broadcastradio.te b/public/hal_broadcastradio.te new file mode 100644 index 0000000000000000000000000000000000000000..24d4908e14e3b46aaf2c788d98f5c4d4917c7f16 --- /dev/null +++ b/public/hal_broadcastradio.te @@ -0,0 +1,4 @@ +binder_call(hal_broadcastradio_client, hal_broadcastradio_server) + +add_hwservice(hal_broadcastradio_server, hal_broadcastradio_hwservice) +allow hal_broadcastradio_client hal_broadcastradio_hwservice:hwservice_manager find; diff --git a/public/hwservice.te b/public/hwservice.te index 1b11678dfb657e0820cdec09ea94020c788f050e..97b9b8d19899a3d35bb0c68e596dc98797b1c079 100644 --- a/public/hwservice.te +++ b/public/hwservice.te @@ -5,6 +5,7 @@ type fwk_sensor_hwservice, hwservice_manager_type, coredomain_hwservice; type hal_audio_hwservice, hwservice_manager_type; type hal_bluetooth_hwservice, hwservice_manager_type; type hal_bootctl_hwservice, hwservice_manager_type; +type hal_broadcastradio_hwservice, hwservice_manager_type; type hal_camera_hwservice, hwservice_manager_type; type hal_configstore_ISurfaceFlingerConfigs, hwservice_manager_type; type hal_contexthub_hwservice, hwservice_manager_type; diff --git a/vendor/file_contexts b/vendor/file_contexts index 08cc068d22bb7be7cdab3ef9cab6d51afa0b313a..522e4bfea5d14c33d163a42ba5c11cbec3ae92a4 100644 --- a/vendor/file_contexts +++ b/vendor/file_contexts @@ -5,6 +5,7 @@ /(vendor|system/vendor)/bin/hw/android\.hardware\.bluetooth@1\.0-service u:object_r:hal_bluetooth_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.biometrics\.fingerprint@2\.1-service u:object_r:hal_fingerprint_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.boot@1\.0-service u:object_r:hal_bootctl_default_exec:s0 +/(vendor|system/vendor)/bin/hw/android\.hardware\.broadcastradio@1\.1-service u:object_r:hal_broadcastradio_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.camera\.provider@2\.4-service u:object_r:hal_camera_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.configstore@1\.[0-9]+-service u:object_r:hal_configstore_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.contexthub@1\.0-service u:object_r:hal_contexthub_default_exec:s0 diff --git a/vendor/hal_broadcastradio_default.te b/vendor/hal_broadcastradio_default.te new file mode 100644 index 0000000000000000000000000000000000000000..37f65f4feef149964f40bd68943a0e99398bfb60 --- /dev/null +++ b/vendor/hal_broadcastradio_default.te @@ -0,0 +1,5 @@ +type hal_broadcastradio_default, domain; +hal_server_domain(hal_broadcastradio_default, hal_broadcastradio) + +type hal_broadcastradio_default_exec, exec_type, vendor_file_type, file_type; +init_daemon_domain(hal_broadcastradio_default)