Your phone is full. The photos from the trip fill the last free gigabyte, and the cloud upload crawls on hotel Wi-Fi. The flash drive in your bag holds 64 GB of empty space. The drive plugs into a computer, so it sits in the bag, useless.
It doesn’t have to. A short adapter turns the phone’s charging port into a full USB port. The phone takes over the job the computer normally does: it powers the drive, finds it, and reads its files.
That switch has a name, USB On-The-Go, shortened to OTG. The rest is the mechanism behind it. One pin decides who is host, three protocols keep the link alive, and the power budget decides what you can plug in.
What USB OTG is: the phone takes the host’s job
A USB link always has one host and one peripheral. The host runs the bus, supplies power, and detects what plugs in, while the peripheral answers only when asked. That split is what USB is: on a desk the computer is the host, so the phone charges and waits when you plug it into a laptop.
USB On-The-Go, shortened to OTG, is a supplement to the USB 2.0 specification, agreed in late 2001. It lets a portable device take the host’s side of that split. A phone with an OTG adapter can power a flash drive, read its files, and run a keyboard, with no computer in the middle.
The specification gives the two sides new names. The A-device supplies power and starts as the host; the B-device consumes power and starts as the peripheral. The names describe the first role, not a fixed identity. Either side can change roles later, and the A-device keeps supplying power even after it hands the host’s job to the other side. The bus itself stays ordinary USB: the host polls, assigns addresses from a 7-bit field, and tops out at 127 devices.
A computer never faces this choice. It is always the host, and how many USB ports does a motherboard have is a question about capacity. A phone faces the choice every time something plugs into its one port, and the next section is how it decides.
One pin decides who is host
One extra pin carries the decision. A standard USB connector carries four pins; the micro connectors OTG introduced carry five. The fifth is the ID pin, and its state is the whole decision: the plug you insert flips it the way a switch closes a circuit. The part that sticks with me is how little carries the decision: one pin, grounded or floating.
The micro-AB receptacle on an OTG device accepts either a micro-A plug or a micro-B plug. Which one you insert sets the first role:
| ID pin state | Role at plug-in | Who supplies power | What it means |
|---|---|---|---|
| Grounded (0 ohms) | A-device, host | This device powers the bus | The phone runs the drive |
| Floating (not connected) | B-device, peripheral | This device draws power | The drive answers the phone |
| 124 kΩ to ground | Accessory charger state | Charges, may ask for a session, does not connect | Charger plus no device |
| 68 kΩ to ground | Accessory charger state | Charges and connects, does not ask for a session | Charger plus a host that already powers the bus |
| 36.5 kΩ to ground | Accessory charger state | Charges and enters host mode | Charger plus a peripheral |

Cables decide. Devices follow. Two OTG devices joined by a micro-A to micro-B cable take the roles the cable hands them. A printer can end up the host while the camera that must print stays the peripheral. The next section is how the two swap without anyone touching the cable.
Why does a charging cable not work as an OTG cable? A charging cable joins the phone to a host, so the phone stays a peripheral. An OTG adapter carries the wiring that grounds the ID pin on the phone’s side, and that grounded pin is the signal that tells the phone to become the host. The adapter is a wire with a job. It is not the feature itself: it cannot add host support to a phone whose hardware lacks it.
Three protocols keep the link alive
Once the cable has picked the host, three protocols run the link. Each one answers a different question: how does a device notice a plug with the power off, how does the peripheral ask for power, and how do the two swap roles.
Attach Detection Protocol answers the first question. An OTG device measures the capacitance on its port (the same property a touchscreen reads), and a large enough change means something plugged in. The bus stays unpowered until that moment, which matters because a phone cannot afford to keep a bus lit for a device that may never arrive.
Session Request Protocol answers the second. A session is the period the A-device supplies power on VBUS, and the A-device can end a session by switching VBUS off. When the bus is dark and the B-device needs it, SRP is how it asks the A-device to turn the power back on. Both sides control when the link is live, which is the change from standard USB, where only the host decides.
Host Negotiation Protocol answers the third, and the camera-to-printer case shows why it exists. A camera and a printer join with a micro-A to micro-B cable. The micro-A end sits in the printer, so the printer starts as host. The camera holds the photos and the printer driver, so the camera must run the job. HNP lets the two swap without replugging. The printer checks that the camera supports HNP, enables it, and suspends the bus for at least 3 milliseconds. The camera drops its pull-up, raises its pull-downs, and the bus falls to the SE0 state. The printer reads SE0, switches to peripheral, and raises its own pull-up. The camera reads that J-state and becomes host. The swap is complete, and the cable never moved.
USB 3.0 carries that swap under a new name, Role Swap Protocol. HNP polling covers the waiting: the host checks from time to time whether the peripheral wants the host’s job, so a device that changes its mind doesn’t have to wait for the cable to move.
The power budget, worked
The power budget here runs on the USB 2.0 supplement’s figures, worked in Python 3.12.3: 5 volts at 500 milliamps is 2.5 watts.
Now the phone is the power supply, and its budget is small. The standard OTG output current is 500 milliamps, the USB 2.0 host figure that Xiaomi also states on its support page, and 5 volts times 500 milliamps is 2.5 watts. Every device you plug in draws against that 2.5 watts, and the arithmetic decides what works before you plug anything in.
Flash drives draw little. How a USB flash drive works explains the cells and the controller behind that small draw. Take a typical draw of 200 milliamps, labeled here as a chosen figure: 5 volts times 200 milliamps is 1.0 watt, which leaves 1.5 watts of headroom, so the drive runs.
A portable hard drive draws far more. Take a typical draw of 900 milliamps, again a chosen figure: 5 volts times 900 milliamps is 4.5 watts. That exceeds the 2.5 watt budget by 2.0 watts, so the drive cannot run from the phone alone. Apple states that an iPhone with USB-C powers small devices at up to 4.5 watts, and that hard drive sits exactly at that ceiling with no headroom left. I would not trust that margin: the right call is a powered hub.

Why does a hard drive spin up, then vanish? The motor draws its peak current at spin-up, past the phone’s 2.5 watt budget, so the port cuts power and the drive drops off the bus. A flash drive has no motor, so it never asks for that peak.
Power is one ceiling; speed is the other, and the two ceilings bind different things. The bus ceiling is 480 megabits per second for High-Speed, which is 60 megabytes per second. A 1 GiB file holds 1,073,741,824 bytes, so the ceiling promises it in 17.9 seconds. A typical real-world copy runs near 35 megabytes per second, a chosen rate. That file takes 30.7 seconds, 1.71 times slower than the ceiling promises. Drop to Full-Speed at 12 megabits per second and that file takes 715.8 seconds, close to 12 minutes. The cable never changed; the speed class did. The gap surprised me: that file, that cable, and the wait grows from seconds to minutes.
Three numbers in this section are chosen figures. They are the 200 milliamp drive draw, the 900 milliamp hard-drive draw, and the 35 megabyte per second copy rate. They are typical figures, and a real drive can draw more or less. What was not checked is stated plainly. No physical phone or adapter was tested for this page, so these are spec figures worked into answers, and no live test ran for it. The ceiling figures (5 volts, 500 milliamps, 480 megabits per second) come from the specification itself, and the arithmetic is the part the top pages skip.
OTG is not USB-C: the shape is not the role
The most common buying mistake starts with the connector. USB-C is a shape: a reversible plug and port. OTG is a role: the phone acting as host. A USB-C port doesn’t prove host support, and OTG worked for years on Micro-USB phones before USB-C existed.
Five terms get mixed up in listings, and each one answers a different question:
| Term | What it describes | What it tells you when buying |
|---|---|---|
| USB-C | A reversible connector and port shape | Which plug fits, and nothing about the host role |
| USB OTG / USB host | The phone acting as the host that powers and controls the bus | Whether a flash drive or keyboard will work at all |
| USB 2 / USB 3.x | The data speed of the port and the cable | How fast large files copy |
| USB Power Delivery | A standard for negotiating higher charging power | Whether a hub can charge the phone while a drive is attached |
| Alternate Mode | Non-USB signals such as DisplayPort or HDMI over USB-C | Whether an external monitor will work from the same port |
USB-C has no ID pin. Its CC pins negotiate host and peripheral roles under USB Power Delivery, which replaces the grounded-pin signal for newer phones. The old term faded with the old connector: the USB-IF stopped certifying new OTG products in September 2019, as USB-C became the prevailing connection. Certification ended; the host function did not. Android has supported host mode since version 3.1 (Honeycomb, 2011), and the Android USB host documentation describes the phone acting as host, powering the bus, and enumerating connected devices.
Why can two phones not swap files over one USB-C cable? A single USB-C cable between two phones doesn’t move files. The file transfer the phones expect runs through a host, and neither phone takes the host’s side when joined to another phone. Use a flash drive as the go-between: copy from the first phone to the drive, then from the drive to the second phone.
The shape question has its own page. USB-C vs Thunderbolt separates the connector from the protocol that runs over it. The split applies here too: the plug is the shape, the role is the job.
The check before you plug anything in
Three checks settle the question before you spend money or blame the phone. Run them in order: the specification, the feature declaration, and the physical test.
- Check the exact model’s specification page for the words USB host or OTG. A family name is not enough: models in one family can differ by generation, region, and chipset.
- Check the Android feature declaration with ADB. With USB debugging on, run adb shell pm list features and look for android.hardware.usb.host. On Windows PowerShell that check reads adb shell pm list features | Select-String “android.hardware.usb.host”.
- Run the physical test with a known-good flash drive and a data adapter. Watch for the USB available notification on Android, then open Files by Google, which reads USB storage on Android 7.0 and later. If nothing appears, plug in a USB keyboard: keys that type prove host mode works, and the drive or its format is the problem.

Format matters as much as the port. FAT32 allows a single file of at most 4,294,967,295 bytes, which is 4.295 gigabytes. A 5 gigabyte video exceeds it by 0.705 gigabytes and cannot copy as one file. How a file system works explains where that limit lives. Reformat the drive to exFAT before you copy large files, and copy the files off first: reformatting erases the drive.
A keyboard is the fastest diagnostic for this check, and The Complete Keyboard Guide covers what the keyboard itself does once it types. A keyboard draws little power and needs no driver install, which is why it separates a host problem from a drive problem in one plug-in.
When it fails: three families, three fixes
Most OTG failures fall into three families, and each one has a different fix. Read the symptom first; the fix follows from it.
| Symptom | Cause | Fix |
|---|---|---|
| The drive never appears | No host support, a charge-only cable, or a cable with no data lines | Test with a keyboard; keys that type mean the drive or its format is at fault |
| The drive drops out during a copy | The device draws more power than the phone supplies | Connect through a powered hub or an adapter with a power input; unplug other devices from the hub |
| Files will not open or write | An unreadable format, or a permission prompt that was denied | Tap Allow on reconnect; reformat to exFAT and copy the files back |
One limit sits behind the power failures. An OTG host need only power the products on its targeted peripheral list, the short list of device classes the maker chose to support. A drive outside that list can still work, but the phone owes it nothing. A powered hub is the fix that sidesteps the limit: the hub supplies its own power under the USB 2.0 or USB 3.0 rules.
Before you buy an adapter or blame a drive, run three checks. First, the port: the specification page or the keyboard test proves host support. Second, the watts: the drive’s draw against the 2.5 watt budget decides whether it runs from the phone alone. Third, the format: exFAT for files over 4 gigabytes, FAT32 for the widest compatibility. A setup that passes all three works the first time you plug it in.
Frequently asked questions
What does OTG mean on a phone?
OTG stands for On-The-Go. On a phone it means the port can change sides: instead of charging from a computer, the phone supplies power to a flash drive, keyboard, or card reader and reads what it holds.
Does every phone support OTG?
No. The port shape proves nothing on its own: a USB-C phone can lack host mode while an older Micro-USB phone has it. The reliable answers are the model’s specification page, the Android host feature declaration, and a physical test with a keyboard.
Can OTG charge another phone?
Yes. One phone can charge another from its battery through an OTG cable, and it works for a smartwatch or wireless headphones too. The charge runs slower than from a wall charger, and the phone doing the charging drains at its normal speed.
Does OTG work on iPhone?
Apple does not use the OTG term, but iPhone 15 and later accept external storage, card readers, microphones, and displays through the USB-C port. Open the Files app and look under Locations. Older iPhones with Lightning need a Lightning-to-USB adapter, and some accessories need external power.
Can I use a USB hub with OTG?
Yes, and a powered hub is the usual answer when a drive needs more power than the phone gives. The hub supplies its own power and takes several devices at once. One limit stays: role swapping does not pass through a standard hub, so the host stays host until the cable comes out.

Kaleem
Kaleem is a Computer Science graduate (Virtual University of Pakistan) and the founder and editor of Valley AI, where he publishes in-depth, tested guides on computer hardware, artificial intelligence, and how the internet works. Every guide is researched from primary sources, tested hands-on where possible, and updated when the facts change.