Debug app using ADB over Bluetooth for on an Andro

2019-04-06 15:28发布

问题:

I managed to set a nicely working Android-x86 on my netbook, with Bluetooth enabled and paired (!) with my Windows 7 development workstation.

I was initially hoping to use adb with it just as I am doing with real phones, via USB. So I plugged in a dedicated USB male-to-male cable and... nothing happened. Turns out Android-x86 doesn't support connection via USB cable.

I then found great instructions on how to do ADB over WiFi. The problem is that I have WiFi on my Android-x86 netbook but not on my Windows 7 desktop PC. I do have the option of buying a WiFi dongle but I prefer a more immediate solution.

I happen to have Bluetooth working both on my Android-x86 netbook and on my PC, so I was hoping to find a solution that can allow me to proceed quickly with ADB over Bluetooth. I found very encouraging instruction here: https://stackoverflow.com/a/11129818 but unfortunately the so called ADB over Network is nowhere to be found on my Android-x86 device.

Any tip or idea how to make ADB over Bluetooth work for on my Android-x86 netbook?

I believe that if I can make my Android-x86's bluetooth have an IP address, I can go from there, but how do I do that? (ifconfig doesn't work in Android's Terminal Emulator).

回答1:

Was the dedicated cable one of those host-to-host cables, or was it a OTG cable? Do you have any reason to expect either device to support OTG?

(If it's a host-to-host cable it'll have some electronics in the middle, if it's OTG then it'll really just be a cable)



回答2:

While this blog post shows a way to have ADB over Bluetooth, it probably works for devices running CM only. Thus it seems that until further notice, it isn't possible to do the same on Android-x86 netbooks.