9

Hello i want to connect my android in debugging mode with android studio

without usb cable

i am using mac os

HiteshGs
  • 539
  • 2
  • 7
  • 18
  • 2
    Take a look to this one: http://stackoverflow.com/questions/14357705/adb-over-wireless – Juan Lago Apr 30 '16 at 07:33
  • If you can connect your device over wifi then what all you need to do is run : $ adb connect It'll connect you to the android device over network. – BhanuSingh Mar 03 '17 at 14:19
  • OP said without usb cable. All of these answers say that you first need to connect using a usb cable – gyleg5 Dec 08 '20 at 23:33

4 Answers4

11

1- connect your PC and Mobile to same network (WIFI)

now find IP

-open setting > WIFI >info of connected wireless network and then get STATIC IP from there

enter image description here

2- Now open teminal and then goto PATH paltform-tools in SDK then fire below command

-Connect the device via USB and make sure debugging is working. -go to developer options from settings and follow below snap shots enter image description here

3 - now in terminal ./adb connect <DEVICE_IP_ADDRESS>:5555 (if your using windows then remove ./)

you show this output - connected to 192.168.1.109:5555

now Disconnect USB . and perform below command to start wireless debugging

adb -s <DEVICE_IP_ADDRESS>:5555 usb

4- for disconnect device follow below commands

adb disconnect <DEVICE_IP_ADDRESS>:5555

gyurisc
  • 11,234
  • 16
  • 68
  • 102
Dharmik Ghori
  • 182
  • 1
  • 8
10

Almost same steps as the Dharmik Ghori's answer

Just that in step 3 you do: ./adb tcpip 5555 instead of ./adb connect <DEVICE_IP_ADDRESS>:5555.

gaurav414u
  • 812
  • 13
  • 22
10
  1. Firstly, connect your device to mac with cable.
  2. Open the terminal and write Library/Android/sdk/platform-tools/adb tcpip 5555. If u can't then right only cd then write Library/Android/sdk/platform-tools/adb tcpip 5555
  3. Then write Library/Android/sdk/platform-tools/adb connect YOUR_DEVICE_IP:5555
  4. After that you can see connected response
  5. You can disconnect the cable and debug with WIFI.
Sagittarius
  • 355
  • 3
  • 6
3

Use this jetbrain plug-in. Connect your device using a USB cable and press the Android WiFi ADB button. Once the device is connected over WiFi you dont need USB.

Anjal Saneen
  • 3,109
  • 23
  • 38