近期android开发经常需要push,写了个脚本用于执行这些:
@echo *************** Begin of auto push ******************
@set BUILD_PATH=Z:\build
:Input
@echo Please input the name of .ko that you want to push:
@set /p filename=
@if not exist %BUILD_PATH%\%filename% echo the file(%filename%) you want to push doesn't exsit!!!
@if not exist %BUILD_PATH%\%filename% goto Input
@adb remount
@echo delete original file in system:
@adb shell rm system/lib/%filename%
@echo confirm the file has been deleted:
@adb shell ls system/lib/%filename%
@adb push %BUILD_PATH%\%filename% system/lib
@echo **************** End of auto push *******************
@pause