Open the notification shade and tap the “USB for charging” notification to choose a USB mode (e.g., File Transfer, Photo Transfer, MIDI, or No data transfer). This is the fastest way, but the exact label and options vary by Android version and phone brand. On most devices, you can also reach the same settings through Settings > Connected devices > USB.
- Connect your phone to the computer with a USB cable that supports data transfer (not a charge-only cable).
- Swipe down from the top of the screen to open the notification shade.
- Look for a notification that says “USB for charging,” “Charging this device via USB,” or similar. Tap it.
- In the dialog that appears, select your desired mode: File Transfer (MTP) for moving files, Photo Transfer (PTP) for images, MIDI for music instruments, or No data transfer for charging only.
- If you don’t see the notification, go to Settings > Connected devices > USB (or Settings > Developer options > Default USB configuration on some devices) and select the mode there.
- On some phones, you may need to unlock the screen and tap “Allow” to grant access to the phone’s data.
Why Is My USB Mode Stuck on “Charging Only”?
The most common cause is a charge-only cable. Many cables, especially cheap ones or those bundled with power banks, lack the data wires. Try a different cable that you know transfers data (test it with another device). Another cause: the USB port on your computer may be a charge-only port (often labeled with a battery icon) — use a regular data port instead. If the notification still doesn’t appear, go to Settings > Developer options and toggle USB debugging off and on, then reconnect. On some phones, you must also disable USB battery charging in the same menu if it exists.
How to Set a Default USB Mode for Future Connections
To avoid choosing every time, set a default mode. Go to Settings > Developer options > Default USB configuration and pick your preferred mode (e.g., File Transfer). If you don’t see Developer options, go to Settings > About phone and tap Build number seven times until “You are now a developer” appears. Then return to Settings and find Developer options. Note: this setting applies only to the current USB connection; some devices reset to charging only after disconnecting for security.
What Are the Different USB Modes and What Do They Do?
| Mode | Full Name | Use This For | Typical Transfer Speed |
|---|---|---|---|
| File Transfer | MTP (Media Transfer Protocol) | Moving documents, music, videos, and app data between phone and computer | 20–40 MB/s on USB 3.0, 10–15 MB/s on USB 2.0 |
| Photo Transfer | PTP (Picture Transfer Protocol) | Transferring photos and videos only; works with older cameras and some software | Similar to MTP but limited to media files |
| MIDI | Musical Instrument Digital Interface | Connecting to synthesizers, keyboards, or music apps | Low speed, real-time control |
| No data transfer | Charge only | Charging only, no data connection | N/A |
| USB tethering | RNDIS or NCM | Sharing your phone’s mobile data with the computer | Depends on network, not USB |
Note: Transfer speeds depend on the cable and port. USB 3.0 ports are usually blue; USB 2.0 are black or white. For fastest transfers, use a cable that supports USB 3.0 and plug into a blue port.
How to Change USB Mode When the Screen Is Broken
If you can’t see the screen, you can still change USB mode using a computer with ADB (Android Debug Bridge). First, enable Developer options and USB debugging before the screen breaks (do this now if you haven’t). Then connect the phone to the computer, open a command prompt, and type adb devices to confirm the phone is listed. Then type adb shell settings put global default_usb_mode 1 (1 = File Transfer, 2 = Photo Transfer, 3 = MIDI, 0 = charging only) and press Enter. The phone will switch to that mode immediately. If USB debugging is not enabled, you’ll need to use a USB OTG adapter and a mouse to control the screen blindly — tap where the notification would be (top-left area) and then select the mode by touch.
Why Does My Phone Show “USB Device Not Recognized”?
This error usually means the computer can’t identify the phone’s driver. First, try a different USB port and cable. On Windows, open Device Manager, find the phone under “Other devices” or “Portable Devices,” right-click it, and select Update driver. Choose “Search automatically for drivers.” If that fails, uninstall the device and reconnect. On macOS, you don’t need drivers for MTP; just use Android File Transfer (free from the Android website). If the phone still isn’t recognized, check that the phone is unlocked and the screen is on — some phones block data access when locked.
How to Change USB Mode from the Computer (ADB Command)
If you prefer command line, you can switch modes without touching the phone. With USB debugging enabled and ADB installed on your computer, connect the phone and run these commands in a terminal:
adb devices
adb shell settings put global default_usb_mode 0 # 0=charging, 1=MTP, 2=PTP, 3=MIDI
adb shell settings put global usb_function adb # for MTP, use 'mtp'
After running the command, the phone switches immediately. To verify, run adb shell getprop sys.usb.config — it will show the current configuration (e.g., “mtp,adb”). Note: the exact values may vary by Android version; check with adb shell settings list global | grep usb to see current settings.
How to Tell If the USB Mode Change Worked
After selecting a mode, check the computer: in Windows, open File Explorer and look for your phone under “This PC” — if you chose File Transfer, you should see internal storage and SD card. On macOS, open Android File Transfer and see if files appear. On the phone itself, the notification should say “File Transfer” or “Photo Transfer” instead of “Charging.” If you selected No data transfer, the phone will only charge and the computer won’t list it. To test the speed, copy a large file (e.g., 1 GB) and time it — if it takes less than 30 seconds on USB 3.0, the mode is working correctly.