1allow hal_bluetooth_default sysfs:file { write };
2allow hal_bluetooth_default ttyAMA2_device:chr_file { read write open ioctl };
3allow hal_bluetooth_default rtk_bt_device:chr_file { read write open ioctl };
4# Socket creation under /data/misc/bluedroid.
5type_transition hal_bluetooth_default bluetooth_data_file:sock_file bluetooth_socket;
6
7# Allow access to net_admin ioctls
8allowxperm hal_bluetooth_default self:udp_socket ioctl priv_sock_ioctls;
9
10#allow hal_bluetooth_default bluetooth_data_file:dir create_dir_perms;
11#allow hal_bluetooth_default bluetooth_data_file:file create_file_perms;
12#allow hal_bluetooth_default rtk_bt_device:chr_file rw_file_perms;
13
14# Socket creation under /data/misc/bluedroid.
15#allow hal_bluetooth_default bluetooth_socket:sock_file create_file_perms;
16allow hal_bluetooth_default self:capability net_admin;
17