Connect to an Android Device with ADB over TCP

After some days of developing Android programs,I find it a pain to plug and replug the MicroUSB hub from my Xiaomi 4 (Cancro) device.MIUI in Xiaomi does not provide a switch to turn on adb over tcp.So I have to come up with a way to turn on it manually.

After some Duckduckgoes I found just the way to turn on it.Now I am writing it here in order to remind me of this brilliant way.

Be Prepared:Terminal

All you have to do is

setprop service.adb.tcp.port 5555
stop adbd
start adbd

That could be better if you write it in a script.


Notice the first line “su”?That means you need to have root access to your phone.And ADB over TCP will not work after you reboot your device.

And let me show a little off of my XPS 15 with Ubuntu.

Ubuntu Unity and Dash really did something!Numix theme and icon seem to be pretty pretty!

Leave a Reply

Your email address will not be published. Required fields are marked *