• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Run adb shell from another Android Phone

Hi people, so currently i have 2 Android devices, 1 rooted Galaxy Nexus and another rooted Samsung S2. I wanna connect the 2 phones together, and run adb commands from one phone to another. There are terminal emulators installed on both phone, but how should i connect the 2 phones such that when i run the adb devices command, both phones would be able to detect one another?

Thanks in advanced (:
 
I'm exploring Android Forensics possibilities (this is my course of study). Technically, what i hope to achieve is simply installing an APK from my own Android phone onto a target Android device.

I was thinking of a bluetooth connection between the 2 phones. Would it be possible to run adb connect if 2 phones are paired with bluetooth? Thanks in advanced
 
I don't know about 2 phones but after checking into this for some time this morning, I think it MAY be possible at some level that far exceeds my own. I couldn't even seem to get my ubuntu 13.04 install to pair with my phone when trying to follow these instructs:

https://coderwall.com/p/pfuq4g

So if adb over bluetooth (android device to linux box) is possible, I have to think there is a way. Sorry I couldn't be of more assistance. I'm going back to working on my ubuntu/bluetooth issue. ;)
 
Alright, thank you very much for your reply, i appreciate it.

I decided to forgo the idea of bluetooth pairing (that's way beyond my level too), but i tried something else known as adbWireless and yes that works wonders, so if you're interested that actually worked for me :D

What happens with adbWireless is that it enables adb connection over network on the phone that the APK is installed onto, so let's say i have a Galaxy Nexus with adbWireless installed onto it, and another Samsung S2. If I have both of them connected to the same wireless connection, i can use my Samsung S2 to run an adb shell over my Galaxy Nexus simply by typing adb connect xxx.xxx.xxx.xxx (x's being the IP Address of my Galaxy Nexus).

But anyway thanks for your replies :)
 
Yes I have used wireless adb with success as well although never with dual devices, good to know! And I did finally get my Linux box paired with my phone. :D
 
Back
Top Bottom