ADB over Ethernet

You say: “what, another adb app?!” I have my reasons. 🙂

While developing an Android TV app on my nexus player, I noticed that besides the annoying thing of constantly having to switch input on my monitor (my secondary monitor is broken), it’s also quite cumbersome to switch the microUSB cable at least once during a dev session. I use the microUSB connection to hook up a usb ethernet adapter. So when I want to debug, I have to switch the OTG cable for a regular one to enable ADB. Using the usb connection you can configure the device to enable ADB over ethernet, meaning you no longer need the usb cable but can connect to the adb daemon on the device over tcpip.

There are a dozen of existing apps for this purpose. Unfortunately, most of them are not android TV friendly. For starters, there are none in the android TV store but this is mostly an inconvenience. Secondly, they don’t offer dpad/controller navigation which renders them unusable. Thirdly, When I did find one app that offered navigation (although invisible), it required to use the wireless connection, while I have a wired connection.

Since it is only running a few commands as root, I decided to quickly mash up my own app. It offers clear button focus on android TV and is controller friendly. It tries to detect which network interface is currently in use. It is also available now in the play TV store.

Of course, the very first time you need to allow the rsa key of the connecting computer.

ADBoverEthernet on Google Play store
ADBoverEthernet on Google Play store