版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/lf12345678910/article/details/77478045
#set FASTBOOT_DIR=%~dp0 set FASTBOOT_DIR=%~sdp0 echo %FASTBOOT_DIR% set ADB_CMD=%FASTBOOT_DIR%adb.exe set FASTBOOT_CMD=%FASTBOOT_DIR%fastboot.exe #%ADB_CMD% wait-for-device #echo - device connected. %ADB_CMD% remount %ADB_CMD% reboot bootloader fastboot oem unlock fastboot flash modem %FASTBOOT_DIR%\NON-HLOS.bin fastboot flash sbl1 %FASTBOOT_DIR%\sbl1.mbn fastboot flash rpm %FASTBOOT_DIR%\rpm.mbn fastboot flash tz %FASTBOOT_DIR%\tz.mbn fastboot flash aboot %FASTBOOT_DIR%\emmc_appsboot.mbn fastboot erase splash fastboot flash splash %FASTBOOT_DIR%\splash.img fastboot erase recovery fastboot flash recovery %FASTBOOT_DIR%\recovery.img fastboot erase userdata fastboot flash userdata %FASTBOOT_DIR%\userdata.img fastboot erase cache fastboot flash cache %FASTBOOT_DIR%\cache.img fastboot erase persist fastboot flash persist %FASTBOOT_DIR%\persist.img fastboot erase boot fastboot flash boot %FASTBOOT_DIR%\boot.img fastboot erase system fastboot flash system %FASTBOOT_DIR%\system.img fastboot reboot pause
文章来源: https://blog.csdn.net/lf12345678910/article/details/77478045