Files
device_google_wahoo/sepolicy/hal_bluetooth_default.te
Philip Cuadra d158c13cce allow wcnss_filter CAP_SYS_NICE, Bluetooth HAL binder to system_server
wcnss_filter is on the critical path for Bluetooth audio playback.
It needs the ability to set critical threads to RT scheduling in order
to meet audio deadlines.

Bluetooth HAL needs to talk to system_server in order to call
SchedulingPolicyService to set priority of Bluetooth HAL threads to RT.

Bug 37518404
Test: play Bluetooth audio, verify threads are RT via systrace

Change-Id: I458055fe986e3b82b9f633a0e5be62e903e9fc50
2017-05-01 15:36:10 -07:00

10 lines
332 B
Plaintext

allow hal_bluetooth_default bt_device:chr_file rw_file_perms;
allow hal_bluetooth_default wcnss_filter:unix_stream_socket connectto;
# talk to system_server to set priority
allow hal_bluetooth fwk_scheduler_hwservice:hwservice_manager find;
allow hal_bluetooth system_server:binder call;
set_prop(hal_bluetooth_default, wc_prop)