diff --git a/private/bluetooth.te b/private/bluetooth.te index 86a7a2a8880a72aee0a1280cfaf76a1ce2fb7547..fec94941b0857b85f649ea03d2c1c209867a32ca 100644 --- a/private/bluetooth.te +++ b/private/bluetooth.te @@ -61,6 +61,9 @@ allow bluetooth self:global_capability_class_set sys_nice; hal_client_domain(bluetooth, hal_bluetooth) hal_client_domain(bluetooth, hal_telephony) +# Bluetooth A2DP offload requires binding with audio HAL +hal_client_domain(bluetooth, hal_audio) + read_runtime_log_tags(bluetooth) ### diff --git a/private/hwservice_contexts b/private/hwservice_contexts index d7ffb8f273d8130d1255e9e082729ae9cfcde6e3..abc989eae5c69955eae5cface7611ead5c1252eb 100644 --- a/private/hwservice_contexts +++ b/private/hwservice_contexts @@ -6,6 +6,7 @@ android.hardware.audio::IDevicesFactory u:object_r:hal_a android.hardware.authsecret::IAuthSecret u:object_r:hal_authsecret_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.a2dp::IBluetoothAudioOffload u:object_r:hal_audio_hwservice:s0 android.hardware.boot::IBootControl u:object_r:hal_bootctl_hwservice:s0 android.hardware.broadcastradio::IBroadcastRadio u:object_r:hal_broadcastradio_hwservice:s0 android.hardware.broadcastradio::IBroadcastRadioFactory u:object_r:hal_broadcastradio_hwservice:s0 diff --git a/public/hal_audio.te b/public/hal_audio.te index 08cc1ff2aef5d6cf4a14264a82b3148aadae9ed3..8d9d9328c1e16a829ba9a88dfcc52ab43ff1a041 100644 --- a/public/hal_audio.te +++ b/public/hal_audio.te @@ -9,8 +9,8 @@ allow hal_audio ion_device:chr_file r_file_perms; r_dir_file(hal_audio, proc) r_dir_file(hal_audio, proc_asound) -allow hal_audio audio_device:dir r_dir_perms; -allow hal_audio audio_device:chr_file rw_file_perms; +allow hal_audio_server audio_device:dir r_dir_perms; +allow hal_audio_server audio_device:chr_file rw_file_perms; # Needed to provide debug dump output via dumpsys' pipes. allow hal_audio shell:fd use;