android usb host 模式下开发 usb 口被device 占用如何连接PC查看logcat

android usb host 模式下开发 usb 口被device 占用如何连接PC查看logcat

通常是通过usb 与PC端连接 可以在eclipse中查看logcat, 此时是 adb usb 模式下与PC连接的,但是如果使用usb host 模式,开发设备就是usb host ,而usb device 通过usb 口连接开发设备,没有多余的usb 连接PC,如何查看logcat,?

可以使用 adb tcpip 模式通过wifi 与PC 连接,具体 先 adb usb 连接到PC,然后在adb tcpip 切换连接模式,再 adb connect 192.168.x.x 连接开发设备,就可以了。

logcat 在eclipse 中可以正常使用了。

另 如果adb 连接多个设备 则使用 adb -s xxxxxxxx command 命令指定序列号 + 执行的命令 例如:

adb -s xxxxxx tcpip .

序列号查询 adb devices -l 可以看到详细的设备信息,那一串数字便是序列号。

调试小技巧 记录下来备忘。

猜你喜欢

转载自blog.csdn.net/xiangrufeifei3/article/details/9342397