用 BAT 调用 ADB 命令,第一条能运行,第二条显示不是内部命令,请问怎么弄。。。
我在 bat 这方面是个新手,不是很了解,网上查了 也查不到 就想做个半自动安装的 bat 脚本
adb devices ::adb shell ::查询手机连接情况
@set /p path=APK path:
adb install %path%
::echo end pause
我在 bat 这方面是个新手,不是很了解,网上查了 也查不到 就想做个半自动安装的 bat 脚本
adb devices ::adb shell ::查询手机连接情况
@set /p path=APK path:
adb install %path%
::echo end pause
@echo off
:begin
adb disconnect
set input=
set /p input=please input your device IP:
adb connect %input%
echo rooting this device!
adb root
echo remounting
adb remount
adb shell content query –uri content://telephony/carriers/preferapn
echo replace APNs config file
adb push apns-conf.xml /system/etc
adb push apns-conf.xml.bakforspec /system/etc
echo restoring default APN
adb shell “content delete –uri content://telephony/carriers/restore”
echo this device id is
adb shell “settings get secure android_id”
echo show file stat
adb shell “busybox stat /system/etc/apns-conf.xml”
adb shell “busybox stat /system/etc/apns-conf.xml.bakforspec”
echo press any key for continue!
pause>nul
goto begin
adb install %apkpath%