0

I just have a simple question targeting debugging via adb.

Is there just one way to debug your android application via the adb when you install additionally the app "wifi over adb" to connect your android studio debuger mode with your adb hardware device?

Cœur
  • 37,241
  • 25
  • 195
  • 267

2 Answers2

1

Debuging android application over adb without USB cable.

Steps:-

1 . Install the ADB Wireless app from play store using this link https://play.google.com/store/apps/details?id=za.co.henry.hsu.adbwirelessbyhenry&hl=en

  1. after the install ADB wireless app clik on Show wifi IP.It shown your mobile IP address over the wifi.

  2. Now find your IDE path ex.

Eclipse:- D:\adt-bundle-windows-x86-20131030\sdk\platform-tools

Android Studio:- D:\Android Studio\sdk\platform-tools

  1. press Window + R key

  2. type cmd

change the directory C:\users\admin> to your IDE path ex. D:\Android Studio\sdk\platform-tools.

  1. Connect your device with usb (only first time)

  2. type adb devices

it show the connected device list with alphanumeric id.

  1. type adb tcpip 5555

  2. remove usb cable

  3. type adb connect your_mobile_ip:5555 here your_mobile_ip means ADB Wireless show mobile IP. ex. adb connect xxx.xxx.x.xxx:5555

  4. Now go to your Android studio and edit some thing.

go to run -> Edit configuration -> your app name in your Run/Debug Configuration window come to the Target device panel ->choose show chooser dialog. click apply-> ok.

  1. adb disconnect xxx.xxx.x.xxx:5555

    for disconnecting your device. I hope this will help you

sachin pangare
  • 1,527
  • 15
  • 11
-1

if you want to debug via wifi then you simply follow the following steps first set the adb path in envirorment variable

for example D:\adt-bundle-windows-x86-20131030\sdk\platform-tools;

1) press Window + R key
2) type cmd
3) Connect your device with usb (only first time)
4) type adb tcpip 5555 in command promt
5) remove usb
6) in cmp again type command: adb connect xxx.xxx.x.xxx (Your Wi-Fi IP)

I hope this will help you. :)

  • I did this before, but when I ran the app in the android Studio then I couldn't connect to the adb-device, just with the app which I've installed additionally it shows me my android device in the window where you determine your running device hardware device/simulator. – user2019219 May 19 '15 at 15:01