(1)8.1中OTA包涉及到的selinux权限
全部都是在device/mediatek/sepolicy/bsp/non_plat/recovery.te文件中需要添加
# hw++
allow recovery graphics_config_prop:file read;
allow recovery graphics_config_prop:file open;
allow recovery kmsg_device:chr_file write;
allow recovery kmsg_device:chr_file open;
allow recovery sysfs_power_supply:dir search;
allow recovery sysfs_power_supply:file read;
allow recovery sysfs_therm:dir search;
allow recovery sysfs_therm:file read;
allow recovery graphics_config_prop:file getattr;
allow recovery sysfs_power_supply:file open;
allow recovery sysfs_therm:file open;
allow recovery sysfs_power_supply:file getattr;
allow recovery sysfs_therm:file getattr;
在修改完selinux权限后,再制作OTA升级包,否则会导致初始版本和OTA升级包版本不同