How to connect Xiaomi phone to computer via USB: the complete guide

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.

  1. 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.
  2. In the list of modes, select File Transfer (MTP). On some firmware, this item may be called a “file manager” or «USB-accumulator».
  3. 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:

  1. Connect your phone to your PC and deploy the notification panel.
  2. Click on the “Charge via USB” notification and select Photo Transfer (PTP).
  3. 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:

  1. Activate Developer Mode: Go to Settings → About Phone and click on MIUI Version 7 times. You will be notified “You are a developer.”
  2. Go back to the main settings menu, open the “Developers” section (it will appear after the previous step).
  3. Find the USB Debugging option and turn it on. Confirm the resolution in the window that appears.
  4. Connect your phone to your PC and select File Transfer (MTP) or Charge Only – ADB will work in parallel.
Why do we need ADB?
USB Debugging allows: - Install custom recovery (TWRP) and firmware - Get root rights (via Magisk) - Remove system applications without root rights - Automate actions on the phone (for example, backup) - Restore "bricks" after a failed update

After activating ADB, install platform-tools (part of the Android SDK) on your computer and check the connection with the command:

adb devices

If 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:

  1. Install the app from Google Play.
  2. Connect your phone to your PC and select Charging Only mode.
  3. Run DriveDroid, grant root rights (if required), and select a disk image to mount.
  4. 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 modeDeploy 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 driversInstall Google USB Driver or upgrade through Device Manager
The phone is connected and immediately disconnected.Faulty cable or portTry 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 TransferDownload the utility from the official website
ADB does not see the device (no devices)Not enabled USB debugging or MIUI lockingCheck the developer’s settings and allow debugging in the window on the phone that appears

For manual installation of MTP drivers on Windows:

  1. Open Device Manager (Win + X → Device Manager)
  2. Find a device with a yellow exclamation point (usually under "Portable Devices" or "Other Devices").
  3. Right-click on it → “Update driver” → “Research drivers on this computer”.
  4. 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:

  1. Send the file to your saved messages (Telegram) or chat (WhatsApp).
  2. 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:

  1. Go to Settings. → Confidentiality → Protection from USB-attack.
  2. 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.

FAQ: Frequent questions about Xiaomi's PC connection

Why does a computer see a phone as an “unidentified device”?
This means that the MTP drivers are not installed or conflict with other drivers. Solutions: Disconnect the phone, delete the device in Device Manager (right click → “Delete the device”). Connect the phone again and wait for the driver to automatically install. If it doesn’t, install the Mi PC Suite — it will update the drivers manually. Windows 7 may require a Media Feature Pack update.
How to transfer files from your phone to your Mac if Android File Transfer is not working?
Try alternative methods: OpenMTP is a free replacement for Android File Transfer with support MIUI. Commander One – File Manager for Mac with Support MTP. Termux + SSH: Install Termux on your phone, launch it. SSH-server (pkg install openssh) and connect via Terminal on Mac. If nothing helps, use cloud services (Mi Cloud, Google Drive).
Can I connect Xiaomi to a PC through USB-C — USB-C cable?
Yes, but there are nuances: the cable must support data transfer (not all USB-C cables can do this). On some Xiaomi models (for example, Mi 11 Ultra), the USB-C port runs in DisplayPort Alt Mode mode, which can conflict with MTP. In this case, use a USB-A adapter. To connect to a MacBook (USB-C), you may need a hub with a USB-A port.
How to turn on Mass Storage Mode (UMS) on Xiaomi’s new phones?
Starting with MIUI 10, UMS mode is removed from firmware. Alternatives: DriveDroid (requires root rights on most devices). TWRP Recovery: In Recovery mode, the phone is defined as a removable drive. ADB + adb pull: Copy files via the command line. For models with an unlocked bootloader, you can install a custom kernel with support for UMS (for example, FrancoKernel).
Why does Xiaomi phone start warming up when connected to a PC?
This is normal if: Active file transfer (especially large volumes), fast charging (turn it off in the battery settings), computer scans files for viruses (antivirus can load the phone's processor), if the phone warms up without data transfer: Check the cable for short circuit (try another). Turn off background processes on the phone (Settings) → Battery → Power saving mode. Update the firmware to the MIUI 13+ Corrected errors with overheating USB-connection.