1# ============================================== 2# Policy File of /system/bin/mmc_ffu Executable File 3 4# ============================================== 5# Type Declaration 6# ============================================== 7type mmc_ffu, domain; 8type mmc_ffu_exec, exec_type, file_type, vendor_file_type; 9 10# ============================================== 11# MTK Policy Rule 12# ============================================== 13init_daemon_domain(mmc_ffu) 14# Purpose: For seek file size 15allow mmc_ffu block_device:dir r_dir_perms; 16 17# Purpose: ioctl to /dev/misc-sd and for obtaining emmc vendor id and firmware revision 18allow mmc_ffu misc_sd_device:chr_file r_file_perms; 19 20#Purpose: Write eMMC firmware data to /dev/block/mmcblk0 for upgrade firmware 21allow mmc_ffu bootdevice_block_device:blk_file rw_file_perms; 22