android: rtl8723bu wifi and bt support
Signed-off-by: August <mingxin.android@gmail.com>
This commit is contained in:
parent
4a204587b4
commit
0a0b11e0d7
529 changed files with 436710 additions and 3003 deletions
|
@ -1,2 +1,4 @@
|
|||
#============= bluetooth ==============
|
||||
allow bluetooth vendor_file:file { execute getattr open read };
|
||||
allow bluetooth tmpfs:dir { write };
|
||||
allow bluetooth rtk_bt_device:chr_file rw_file_perms;
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
type cedar_device, dev_type;
|
||||
type private_block_device, dev_type;
|
||||
type rtk_bt_device, dev_type;
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
/dev/block/zram0 u:object_r:swap_block_device:s0
|
||||
|
||||
# Bluetooth
|
||||
/dev/rtk_btusb u:object_r:rtk_bt_device:s0
|
||||
/dev/ttyS1 u:object_r:hci_attach_dev:s0
|
||||
/sys/class/rfkill/rfkill0/state u:object_r:sysfs_bluetooth_writable:s0
|
||||
|
||||
|
|
|
@ -12,3 +12,17 @@ allow hal_bluetooth_default bluetooth_data_file:file open;
|
|||
allow hal_bluetooth_default bluetooth_data_file:file read;
|
||||
allow hal_bluetooth_default proc:file open;
|
||||
allow hal_bluetooth_default proc:file write;
|
||||
|
||||
# Socket creation under /data/misc/bluedroid.
|
||||
type_transition hal_bluetooth_default bluetooth_data_file:sock_file bluetooth_socket;
|
||||
|
||||
# Allow access to net_admin ioctls
|
||||
allowxperm hal_bluetooth_default self:udp_socket ioctl priv_sock_ioctls;
|
||||
|
||||
allow hal_bluetooth_default bluetooth_data_file:dir create_dir_perms;
|
||||
allow hal_bluetooth_default bluetooth_data_file:file create_file_perms;
|
||||
allow hal_bluetooth_default rtk_bt_device:chr_file rw_file_perms;
|
||||
|
||||
# Socket creation under /data/misc/bluedroid.
|
||||
#allow hal_bluetooth_default bluetooth_socket:sock_file create_file_perms;
|
||||
allow hal_bluetooth_default self:capability net_admin;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue