13

Is there a way to use adb directly via bluetooth instead of always via usb?

--

Thanks for the adb wireless solutions below, but I am looking for something that works well on hotel or public wifi. Bluetooth short-range might be the only way to go about it.

1
  • I rewrote this so as not to be a development question (off-topic). Jan 13, 2012 at 20:50

4 Answers 4

9

Personally, I use ADBWireless with my G1 on CM5 because I had problems with the USB driver working correctly between my computer and my G1. However, I had problems with this app in CM4 (to test against Android 1.6) on my G1.

Note, however, that it connect to the device via ADB via wifi, not Bluetooth.

You'll pull up a command line on your computer and type adb connect xxx.xxx.xxx.xxx:5555 (x's being your ip address of the phone over wifi). You'll have to run this in the platform-tools directory of your Android SDK, or you need to add your Android SDK platform-tools directory to your global PATH variable so you can run adb from anywhere.

Your phone will show up as its ip_address:port_number in the list of devices to push your application to, just as if it was plugged in directly via usb.

1
  • AFAIK, debugging over WiFi is not secure, because Android device doesn't authenticate host, so anyone can break into WiFi network and mess with your phone. Nov 12, 2015 at 6:49
4

Non-Rooted Solution:

  • Enable USB-debugging in the developer setting and connect your phone to your computer via USB.
  • Run the adb command, adb tcpip 5555 (Make sure port 5555 is not blocked by any firewall programs)
  • To get your Wi-Fi IP address assigned to your device,

    adb shell and then netcfg and run the adb command adb connect <IP_ADDRESS>.

    For example, adb connect 192.168.1.133

  • Now you can disconnect the usb cable and run adb shell, adb install, or adb push commands via your Wi-Fi.

  • Inorder to switch back to USB mode and disable the Wireless mode, run the following adb command.

    adb usb

  • You can also simply reboot your phone to switch back to the USB mode.

Rooted Solution:

  • Install WiFi ADB and run adb commands wirelessly if your phone is rooted.
  • This app requires Developer tools enabled and no need to use USB cable if you are rooted.
3
  • AFAIK, debugging over WiFi is not secure, because Android device doesn't authenticate host, so anyone can break into WiFi network and mess with your phone. Nov 12, 2015 at 6:49
  • 1
    @SargeBorsch Check out this workaround if you are concerned about connecting you device and debugging via WiFi. stackoverflow.com/a/19485468/1793718
    – Lucky
    Nov 12, 2015 at 10:13
  • How do I connect my Android TV to my computer via USB? They have both female USB-A ports ;)
    – golimar
    May 18, 2022 at 15:58
4

2020 Update: Android 11 enabled built in Wireless Debugging.

Here's the official announcement on the feature, and here's a handy guide on how to connect ADB without cables, without root.

enter image description here

0

I'm using Easy Remote and it works well on Android 2.3.7. You can find downloads and information on its website.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .