1# ============================================== 2# MTK Bluetooth Policy Rule 3# Add permission only for platform system 4# ============================================== 5 6# Date: 2018/02/02 7# Add permission for different storage types logging 8 9# permission in storage for legacy android M version 10allow bluetooth mnt_user_file:dir search; 11allow bluetooth mnt_user_file:lnk_file read; 12allow bluetooth storage_file:lnk_file read; 13 14# purpose: allow access storage for legacy N version 15allow bluetooth media_rw_data_file:file { create_file_perms }; 16allow bluetooth media_rw_data_file:dir { create_dir_perms }; 17 18# permission for storage link access in vzw Project 19allow bluetooth mnt_media_rw_file:dir search; 20 21# for logging sdcard access 22allow bluetooth sdcard_type:dir { create_dir_perms }; 23allow bluetooth sdcard_type:file { create_file_perms }; 24allow bluetooth sdcardfs:dir { create_dir_perms }; 25allow bluetooth sdcardfs:file { create_file_perms }; 26allow bluetooth rootfs:lnk_file getattr; 27 28allow bluetooth fuse:dir { create_dir_perms }; 29allow bluetooth fuse:file { create_file_perms }; 30 31# permission for storage access storage 32allow bluetooth vfat:dir create_dir_perms; 33allow bluetooth vfat:file create_file_perms; 34allow bluetooth storage_file:dir { create_dir_perms }; 35allow bluetooth tmpfs:lnk_file read; 36allow bluetooth storage_file:file { create_file_perms }; 37 38# Date: 2019/06/20 39# Add dir create perms for bluetooth on /data/debuglogger 40#{ read write create search open getattr }; 41allow bluetooth debuglog_data_file:dir {relabelto create_dir_perms}; 42allow bluetooth debuglog_data_file:file create_file_perms; 43