1add_hwservice(hal_bluetooth_btlinux, hal_bluetooth_coexistence_hwservice); 2add_service(hal_bluetooth_btlinux, hal_bluetooth_coexistence_service); 3get_prop(hal_bluetooth_btlinux, boot_status_prop) 4 5allow hal_bluetooth_btlinux sysfs_bluetooth_writable:file rw_file_perms; 6allow hal_bluetooth_btlinux proc_bluetooth_writable:file rw_file_perms; 7allow hal_bluetooth_btlinux hci_attach_dev:chr_file rw_file_perms; 8allow hal_bluetooth_btlinux wb_coexistence_dev:chr_file rw_file_perms; 9binder_call(hal_bluetooth_btlinux, servicemanager) 10 11# power stats 12vndbinder_use(hal_bluetooth_btlinux) 13allow hal_bluetooth_btlinux hal_power_stats_vendor_service:service_manager find; 14binder_call(hal_bluetooth_btlinux, hal_power_stats_default) 15 16allow hal_bluetooth_btlinux sscoredump_vendor_data_crashinfo_file:dir create_dir_perms; 17allow hal_bluetooth_btlinux sscoredump_vendor_data_crashinfo_file:file create_file_perms; 18 19userdebug_or_eng(` 20 allow hal_bluetooth_btlinux sscoredump_vendor_data_coredump_file:dir create_dir_perms; 21 allow hal_bluetooth_btlinux sscoredump_vendor_data_coredump_file:file create_file_perms; 22 allow hal_bluetooth_btlinux logbuffer_device:chr_file r_file_perms; 23') 24