Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ADB over Bluetooth Android

I have no WIFI, I have no cable connection available.

Is there hope for me to connect my device to ADB?

like image 230
Juan Cortés Avatar asked Jun 20 '12 23:06

Juan Cortés


People also ask

How do I turn on Bluetooth debugging on Android?

Enabling Bluetooth Debug on Android In Android, enabling the Bluetooth logging is as simple as going to Settings -> Developer Options and enabling “Enable Bluetooth HCI snoop log”. This will save the data in /sdcard/btsnoop_hci.

What is ADB wireless?

But you can also set up and use ADB wirelessly. Here's how. ADB is a command line utility that facilitates communication between your Android device and a PC. The tool is often used in rooting Android, and flashing Android ROMs, but has many more use cases (more on this later).


1 Answers

With the latest releases of Cyanogenmod (7.2 and 9) and presumably some other roms the option of adb over network has arrived.

Similar to ADB over WIFI which has been available for a while, it pretty much does the same.

  • Enable Bluetooth on your laptop and device
  • Pair them
  • Connect from your laptop to your device via Bluetooth PAN (Personal Area Network)
  • Enable the ADB over Network setting (Settings/Applications/Development)
  • Find out your IP address from the terminal (busybox ifconfig should do)
    • Non-root: check the default gateway on your computer, it should be your device's IP
  • Connect your device from your computer via adb connect xxx.xxx.xxx.xxx
  • Enjoy.

Make sure to disable the ADB over Network setting after your done with it to avoid Mobile Internet ADB stuff. Just disable the Bluetooth when your done and it should be fine.

Bonus part is, that while your paired and developing for this, you are able to use the devices mobile internet as well. (if you have coverage, of course)

This is only a partial solution since it needs the device to be both rooted and running a rom that offers that particular setting. I can only assume that it can be done some other way from the terminal, but I'm not savvy enough to manage it.

like image 67
4 revs, 2 users 96% Avatar answered Sep 25 '22 13:09

4 revs, 2 users 96%