Why your computer can’t see files on your Xiaomi phone via USB and how to fix it

Why Windows Can't See Files on Xiaomi Through Cable

You connected a Xiaomi Redmi Note 12, POCO X5 or another smartphone to your computer via USB, but the wire is empty — no folders, no files? — This problem is found in 37% of MIUI users, and the causes can be hidden in both the phone settings and Windows drivers. Most often the fault is the USB connection mode, but sometimes the root of the evil lies deeper: disabled permissions, damaged system files or even hardware cable malfunctions.

In this article, we will explore all the possible reasons why a computer can’t see files on Xiaomi via USB, from basic settings to hidden developer settings, you will get step-by-step instructions with pictures, a table of compatibility between USB and MIUI modes, and answers to frequent questions.

⚠️ Important: If you are using MacOS or Linux, part of the solution (e.g. installing drivers) MTP) The basic instructions in the article are focused on Windows. 10/11.

1. Check the USB connection mode on Xiaomi

The most common reason is that the phone is connected to Charge mode instead of File Transfer, and by default, MIUI often chooses to charge to save battery life.

  1. Connect your phone to your PC via USB.
  2. Swipe down the notification bar on Xiaomi.
  3. Tap the notification “USB for file transfer” (or USB charging this device).
  4. Select “File Transfer” (MTP) or “PTP” to access media.

If no notice appears:

  • 🔌 Check the cable – some cheap cables only support charging.
  • 📱 Restart your phone and PC – sometimes resetting the connection helps.
  • 🔄 Try another one. USB-port (preferably) USB 3.0 blue).
📊 What regime? USB You usually use it on Xiaomi?
Just charging.
File Transfer (MTP)
Photo (PTP)
I don't know what it is.

2. Set up permissions to access files in MIUI

Since MIUI 12, Xiaomi has tightened its security policy, requiring explicit permission in settings to access files via USB.

  1. Open Settings → Applications → Permissions → Permissions Management.
  2. Find the section «USB-installation” (or USB Debugging if the developer mode is enabled).
  3. Activate the slider "Allow access to data."

If no paragraph:

  • 🔓 Turn on Developer Mode (Tap 7 times on Version) MIUI In Settings → The phone).
  • 🔧 Go to Settings. → Additionally. → For developers and include “Debugging by” USB».
  • 🔄 Connect your phone again and confirm access on the Xiaomi screen.
What if permissions are reset after rebooting?
If USB permissions are reset after rebooting, this may be due to battery optimization for system applications.To fix: 1. Open Settings → Battery → Battery Optimization. 2. Find MIUI Security or USB Settings in the list. 3. Select "No Limits." 4. Reboot your phone.

⚠️ Note: on some models (Redmi 10, POCO M4 Pro after updating to MIUI 14 may require resetting permissions through Settings → Annexes → Resetting permits.

3. Problems with MTP drivers on the computer

If the phone is identified as an Unknown Device in Device Manager, the driver problem is Windows doesn’t always automatically install the MTP (Media Transfer Protocol) driver for Xiaomi.

  1. Open Device Manager (Win + X → Device Manager).
  2. Find your Xiaomi (may appear as MI or Android) in the list of “Portable Devices” or “Other Devices”.
  3. Right-click → “Update driver” → “Play search on this computer”.
  4. Select “MTP USB Device” from the list.

If the driver is missing:

  • 💻 Download the official drivers ADB Google.
  • 🔧 Set up Mi. PC Suite – the program will automatically install the desired drivers.
  • 🔄 Restart the PC after installation.
Windows versionRequired driverHand-mounted
Windows 10/11MTP + ADBThrough Device Manager
Windows 7MTP + WPDRequires KB3010081
MacOSAndroid File TransferInstallation from the official website
Linuxlibmtpsudo apt install libmtp-common

💡

If the MTP driver refuses to install, try connecting the phone in PTP mode (Photo). Sometimes Windows will recognize the device better in this mode, then you can switch back to MTP.

4.A damaged file system or MIUI cache

If the computer sees the phone but does not display files or folders blank, the problem may be:

  • 🗃️ Damaged cache. MIUI (especially after updates).
  • 💾 File system errors (for example, after extraction) SD-cards without safe shutdown).
  • 🔒 Hidden system folders (enable the display of hidden files in Windows).

How to fix:

  1. Clearing the cache MIUI: Go to Settings. → Annexes → Application management → Three points (⋮) → Find Media Storage and External Storage, clear the cache and data.
  2. File System Verification: Connect your phone in MTP mode, open Command Prompt on behalf of the administrator, and execute: chkdsk E: /f (replace E: with the letter of your device).

💡

If files are still not displayed after cleaning the cache, try creating a test folder on your phone (like test123) and check if it is visible on your PC. If yes, the problem is in the MIUI system folders, if not, in the drivers or cable.

5. Problems with cable, port or battery

More than 20% of file invisibility cases are due to physical faults in a USB-C cable or connector.

  • 🔌 Try another cable, preferably original from Xiaomi or certified. USB 2.0/3.0.
  • 🔄 Connect to another port — USB-Ports on the front of the PC are often weaker in power.
  • 📱 Check the phone connector for contamination (dust, contact oxidation).
  • 🔋 Battery level – if the charge is below 15%, MIUI It can block the transmission of data.

⚠️ Warning: If the phone is not charging when you connect, or if you notice a “Slow Charging” notification, this is a sure sign of a cable or port problem, and in 90% of these cases, replacing the cable solves the file transfer problem.

Try another cable (original)| Connect to another USB port (preferably USB 3.0)| Clean the USB-C connector on your phone from dust | Check the battery level (minimum 20%) | Connect the phone to another computer-->

6. Conflict with an antivirus or firewall

Antiviruses (Avast, Kaspersky, 360 Total Security) and Windows firewall sometimes block Xiaomi's USB connection, perceiving it as a potential threat.

  1. Temporarily disable the antivirus and firewall, then reconnect the phone.
  2. If files appear, add MTP Device to the antivirus exceptions.

For Windows Firewall:

  1. Open Control Panel → Windows Firewall → Additional settings.
  2. Go to the “Rules for Inbound Connections”.
  3. Find the MTP Device rule and turn it on.

⚠️ Note: If you are using the Mi PC Suite, add it to the exceptions of antivirus. the program often conflicts with security due to access to system files Xiaomi.

7. Reset USB settings and extreme measures

If nothing has worked, radical methods remain:

  • 🔧 Resetting settings USB: Go to Settings. → System system → Resetting settings → Resetting settings USB (Not available on all models).
  • 📱 Reset the phone to factory settings (last option): Save data and reset via Settings → The phone. → Resetting settings.
  • 🖥️ Windows reinstallation (if the problem is only on one PC): It is possible that the system files responsible for the system are damaged. MTP.

💡 Alternative file transfer method: if USB It never worked, use it:

  • 🌐 Wi-Fi Direct (Mi Drop or LocalSend applications).
  • ☁️ Cloud services (Mi Cloud, Google Drive).
  • 📶 FTP-server FX File Explorer or Solid Explorer).

FAQ: Frequent questions about Xiaomi USB connection

🔹 Why does your computer see your phone but not your files? SD-map?
It's a problem. MIUI When using external drives. Solutions: Extract SD-In the phone settings, format the card as "Inner Memory" (the data will be deleted!). MIUI Up to the latest version – in the old versions there was a bug with display SD through MTP.
🔹 Can you connect Xiaomi to a PC without mode? MTP?
Yes, there are alternatives: PTP (Photo) to transfer only media files; ADB (debugging) to access system files (requires platform-tools); FTP over Wi-Fi via applications like FX File Explorer; but MTP remains the most convenient option for full access to files.
🔹 Why After Updating MIUI The computer stopped seeing the phone?
MIUI updates often reset USB permissions. What to do: Reset USB settings to Settings → System → Reset. Update your PC MTP drivers (see Section 3). Enable Debugging on USB in developer mode. If the problem persists, rolling back on the previous version of MIUI can help (but it's risky!).
🔹 How to transfer files from Xiaomi to PC if USB doesn't work?
Options without USB: Wi-Fi Direct: Use Mi Drop or LocalSend (speed) ~10 MB/s). FTP-server: run it through the FX File Explorer and connect to the local network. Cloud: upload files to Mi Cloud or Google Drive, then download to your PC. OTG-Adapter: connect the flash drive to the phone and copy the files to it.
🔹 Why Macs Can't See Files from Xiaomi USB?
On MacOS to work with Xiaomi on USB Required: Install Android File Transfer. Enable the "File Transfer" mode on your phone (MTP)». If it doesn’t work, try the regimen. PTP or restart the Mac. ⚠️ MacOS Ventura and newer may have problems with MTP — Use alternatives like OpenMTP.