L版本开启MTK_SHARED_SDCARD后OTA包放入内卡如何MOTA升级成功
时间:10-02
整理:3721RD
点击:
[DESCRIPTION]
L版本开启mtk_SHARED_SDCARD=yes, 并且把OTA包放入内卡,即升级包路径为
:/data/media/0/update.zip,在进行MOTA升级时,重启机器会遇到一直卡在黑屏、但不会进入
recovery mode的现象,仔细检查mtklog发现有如下error:
uncrypt : update package is /data/media/0/update.zip
uncrypt : failed to convert /data/media/0/update.zip to absolute path: Permission denied
[SOLUTION]
解决方法:
修改\alps\device\mediatek\common\sepolicy\uncrypt.te 如下:(其中蓝色为新添加)
# ==============================================
# MTK Policy Rule
# ============
allow uncrypt misc_device:chr_file *;
allow uncrypt platformblk_device:dir *;
allow uncrypt platformblk_device:blk_file *;
allow uncrypt system_data_file:file { open read };
allow uncrypt media_rw_data_file:dir { search getattr };
allow uncrypt media_rw_data_file:file { open read getattr };
L版本开启mtk_SHARED_SDCARD=yes, 并且把OTA包放入内卡,即升级包路径为
:/data/media/0/update.zip,在进行MOTA升级时,重启机器会遇到一直卡在黑屏、但不会进入
recovery mode的现象,仔细检查mtklog发现有如下error:
uncrypt : update package is /data/media/0/update.zip
uncrypt : failed to convert /data/media/0/update.zip to absolute path: Permission denied
[SOLUTION]
解决方法:
修改\alps\device\mediatek\common\sepolicy\uncrypt.te 如下:(其中蓝色为新添加)
# ==============================================
# MTK Policy Rule
# ============
allow uncrypt misc_device:chr_file *;
allow uncrypt platformblk_device:dir *;
allow uncrypt platformblk_device:blk_file *;
allow uncrypt system_data_file:file { open read };
allow uncrypt media_rw_data_file:dir { search getattr };
allow uncrypt media_rw_data_file:file { open read getattr };
:(:(:(:(