USB Data Transfer Mode on Xiaomi: How to Enable and Configure

Why Xiaomi is not defined as a drive and how to fix it

You have connected a Xiaomi, Redmi or POCO computer-to-computer USB-cable, but instead of folders with files, you only see charging? MIUI They block data transmission for security. It's not a mistake. MTP (Media Transfer Protocol, which requires explicit permission from the user.

In this article, we will discuss all the ways to activate data mode, from standard settings to hidden commands for developers, and pay special attention to common errors β€” for example, when a computer does not see a phone even after turning on MTP, or when Xiaomi constantly resets USB settings when connecting, you will also learn how the MTP, PTP and RNDIS modes differ, and which one to choose for your task.

Important: The instructions are valid for all current MIUI versions (12 to 14) and smartphone models released after 2018. If you have an older device (for example, Xiaomi Mi A1 or Redmi Note 4), some menu items may differ - we will warn you about this separately.

Method 1: Enabling data transmission through notification curtain

The fastest method is to use the notification bar. It works on all Xiaomi smartphones, if you have a smartphone. USB-The cable is good and the computer recognizes the connection as a charger.

How to do this:

  1. Connect your smartphone to your PC or laptop using the original cable (or a certified USB-C/USB-A).
  2. Unlock the Xiaomi screen – on a locked device, the data transfer option is not available.
  3. Swipe your finger down to open the notification panel.
  4. Find a notification that says "USB for file transfer" (or USB charging this device in English firmware).
  5. In the window that opens, select File Transfer / MTP).

If you don't have MTP on your list, you've disabled developer mode or activated security policies (e.g., corporate firmware) and move on to the next one.

πŸ“Š What? USB-You are using the cable to connect Xiaomi?
Original from Xiaomi
Third-party certified
Uncertified (no-name)
Wireless (Wi-Fi Direct)

Method 2: Configure USB through developer settings

When the standard menu doesn’t offer an MTP option, you’ll have to turn on the developer mode and manually set the USB configuration, which will also help if the smartphone is constantly resetting its connection settings.

Step instructions:

  1. Activate Developer Mode: Go to Settings β†’ About Phone. Find the MIUI Version and tap it 7 times in a row. You'll be a developer notification.
  2. Select the configuration. USB: Return to the main Settings menu and open the Additional section β†’ For developers (or additional settings) β†’ Developer options. Scroll down to the Network block and find Configuration USB by default (Default) USB Select File Transfer (MTP).

Then connect your smartphone to your computer – MTP mode will turn on automatically. If there is no USB configuration option, update your firmware or check if additional security settings (such as MIUI Optimization in some custom firmware) are disabled.

Developer mode activated|USB-cable connected to the back port of the PC (for stability)|Xiaomi drivers are installed on the computer|The smartphone screen is unlocked-->

Method 3: Using ADB to force MTP to be enabled

If previous methods have failed, you can force MTP to be activated via Android Debug Bridge (ADB) if:

  • πŸ”„ The smartphone switches between charging modes and MTP.
  • 🚫 There is no configuration item in the settings USB.
  • πŸ”§ The device is running custom firmware (for example, LineageOS or Pixel Experience).

For this:

  1. Install ADB and Fastboot Tools on your computer.
  2. Connect Xiaomi to your PC and allow debugging over USB (includes in Settings β†’ For Developers β†’ Debugging over USB).
  3. Open the command line (Win) + R β†’ Type in cmd and execute commands in order: adb devices (should display your device) adb shell settings put global settings usb_configuration mtp,adb

After the second command, the smartphone will automatically switch to MTP mode. If this does not happen, restart the device.

What if the ADB can’t see the device?
Make sure that the PC has drivers for your Xiaomi model installed (you can download on the official website in the Support section). If the drivers are installed, but the device is not determined, try: 1. Connect the smartphone to another. USB-port (preferably) USB 2. Insert in the developer settings the item "Cancel debugging authorization" USB" And re-confirm the connection on the phone screen. 3. Use the original cable -- cheap cables often don't support data transmission.

USB Modes on Xiaomi: MTP, PTP, RNDIS – which one to choose?

When you connect to a computer, Xiaomi offers several data protocols, and let's see how they differ and when to use them:

Regime.DescriptionWhen to applyLimitations
MTPMedia Transfer Protocol is a standard for transferring media files.Copying photos, music, documents on the PC.Low transfer speed of large files (> 1 GB).
PTPPicture Transfer Protocol is optimized for photo/video.Import images to Lightroom, Photos or other photo editors.It does not support the transfer of applications or system files.
RNDISUSB-network bridge for distributing the Internet from PC to phone.If you want to use a PC as a modem for Xiaomi.Disables access to the file system.
Charging.Only power, no data transmission.If you need to charge your phone quickly without connecting to a PC.β€”

On most Xiaomi smartphones, only MTP and Charging are available by default. To see PTP or RNDIS, you may need to activate the developer mode (as in Method 2).

adb shell am start -a android.settings.USB_SETTINGS

It'll open the menu. USB-settings directly from the smartphone.-->

Problems and Solutions: The computer does not see Xiaomi in MTP mode

Even after you turn on MTP, Windows or macOS may not recognize your smartphone, and here are the most common reasons and ways to fix them:

  • πŸ”Œ Faulty cable or port: Try another cable (preferably original) and connect to the back USB-port of the system unit (on laptops, ports are often poorly powered). USB-hub.
  • πŸ–₯️ No drivers: Download Mi PC Suite - the program will automatically install the necessary drivers. 10/11 It can also help manually install the Android Composite driver ADB Interface via Device Manager.
  • πŸ›‘οΈ Antivirus Block: Temporary disable antivirus (such as Avast or Kaspersky) – they sometimes block the connection from the Internet. MTP as a "suspicious activityΒ».
  • πŸ“± Firmware failure: If the smartphone previously worked in mode MTP, but Suddenly is no longer defined, reset settings USB: adb shell settings delete global usb_configuration

⚠️ Note: Some Xiaomi models (e.g. Redmi Note) 10 pro POCO X3 Pro after updating to MIUI 13/14 may be missing MTP customized USB. In this case, only a reset to factory settings or a rollback of firmware through Fastboot will help.

Alternative ways to transfer files without USB

If you can’t turn on MTP, use one of these methods:

  • 🌐 Wi-Fi Direct (Mi Share): Enable Mi Share in Xiaomi Settings β†’ Connections and sharing β†’ Mi Share) and send files to your computer via browser, transfer speed up to 10 MB/s.
  • ☁️ Cloud services: Upload files to Mi Cloud, Google Drive or Telegram Saved Messages, and then download them to your PC. Suitable for documents and photos.
  • πŸ“‘ FTP-server: Install the application on the smartphone FX File Explorer or Solid Explorer, include it FTP-server and connect to it through Windows Explorer at the address ftp://IP_address phone:port.

For regular transfer of large files (for example, backups), it is better to set up automatic synchronization via Google Photos or OneDrive, which will eliminate the need to connect your smartphone to USB every time.

πŸ’‘

If you need to transfer files larger than 4GB, use FTP or the cloud – the MTP protocol has a limit on the size of a single file.

FAQ: Frequent questions about USB mode on Xiaomi

Why does the smartphone start warming up after connecting to USB?
Heating when transferring data is normal, especially if you copy large files (video, backups). However, if the temperature is higher than 45 Β° C, check: If you use the original cable (poor cables can cause short circuits); does not block the USB-C connector case (overheating can occur due to poor contact); Is there background processes (for example, updating applications through the Play Market); If the heating is critical, interrupt the transmission and let the device cool down.
Can I turn on MTP on a locked screen?
No. For security reasons, Xiaomi (like other manufacturers) blocks access to the file system while the screen is locked.Unlock the device to activate MTP. Exception: if the smartphone has Smart Lock enabled, it can unlock automatically when connected to a home PC.
How to enable data transfer to Xiaomi with a broken screen?
If the touchscreen does not work, but the screen is visible, connect to the smartphone USB-mouse-wise OTG-Then: Unlock the device with your mouse. Open the notification curtain and select MTP. If the screen is completely non-functioning, you only have to remove the memory card (if the files are there) or use it. ADB via computer (provided that previously debugging was enabled) USB).
Why does Windows ask you to format your smartphone when you connect?
This is a file system recognition error. Don't agree to formatting in any way! Try: Reconnect your smartphone to another one. USB-Update drivers through Device Manager (select Update driver) β†’ Perform a search on this computer β†’ Select from the list and specify MTP USB Device! Disable fast charging in Xiaomi settings (Settings) β†’ Battery. β†’ Fast charging).
How to make Xiaomi always connect in MTP mode?
By default, Xiaomi resets settings USB After the shutdown, to lock in. MTP: Activate Developer Mode (as in Method 2). Find Configuration in the Developer Settings USB by default and select MTP. Turn off the item. USB-the drive when you remove (if any). now the smartphone will automatically switch to MTP every time you connect.