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