adb基本命令
上一篇 /
下一篇 2015-09-30 14:51:07
/ 个人分类:sdk
1、 查看所有已链接的设备
命令:
adb devices
例:
C:\Users\laiyu>adb devices
List of devices attached
5d3b5aac device
设备命令
2、 复制文件/目录到手机设备
命令:
adb push
例:复制d:\\ WiFi.apk到手机/mnt/sdcard/ (手机内存)
C:\Users\laiyu>adb push d:\\WiFi.apk
/mnt/sdcard/
1661 KB/s (7471417 bytes in 4.390s)
3、 从手机设备复制文件/目录
命令:
adb pull []
例:
C:\Users\laiyu>adb pull /mnt/sdcard/WiFi.apk
d:\\
1573 KB/s (7471417 bytes in 4.637s)
备注:如果文件已经存在,则直接覆盖,不提示
4、 进入手机远程终端
命令:
adb shell
例:
C:\Users\laiyu>adb shell
shell@android:/ $
5、 运行远程shell命令
adb shell
收藏
举报
TAG: