I’m Paul Herron, a full-stack developer and technical manager.
I focus mainly on back-end development with tools like Symfony
and devops with tools like Docker

The state of USB OTG on the Nexus 5

by Paul Herron on 11 October 2014

USB disk drive plugged into the Nexus 5 with a USB OTG cable

About 8 years ago I got this Archos media player with what seemed then like an enormous capacity hard disk inside - 40GB if I remember rightly. One of the great features of this device that seemed very cutting-edge at the time was that it supported “USB host” - or in other words it could mount external USB devices like USB flash drives when you plugged them in.

Sadly that device met its demise soon after with a collapsing shelf that wiped out most of my gadgets in one go…

Collapsed shelf Smashed Archos 500

Cause of death: a magnum-size bottle of sparkling wine to the screen.

Ever since then I never gave much thought to USB host functionality. Around that time, phones with SD card slots seemed to become popular, which made it possible to, for example, copy the photos from your camera’s SD card onto a phone and upload them elsewhere without the need for a full-size computer.

These days, with a move towards phone SD card slots being phased out in favour of internal-only storage, the idea of USB hosting has once again become a thing, this time under the guise of “USB On-the-go”. You just need a special cable and a device that supports the protocol.

USB OTG on the Nexus 5

The Nexus 5 is billed as fully supporting USB On-the-Go, which is exciting. It opens up a few possibilities for things you can do:

Let’s take a look at the USB mass storage scenario, as I imagine that might be the most common use case. I tried it out for the first time today: plugged in a USB stick and… nothing happened. It turns out that while the device supports it at the hardware level, there aren’t any built-in tools to actually access the storage. But this is easily overcome!

I used the free file browser Total Commander and then installed the “USB Stick Plugin” for it. It works nicely without the need to root your Nexus 5.

USB disk drive plugged into the Nexus 5 with a USB OTG cable

It feels like there’s a lot of tinkering potential with this setup, in being able to access the filesystems of various other devices while on the go.

Kindle plugged into the Nexus 5 with a USB OTG cable

My hope is that future versions of Android will have these sorts of tools built-in as native applications, but this works well enough for now!

Back to homepage Back to blog listing