您的位置:首页 > 移动开发 > Android开发

android-USB Host and Accessory(附加)

2015-12-21 09:43 519 查看
...可以通过USB连接,也可以使用无线连接设备进行调试

Android supports a variety of USB peripherals(周边设备) and Android USB accessories (hardware that implements the Android accessory protocol) through two modes: USB accessory and USB
host.

》This will prevent you from having an
adb
connection
to the Android-powered device via USB. You can still access
adb
over a network connection. To enable
adb
over
a network connection:

Connect the Android-powered device via USB to your computer.
From your SDK
platform-tools/
directory, enter
adb tcpip 5555
at the command prompt.
Enter
adb connect <device-ip-address>:5555
You should now be connected to the Android-powered device and can issue the usual
adb
commands like
adb logcat
.
To set your device to listen on USB, enter
adb usb
.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: