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.
All you have to do is
setprop service.adb.tcp.port 5555
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!