@ECHO OFF ECHO [安装APK] ECHO ------------------------------- ECHO [等待插入手机...] adb wait-for-device ECHO [开始安装] %~nx1 adb install -r %1 ::ECHO [暂停5秒自动关闭...] ::ping -n 5 127.0.0.1nul ::@ECHO ON ECHO [安装完
ECHO [安装APK]
ECHO -------------------------------
ECHO [等待插入手机...]
adb wait-for-device
ECHO [开始安装] %~nx1
adb install -r %1
::ECHO [暂停5秒自动关闭...]
::ping -n 5 127.0.0.1>nul
::@ECHO ON
ECHO [安装完毕...]
pause@echo off
:: 返回根目录
cd /
:: 进入adb所在目录
cd D:\Sdk\platform-tools
:: 安装拖拽进来的apk "%1"加不加引号都可以 路径写死也行(就能直接双击了)
adb install -r "I:\Android\XXX\app\release\app-release.apk"
pause
卸载
@echo off:: 返回根目录
cd /
:: 进入adb所在目录
cd D:\Sdk\platform-tools
:: 安装拖拽进来的apk "%1"加不加引号都可以 路径写死也行(就能直接双击了)
::adb install -r "E:\迅雷下载\01安装apk文件\app-release.apk"
adb uninstall com.XXX.oa.XXX
::pause