Connecting Xiaomi smartphone to your computer through USB-cable seems like a simple task, but in practice users often face problems: the phone is not identified, folders with files are not opened or an error appears"USB-The reasons may lie in the settings of the phone itself, and in the drivers on the PC. In this article, we will discuss all possible ways of connecting, from basic file transfer to debugging mode. ADB developer.
The feature of Xiaomi devices (including the Redmi, POCO and Black Shark models) is an additional layer of MIUI protection, which by default blocks some USB functions. For example, without explicit permission in the settings, the phone can charge through the cable, but not transfer data. We will show how to circumvent these restrictions and configure the connection for any task - whether it is copying photos, firmware through Fastboot or working with Scrcpy to control the screen.
1.Preparation: Which cable and port to use
Before you connect your phone, make sure you have a quality phone. USB-Many users mistakenly use cheap charging cables that are physically unable to transfer files, only power the device. Xiaomi's original cables are usually labeled as USB 2.0 (speed up to 480 Mbps) or USB 3.0 (blue connector, speed up to 5 Gbit / s).
Also check the port on PC:
- π USB 3.0/3.1 (blue-marked SS) β preferred for high-speed transmission.
- β‘ USB-C β If you have a modern PC or laptop, use an adapter. USB-C β USB-A if necessary.
- β οΈ Avoid. USB-hubs without separate power supply β they may not provide enough power for a stable connection.
Critical detail: cables with damaged contacts (e.g. bent plugs) can cause intermittent connection or error"USB-If the phone is periodically disconnected, try another cable.
2. Basic connection for file transfer
To simply copy photos, music, or documents from Xiaomi to your PC, follow these steps:
- Connect your phone to your computer with the original cable, and the charge notification will appear on your phone screen via USB.
- Deploy the notification panel and tap on the USB message to transfer files (or Charge via USB).
- Select File Transfer (MTP) mode. If this is not available, go to Settings β Connection and Sharing β USB and enable File Transfer.
On a Windows PC, the phone should be defined as a removable disk in a conductor (this computer).
- π Reconnect the cable by changing the port USB.
- π§ Update drivers through Device Manager (find a device with a yellow exclamation point).
- π± Restart your phone and PC.
Original cable connected|The regime is chosen MTP phone-on|Port port USB 3.0 on PC free|Drivers. MIUI fixed-->
For macOS/Linux, you may need to install additional packages:
- π On Mac: Install Android File Transfer (official software from Google).
- π§ On Linux: Check for mtp-tools or gvfs-mtp.
3. USB Modes on Xiaomi: What each item means
When you connect your Xiaomi phone to your PC in the menu USB-There are multiple modes available, and their purpose is often questionable:
| Regime. | Description | When to use |
|---|---|---|
| File Transfer (MTP) | Allows you to share files through a conductor Windows/macOS. | Copying photos, videos, documents. |
| Image Transmission (PTP) | Optimized for photos (for example, Lightroom). | Import photos to the editor without unnecessary folders. |
| USB-modem | It's spreading the Internet from phone to PC. | If there is no Wi-Fi or other connection. |
| Charging. | Only power, no data transmission. | If you need to charge your phone fast. |
| Midlink (Mi) | Specific mode for synchronization with Xiaomi software. | Backup via Mi PC Suite. |
β οΈ Note: On some models (e.g, POCO F5 or Redmi Note 12 mode MTP It can automatically reset to Charge after locking the screen. To avoid this, turn off the option Automatic Shutdown. USB developer-setting.
4. enable debugging over USB (for ADB and Fastboot)
If you need to connect to your phone via ADB (for example, to install custom firmware or debug apps), follow the following steps:
- Activate Developer Mode: Go to Settings β About Phone and tap on MIUI Version 7 times. You will receive a message You became a developer!.
- Return to the main settings menu, open Additional settings β For developers.
- Turn on the switches: π§ Debugging by USB π Unlocking the lock OEM (necessary to unlock the loader).
Connect the phone to your PC and confirm the debugging permission on the phone screen (will you receive a request to Allow debugging over USB?).
To check the connection, open the command line on the PC and type:
adb devicesIf the device serial number appears in the answer, the connection is successful. If not, install the ADB drivers manually:
- π₯οΈ Download Android SDK Platform-Tools by Google.
- π§ Install drivers through Device Manager (select Manual Install) β Review β Folder with ADB).
π‘
If the adb device command gives an error "no permissions", on Linux run sudo usermod -aG plugdev $LOGNAME and restart the PC.
5. Solving common connection problems
If Xiaomi phone is not detected on PC, the reasons may be as follows:
Problem 1: Device not recognized (error code 43)
It's a driver error.
- Open Device Manager (Win + X β Device Manager).
- Find a device with a yellow icon (usually under Other Devices or USB Controllers).
- Right-click β Update the driver β Search on this computer.
- Select Install from the list β USB MTP Device.
Problem 2: The phone is charging but not transferring files
Causes and solutions:
- β Not selected regime MTP β Change the mode in the notification curtain.
- β Lockdown MIUI β Turn off optimization. MIUI in the battery settings for the Media application.
- β Damaged cable. β Try another cable (preferably original).
Problem 3: ADB can't see the device
Frequent causes:
- π Not included debugging β Check the developer's settings.
- π Outdated drivers β Remove old drivers via USBDeview and install new ones.
- π± Antivirus blocking β Add adb.exe to exceptions.
What to do if the PC is giving"USB-the device is not working properly"
6. Alternative ways to connect without USB
If USB-The connection is not working or you need to transfer files without cable, use alternative methods:
π² Wi-Fi (via Wi-Fi) FTP Mi Drop)
To transfer files over a local network:
- Install the Mi Drop app on your phone (available in GetApps).
- Open the app. β Connect to the PC β scan QR-computer-screen.
- Files will be available through the browser on a local IP-address.
βοΈ Cloud services
For fast transfer of small files:
- π Mi Cloud β 5 GB free, sync with PC via web interface.
- π Telegram β Send files to yourself in Save Messages.
- π Google Drive β Download files from your phone and download to your PC.
π₯οΈ Remote management (Scrcpy)
If you need to control your phone from a PC without USB:
- Install Scrcpy on your computer (GitHub).
- Connect your phone via USB and allow debugging (once).
- Run scrcpy --tcpip in the command line.
- Turn off USB and connect via Wi-Fi: scrcpy --tcpip=192.168.x.x (replace with the phone's IP).
π‘
To work smoothly on Wi-Fi, your phone and PC must be on the same network, and the latency will be higher than USB, but for most tasks (view photos, messengers) this is enough.
7.Security: How to avoid data leaks when connecting
Connecting your phone to someone elseβs PC (such as an internet cafe or work) can be risky.
- π Always choose the mode Only charging on unfamiliar computers.
- π« Turn off the debugging. USB After use (in the developer settings).
- π‘οΈ Use encryption: Enable phone encryption in Settings β Security.
- π΅ Delete the connection history: in Settings β Connection and sharing β USB Reset the permissions for all PCs.
β οΈ Warning: On PCs with hacking software installed (such as KingRoot or iRoot) connect your phone in mode MTP or ADB This can lead to data theft or malicious applications installed. Always check your computer for suspicious programs before connecting.