1# ==============================================
2# MTK Policy Rule
3# ============
4
5# Date : WK16.33
6# Purpose: Allow to access ged for gralloc_extra functions
7allow appdomain proc_ged:file rw_file_perms;
8allowxperm appdomain proc_ged:file ioctl { proc_ged_ioctls };
9
10# Date : W16.42
11# Operation : Integration
12# Purpose : DRM / DRI GPU driver required
13allow appdomain gpu_device:dir search;
14
15# Date : W17.30
16# Purpose : Allow MDP user access cmdq driver
17allow appdomain mtk_cmdq_device:chr_file {open read ioctl};
18
19# Date : W17.41
20# Operation: SQC
21# Purpose : Allow HWUI to access perfmgr
22allow appdomain proc_perfmgr:dir search;
23allow appdomain proc_perfmgr:file { getattr open read ioctl};
24allowxperm appdomain proc_perfmgr:file ioctl {
25  PERFMGR_FPSGO_QUEUE
26  PERFMGR_FPSGO_DEQUEUE
27  PERFMGR_FPSGO_QUEUE_CONNECT
28  PERFMGR_FPSGO_BQID
29};
30
31# Date : W19.4
32# Purpose : Allow MDP user access mdp driver
33allow appdomain mdp_device:chr_file rw_file_perms;
34allow appdomain mtk_mdp_device:chr_file rw_file_perms;
35allow appdomain sw_sync_device:chr_file rw_file_perms;
36
37# Date : W19.23
38# Operation : Migration
39# Purpose : For platform app com.android.gallery3d
40allow { appdomain -isolated_app } radio_data_file:file rw_file_perms;
41
42# Date : W19.23
43# Operation : Migration
44# Purpose : For app com.tencent.qqpimsecure
45allowxperm appdomain appdomain:fifo_file ioctl SNDCTL_TMR_START;
46
47# Date: 2019/06/17
48# Operation : Migration
49# Purpose : appdomain need get mtk_amslog_prop
50get_prop(appdomain, mtk_amslog_prop)
51