@echo off
%~d0
CD "%~d0%~p0"
set id=InFocus_M810
taskkill /F /IM tadb.exe >nul 2>nul
taskkill /F /IM bdadb.exe >nul 2>nul
taskkill /F /IM sjk_daemon.exe >nul 2>nul
taskkill /F /IM romaster_daemon.exe >nul 2>nul
taskkill /F /IM AndroidInterface.exe >nul 2>nul
taskkill /F /IM adb.exe >nul 2>nul
adb.exe kill-server >nul 2>nul
echo .
echo this ROM for model:% id%
echo .
echo open USB debugging, connected to the computer
echo.
echo Note that USB debugging echo Authorization
echo.
echo.
title InFocus% id% International
adb kill-server
for /f "delims=" %%i in ('dir /b/s/a-d %USERPROFILE%\.android\adb_usb.ini') do (
findstr /v "0489" "%%i" >"%%~dpni.new"
del /q "%%i"
ren "%%~dpni.new" "%%~ni.ini"
)
echo 0×0489 >> %USERPROFILE%\.android\adb_usb.ini
adb kill-server
adb devices
pause
:flash
adb reboot-bootloader
fastboot -i 0×0489 flash splash splash.img
fastboot -i 0×0489 flash cda cda.img
fastboot -i 0×0489 flash boot boot.img
fastboot -i 0×0489 flash recovery recovery.img
fastboot -i 0×0489 flash persist persist.img
fastboot -i 0×0489 -S 300M flash system system.img
fastboot -i 0×0489 flash userdata userdata.img
fastboot -i 0×0489 reboot
echo completed, waiting for the phone to restart
pause
exit
you can not provide detailed guidance than by video
Refresh plz