레이블이 OTG인 게시물을 표시합니다. 모든 게시물 표시
레이블이 OTG인 게시물을 표시합니다. 모든 게시물 표시

2015년 11월 24일 화요일

android 무선 디버깅

OTG를 활용한 개발을 하는 도중 너무나 답답하여 검색해보니

딱하니 나오는 무선 디버깅... 좀 일찍 찾아볼껄 ㅋ

http://developer.android.com/guide/topics/connectivity/usb/index.html


간단히 써보자면 이렇다.


  • Connect the Android-powered device via USB to your computer. (전원이 들어온 폰을 컴퓨터에 연결)
  • From your SDK platform-tools/ directory, enter adb tcpip 5555 at the command prompt. (SDK의 platform-tools 폴더에서 명령창을 연후 adb tcpip 5555 를 친다.)
  • 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. (그리고 adb connect "폰 IP":5555 를 치면 연결 완료. 디버깅 실행 시 장치목록에 IP로 연결된 장치가 추가된다.)
  • To set your device to listen on USB, enter adb usb. (설정을 원래대로 되돌리고 싶으면 adb usb)