ADB over bluetooth? - android

Is it possible to connect to ADB over bluetooth?
I am trying to test 3G data download, but want to have ability to connect to ADB without using USB. Using WiFi (local only) and 3G, as understand, will not work because Android will still use WiFi for downloads (even that WiFi is local only, no outside exit).
How can I set up connection to ADB over bluetooth to send ADB commands for Android device to execute?

I have seen people post that they have been able to do it just like with WiFi using Bluetooth tethering. You'll need to find your IP address.

Related

Can't use adb when connected to VPN

My PC and Android TV device are in the same net section,so I can use adb connect the debugging device.Also ,I use adb devices command,it shows device on work.But when My PC and device use the same vpn based on the previous internet,I try to ping the device IP,it worked,then I use adb connect the device,it shows connect,but when input adb devices command , it shows device offline. I'm sure the error can't be caused by adb version,for it can work when disconnect the vpn.who can help me? I'm very appreciate for that.
If your PC and device are on the same LOCAL network, all you need to do is find the local IP address of the device (something like: 192.168.xx.xx). Then type:
adb disconnect
adb connect 192.168.xx.xx.
It'll connect again. Works for me.
The only time it does not work is when the device is the one providing the LOCAL network, e.g., your phone's mobile Hotspot. Using a VPN like this does not work directly. Whenever you use a VPN and try using ADB for a mobile hotspot (and the hotspot device is the one you're trying to connect to), you'll realize that the device goes offline.
This is because when you enter "adb connect <REMOTE_HOST>", your PC tries to route your device IP (REMOTE_HOST) via the VPN network, which will not be accessible since your ISP does not allow inbound connections to your device.
An alternative option, which I use for my device (Phone), is to use a wired connection to my PC via a USB cable. It might work for the Android TV if the proximity b/w TV and your laptop is not a problem.
Another alternative (supposing you're trying to connect a phone/Android TV) is to use another phone or router to create a hotspot. Then connect both your PC and phone/Android TV to the hotspot. Find the phone/Android TV IP address 192.168.xx.xx and enter:
adb connect 192.168.xx.xx.

ADB over ethernet

I have an android device which I want to connect to using ADB. For reasons that don't matter here I need it to have an ethernet connection, not wifi. The device itself refuses to have both ethernet and wifi connections at the same time.
I have been using a third party app called ADB WiFi to connect to it with ADB when it is in WiFi mode, and I have found that I can connect to it in wifi, then switch the device into ethernet, and then reconnect to the new IP, and it works.
I would dearly like to be able to connect to my device (which is often remote and hard to reach) without first switching it into wifi and back, to which end I have written my own little app which uses SU and does:
setprop service.adb.tcp.port 5555
stop adbd
start adbd
It says that it is working when I run it and produces no error messages, but I can't connect afterwards. It doesn't work in wifi mode either. After setting up a connection once using the 3rd party app, I can then use stop adbd to prevent adb working, and I can use my application above to enable it again, without wifi or 3rd party intervention, which suggests that it is doing what it thinks it is doing, but missing a one off step.
Does anyone know if there is another thing that must be set / enabled / poked in order for adbd to work? Does anyone know what I'm missing?
Thanks
Have you tried this:
adb tcpip 5555
adb connect 192.168.1.1:5555
replacing the 192.168.1.1 with your phones IP Address?
I was able to get both ADB (through USB) and Ethernet, but it was device specific. I used the Asus Transformer Pad TF701T with the keyboard dock. The dock allowed me to connect the ADB cable and provided a full size USB port. I connected a compatible USB to Ethernet adapter to get Ethernet.

connect to Wifi device and Internet at the same time

I use smartphone directly connect to AR.Drone (a Wi-Fi quadricopter) use adhoc mode.
The AR.Drone can sent me images captured form the build-in camera.
I want to sync those image to the Internet immediately when AR.Drone sent me the images,
but my Wifi already connect to the AR.Drone.
Is there anyway(maybe use computer) to connect to the AR.Drone and upload images at same time?
One possibility might be to use your phone's tethering/hotspot mode, if it has one. Then you can use a wpa_supplicant program that's been cross-compiled for ARM and run it on the drone to connect to that wifi network.
https://github.com/daraosn/ardrone-wpa2 is a very easy-to-use project that will let your drone connect to an existing wifi network instead of creating its own. You clone it from github, turn on the drone, connect your laptop to the drone's wifi network and run script/install. Then turn on the phone's hotspot, and from your laptop run script/connect "<essid>" -p "<password>" -a <address> -d <droneip> to tell the drone to connect to that network.
Hopefully at that point the phone will have internet connectivity at the same time that it's connected to the drone over wifi.

Android WiFi ADB outside local network

ADB via WiFi works grat, but up today I've used it only in local network.
I've tried to use it outside my network but ADB was unable to connect
Can it be used outside local network? How?

Can phone use host network when debugging on device via Eclipse/ADB?

I have a Android phone connected with host computer with USB cable. ADB runs well and I can debug application on phone. The only problem is that the App requires special network setup which I can reach on host but not mobile. Is there a way to let the device send all network operations through ADB and Host network?
What you're looking for is known as reverse tethering. See https://android.stackexchange.com/questions/2298/how-to-set-up-reverse-tethering-over-usb for a solution.
Have you tried sharing your internet connection on your laptop, and connect your phone through it?. Make sure you disable data connection on your phone to assure you are connected through WiFi

Categories

Resources