Remove All Ads from XDA
Honor 9 Lite

[GUIDE]ADB Over Network to Connect Nexus 7 with Nexus 4

26 posts
Thanks Meter: 8
By DeepPurple15X, Junior Member on 1st February 2014, 09:16 AM
Post Reply Email Thread
If you turn on "ADB over Network" on your Nexus 4 and try to connect on your Nexus 7 you will run into a small problem. The device will get connected but you will be unable to use ADB because of the RSA Authorization failing. This guide will help fix that that problem.
I am no hacker/developer. This is just to share my experience. I am not responsible if you mess your device up.

Perquisites (what I used):
Nexus 7 (rooted) Android 4.3.1
Nexus 4 (rooted) OmniRom Android 4.4.2
Windows PC w/ AndroidSDK (you only need adb.exe)
Android Terminal Emulator installed on both devices. Available on Playstore.


Step 1.
Open Android Terminal Emulator on the Nexus 7.
adb kill-server
HOME=/sdcard adb start-server
This will create two files in the “/sdcard/.android/” directory on the Nexus 7. We need to transfer the “” to the Nexus 4.

Step 2.
Connect the Nexus 7 to the computer and run the “adb.exe”. The following code will download the key to the “adb.exe” directory.
adb pull /sdcard/.android/
Then disconnect the Nexus 7 and connect the Nexus 4. Then we send the file using “adb” using the push command. I am putting the file in the “/sdcard”
adb push /sdcard
Step 3:
Now you can either use Android Terminal Emulator on your Nexus 4(which is what I did) or “adb shell” on your computer. Simply append the key to the “adb_key”
cat /sdcard/  >> /data/misc/adb/adb_key
Step 4.
To start ADB over Network on Nexus 4
setprop service.adb.tcp.port 5555
stop adbd
start adbd
On the Nexus 7 connect to phone ip address. If you don’t know what that is head over to Settings>Wi-fi >Advanced Wi-fi >Scroll down to IP Adress . Lets assume its
adb connect
adb devices
If you get a ‘Allow USB Debugging ?’ alert on your phone click ‘OK’. Now you can use adb commands . If you can help me improve this guide let me know in comments. This is my first guide. I am no expert in android but I will try to answer your questions.

Remember to switch off "ADB over Network" on Nexus 4
setprop service.adb.tcp.port -1
stop adb
start adb
To check "ADB over Network"
getprop service.adb.tcp.port
More Info
The Following 2 Users Say Thank You to DeepPurple15X For This Useful Post: [ View ] Gift DeepPurple15X Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes