aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sepolicy/file_contexts4
-rw-r--r--sepolicy/hal_bluetooth_qti.te1
2 files changed, 5 insertions, 0 deletions
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index 37c5fe6..d0d9c61 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -2,6 +2,10 @@
/(vendor|system/vendor)/bin/init.wlan.sh u:object_r:qti_init_shell_exec:s0
/(vendor|system/vendor)/bin/wcg_mac_tool u:object_r:wcg_mac_exec:s0
+# Bluetooth
+/sys/devices/vendor/vendor:bt_qca6174/extldo u:object_r:sysfs_bluetooth_writable:s0
+/sys/devices/vendor/vendor:bt_qca6174/rfkill/rfkill0/state u:object_r:sysfs_bluetooth_writable:s0
+
# Data files
/data/fpc(/.*)? u:object_r:fpc_data_file:s0
/data/decrypt\.txt u:object_r:thermal_data_file:s0
diff --git a/sepolicy/hal_bluetooth_qti.te b/sepolicy/hal_bluetooth_qti.te
new file mode 100644
index 0000000..429585f
--- /dev/null
+++ b/sepolicy/hal_bluetooth_qti.te
@@ -0,0 +1 @@
+allow hal_bluetooth_qti sysfs_bluetooth_writable:file rw_file_perms;