[DevTip] Android - USB Host Debugging

USB Accessory를 연결한 상태에서는 USB 디버거 케이블을 연결할 수 없는데, 이 때는 adb를 tcp로 연결해서 작업할수 있음.

아래는 안드로이드에서 제공하는 설명.
원본 위치 <http://developer.android.com/guide/topics/connectivity/usb/index.html>

Debugging considerations

When debugging applications that use USB accessory or host features, you most likely will have USB hardware connected to your Android-powered device. 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:
  1. Connect the Android-powered device via USB to your computer. 
  2. From your SDK platform-tools/ directory, enter adb tcpip 5555 at the command prompt. 
  3. 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
  4. To set your device to listen on USB, enter adb usb.

댓글

이 블로그의 인기 게시물

환경개선부담금

[DevTip] Windows에서 tail 쓰기...