• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ==============================================
2# MTK Bluetooth Policy Rule
3# Add permission only for platform system
4# ==============================================
5
6# Date: 2018/01/17
7#allow bluetooth to set property
8set_prop(bluetooth, system_mtk_vendor_bluetooth_prop)
9set_prop(bluetooth, debug_prop)
10
11# Date: 2018/02/02
12# Add permission for different storage types logging
13
14# permission in storage for legacy android M version
15allow bluetooth mnt_user_file:dir search;
16allow bluetooth mnt_user_file:lnk_file read;
17allow bluetooth storage_file:lnk_file read;
18
19# purpose: allow access storage for legacy N version
20allow bluetooth media_rw_data_file:file  { create_file_perms };
21allow bluetooth media_rw_data_file:dir { create_dir_perms };
22
23# permission for storage link access in vzw Project
24allow bluetooth mnt_media_rw_file:dir search;
25
26# for logging sdcard access
27allow bluetooth sdcard_type:dir { create_dir_perms };
28allow bluetooth sdcard_type:file { create_file_perms };
29allow bluetooth sdcardfs:dir { create_dir_perms };
30allow bluetooth sdcardfs:file { create_file_perms };
31allow bluetooth rootfs:lnk_file getattr;
32
33allow bluetooth fuse:dir { create_dir_perms };
34allow bluetooth fuse:file { create_file_perms };
35
36# permission for storage access storage
37allow bluetooth vfat:dir create_dir_perms;
38allow bluetooth vfat:file create_file_perms;
39allow bluetooth storage_file:dir { create_dir_perms };
40allow bluetooth tmpfs:lnk_file read;
41allow bluetooth storage_file:file { create_file_perms };
42
43# Date: 2019/06/14
44# Operation : Migration
45get_prop(bluetooth, system_mtk_amslog_prop)
46
47# Date: 2019/06/20
48# Add dir create perms for bluetooth on /data/debuglogger
49#{ read write create search open getattr };
50allow bluetooth debuglog_data_file:dir {relabelto create_dir_perms};
51allow bluetooth debuglog_data_file:file create_file_perms;
52