Move Broadcast Radio HAL to a separate binary.
Bug: 63600413
Test: VTS, instrumentation, audit2allow
Test: after cherry-pick - it builds
Change-Id: I57c0150a52c13f1ce21f9ae2147e3814aad0fb7e
(cherry picked from commit 567b947d85
)
This commit is contained in:
parent
21fc9ab8dd
commit
26ff5eb6b9
7 changed files with 16 additions and 1 deletions
|
@ -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.biometrics.fingerprint::IBiometricsFingerprint u:object_r:hal_fingerprint_hwservice:s0
|
||||||
android.hardware.bluetooth::IBluetoothHci u:object_r:hal_bluetooth_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.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.camera.provider::ICameraProvider u:object_r:hal_camera_hwservice:s0
|
||||||
android.hardware.configstore::ISurfaceFlingerConfigs u:object_r:hal_configstore_ISurfaceFlingerConfigs:s0
|
android.hardware.configstore::ISurfaceFlingerConfigs u:object_r:hal_configstore_ISurfaceFlingerConfigs:s0
|
||||||
android.hardware.contexthub::IContexthub u:object_r:hal_contexthub_hwservice:s0
|
android.hardware.contexthub::IContexthub u:object_r:hal_contexthub_hwservice:s0
|
||||||
|
|
|
@ -180,6 +180,7 @@ binder_service(system_server)
|
||||||
|
|
||||||
# Use HALs
|
# Use HALs
|
||||||
hal_client_domain(system_server, hal_allocator)
|
hal_client_domain(system_server, hal_allocator)
|
||||||
|
hal_client_domain(system_server, hal_broadcastradio)
|
||||||
hal_client_domain(system_server, hal_contexthub)
|
hal_client_domain(system_server, hal_contexthub)
|
||||||
hal_client_domain(system_server, hal_fingerprint)
|
hal_client_domain(system_server, hal_fingerprint)
|
||||||
hal_client_domain(system_server, hal_gnss)
|
hal_client_domain(system_server, hal_gnss)
|
||||||
|
|
|
@ -183,6 +183,9 @@ attribute hal_bluetooth_server;
|
||||||
attribute hal_bootctl;
|
attribute hal_bootctl;
|
||||||
attribute hal_bootctl_client;
|
attribute hal_bootctl_client;
|
||||||
attribute hal_bootctl_server;
|
attribute hal_bootctl_server;
|
||||||
|
attribute hal_broadcastradio;
|
||||||
|
attribute hal_broadcastradio_client;
|
||||||
|
attribute hal_broadcastradio_server;
|
||||||
attribute hal_camera;
|
attribute hal_camera;
|
||||||
attribute hal_camera_client;
|
attribute hal_camera_client;
|
||||||
attribute hal_camera_server;
|
attribute hal_camera_server;
|
||||||
|
|
4
public/hal_broadcastradio.te
Normal file
4
public/hal_broadcastradio.te
Normal file
|
@ -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;
|
|
@ -5,6 +5,7 @@ type fwk_sensor_hwservice, hwservice_manager_type, coredomain_hwservice;
|
||||||
type hal_audio_hwservice, hwservice_manager_type;
|
type hal_audio_hwservice, hwservice_manager_type;
|
||||||
type hal_bluetooth_hwservice, hwservice_manager_type;
|
type hal_bluetooth_hwservice, hwservice_manager_type;
|
||||||
type hal_bootctl_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_camera_hwservice, hwservice_manager_type;
|
||||||
type hal_configstore_ISurfaceFlingerConfigs, hwservice_manager_type;
|
type hal_configstore_ISurfaceFlingerConfigs, hwservice_manager_type;
|
||||||
type hal_contexthub_hwservice, hwservice_manager_type;
|
type hal_contexthub_hwservice, hwservice_manager_type;
|
||||||
|
|
1
vendor/file_contexts
vendored
1
vendor/file_contexts
vendored
|
@ -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\.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\.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\.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\.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\.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
|
/(vendor|system/vendor)/bin/hw/android\.hardware\.contexthub@1\.0-service u:object_r:hal_contexthub_default_exec:s0
|
||||||
|
|
5
vendor/hal_broadcastradio_default.te
vendored
Normal file
5
vendor/hal_broadcastradio_default.te
vendored
Normal file
|
@ -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)
|
Loading…
Reference in a new issue