You connected Xiaomi to your computer through a USB- cable, but the device is not detected? This problem is familiar to many owners of smartphones of the brand - from budget Redmi to flagship Mi 13 Ultra. The reasons can lie in the settings of the phone, Windows drivers, physical damage to the cable or even the features of the firmware MIUI.
In 80% of cases, the malfunction is fixed in 5-10 minutes by simple actions: changing the USB mode, updating drivers or restarting devices. But sometimes you need a deep diagnosis - for example, checking ports on the motherboard of a PC or resetting Xiaomi's settings to factory ones. In this article, we will discuss all possible causes and solutions, including hidden MIUI settings that are not described in the official documentation.
We will pay special attention to models with a locked bootloader (for example, Xiaomi 12T for the European market) β they often have conflicts with Qualcomm drivers when connecting to a PC. Also consider how to circumvent the limitations of USB- debugging if the phone is visible as an βUnidentified deviceβ in Device Manager.
Verification of physical connections: cable, ports and adapters
Start with basic hardware diagnostics. In 35 percent of cases, the problem is a damaged cable or a contaminated USB port β especially if you use non-original accessories. Take the cable that comes with Xiaomi (or a certified USB-C/USB-A with data support), and check:
- π Connect the cable to another USB- port on your PC (preferably USB 3.0 blue β they are more stable).
- π± Try another cable β even if it looks good, the inner veins could have been rubbed.
- π₯οΈ Connect Xiaomi to another computer or laptop to prevent PC ports from malfunctioning.
- π Turn the USB-C connector on the phone β sometimes the contacts oxidize on only one side.
If you have a Xiaomi USB-C connector, pay attention to the status of the contacts inside the phone port. Use a flashlight to inspect them for contaminants or deformities. Use alcohol and cotton swabs (not metal objects!) to clean.
β οΈ Warning: Don't use charging-only cables (such as some powerbanks) that don't have wires to transmit data, and a PC never recognizes a phone through such cable.
2.Setting up USB mode on Xiaomi phone
Xiaomi's default MIUI connects to your PC in Charge Only mode. To transfer files, you have to manually select a different mode.
- Connect the phone to the PC.
- Swipe down the notification bar on Xiaomi.
- Tap on the Charge notification via USB (or USB for file transfer).
- Select File Transfer (MTP) or Image Transfer (PTP).
If no notice appears:
- π§ Go to Settings. β Connection and sharing β USB and select the mode manually.
- π Reboot the phone β sometimes MIUI forgets to show the notification.
On some models (e.g., POCO F5 or Redmi Note 12 Pro+) you may need to unlock USB- debugging:
- Activate Developer Mode: Settings β About Phone β MIUI version (tap 7 times).
- Back to Settings β Additionally. β For developers.
- Turn on USB debugging and confirm the resolution when connecting to the PC.
Select a regime MTP/PTP notice|Check the settings USB in the menu "Connection and Sharing"|Activate USB-debugging (if required)|Reboot your phone after the changes-->
3. Updating and reinstalling drivers on PC
If the PC makes a connection sound but Xiaomi doesn't show up in This PC, the problem is most likely drivers. Windows 10/11 automatically installs universal MTP drivers, but they can conflict with the phone's firmware.
First, check the Device Manager:
- Press Win + X β Device Manager.
- Deploy Portable Devices or Other Devices.
- If you have an Unidentified Device or Xiaomi with a yellow triangle, right-click β Update the driver β Auto Search.
If automatic updates do not help, install drivers manually:
- Download Mi PC Suite (official software from Xiaomi) β it will automatically install the desired drivers.
- Or download Qualcomm Drivers (for Snapdragon phones) from Qualcomm's website.
- For MediaTek devices (e.g. Redmi 10C), use the SP Flash Tool.
| Xiaomi model | Processor | Recommended driver |
|---|---|---|
| Xiaomi 13 Pro | Snapdragon 8 Gen 2 | Qualcomm QDLoader |
| Redmi Note 12 | Snapdragon 4 Gen 1 | Mi PC Suite |
| POCO X5 Pro | Snapdragon 778G | Google USB Driver |
| Redmi A2 | MediaTek Helio G36 | MTK VCOM Drivers |
β οΈ Warning: If Xiaomi is defined as Portable Device after installing the drivers, but files are not transferred, try disabling the antivirus β some programs (e.g. Kaspersky) block the MTP- connection.
4. Reset USB settings and MIUI cache
Sometimes USB malfunctions occur due to a damaged cache of MIUI system applications.
- Go to Settings β Applications β Application Management.
- Slip on three points in the upper right corner β Show all the processes.
- Find Settings and Warehouse, clear the cache for both.
- Reboot the phone.
If this doesnβt work, reset your USB settings:
- Activate Developer Mode (as described above).
- Go to Settings β Additional β For developers.
- Find the option Reset USB configuration (on some firmware β Revoke USB permissions) and tap on it.
For models with a locked bootloader (such as the global versions of Xiaomi 12), you may need to unlock the OEM:
- π In the Developer Settings, enable Unlock OEM.
- π Connect your phone to your PC and confirm permission to unlock (a request will appear).
What to do if there is no item "USB configuration reset"?
5. Verification of Windows Compatibility and Alternative Connection Methods
Some versions of MIUI conflict with Windows 11 due to changes in the MTP protocol. If your PC runs Windows 11, try:
- πͺ Reverse to Windows 10 (via Settings β Update & Security β Recovery).
- π§ Install the MTP Porting Kit (available on GitHub).
- π Use Wi-Fi file transfer via Mi Drop or Snapdrop as a temporary solution.
For MacOS or Linux users:
- π On a Mac, install Android File Transfer (official software from Google).
- π§ On Linux, add a rule for udev: sudo nano. /etc/udev/rules.d/51-android.rules # Add a line: SUBSYSTEM=="usb", ATTR{idVendor}=="2717", MODE="0666", GROUP="plugdev" #Save (Ctrl)+O β Enter β Ctrl+X) and execute: sudo udevadm control --reload-rules sudo udevadm trigger
If Xiaomi is defined as a CD-ROM (e.g., on Redmi 9A), it means that the phone has switched to Fastboot mode.
- Turn off the cable.
- Press Volume Up + Power for 10 seconds.
- Connect the cable again after full MIUI load.
adb shell
setprop sys.usb.config mtp,adbThen reconnect the cable.-->
6. Diagnostics of software failures and firmware
If all previous steps have failed, the problem may be MIUI firmware or system failures.
- Go to Settings β About Phone β Update the system and install the latest updates.
- If the phone is not updated, download the full firmware package for your model from the official Xiaomi website and install it through System Update β Three Dots β Select a firmware file.
For the diagnosis of deep failures:
- π οΈ Run Safe Mode (hold Power β long tap on Turn off β Safe Mode). If this mode USB works, the problem is in the third-party app.
- π§Ή Perform a reset of MIUI without deleting data: Settings β About Phone β Resetting β Reset all settings
If Xiaomi has previously been exposed to unlocking a bootloader or installing custom firmware (like LineageOS), USB may not work because of:
- π§ Incorrectly defined build.prop parameters (e.g. ro.sys.usb.mtp=true missing).
- π The damaged section /vendor responsible for the USB- stack.
β οΈ Warning: Phones with an unlocked bootloader (Xiaomi 11T Pro, POCO F4 GT) may require re-unlocking OEM and reflashing VBmeta to recover USB after resetting to factory settings.
7. Hardware malfunctions: when to contact the service
If none of the software methods worked, it could be a hardware failure, and you can notice the following symptoms:
| Symptoms. | Possible malfunction | Decision |
|---|---|---|
| The phone does not charge via USB, but is charged from the socket. | Damaged USB controller on the motherboard | Replacement of USB- port or controller soldering |
| The PC emits a connection/disconnection sound every 2-3 seconds. | Short circuit in USB- port of the phone | Multimeter Diagnostics, Port Replacement |
| USB only works in one position of the cable. | Wear/oxidation of connector contacts | Cleaning or replacing USB-C port |
| The phone warms up and shuts down when connected to a PC | Problems with the power controller (e.g. PMIC) | Diagnostics at the service center |
For models with wireless charging (e.g. Xiaomi 13 Pro or Mi Mix 4) check if the Qi coil is damaged β sometimes it closes on the USB-port, causing crashes.
If you suspect a hardware malfunction, don't try to disassemble the phone yourself - Xiaomi uses adhesives and brittle plumes. Contact an authorized service center. The cost of repairing the USB-port is on average:
- π° Port replacement USB-C: 1,500β3,000 β½.
- π° Diagnostics + Controller soldering: 3,000β6,000 β½.
π‘
Before visiting the service, back up your data via Mi Cloud or ADB Backup, as repairs may require a complete phone reset.
8. Alternative ways to transfer files without USB
Restore USB-The connection failed, use alternative methods:
- π Wi-Fi Transfer: Install Mi Drop (preinstalled on MIUI) or Snapdrop (opts via browser). Open snapdrop.net on PC and phone, select files to transfer.
- βοΈ Cloud Services: Upload files to Mi Cloud, Google Drive, or Yandex Disk. Use Rclone to sync folders as scheduled.
- π‘ FTP- Server: Install FX File Explorer or Solid Explorer on your phone. Activate FTP- server in the application settings and connect via FileZilla or Windows Explorer (enter ftp://IP- phone address).
- π OTG- Adapter: Connect a flash drive or SSD via USB-C OTG and copy the files directly. Use a microSD card reader if the phone supports memory expansion.
For the transfer of large amounts of data (for example, backup copies), optimally use the local network:
- Connect your PC and Xiaomi to the same Wi-Fi network.
- On your phone, install KDE Connect or Portal (from Pushbullet).
- Enable the option of File Transfer in the application settings.
If you need to control your phone from a PC (for example, for debugging), use:
- Scrcpy (streaming screen over USB/Wi-Fi).
- Vysor (the paid version supports file transfer).
- TeamViewer QuickSupport (for remote access)