Transferring data via USB to Xiaomi: how to enable and configure

Why Xiaomi doesnโ€™t see why USB-Connection and how to fix it

You connected Xiaomi to your computer through USB-cable, but instead of the expected access to files, you only see charging? This problem is familiar to many smartphone owners of the brand, POCO Black Shark activates charging mode, not data transfer, which is done for security, but often causes confusion among users.

In this article, weโ€™ll look at all the ways you can turn on data, from basic settings to solving complex bugs, how to connect your smartphone to Windows, MacOS, or even Linux, what drivers you might need, and what to do if your computer persistently canโ€™t see your device, and focus on models with MIUI 12/13/14 and the new Xiaomi HyperOS, where the logic of the connection has changed.

Before you get to the settings, check out three key points:

  • ๐Ÿ”Œ Whether you use original cable (low-quality cables often don't support data transmission)
  • ๐Ÿ–ฅ๏ธ Are you connecting to USB-Port 3.0 (blue connector) for stable speed
  • ๐Ÿ”„ Rebooted your smartphone and computer (this solves 30% of connection problems)

Basic settings: how to enable file transfer in MIUI

On most Xiaomi devices, the USB enabled algorithm consists of 4 steps. Importantly, the interface may vary slightly depending on the version of MIUI or HyperOS, but the logic remains the same.

Here are the steps for MIUI 12/13/14 and HyperOS:

  1. Connect your smartphone to your computer through USB-In the top notification panel, a message will appear "Charge through" USB".
  2. Deploy the notification bar and tap the label โ€œCharge via USBโ€ (or โ€œUSB for file transferโ€ in newer versions).
  3. In the window that opens, select File Transfer (or File Manager/MTP). Some models may require you to confirm the selection in an additional window.
  4. The computer will open a conductor window with folders of the smartphone. If this does not happen, check the Device Manager (more about this below).

Use the original USB-cable|Connect to USB 3.0 (blue port)|Unlock the smartphone screen|Enable debugging on USB (forward-thinking)|Check the antivirus (it can block the connection)-->

If the notification panel does not have the option "File Transfer", it means:

  • ๐Ÿ“ฑ Developer mode is disabled on your device (you need to turn on)
  • ๐Ÿ”ง Security settings are blocked USB-connection
  • ๐Ÿ–ฅ๏ธ There are no drivers on the computer. ADB or MTP

๐Ÿ’ก

On POCO F5, Xiaomi 13 and later, after selecting the File Transfer mode, you may request permission to access media files. Be sure to click Allow, otherwise the computer will only see empty folders.

Developer Mode and USB Debugging: When Itโ€™s Needed

In 90% of cases, basic settings are enough for normal file transfer. ADB-commands, install custom firmware or work with system files, you will need to enable debugging USB. It also helps when a smartphone is not defined by a computer in principle.

How to activate the developer mode and debugging:

  1. Go to Settings. โ†’ The phone.
  2. Find the MIUI version and tap it 7 times in a row, and the notification will appear: "You became a developer!".
  3. Go back to the main settings menu, and now it will be a developer section (or "More"). โ†’ For developers in HyperOS).
  4. Turn on the "Debugging by USB" switch and confirm the action.
  5. Connect your smartphone to your computer. The screen will see a request for "Allow debugging over USB?" and click "Allow" and select "Always allow from this computer."

After that, the notification bar will appear in the notification panel when you connect to USB, an additional option will appear: "File Transfer (MTP)" or "PTP" (for transferring photos). If the computer still does not see the device, check:

  • ๐Ÿ”Œ Is the cable connected to the back? USB-port (on laptops, front ports often have limited power)
  • ๐Ÿ› ๏ธ Have Google drivers been installed? USB Driver (for Windows)
  • ๐Ÿ”„ Have you rebooted both devices after debugging is enabled?

MIUI 12|MIUI 13|MIUI 14|HyperOS|I don't know.-->

Driver problems: why your computer can't see Xiaomi

One of the most common reasons Xiaomi is not detected via USB is the absence or conflict of drivers, especially for Windows, where the system can automatically install inappropriate drivers.

Hereโ€™s how to check and install the right drivers:

For Windows 10/11:

  1. Connect your smartphone and open Device Manager (click Win + X โ†’ select the appropriate item).
  2. Find a device with a yellow exclamation point (usually under "Other Devices" or "Portable Devices").
  3. Right-click on it โ†’ โ€œUpdate driverโ€ โ†’ โ€œResearch drivers on this computerโ€.
  4. Select "Select driver from the list" โ†’ "MTP-device "ADB Interface".

If no drivers are available:

  • ๐Ÿ“ฅ Download the official Mi package PC Suite from Xiaomi (it will automatically install the desired drivers)
  • ๐Ÿ”ง Or install Google. USB Driver via Android SDK Platform-Tools
  • ๐Ÿ–ฅ๏ธ For MacOS/Linux Android-tools package (installed via terminal)
Operating systemRequired driversMethod of installation
Windows 10/11MTP + ADBThrough Mi PC Suite or manually
MacOSAndroid File TransferInstallation from the official website
Linux (Ubuntu/Debian)android-tools, mtp-toolssudo apt install android-tools-adb mtp-tools
Windows 7/8Google USB DriverUsing Android SDK or Mi Flash Tool

โš ๏ธ Note: If after installing the drivers, the smartphone is still not determined, try connecting it to another USB-Some ports (especially on the front panel of the system unit) may not provide sufficient power for the data mode.

Features of connecting to macOS and Linux

Owners of MacBooks or Linux computers often find that Xiaomi is not recognized by the system even when the settings are right, due to the peculiarities of the MTP protocol, which these OSes do not support as well as Windows.

For macOS:

  • ๐Ÿ“ฅ Install the official Android File Transfer software (you can download from Google website)
  • ๐Ÿ”„ After connecting the smartphone, launch the program - it should automatically detect the device
  • ๐Ÿšซ If files are not displayed, try switching mode. USB smartphone-wise MTP on PTP back and forth

For Linux (Ubuntu, Fedora, Debian):

  1. Install MTP packages: sudo apt install mtp-tools libmtp-common libmtp-runtime
  2. Connect your smartphone and check if it is determined by the command: mtp-detect
  3. If the device is visible but the files are not displayed, try using the Thunar or Nautilus file manager with MTP support.

โš ๏ธ Note: Some Linux distributions (e.g. Arch Linux) may require manual customization of the udev rules for Xiaomi devices.

Why does Linux work poorly with MTP?
MTP (Media Transfer Protocol) was developed by Microsoft and originally intended for Windows. In Linux, MTP support is implemented through reverse engineering, so compatibility issues can arise, especially on new devices with HyperOS. The alternative is to use PTP mode (for photos) or connect via FTP via Wi-Fi (requires root access).

Frequent mistakes and their solutions

Even after you set up the connection correctly, you can still get errors, and here are the most common problems and ways to solve them:

Mistake.Possible causeDecision
The device is connected, but the files are not displayedDriver conflict or antivirus blockingReinstall the driver, disable the antivirus, try another cable
A message appears "USB-device not identified"The cable or USB-portTry another cable/port, check on another computer
The smartphone is constantly reconnectingUnstable nutrition USB-portConnect to the back port of the PC or use USB-powerhouse
The computer only sees the photo (PTP mode)On the smartphone selected the wrong modeIn the notification panel, select "File Transfer (MTP)"
When connected, the smartphone begins to charge, but is not determinedDisabled data transfer mode in settingsTurn on "USB-debugging or resetting settings USB

If none of these methods worked, try resetting your USB settings:

  1. Go to Settings โ†’ System โ†’ Resetting settings.
  2. Select "Resetting settings" USB" (or "Reset network settings" in older versions MIUI).
  3. Confirm the action and restart the smartphone.

๐Ÿ’ก

If the smartphone is defined as a โ€œmedia device" (MTP), but files are not displayed, try manually updating the driver in Windows Device Manager by selecting "Install from the list" โ†’ "MTP-deviceโ€ (even if already installed).

Alternative methods of file transfer

If USB-The connection is still down, so consider alternative methods of data transmission:

  • ๐ŸŒ Wi-Fi Direct / FTP-server: Use applications like FX File Explorer or Solid Explorer FTP-It's a server on a smartphone, and it's as fast as a transfer speed. USB 2.0.
  • โ˜๏ธ Cloud services: Upload files to Google Drive, Mi Cloud or Telegram (via Save to the Cloud.
  • ๐Ÿ“ถ Xiaomi Share / Mi Drop: Built-in feature in the MIUI for wireless transmission between Xiaomi devices. Works over Wi-Fi Direct.
  • ๐Ÿ”Œ OTG-adapter + flash drive: Connect USB-smartphone-based OTG and copy the files directly.

For large amounts of data (like backups), FTP over Wi-Fi is the best way to do this.

  1. Install the FX File Explorer app (or similar) on your smartphone.
  2. Go to the section "Remote access" โ†’ "Launch. FTP-server".
  3. Remember the address of the species ftp://192.168.x.x:xxxx.
  4. On the computer, open the conductor and enter this address in the address bar.

โš ๏ธ Note: When transferring files over Wi-Fi, the smartphone and computer must be connected to the same network. Avoid public Wi-Fi networks - it is not safe to transfer sensitive data.

FAQ: Answers to Frequent Questions

Why does a smartphone start charging when connected to a USB, but the computer canโ€™t see it?
This is Xiaomi's standard behavior, which is that it only turns on charging by default. To activate data transfer, deploy the notification bar and select File Transfer (MTP) mode. If this is not the case, check if the developer mode and USB debugging are enabled.
How to enable data transfer to Xiaomi with a broken screen?
If the screen is not working, but the smartphone is turned on, connect it to the computer and try to control through the ADB-To do this: Install Platform Tools on your computer. Enter adb devices to make sure the device is being identified. Perform adb shell settings put global. usb_configuration 2 (2 โ€” It's the code of the regime. MTP). If ADB It wasn't turned on in advance, it won't work -- you'll need screen repairs.
Can I transfer data via USB-C to USB-A (and vice versa)?
Yes, but it requires a high-quality adapter or a data-enabled cable, and cheap cables often only support charging: ๐Ÿ”Œ USB-C โ†’ USB-A: standard cable, which comes with most Xiaomi. ๐Ÿ”„ USB-A โ†’ USB-C: Adapters will be required (e.g., adapter, USB OTG). โšก USB-C โ†’ USB-C: You need a cable with support USB 3.1 Gen 2 for maximum speed.
Why is the transfer of files over USB so slow?
Speed depends on several factors: USB version: USB 2.0 gives up to 480 Mbps, USB 3.0 - up to 5 Gbps. Cable quality: thin or damaged cables limit speed. File system: NTFS or exFAT on the flash drive work faster than FAT32. CPU load: if the computer or smartphone is busy with other tasks, the speed drops. For maximum speed, use USB 3.0 (blue port), original cable and connect the smartphone directly (without hubs).
How to disable permission request for each USB-connection?
If, when connected to the USB The constant request "Allow access to data?", which means that: The smartphone does not turn on "Always allow from this computer" (check the next connection). USB-port (the system perceives this as a new device) Settings reset USB (post-refresh MIUI To remove the request permanently, connect to the same port and mark "Always Allow".