`

adb常用命令

阅读更多

adb devices    查看当前连接的设备, 连接到计算机的android设备或者模拟器将会列出显示
adb install F:\myapk\taobao.apk    adb安装apk命令

adb -s emulator-5556 install helloWorld.apk
adb push F:/ability.config sdcard/ability.config    将文件存放至sd卡中


adb -s xxx shell am broadcast -a com.cz.hello.start    adb启动广播
adb -s xxx shell am broadcast -a com.cz.hello.stop    adb停止广播
adb -s xxx shell am broadcast -a com.cz.hello.stop -e com now adb 立即停止广播
adb -s xxx shell am broadcast -a com.cz.hello.resume adb重新启动广播

 

adb reboot                     重新启动模拟器

adb shell /system/bin/screencap -p sdcard/123.png    adb当前屏幕截图存之sd卡下
adb pull sdcard/123.png F:/    将所接图像存之f盘

 

adb -s <设备> <命令>
当已经有多个设备连接到主机时,可以使用-s参数进行选择.
设备为adb devices列出的内容.
除此之外,-d表示只通过USB连接,-e表示只连接仿真器.

 

sudo mount -t vboxsf winShare /mnt/share  建立虚拟机和pc共享

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics