You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.8 KiB
52 lines
1.8 KiB
# ==============================================
|
|
# MTK Bluetooth Policy Rule
|
|
# Add permission only for platform system
|
|
# ==============================================
|
|
|
|
# Date: 2018/01/17
|
|
#allow bluetooth to set property
|
|
set_prop(bluetooth, system_mtk_vendor_bluetooth_prop)
|
|
set_prop(bluetooth, debug_prop)
|
|
|
|
# Date: 2018/02/02
|
|
# Add permission for different storage types logging
|
|
|
|
# permission in storage for legacy android M version
|
|
allow bluetooth mnt_user_file:dir search;
|
|
allow bluetooth mnt_user_file:lnk_file read;
|
|
allow bluetooth storage_file:lnk_file read;
|
|
|
|
# purpose: allow access storage for legacy N version
|
|
allow bluetooth media_rw_data_file:file { create_file_perms };
|
|
allow bluetooth media_rw_data_file:dir { create_dir_perms };
|
|
|
|
# permission for storage link access in vzw Project
|
|
allow bluetooth mnt_media_rw_file:dir search;
|
|
|
|
# for logging sdcard access
|
|
allow bluetooth sdcard_type:dir { create_dir_perms };
|
|
allow bluetooth sdcard_type:file { create_file_perms };
|
|
allow bluetooth sdcardfs:dir { create_dir_perms };
|
|
allow bluetooth sdcardfs:file { create_file_perms };
|
|
allow bluetooth rootfs:lnk_file getattr;
|
|
|
|
allow bluetooth fuse:dir { create_dir_perms };
|
|
allow bluetooth fuse:file { create_file_perms };
|
|
|
|
# permission for storage access storage
|
|
allow bluetooth vfat:dir create_dir_perms;
|
|
allow bluetooth vfat:file create_file_perms;
|
|
allow bluetooth storage_file:dir { create_dir_perms };
|
|
allow bluetooth tmpfs:lnk_file read;
|
|
allow bluetooth storage_file:file { create_file_perms };
|
|
|
|
# Date: 2019/06/14
|
|
# Operation : Migration
|
|
get_prop(bluetooth, system_mtk_amslog_prop)
|
|
|
|
# Date: 2019/06/20
|
|
# Add dir create perms for bluetooth on /data/debuglogger
|
|
#{ read write create search open getattr };
|
|
allow bluetooth debuglog_data_file:dir {relabelto create_dir_perms};
|
|
allow bluetooth debuglog_data_file:file create_file_perms;
|