How to connect Xiaomi phone to a laptop via USB: all ways and solutions to problems

Why Xiaomi is not detected via USB and how to fix it

Connecting a Xiaomi smartphone to a laptop via USB seems like a simple task β€” plugged the cable, and it's done. But in practice, users face a lot of nuances, from the lack of system response to file transfer errors, and often the problem lies not in the cable itself, but in the phone's settings, drivers on the PC, or even in the version of the MIUI firmware.

In this article, we’ll look at all possible connection scenarios, from basic file transfer mode (MTP) to debugging over USB (ADB) for developers, how to set up a phone, what drivers to install on Windows/macOS/Linux, and what to do if the computer persistently does not see the device, and also a unique life hack for Xiaomi owners with a locked bootloader that interferes with the correct connection.

Preparing Xiaomi Phone for Connection

Before you connect your phone to your laptop, check a few key points on the device itself. Even a new USB Type-C cable may not work if the MIUI settings are activated with restrictions.

The first thing to do is unlock the phone screen. Xiaomi won't show up on the PC if the device is locked with a password or fingerprint.

  • πŸ”Œ The cable is good (try charging the phone to them - if the charge goes, the cable is working).
  • πŸ“± Developer Mode is enabled on your phone (if you plan to use it) ADB).
  • πŸ”„ In the settings USB Selected File Transfer (MTP), Not just charging.
  • πŸ”’ All off. VPN Firewalls that can block the connection.

Pay special attention to the USB debugging item in the developer menu, without which many programs (such as Mi PC Suite or ADB) will not be able to interact correctly with the phone.

  1. Go to Settings β†’ About Phone β†’ MIUI version and tap it 7 times.
  2. Go back to the main settings menu, find the Developer section.
  3. Activate the USB Debugging and Installation switches via USB.
πŸ“Š What kind of smartphone you Xiaomi?
Redmi Note 12/13
POCO X5/F5
Xiaomi 13/14
Redmi 10/11
Another model

Choosing the right one USB-cable

What kind of cable would you think if all Xiaomi has a standard USB Type-C? In fact, even the original Xiaomi cables come in two types: charging only and charging + data transfer. The latter are usually marked with the SS (SuperSpeed) symbol or have additional contacts inside the connector.

How to check if your cable supports data transmission?

  • πŸ” Inspect the connector: inside should be 4 contacts for data (besides power).
  • πŸ“Š Connect your phone to your PC and see in Device Manager (Windows): if a device appears MTP or PTP β€” cable.
  • πŸ”„ Try another port on your laptop: USB 3.0 (blue) is often more stable than the USB 2.0.

If you use a hub or dock, make sure it supports data transfer. Many cheap hubs only transmit power. Also avoid wireless connections (via Wi-Fi Direct) to transfer files - they are 5-10 times slower than USB 3.0.

πŸ’‘

If the phone is charging but not transferring files, try flipping the cable in the Type-C port – sometimes the data contacts only connect in one position.

Setting up USB mode on Xiaomi

When you connect Xiaomi to a laptop, a notification with a USB mode selection should appear on the phone screen. If it is not, there is a problem with the settings or drivers.

  • πŸ“ File transfer (MTP) β€” Accessing the phone memory as a flash drive.
  • πŸ“· Transmission of photographs (PTP) β€” if MTP It doesn’t work (often helps on macOS).
  • ⚑ Charging only – blocks data transfer.
  • πŸ”§ Midlink (Mi PC Suite – for synchronization with Xiaomi proprietary software.
  • 🐍 ADB β€” for debugging and firmware (requires included debugging).

If no notice appears:

  1. Open Settings β†’ Connection and Sharing β†’ USB.
  2. Select the desired mode manually (such as MTP).
  3. If there is no item, upgrade MIUI to the latest version.

In some models (for example, POCO F5 Or the Redmi Note 12 Pro.+) The default is only charging. This is for safety, but it interferes with the first connection. Also check if Flight Mode is activated, it can block the flight. USB-linkage.

Enable the developer mode (7 taps according to MIUI) |

Activate debugging via USB|

Select MTP/PTP mode in USB| settings

Check the cable for data transmission support |

Update MIUI last-minute-->

Installation of drivers for Windows, macOS and Linux

Without the right drivers, the computer won’t be able to correctly recognize Xiaomi. On Windows, manual installation is most often required, whereas macOS and Linux usually recognize the phone automatically (but may require additional packages).

For Windows 10/11:

  1. Download the official Xiaomi drivers or use the Mi PC Suite.
  2. Connect the phone in MTP mode.
  3. Open Device Manager (Win + X β†’ Device Manager).
  4. Find a device with a yellow exclamation point (usually in the Portable Devices or Other Devices section).
  5. Update the driver manually, specifying the path to the downloaded file.

For macOS:

  • 🍎 Install Android File Transfer from the official Google website.
  • πŸ”„ Restart the Mac after installation.
  • πŸ“± Connect the phone in mode PTP (MTP MacOS often doesn’t work).

For Linux (Ubuntu/Debian):

sudo apt update


sudo apt install mtp-tools libmtp-common libmtp-runtime

After installing the packages, connect the phone in MTP mode and use a file manager (like Nautilus or Dolphin) to access the files.

What if Windows doesn’t see Xiaomi even after installing drivers?
Try connecting your phone to another USB-port (preferably) USB 2.0 - It works more often with MTP). Turn off fast booting in Windows: Control Panel β†’ Power supply β†’ Action of power buttons β†’ Change the inaccessible parameters β†’ Check if the antivirus (such as Avast or Kaspersky) is blocking the connection. USB-If nothing helps, try resetting your settings. USB on the phone: Settings β†’ System system β†’ Resetting settings β†’ Resetting settings USB (Not available on all models).

Solving common connection errors

Even after setting up the phone correctly, Xiaomi may not be detected on the laptop, and here are the most common errors and their solutions:

Mistake.Reason.Decision
The phone is charged but does not appear as a driveSelected mode Only charging or USB settings are lostSwitch mode to MTP/PTP in notification curtain or in Settings β†’ Connection and Sharing β†’ USB
The computer makes the connection sound, but the phone is not visibleNo driver or conflict with other devicesRemove all MTP devices in Device Manager and reconnect your phone
Mistake "USB-Device not identified" (Windows)The cable, port or phone itself is damaged.Try another cable/port, check your phone on another PC
Files are copied very slowly.USB 2.0 is used or a cable is damagedConnect to USB 3.0 port (blue) and use the original cable
Android File Transfer does not open (macOS)Conflict with other programs or an outdated version of the softwareReinstall Android File Transfer and upgrade macOS

If the phone is still not determined, try resetting the network settings on Xiaomi:

  1. Go to Settings. β†’ SIM-maps and mobile networks β†’ Resetting network settings.
  2. Confirm the reset and restart the phone.
  3. Reconnect the USB.

πŸ’‘

Xiaomi models with a locked bootloader (such as global versions) may need to unlock OEM in the developer settings, otherwise ADB and some USB modes will not work.

Alternative ways to connect Xiaomi to a laptop

If USB-connection is not working or you need additional features, consider alternative methods:

1. Wi-Fi connection (FTP/HTTP)

Use applications like Mi File Manager or Solid Explorer:

  1. Open the file manager on your phone.
  2. Choose Remote Access or FTP-server.
  3. Connect to the indicated IP-address via browser or file manager on PC.

Speed will be lower than USB, but you do not need to mess with cables.

2. synchronization via Mi PC Suite

The official software from Xiaomi allows:

  • πŸ“± Manage files and contacts.
  • πŸ”„ Update firmware.
  • πŸ“ž Make backup copies.

Download Mi PC Suite from the official website and connect your phone in Midlink mode.

3. ADB via Wi-Fi (for developers)

If USB-The debugging works, but the cable is inconvenient, you can translate it. ADB wirelessly:

adb tcpip 5555


adb connect [IP- phone address]:5555

IP-The phone address can be found in the settings β†’ The phone. β†’ General information β†’ Status β†’ IP-address.

πŸ’‘

For easy file transfer between Xiaomi and PC, use the LocalSend app (similar to AirDrop), which works over Wi-Fi and does not require cable connection.

Security when connecting Xiaomi to a laptop

Connecting your phone to other people's computers (such as at an Internet cafe or at work) can be dangerous.

⚠️ Warning: Never connect Xiaomi to a public PC with debugging enabled USB. This could allow attackers to access phone data or install malware.

To protect your data:

  • πŸ”’ Turn off the debugging. USB after-use.
  • πŸ“± Use Only Charging on Unknown Computers.
  • πŸ›‘οΈ Set a password for archives with backups (if you backup through Mi) PC Suite).
  • πŸ”„ Check the list of connected people regularly USB-devices in settings β†’ Connection and sharing β†’ USB.

If you connect a phone to a Mac with an M1/M2 chip, be careful: some versions of Android File Transfer may request access to contacts and messages.

⚠️ Note: Xiaomi phones with global firmware (for example, Redmi Note 12 Global) may be asked to unlock when you first connect to a PC OEM. Do not confirm it unless you plan to flash your phone – it will reduce the security of the device.

FAQ: Frequent questions about Xiaomi's USB connection

Why does my Xiaomi connect to a laptop but the files aren't copied?
This could be due to: A damaged cable (try another), driver conflict (reinstall them), antivirus lock (turn it off while you copy), a problem with the phone's file system (check for errors through Settings β†’ Memory β†’ Check), and try switching from MTP to PTP, which sometimes helps.
Can I connect Xiaomi to a laptop without a cable?
Yes, there are a few ways: Wi-Fi via FTP (built into Mi File Manager), Google Drive (Mi Cloud), apps like LocalSend or Snapdrop, but it's going to be slower than USB 3.0.
What if Windows asks you to format your phone when you connect?
It's a file system recognition error. Don't format it at all! Instead: Turn off your phone. In Device Manager, delete all devices called MTP or Xiaomi. Restart your PC and reconnect your phone. If it doesn't, manually update your drivers (download from Xiaomi).
How to connect Xiaomi to a laptop in mass storage (UMS) mode?
Modern Xiaomi does not support UMS (flash drive mode), only MTP or PTP. However, you can: Use a memory card (if there is a slot) - it will be defined as a separate drive, connect to ADB and mount the memory manually (root rights are required).
Why does macOS not see Xiaomi in MTP mode?
macOS doesn't support MTP. Solutions: Use PTP mode (for photos). Install Android File Transfer (but it gets buggy a lot). Connect over Wi-Fi via FTP or LocalSend. Use OpenMTP (an alternative to AFP) for full access.