mtk10871 6d71aabb69 [ALPS04690934] BT feature: log in data area
[Detail]
Log is available to store in data area.
Change api for setting corresponding permission.

MTK-Commit-Id: 00be41e217b22f187a664d5d51cb18d52bc63635

Change-Id: I69c0869067e8f815c0f41930248b1c0e2c7f6358
CR-Id: ALPS04690934
Feature: BT AOSP
(cherry picked from commit e7396905545c154bc2ff6e76b4fa117ddbca0bb9)
2020-01-18 10:19:50 +08:00

43 lines
1.6 KiB
Plaintext

# ==============================================
# MTK Bluetooth Policy Rule
# Add permission only for platform system
# ==============================================
# 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/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;