1type hal_bluetooth_synabtlinux, domain;
2type hal_bluetooth_synabtlinux_exec, exec_type, file_type, vendor_file_type;
3
4hal_server_domain(hal_bluetooth_synabtlinux, hal_bluetooth)
5init_daemon_domain(hal_bluetooth_synabtlinux)
6
7allow hal_bluetooth_synabtlinux self:socket { create bind read write };
8allow hal_bluetooth_synabtlinux self:bluetooth_socket { create bind read write };
9allow hal_bluetooth_synabtlinux hci_attach_dev:chr_file rw_file_perms;
10allow hal_bluetooth_synabtlinux hal_power_stats_vendor_service:service_manager find;
11add_hwservice(hal_bluetooth_synabtlinux, hal_bluetooth_coexistence_hwservice)
12vndbinder_use(hal_bluetooth_synabtlinux)
13binder_call(hal_bluetooth_synabtlinux, hal_power_stats_default)
14get_prop(hal_bluetooth_synabtlinux, boot_status_prop)
15
16allow hal_bluetooth_synabtlinux sscoredump_vendor_data_crashinfo_file:dir create_dir_perms;
17allow hal_bluetooth_synabtlinux sscoredump_vendor_data_crashinfo_file:file create_file_perms;
18
19 userdebug_or_eng(`
20  allow hal_bluetooth_synabtlinux logbuffer_device:chr_file r_file_perms;
21  allow hal_bluetooth_synabtlinux sscoredump_vendor_data_coredump_file:dir create_dir_perms;
22  allow hal_bluetooth_synabtlinux sscoredump_vendor_data_coredump_file:file create_file_perms;
23 ')
24