刷机脚本

注意:

一. 下载的时候

    #######保持手机处于开机的状态#######
     
    1.先进入到FASTBOOT模式
    
    备注:1.目前通过长按音量- +单按power 键两次可以进入到FASTBOOT模式
    
          2.或者在连接ADB的情况下,用adb reboot fastboot 进入到FASTBOOT模式
    
        然后直接运行flash.bat 即可 。
    
    中间的停顿--等待让手机重新进入到fastboot 模式下(方法如1)
    
    等脚本运行结束即可。

flash.bat :

fastboot flash bootloader u-boot.bin
fastboot reboot-bootloader
timeout /t 10
fastboot oem gpt


fastboot flash ldfw ldfw_7872.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img

fastboot erase devinfo
fastboot flash devinfo devinfo.bin

fastboot flash logo logo.bin
fastboot flash system system.img -S 256M
fastboot flash set bootloader.bin
fastboot flash cache cache.img
fastboot flash userdata userdata.img -S 256M
fastboot flash custom custom.img
fastboot -w
fastboot erase metadata
fastboot reboot
pause

转载请标明出处:https://blog.csdn.net/hj_key/article/details/103695661

猜你喜欢

转载自blog.csdn.net/hj_key/article/details/103695661