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:
- Connect your smartphone to your PC or laptop using the original cable (or a certified USB-C/USB-A).
- Unlock the Xiaomi screen β on a locked device, the data transfer option is not available.
- Swipe your finger down to open the notification panel.
- Find a notification that says "USB for file transfer" (or USB charging this device in English firmware).
- 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.
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:
- 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.
- 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:
- Install ADB and Fastboot Tools on your computer.
- Connect Xiaomi to your PC and allow debugging over USB (includes in Settings β For Developers β Debugging over USB).
- 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?
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. | Description | When to apply | Limitations |
|---|---|---|---|
| MTP | Media Transfer Protocol is a standard for transferring media files. | Copying photos, music, documents on the PC. | Low transfer speed of large files (> 1 GB). |
| PTP | Picture 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. |
| RNDIS | USB-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.