[ALPS04419954] sync code from android p

[Detail]
sync code from android p

MTK-Commit-Id: d0b19b83da618bab91caff90dbe9525f3f6a22a3

Change-Id: Ib664dbb0b8a1b69012fc81a2ad1bde770ccf478b
CR-Id:ALPS04419954
Feature:[Android Default] Camera Application Basic Functions
This commit is contained in:
HungWen Hsieh 2020-01-18 10:11:22 +08:00
parent 6247cd3587
commit 2278c51caa
6 changed files with 20 additions and 0 deletions

View File

@ -406,3 +406,8 @@ allow aee_aedv para_block_device:blk_file rw_file_perms;
allow aee_aedv aee_dumpsys_vendor_file:file ioctl;
allowxperm aee_aedv aee_dumpsys_vendor_file:file ioctl FS_IOC_FIEMAP;
#data/dipdebug
allow aee_aedv aee_dipdebug_vendor_file:dir r_dir_perms;
allow aee_aedv aee_dipdebug_vendor_file:file r_file_perms;
allow aee_aedv proc_isp_p2:dir r_dir_perms;
allow aee_aedv proc_isp_p2:file r_file_perms;

View File

@ -146,3 +146,7 @@ allow dumpstate proc_mtk_es_reg_dump:file r_file_perms;
#Purpose: Allow dumpstate to read /sys/power/mtkpasr/execstate
allow dumpstate sysfs_execstate:file r_file_perms;
allow dumpstate proc_isp_p2:dir r_dir_perms;
allow dumpstate proc_isp_p2:file r_file_perms;

View File

@ -70,6 +70,7 @@ type proc_pidmap, fs_type, proc_type;
type proc_kpageflags, fs_type, proc_type;
type proc_slabtrace, fs_type, proc_type;
type proc_cmdq_debug, fs_type, proc_type;
type proc_isp_p2, fs_type, proc_type;
type proc_dbg_repo, fs_type, proc_type;
type proc_isp_p2_dump, fs_type, proc_type;
type proc_isp_p2_kedump, fs_type, proc_type;
@ -342,3 +343,5 @@ type sysfs_leds_setting, fs_type, sysfs_type;
# Date : 2019/04/09
# Purpose: mtk EM battery temprature settings
type sysfs_battery_temp, fs_type, sysfs_type;
type aee_dipdebug_vendor_file, file_type, data_file_type;

View File

@ -64,6 +64,7 @@
/data/connsyslog(/.*)? u:object_r:consyslog_data_file:s0
/data/misc/stp_dump(/.*)? u:object_r:stp_dump_data_file:s0
/data/vendor/mediadrm(/.*)? u:object_r:mediadrm_vendor_data_file:s0
/data/vendor/dipdebug(/.*)? u:object_r:aee_dipdebug_vendor_file:s0
# Misc data
#/data/misc/acdapi(/.*)? u:object_r:acdapi_data_file:s0

View File

@ -112,6 +112,7 @@ genfscon debugfs /rt-regmap u:object_r:debugfs_regmap:s0
# Date : 2018/11/01
# Purpose : mtk EM c2k bypass read usb file
genfscon sysfs /devices/virtual/usb_rawbulk u:object_r:sys_usb_rawbulk:s0
genfscon proc /isp_p2 u:object_r:proc_isp_p2:s0
#Date : 2018/11/22
#Purpose: allow mdlogger to read mdinfo file

View File

@ -315,3 +315,9 @@ allow mtk_hal_camera mnt_vendor_file:file create_file_perms;
# Purpose: allow mtk_hal_camera to access gz_device node
allow mtk_hal_camera gz_device:chr_file rw_file_perms;
#data/dipdebug
allow mtk_hal_camera aee_dipdebug_vendor_file:dir rw_dir_perms;
allow mtk_hal_camera aee_dipdebug_vendor_file:file { create_file_perms };
allow mtk_hal_camera proc_isp_p2:dir search;
allow mtk_hal_camera proc_isp_p2:file {create_file_perms};