How to change the USB mode on Android to file transfer

Updated · Written by the Shnurok developer

Short answer

To change the USB mode on Android, plug in the cable, pull down the notification shade, tap the Charging this device via USB notification and choose File Transfer under Use USB for, as Android's own help describes. To make the phone use that mode every time, set it in developer options under Default USB configuration. The free Shnurok app, which mirrors a phone to an Android TV over a cable, benefits from this mode when the TV can't find the phone: in charge-only mode a phone may not open a data connection over the cable.

How to change the USB mode on Android

This path comes from Android's help and works on most phones (Android Help). Brand skins may use slightly different names; the paths that manufacturers document themselves are further down.

  1. Connect the phone with a cable to a TV or a computer.
  2. Pull down the notification shade and tap the Charging this device via USB notification.
  3. Choose File Transfer under Use USB for.

If there's no notification at all, try another cable: the same help page says not every USB cable can transfer files. To pick one that does, see which USB cable connects a phone to a TV.

How to change the default USB connection mode

Many phones, Samsung with One UI 8.0 among them, go back to charging on every new connection, so you have to pick the mode again each time. To avoid that, set a default in developer options.

  1. Turn on developer options. Find the build number in Settings and tap it seven times until the phone says you're now a developer. On a Pixel it's under Settings → About phone, and on a Samsung Galaxy under Settings → About phone → Software information (Android documentation).
  2. Open developer options. The section appears in Settings, usually under System.
  3. Choose the default USB configuration. On screen it's usually called Default USB configuration, and Android's documentation calls it Select USB Configuration. It offers charging only, file transfer (MTP), photo transfer (PTP), sharing mobile internet with a computer (RNDIS) and MIDI (Android documentation). Pick file transfer.

Leave the other developer options alone unless you know what they do, since they change how the system behaves.

USB mode on Samsung, Xiaomi, Honor and OPPO

For these brands the manufacturer documents the path itself. Names can vary slightly between skin versions.

USB mode according to manufacturers
BrandWhat to tap
Samsung Galaxy with One UI 8.0The default is Charging phone only. Open the Quick panel, tap the USB for charging phone notification, tap it again to see the other options and choose Transferring files / Android Auto (Samsung support).
Xiaomi, Redmi, POCOOn connection the phone offers No data transfer, File transfer/Android Auto and Transfer photos; you want File transfer/Android Auto. The default is set in developer options under Default USB configuration (Xiaomi FAQ).
HonorPull down the notification panel, tap Touch for more options and choose Transfer files (Honor support).
OPPOAfter connecting, choose Transfer Files in the on-screen prompt, according to the ColorOS 11.1 user guide (OPPO user guide).

Samsung owners should pick file transfer right away, because since One UI 8.0 the phone connects for charging only by default. For Google Pixel, realme, OnePlus, Motorola, Tecno, Infinix and Huawei we couldn't find manufacturer help on the USB mode, so use the general Android path from the top of this page. Other phone settings for Shnurok are collected in our guide to phone settings by brand, and Xiaomi, Redmi and POCO phones have a guide of their own.

Why Shnurok needs this mode

In charge-only mode a phone may not open a data connection over the cable. To the TV it then looks like any other device that's just charging, so Shnurok on the TV can't find it and keeps waiting. We haven't yet tested Shnurok in charge-only mode, so the advice is simple: if the TV can't find the phone, switch the mode, and Shnurok on the phone suggests doing just that. Every time you plug in the cable, the TV asks for USB permission, usually in two windows one after the other; press OK on the remote in both.

If the TV still can't see the phone, check in order whether Shnurok is open on the TV, whether the cable carries data and whether another USB port works. Those checks are in our guide to a TV not detecting the phone over USB.

Why the TV doesn't see the phone as a USB drive

In File Transfer mode the phone shares its files over a protocol called MTP. A computer usually sees such a phone right away, but a TV doesn't always. For viewing a phone's files, Sony's help for its Android TVs suggests a cable that carries data and, if the phone connects over MTP, switching it to mass storage mode (Sony support). If the TV still won't open the files, it's easier to copy the photos and videos to a USB drive, or to mirror the whole phone screen so the photos open in the phone's gallery and the TV repeats them; see how to show phone photos and videos on a TV.

No amount of switching modes will mirror the screen in File Transfer mode: that takes an app on both ends of the cable, as explained in why USB shows only files.

Can the TV see your files while mirroring?

Technically, yes. In File Transfer mode the phone opens its storage to whatever is on the other end of the cable, whether it's a computer or a TV. Shnurok doesn't read the phone's files: it needs this mode only so the phone opens a data connection, and it sends the picture separately.

If you plug your phone into someone else's TV, say in a hotel or a rental, switch back to charging only or unplug the cable when you're done. For more on using someone else's TV, see mirroring your phone to a hotel TV.

How Shnurok does it

Shnurok tells you on the phone to pick File Transfer if the TV hasn't found the phone. For the mirroring itself it doesn't use files but Android's accessory mode: the phone captures its screen and sound and sends them over the cable into the USB port of a TV running Android TV or Google TV 8 or newer. You need a phone with Android 10 or newer, and the app is free with no ads.

When Shnurok won't help

FAQ

How do I change the default USB connection mode on Android?

Turn on developer options by tapping the build number in About phone seven times, then open Default USB configuration in developer options and choose File Transfer. Exact names depend on the phone.

Why is there no USB notification when I plug in the cable?

A common cause is a cable that can only charge: Android's own help says not every USB cable can transfer files.

Try another cable and another port, and see which USB cable connects a phone to a TV.

Do I have to pick File Transfer every time I connect?

For Shnurok, only when the TV can't find the phone without it. Many phones go back to charging on every new connection, so if switching gets old, make File Transfer the default in developer options.

Is File Transfer mode safe on someone else's TV?

In this mode the TV can technically open the phone's files, although Shnurok doesn't read them. So after mirroring to someone else's TV, switch back to charging only or unplug the cable.