根據miflash方案適配Fastboot刷機方案即可。
- 建立flsh_all.bat刷機腳本:
根據不同分區來寫,主要分區如下
fastboot %* flash boot %~dp0\images\boot.img || @echo "Flash boot error" && exit /B 1
fastboot %* flash recovery %~dp0\images\recovery.img || @echo "Flash recovery error" && exit /B 1
fastboot %* flash system %~dp0\images\system.img || @echo "Flash system error" && exit /B 1
fastboot %* flash cache %~dp0\images\cache.img || @echo "Flash cache error" && exit /B 1
fastboot %* flash cust %~dp0\images\cust.img || @echo "Flash cust error" && exit /B 1
fastboot %* flash userdata %~dp0\images\userdata.img || @echo "Flash userdata error" && exit /B 1
fastboot %* reboot
- 將對於腳本的系統鏡像文件放入images路徑
- 配合小米官方刷機工具miflash載入刷機即可
不過多做闡述,在解包打包中遇到的問題,查看其它相關的教程。