Bluetooth: Add Sepolicy for QTI default HAL (1/2)
Bug: 202113218 Test: manually Change-Id: I589b5c1df9fad6541799c1ba370fe2359cc31831
This commit is contained in:
parent
401c431fcd
commit
45b906133f
6 changed files with 21 additions and 0 deletions
1
bluetooth/device.te
Normal file
1
bluetooth/device.te
Normal file
|
@ -0,0 +1 @@
|
|||
type bt_device, dev_type;
|
5
bluetooth/file_contexts
Normal file
5
bluetooth/file_contexts
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Bluetooth
|
||||
/vendor/bin/hw/android\.hardware\.bluetooth@1\.0-service-qti u:object_r:hal_bluetooth_default_exec:s0
|
||||
|
||||
/dev/btpower u:object_r:bt_device:s0
|
||||
/dev/ttySAC18 u:object_r:hci_attach_dev:s0
|
1
bluetooth/genfs_contexts
Normal file
1
bluetooth/genfs_contexts
Normal file
|
@ -0,0 +1 @@
|
|||
genfscon sysfs /devices/platform/odm/odm:btqcom/rfkill/rfkill0/state u:object_r:sysfs_bluetooth_writable:s0
|
9
bluetooth/hal_bluetooth_default.te
Normal file
9
bluetooth/hal_bluetooth_default.te
Normal file
|
@ -0,0 +1,9 @@
|
|||
allow hal_bluetooth_default bt_device:chr_file rw_file_perms;
|
||||
|
||||
add_hwservice(hal_bluetooth_default, hal_bluetooth_coexistence_hwservice)
|
||||
|
||||
userdebug_or_eng(`
|
||||
allow hal_bluetooth_default sscoredump_vendor_data_crashinfo_file:dir rw_dir_perms;
|
||||
allow hal_bluetooth_default sscoredump_vendor_data_crashinfo_file:file { create_file_perms };
|
||||
set_prop(hal_bluetooth_default, vendor_ssrdump_prop)
|
||||
')
|
2
bluetooth/hwservice.te
Normal file
2
bluetooth/hwservice.te
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Bluetooth HAL extension
|
||||
type hal_bluetooth_coexistence_hwservice, hwservice_manager_type, vendor_hwservice_type;
|
3
bluetooth/hwservice_contexts
Normal file
3
bluetooth/hwservice_contexts
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Bluetooth HAL extension
|
||||
hardware.google.bluetooth.bt_channel_avoidance::IBTChannelAvoidance u:object_r:hal_bluetooth_coexistence_hwservice:s0
|
||||
hardware.google.bluetooth.sar::IBluetoothSar u:object_r:hal_bluetooth_coexistence_hwservice:s0
|
Loading…
Add table
Add a link
Reference in a new issue