2015-04-01 22:04:11 +00:00
|
|
|
# Bluetooth executables and script (bdAddrLoader, init.flo.bt.sh)
|
2020-11-26 10:02:35 +00:00
|
|
|
# type bluetooth_loader, domain, device_domain_deprecated;
|
|
|
|
# type bluetooth_loader_exec, exec_type, file_type;
|
2013-11-15 17:58:07 +00:00
|
|
|
|
2015-04-01 22:04:11 +00:00
|
|
|
# Run init.flo.bt.sh
|
|
|
|
allow bluetooth_loader shell_exec:file rx_file_perms;
|
2014-02-06 21:26:14 +00:00
|
|
|
allow bluetooth_loader bluetooth_loader_exec:file rx_file_perms;
|
2013-11-15 17:58:07 +00:00
|
|
|
|
2015-04-01 22:04:11 +00:00
|
|
|
# init.flo.bt.sh needs /system/bin/log access
|
2013-11-15 17:58:07 +00:00
|
|
|
allow bluetooth_loader devpts:chr_file rw_file_perms;
|
|
|
|
|
2015-04-01 22:04:11 +00:00
|
|
|
# Run hci_qcomm_init from init.flo.bt.sh
|
2013-11-15 17:58:07 +00:00
|
|
|
domain_auto_trans(bluetooth_loader, hci_attach_exec, hci_attach)
|
|
|
|
allow hci_attach bluetooth_loader:fd use;
|
|
|
|
|
|
|
|
# Read mac address from persist partition
|
|
|
|
allow bluetooth_loader persist_file:dir search;
|
|
|
|
r_dir_file(bluetooth_loader, persist_bluetooth_file)
|
|
|
|
|
|
|
|
# Set persist.service.bdroid.* and bluetooth.* property values
|
2015-05-11 17:53:24 +00:00
|
|
|
set_prop(bluetooth, bluetooth_prop)
|
|
|
|
set_prop(bluetooth_loader, bluetooth_prop)
|
2013-11-15 17:58:07 +00:00
|
|
|
|
2015-04-01 22:04:11 +00:00
|
|
|
# Allow getprop/setprop for init.flo.bt.sh
|
2013-11-15 17:58:07 +00:00
|
|
|
allow bluetooth_loader system_file:file execute_no_trans;
|
2015-08-25 15:43:36 +00:00
|
|
|
allow bluetooth_loader toolbox_exec:file rx_file_perms;
|