Andre Eisenbach | be27f92 | 2016-10-12 14:49:56 -0700 | [diff] [blame^] | 1 | # hwbinder access |
| 2 | hwbinder_use(hal_bluetooth) |
| 3 | |
| 4 | r_dir_file(hal_bluetooth, system_file) |
| 5 | |
| 6 | # call into the Bluetooth process (callbacks) |
| 7 | binder_call(hal_bluetooth, bluetooth) |
| 8 | |
| 9 | wakelock_use(hal_bluetooth); |
| 10 | |
| 11 | # bluetooth factory file accesses. |
| 12 | r_dir_file(hal_bluetooth, bluetooth_efs_file) |
| 13 | |
| 14 | allow hal_bluetooth { uhid_device hci_attach_dev }:chr_file rw_file_perms; |
| 15 | |
| 16 | # Access to config files to look for a Bluetooth address |
| 17 | r_dir_file(hal_bluetooth, bluetooth_data_file) |
| 18 | |
| 19 | # sysfs access. |
| 20 | r_dir_file(hal_bluetooth, sysfs_type) |
| 21 | allow hal_bluetooth sysfs_bluetooth_writable:file rw_file_perms; |
| 22 | allow hal_bluetooth self:capability2 wake_alarm; |
| 23 | |
| 24 | # Allow write access to bluetooth-specific properties |
| 25 | set_prop(hal_bluetooth, bluetooth_prop) |