How to connect a Xiaomi device to a computer: USB, Wi-Fi and ADB

Connecting Xiaomi devices to a computer is a necessary skill for file transfer, firmware, debugging or backup. However, many users face problems: the PC does not see the phone, drivers are not installed, and data modes are not installed correctly. In this article, we will analyze all the current ways of connecting (including hidden MIUI functions), solve typical errors and optimize the process for different models, from Redmi Note 12 to Xiaomi 14 Ultra.

Xiaomi’s own MIUI firmware is a feature that often blocks standard connection protocols (such as MTP or PTP) due to security policies. We’ll show you how to get around these restrictions without risking a warranty, and we’ll also reveal the secrets of working with ADB and Fastboot for advanced users. If you just need to upload a photo or update your firmware, here are step-by-step instructions. If the goal is unlocking the bootloader or custom firmware, it’s covered.

1. Preparation of Xiaomi device for connection

Before you physically connect to your computer, you need to configure the Xiaomi device itself, and skipping this stage is the main cause of errors like this Β«USB-I don't know if I'm using the basics:

Open the Settings. β†’ About the phone and 7 times click on the item "Version" MIUIΒ» β€” This activates the developer mode. Go back to the main settings menu, find a new developer section, and turn it on:

  • πŸ”§ Debugging by USB (necessarily ADB and Fastboot)
  • πŸ”„ Unlocking OEM (You need to install and unlock the loader)
  • πŸ“± Disable the check MIUI (If any, speed up the connection)
  • πŸ”’ Installation through USB (manually APK)

For models with MIUI 14+ (for example, Xiaomi 13T Or the Redmi Note 12 Pro.+) Add your computer to trusted devices: a confirmation request will appear when you first connect RSA-The key, you can agree. ADB-The teams will not work.

πŸ’‘

If the developer menu does not include the option β€œOEM Unlock”, it means that your device has already been unlocked or it is a model with a locked bootloader (for example, for the Chinese market).

Also check the default USB mode in Settings β†’ Connection and Sharing β†’ USB. The best option for file transfer is File Transfer (MTP). For photos, select Image Transfer (PTP), and for debugging, only Charge (then turn on ADB manually).

2. Connection via USB: step-by-step instructions

The most reliable and quickest way is a USB Type-C cable (or Micro-USB for older models like the Redmi 4X), using an original cable from the kit or certified (for example, with a USB-IF marking), cheap cables often do not support data transfer, only charging.

Connection algorithm:

  1. Connect the cable to your Xiaomi device and computer.
  2. On the phone, select the connection mode (see the previous section).
  3. On PC, wait for the driver installation (Device Manager should appear Xiaomi device... or Android Composite ADB Interface).
  4. Open the Explorer - the device should appear as a removable disk.

If your computer can’t see Xiaomi, make the driver installation:

Download [Mi PC Suite](https://pcsuite.mi.com/) or [Google USB Driver](https://developer.android.com/studio/run/win-usb)

Open Device Manager β†’ find β€œUnidentified Device” β†’ Update the driver β†’ Select the driver manually

Specify the path to the driver folder (e.g., `C:\Program Files (x86)\Xiaomi\MiPhone\Driver`)

Restart the computer and reconnect-->

Windows 11 users may need to disable protection against unauthorized access to the USB in Parameters β†’ Confidentiality β†’ USB-On macOS, install Android File Transfer (official software from Google).

πŸ“Š What operating system do you use?
Windows 10/11
MacOS
Linux
other

3. Wireless Wi-Fi connection (without USB)

If there is no cable or port USB damaged, you can connect via Wi-Fi FTP-This method is slower (speed depends on the router), but convenient for periodic file transfers.

Method 1: Built-in FTP-server MIUI:

  1. Connect your phone and computer to the same Wi-Fi network.
  2. On the phone, open Explorer β†’ FTP (tab at the bottom).
  3. Press Launch. FTP-server and remember the address (for example, ftp://192.168.1.100:2221).
  4. On PC, open Explorer, enter the address in the address bar and press Enter.

Method 2: Mi Drop (for transfer between devices):

  • πŸ“² Install Mi Drop from Google Play on your phone.
  • πŸ’» On PC, open the web version at the address https://drop.mi.com/.
  • πŸ”— Scan it. QR-code from the computer screen with the phone camera.
  • πŸ“ Drag files between devices via browser.

For Linux, the gvfs utility is suitable (install via sudo apt install gvfs-backends). FTP:

nautilus ftp://192.168.1.100:2221
Why is Wi-Fi connection slower than USB?
Wi-Fi transmission speeds are limited by the router standard (e.g. 802.11n up to 150 Mbps and USB 3.0 up to 5 Gbps). In addition, performance is affected by interference, distance to the router and network load. For larger files (video, backups), USB is more reliable.

4. Connect via ADB and Fastboot (for developers)

If you need to install custom firmware, unlock a bootloader, or debug an app, you’ll need Android Debug Bridge (ADB) and Fastboot, a method that requires pre-configuration but gives you full control of the device.

Step 1: Install ADB Tools on your computer:

  • πŸ“₯ Download Google’s Platform Tools (official package with adb.exe and fastboot.exe).
  • πŸ“‚ Unpack the archive into the root of the disk C:\platform-tools\.
  • πŸ”§ Add a path to the folder to the environment variable PATH (Instructions for Windows: Control Panel β†’ System system β†’ Additional parameters β†’ Environment variables).

Step 2: Connecting the device:

  1. Activate debugging over USB (see Section 1).
  2. Connect your phone to your PC and select Charge Only mode (ADB will run on top of it).
  3. Open the command line (Win + R β†’ cmd) and type:
adb devices

If the device appears in the list (for example, 1234abcd device) – the connection is successful. If not, reinstall the drivers (see section 2).

For Fastboot (firmware mode):

  1. Turn off the phone.
  2. Press Volume Down + Power before the Fastboot logo appears.
  3. Connect to the PC and enter in the command line:
fastboot devices

πŸ’‘

ADB It only works when the bootloader is unlocked (except for commands to unlock). `unauthorized` or `no permissions`, Check the debugging resolution on your phone and restart both devices.

5. Solving common mistakes

Even with the right setup, problems can occur, and below is a table of common errors and their solutions:

Mistake.Reason.Decision
USB-device not identifiedNo driver or contact with other devicesInstall Mi PC Suite or manually update the driver through Device Manager (select Android ADB Interface).
The phone charges but does not transfer files.MTP/PTP mode not selected or cable damagedCheck the mode in the notification curtain. Try another cable (original)
ADB: device unauthorizedUnconfirmed. RSA-keyDisconnect/connect the cable and confirm the request on the phone
FTP-server not runningBlocking with antivirus or firewallTurn off protection for 5 minutes or add an exception for port 2221
The computer does not see internal memoryMIUI blocks access to system partitionsUse adb pull /sdcard/ to copy files or disable encryption in settings

A critical mistake for Xiaomi owners with MIUI 14+: if after connecting to a PC the phone stops charging from other devices, reset the USB settings in the developer menu (Reset USB configuration).

For Mi PC Suite errors (such as β€œUnconnected”), try:

  • πŸ”„ Reinstall the program from the official website.
  • πŸ›‘οΈ Disable antivirus (Avast, Kaspersky often block Xiaomi drivers).
  • πŸ“‘ Connect via another USB-port (preferably) USB 3.0 blue).

6. Alternative ways of connecting

If standard methods don’t work, consider alternatives:

Cloud services:

  • πŸŒ₯️ Mi Cloud (built-in in) MIUI) β€” Automatically synchronizes photos, contacts and notes.
  • πŸ“ Google Drive or Yandex Disk – upload files to your phone and then download them to your PC.

Memory card:

  • πŸ“± If your device supports MicroSD (such as Redmi Note 11), transfer the files to the card, extract it and paste it into your computer through a card reader.
  • ⚠️ Note: Not all Xiaomi models support memory cards (e.g., Xiaomi 13 and newer – only internal memory).

3. Bluetooth (for small files):

  • πŸ“Ά Turn on Bluetooth on both devices.
  • πŸ”— Conjugate them through Settings β†’ Bluetooth.
  • πŸ“Ž Send files one at a time (maximum 50MB at a time).

4. OTG-adapter:

  • πŸ”Œ Buy it. USB OTG-cable (stands) ~200β‚½).
  • πŸ–₯️ Connect to the phone flash drive or external HDD β€” Then copy the files to it, and then to the PC.

πŸ’‘

For large video transfer (e.g. with Xiaomi) 13 Ultra in 8K) Use the local network via Ethernet cable USB-Adapter, speed will reach. 1 Gbps, what's in 5-10 faster than Wi-Fi.

7.Security when connecting Xiaomi to a PC

Connecting to a computer is a potential risk to data security.

What to do:

  • πŸ”’ Use trusted computers (in public places, connect only through charging only).
  • πŸ›‘οΈ Enable device encryption in Settings β†’ Security β†’ Encryption.
  • πŸ“± Set a password/pattern lock on your phone (without it). ADB It may be vulnerable to attacks).

What to avoid:

  • ❌ Do not connect to a PC with pirated software or hacked Windows.
  • ❌ Don't confirm. RSA-Keys on suspicious computers (this gives access to data).
  • ❌ Do not leave your phone unattended in mode MTP.

⚠️ Attention: On devices with MIUI For the Chinese market (e.g. Xiaomi) 12S Ultra CN) When you connect to a PC, spyware (such as Mi Analytics) can be installed automatically. β†’ Memory. β†’ Autoboot and Settings β†’ Special facilities β†’ Mi Services.

To completely clean up the connection history:

  1. Go to Settings. β†’ For developers.
  2. Press Reset USB permissions.
  3. Remove all trusted devices in Settings β†’ Google β†’ Security.

8. Frequently Asked Questions (FAQ)

πŸ”Ή Why your computer can’t see Xiaomi USB, cable?
The problem could be: No drivers (install Mi PC Suite); Antivirus lock (add exception for adb.exe); USB incorrect (switch to MTP in the notification curtain); damaged port (try another PC connector); If nothing helps, check if the modem mode is enabled in Settings β†’ Access Point and modem – it blocks MTP.
πŸ”Ή How to connect Xiaomi to MacBook?
On MacOS: Install Android File Transfer from the official website. Connect your phone in MTP mode. Open the program and it will automatically detect the device. For ADB: Install platform-tools via Homebrew: brew install android-platform-tools Connect your phone and check the connection: adb devices
πŸ”Ή Can you connect Xiaomi to a computer without USB (if the port is broken)?
Yes, there are 3 ways: Wi-Fi ADB: Connect your phone to the PC by USB and type: adb tcpip 5555 Disconnect the cable and connect to IP: adb connect 192.168.1.100:5555 FTP-Server (see section 3) Cloud services (Mi Cloud, Google Drive). USB No alternatives – port repairs will be required.
πŸ”Ή How to copy files from Xiaomi system folders (for example, /data)?
System folders (/data, /system) Protected. To access them: Unlock the bootloader (instructions on the official website). Install custom recovery (for example, TWRP). Connect through ADB and use the commands: adb shell su cp -r /data/media/0/DCIM /sdcard/backup/ ⚠️ Warning: Changing system files can cause the device to blink (completely inoperable.
πŸ”Ή Why Xiaomi’s battery is drained when connecting to a PC?
This is because: Faulty cable (check on another device). Weak. USB-port (e.g., port, USB 2.0 only gives you 0.5A instead 1.5A). Background activity (synchronization, backup) Solution: Use the original cable and port USB 3.0. Enable the aircraft mode on your phone while you transfer files. Close the background apps through Settings β†’ Battery β†’ Battery utilization.