[DESCRIPTION]
MTK默认设计:
将OTA升级包放入SD卡根目录下,按键进入recovery模式选择sdcard菜单升级,升级完成后无法自动重启,需要手动选择菜单完成重启;
客户若有需求实现自动重启,请问应该如何更改!
修改recovery.cpp文件prompt_and_wait函数如下两处位置添加:return;//add
1、ui->Print("\nInstall from sdcard complete.\n");
finish_recovery(NULL);
return; //add
2、ui->Print("\nInstall from sdcard2 complete.\n");
finish_recovery(NULL);
return; //add
3、按照如下方式快速编译recovery.img并重新download即可验证:
./makeMtk mm bootable/recovery/
./makeMtk -opt=ONE_SHOT_MAKEFILE=build/target/board/Android.mk r recoveryimage
阅读(721) | 评论(0) | 转发(0) |