1# Date: WK1812
2# Purpose: add for sensor calibration
3allow em_svr als_ps_device:chr_file { read open ioctl };
4allow em_svr gsensor_device:chr_file { read open ioctl };
5
6# Date: WK1812
7# Purpose: add for MD log filter
8allow em_svr md_block_device:blk_file { read open };
9
10# Date: WK1812
11# Purpose: add for SIB capture
12allow em_svr para_block_device:blk_file { read open write};
13allow em_svr proc_lk_env:file { read write ioctl open };
14
15# Date: WK1812
16# Purpose: add for MSDC get/set
17allow em_svr misc_sd_device:chr_file { read open ioctl };
18
19# Date: WK1812
20# Purpose: add for battery log
21allow em_svr proc_battery_cmd:dir { search };
22allow em_svr proc_battery_cmd:file { create write open };
23
24# Date: WK1812
25# Purpose: add for light/proximity sensor
26allow em_svr nvram_device:blk_file { open read write };
27
28# Date: WK1812
29# Purpose: add for Gyroscope sensor
30allow em_svr gyroscope_device:chr_file { read ioctl open };
31
32# Date : 2018/06/15
33# Purpose : Allow EM access touchscreen settings
34allow em_svr sysfs_tpd_debug:dir { search };
35allow em_svr sysfs_tpd_setting:dir { search };
36allow em_svr sysfs_tpd_debug:file { rw_file_perms };
37allow em_svr sysfs_tpd_setting:file { rw_file_perms };
38
39# Date : 2018/06/15
40# Purpose : EM FreqHopping setting
41allow em_svr proc_freqhop:file { open read write };
42
43# Date : 2018/06/15
44# Purpose : EM flash reading
45allow em_svr proc_flash:file { open read };
46allow em_svr proc_partition:file { open read };
47
48# Date : 2018/06/15
49# Purpose : EM Power PMU reading/setting
50allow em_svr sysfs_pmu:dir { search };
51allow em_svr sysfs_pmu:file { rw_file_perms };
52allow em_svr sysfs_pmu:lnk_file { read };
53
54# Date : 2018/06/15
55# Purpose : EM Power debug_log setting
56allow em_svr sysfs_spm:dir { search };
57allow em_svr sysfs_spm:file { open read write };
58
59# Date: 2019/04/09
60# Purpose: battery temprature setting
61allow em_svr sysfs_battery_temp:file w_file_perms;
62allow em_svr sysfs_battery_consumption:file r_file_perms;
63allow em_svr sysfs_power_on_vol:file r_file_perms;
64allow em_svr sysfs_power_off_vol:file r_file_perms;
65allow em_svr sysfs_fg_disable:file w_file_perms;
66allow em_svr sysfs_dis_nafg:file w_file_perms;
67
68
69
70# Date : 2018/10/12
71# Purpose : EM Power PMU register reading/setting
72allow em_svr debugfs_regmap:dir { search };
73allow em_svr debugfs_regmap:file { rw_file_perms };
74
75# Date:2019/04/15
76# Purpose: EM Power
77allow em_svr toolbox_exec:file { map };
78