![](https://developer.android.com/images/usb-host-accessory.png)
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:
- 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
.
STEP 1. 컴퓨터 - 기기 USB 연결 상태에서 TCPIP 모드 진입
adb -d tcpip 5555
STEP 2. USB 연결 해제 후
adb connect 해당기기 ip:5555
STEP 3. android studio 에서 원격디버깅' 버튼 클릭
* 재빌드 시에는 step2부터 다시 반복
참고) https://developer.android.com/guide/topics/connectivity/usb/index.html