1 # connect to the UART 2 allow hal_bluetooth wcnss_filter:unix_stream_socket connectto; 3 4 # wc_transport.start_hci and friends 5 set_prop(hal_bluetooth, wc_prop) 6 7 # talk to system_server to set priority 8 allow hal_bluetooth fwk_scheduler_hwservice:hwservice_manager find; 9 allow hal_bluetooth system_server:binder call; 10 11 userdebug_or_eng(` 12 allow hal_bluetooth diag_device:chr_file rw_file_perms; 13 allow hal_bluetooth ramdump_vendor_data_file:dir w_dir_perms; 14 allow hal_bluetooth ramdump_vendor_data_file:file { create w_file_perms }; 15 allow hal_bluetooth sysfs_timestamp_switch:file r_file_perms; 16 r_dir_file(hal_bluetooth, debugfs_ipc) 17 r_dir_file(hal_bluetooth, sysfs_diag) 18 set_prop(hal_bluetooth, vendor_ssr_prop) 19 ') 20 21 dontaudit hal_bluetooth diag_device:chr_file rw_file_perms; 22