L版本OTA升级遇到error:"system has been remounted R/W; reflash device to reenable OTA updates"

[DESCRIPTION]

L版本;如果有在bootable/recovery/目录下code中添加ensure_path_mounted(“/system”);

或者是在recovery mode下执行root integrity check之后,导致OTA升级失败,而且last_log中有如下error:

script aborted: system has been remounted R/W; reflash device to reenable OTA updates

system has been remounted R/W; reflash device to reenable OTA updates

[SOLUTION]

可以尝试在 /bootable/recovery/roots.cpp中作如下修改:(蓝色为添加部分)

int ensure_path_mounted(const char* path) {

} else if (strcmp(v->fs_type, "ext4") == 0 ||

strcmp(v->fs_type, "vfat") == 0) {

if (strcmp(v->mount_point, "/system") == 0)//add

result = mount(v->device, v->mount_point, v->fs_type,MS_NOATIME | MS_NODEV | MS_NODIRATIME |MS_RDONLY, "");//add

else //add

result = mount(v->device, v->mount_point, v->fs_type,

MS_NOATIME | MS_NODEV | MS_NODIRATIME, "");

如果问题还是不能解决,请提eservice给Mediatek,谢谢!

results matching ""

    No results matching ""