Connecting Xiaomi smartphone to your computer through USB-The cable seems like a simple task, and it's done, but in practice, users are faced with a lack of PC response, driver errors, or inability to transfer files. MIUI, And with it, we'll look at the algorithms for interacting with external devices, and in this article, we'll look at all the current ways of connecting, including hidden settings. MIUI, which are not documented in official instructions.
Features of Xiaomi phones (including Redmi models, POCO Black Shark – Flexibility of the regimes USB-Depending on the firmware version and device model, the system can offer from 2 to 5 connectivity options: from simple charging to full debugging. USB (ADB). We will look not only at basic scenarios, but also at solutions for cases where a computer can’t see a phone, as well as alternative methods of data transfer without the need to use the data. USB (in case of damaged port).
Preparation for connection: what to check before connection
Before you connect Xiaomi to a PC, make sure that key conditions are met. 90% of connection problems are due to faulty cable, outdated drivers or locking by MIUI. Here is a checklist of mandatory actions:
Use the original. USB-cable (or certified cable) USB 2.0/3.0)
Check the USB port on your computer (try another connector)
Update MIUI to the latest version in Settings → About Phone → System Update
Turn off the power saving modes on the PC (they can block) USB-device)
Make sure the phone unlocks the screen (on some models, the lock interrupts the connection)
-->
Pay special attention to the cable. Cheap non-original cords often only support charging, but not data transfer. To check this, connect the phone to another device (for example, a laptop or a TV) and try to transfer the file. If the problem persists, the cable is faulty. Also note the USB port to the PC: the front connectors of the system unit sometimes do not provide enough power for a stable connection.
Xiaomi phones with MIUI 12 and later have a USB Protection feature that blocks connection to unknown devices. If you see a notification when connecting, be sure to click Allow, otherwise the computer will see the phone only as a charger, this setting is reset after the phone is restarted, so it will have to be confirmed again.
Redmi Note 10/11/12
POCO X3/X4/X5
Mi 11/12/13
Black Shark 4/5
Another model
-->
Method 1: Standard File Transfer Connection (MTP)
MTP (Media Transfer Protocol) is the most common way to connect, which allows you to share files between your phone and your computer, and it activates automatically on most Xiaomi devices, but sometimes requires manual configuration.
- Connect your phone to your PC using USB-The phone screen will show a notification "Charge through" USB». Tap it to open the options panel.
- In the list of modes, select File Transfer (MTP). On some firmware, this item may be called a “file manager” or «USB-accumulator».
- The computer will open a window called This Computer (Windows) or Files (macOS/Linux) where a new drive with your phone’s name (e.g., Redmi Note 11) will appear.
If your computer is not responding to the connection, check the following points:
- 🔌 Drivers. MTP: On Windows, they are installed automatically through Update, but sometimes manual installation is required (see Problem Solving»).
- 📱 Developer Settings: On Some Firmware MIUI regime MTP Blocked if not activated by Debugging USB (How to turn it on - read below).
- 🔄 Reboot: Try rebooting both the phone and the computer - this resets the cache USB-connection.
💡
If you connect Xiaomi to a Mac, install the Android File Transfer app – without it, macOS won’t recognize devices in MTP mode.
On phones with MIUI 14 and later, MTP can automatically shut down after 10 minutes of inactivity. This is done for security, but interferes with long-term file processing. To turn off timeout, go to Settings → Special Features → USB Wait Time and select Never.
Method 2: PTP mode for photos and debugging over USB (ADB)
If you only need to send photos or videos, use the mode PTP (Picture Transfer Protocol: It's optimized for media files and is often better recognized by older versions of Windows (like Windows 7). PTP:
- Connect your phone to your PC and deploy the notification panel.
- Click on the “Charge via USB” notification and select Photo Transfer (PTP).
- The phone will appear on your computer as a digital camera. The Photos app will open on Windows; the Photos app will open on your Mac.
For developers and advanced users, debugging mode is available on USB (ADB). It lets you control your phone through the command line, install custom firmware, or test apps. ADB:
- Activate Developer Mode: Go to Settings → About Phone and click on MIUI Version 7 times. You will be notified “You are a developer.”
- Go back to the main settings menu, open the “Developers” section (it will appear after the previous step).
- Find the USB Debugging option and turn it on. Confirm the resolution in the window that appears.
- Connect your phone to your PC and select File Transfer (MTP) or Charge Only – ADB will work in parallel.
Why do we need ADB?
After activating ADB, install platform-tools (part of the Android SDK) on your computer and check the connection with the command:
adb devicesIf your phone's serial number appears in the answer, the connection is successful. If not, check the drivers (see next section).
Method 3: Using the phone as a USB-storage (UMS)
On older Xiaomi models (before MIUI 9), USB Mass Storage (UMS) was available, which converted the phone into a removable drive. In newer firmware, this mode is removed, but it can be emulated with third-party applications like DriveDroid.
- 🔧 You need to flash your phone through Fastboot, but the PC can’t see the device.
- 📁 Requires to mount the disk image (ISO) straight from the phone.
- 🖥️ You need to download the PC from the installation disk stored on Xiaomi.
To use DriveDroid:
- Install the app from Google Play.
- Connect your phone to your PC and select Charging Only mode.
- Run DriveDroid, grant root rights (if required), and select a disk image to mount.
- On the computer will appear a new removable disk, which can be used as a normal flash drive.
💡
UMS mode is convenient for system recovery, but requires root rights on most modern Xiaomi devices.
Note that when using DriveDroid, you can’t disconnect your phone from USB until the operation is complete, otherwise the disk image will be damaged, and this method doesn’t work on some models with MIUI 13+ due to the limitations of the Android kernel.
The solution to the problem: the computer can not see the Xiaomi phone
If your phone is not displayed in Windows Explorer or is not detected on Mac/Linux after you connect, follow these steps:
| Problem. | Reason. | Decision |
|---|---|---|
| The phone charges but does not transfer files. | Not selected MTP/PTP mode | Deploy the notification panel on your phone and select File Transfer |
| The computer makes the connection sound, but the disk does not appear. | There are no MTP drivers | Install Google USB Driver or upgrade through Device Manager |
| The phone is connected and immediately disconnected. | Faulty cable or port | Try another cable/port or clean it. USB-dust-plate |
| On a Mac, the phone is not recognized in MTP mode. | There is no Android File Transfer | Download the utility from the official website |
| ADB does not see the device (no devices) | Not enabled USB debugging or MIUI locking | Check the developer’s settings and allow debugging in the window on the phone that appears |
For manual installation of MTP drivers on Windows:
- Open Device Manager (Win + X → Device Manager)
- Find a device with a yellow exclamation point (usually under "Portable Devices" or "Other Devices").
- Right-click on it → “Update driver” → “Research drivers on this computer”.
- Select “Select driver from the list” and select «MTP-Device (manufacturer: Microsoft or Google).
💡
If drivers are not installed, download the Mi PC Suite from the official Xiaomi website – it will automatically install all the necessary components.
⚠️ Note: Some Xiaomi models (e.g. Redmi Note 8 Pro) POCO F3) regime MTP It may conflict with the Quick Charge function. If the phone is not detected, turn off fast charging in the battery settings.
Alternative ways to transfer files without USB
If USB-The port on your phone or computer is not working, use wireless methods:
- 🌐 Mi Drop (formerly Xiaomi Share): Built-in application for transferring files over Wi-Fi Direct. Up to 20 MB/s, no internet required. How to use: Open Mi Drop on your phone and select files. Click "Send" and select the recipient device (PC must be on the same Wi-Fi network). On your computer, open the browser and go to the address specified in the application.
Cloud services
Google Drive
Mi Cloud
Yandex.Disk
Mi Cloud
Xiaomi
FTP-server
FX File Explorer
Solid Explorer
Windows Explorer
ftp://IP_phone: port
For transferring small files (up to 1 GB), it is convenient to use Telegram or WhatsApp Web:
- Send the file to your saved messages (Telegram) or chat (WhatsApp).
- Open the web version of the messenger on your PC (web.telegram.org or web.whatsapp.com) and download the file.
⚠️ Note: When transferring files over public Wi-Fi networks (for example, in a cafe) use VPN or encryption (e.g., enable the option “Secure Transfer” in Mi Drop) to prevent third parties from intercepting data.
Security when connecting Xiaomi to a PC
Connecting your phone to an unknown computer can lead to risks:
- 🕵️♂️ Data theft: Through USB You can copy photos, contacts or SMS without your knowledge.
- 🦠 Viruses: If there is malware on your PC, it can infect your phone (especially when debugging is enabled). USB).
- 🔓 Bypassing the lock: On some firmware through ADB You can unlock the pattern lock.
To protect the data:
- 🔒 Use Charging Only on public PCs (at airports, hotels).
- 🛡️ Turn off the debugging. USB After use (in the developer settings).
- 📱 Encrypt sensitive data: C MIUI There is a built-in folder encryption function (Settings) → Confidentiality → Encrypted folders).
- 🔄 Reset your permits USB After connecting to other devices: Settings → Connected devices → Forget this device.
On the phones with MIUI 14+ The function of "Protection from the USB-It blocks the connection to the PC if the phone is unlocked more than 5 minutes ago:
- Go to Settings. → Confidentiality → Protection from USB-attack.
- Activate the option and set a timeout (recommended 1-2 minutes).
💡
Never connect your phone to a PC with antivirus software disabled, especially if it has USB debugging enabled, and viruses like Cerberus or Pegasus can gain full control of your device via ADB.