android 원격 디버깅

2016. 8. 8. 10:58EXPERIENCE/MOBILE | Android

반응형



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 adbcommands like adb logcat.
  4. 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

반응형

'EXPERIENCE > MOBILE | Android' 카테고리의 다른 글

WebView <-> 안드로이드 통신  (0) 2016.08.20
ANDROID | WEBVIEW  (0) 2016.08.18
ANDROID | Fragment LiftCycle  (0) 2016.08.17
UI | android systemUI Handle  (0) 2016.08.17
UI | round shape  (0) 2016.08.08