- 连接一台台同局域网下设备ip为192.168.0.123,端口号为5555的设备
adb connect 192.168.0.123:5555
adb devices
adb get-state
adb start-server
adb kill-server
- 安装一个apk
xxx.apk
需要为绝对路径,实际操作中直接将apk拖到终端中即可。
adb install xxx.apk
adb install -r xxx.apk
adb uninstall (-k)
adb shell am force-stop
adb shell pm clear
adb get-serialno
adb shell getprop ro.product.model
adb shell getprop ro.build.version.release
adb shell wm density
adb shell wm size
adb pull sdcard/simple.txt e:\
adb pull sdcard/simple.txt e:\rename.txt 重命名文件名
adb push d:\nice.txt sdcard/
网友评论