diff --git a/generic/vendor/common/hal_bluetooth_default.te b/generic/vendor/common/hal_bluetooth_default.te index 239ef937..f96e49bc 100644 --- a/generic/vendor/common/hal_bluetooth_default.te +++ b/generic/vendor/common/hal_bluetooth_default.te @@ -36,8 +36,8 @@ set_prop(hal_bluetooth, vendor_bluetooth_prop) #For bluetooth firmware r_dir_file(hal_bluetooth_default, bt_firmware_file) -allow hal_bluetooth_default persist_bluetooth_file:dir r_dir_perms; -allow hal_bluetooth_default persist_bluetooth_file:file r_file_perms; +allow hal_bluetooth_default persist_bluetooth_file:dir rw_dir_perms; +allow hal_bluetooth_default persist_bluetooth_file:file create_file_perms; #For QMI socket allow hal_bluetooth_default self:{ qipcrtr_socket } create_socket_perms_no_ioctl; diff --git a/legacy/vendor/common/hal_bluetooth_qti.te b/legacy/vendor/common/hal_bluetooth_qti.te index b67c2d21..c699e267 100644 --- a/legacy/vendor/common/hal_bluetooth_qti.te +++ b/legacy/vendor/common/hal_bluetooth_qti.te @@ -44,8 +44,8 @@ allow hal_bluetooth { #For bluetooth firmware r_dir_file(hal_bluetooth, bt_firmware_file) -allow hal_bluetooth_qti persist_bluetooth_file:dir r_dir_perms; -allow hal_bluetooth_qti persist_bluetooth_file:file r_file_perms; +allow hal_bluetooth_qti persist_bluetooth_file:dir rw_dir_perms; +allow hal_bluetooth_qti persist_bluetooth_file:file create_file_perms; r_dir_file(hal_bluetooth_qti, mnt_vendor_file) allow hal_bluetooth self:socket create_socket_perms; allowxperm hal_bluetooth self:socket ioctl msm_sock_ipc_ioctls;