首页 > > > Android Ota 升级命令
@echo push update.zip to /cache
(for /f "delims=" %%i in ('dir /b /s /a-d *.zip') do (
adb\adb.exe push %%~ni.zip /cache/update.zip
))
set result=%ERRORLEVEL%
if %result% equ 1 (
@echo ------update fail----------
pause
exit
)
adb\adb.exe shell "echo \"--update_package=/cache/update.zip\" > /cache/recovery/command"
set result=%ERRORLEVEL%
if %result% equ 1 (
@echo ------update fail----------
pause
exit
)
@echo start to update ,please don't powerdown!!!
adb\adb.exe reboot recovery
set result=%ERRORLEVEL%
if %result% equ 1 (
@echo ------update fail----------
pause
exit
)
@echo !!! updating !!!
@echo !!! Please wait 2 Minutes !!!
pause原文作者:;如有侵权,请联系管理员删除。