Using a Xiaomi smartphone as an external drive is a basic but critical feature for many users. It is often necessary to quickly transfer photos, videos or documents to your computer without using cloud services or wireless transmission. However, when connecting a cable, users often find that the device is only charging and the file system remains unavailable.
The problem lies in the security settings and interface MIUI HyperOS, which by default block direct access to data, will be discussed in detail in this article on how to make your phone work in mode. MTP (Media Transfer Protocol: How to Enable Emulation USB-Storage for old PCs and how to turn a smartphone into a USB-Internet modem.
You will learn about the hidden capabilities of the developer menu and understand why a computer can not see files even with a good cable.
Basic connection setting via USB
When you first connect your smartphone to your computer, Android typically chooses Charge Only mode, which is designed to protect your data from unauthorized access in the event of a device being stolen or connected to public charging stations, and you need to manually change this setting to make your computer see your phone as a flash drive.
Once the devices are connected by cable, unlock the smartphone screen. Swipe from top to bottom to open the notification panel. You will see a system message about the type of connection, such as "Charging through" USB» or «USB-Connection. Click on this notification.
In the menu that opens, select File Transfer (MTP), which allows your computer to work with the file system of your smartphone. If you choose Photo Transfer (PTP), your computer will perceive the phone as a digital camera, which will limit access to folders.
⚠️ Note: If the cable does not light up the screen of the smartphone and the connection does not sound, the problem may be in the wire itself. Many cheap cables have only two veins to charge and do not support data transmission.
For stable operation, it is recommended to use the original cable or certified analogues with support for high-speed transmission. After choosing the MTP mode, a new device with the name of your smartphone will appear in My Computer.
Use of the regime USB-modem
Xiaomi's smartphone can act not only as a storage device, but also as a network card for a computer, which is especially true if your PC does not have a Wi-Fi module or it is defective. USB-The modem allows you to distribute mobile internet via cable, providing a more stable connection and lower latency compared to a Wi-Fi access point.
To activate this function, go to the Settings menu → Wi-Fi hotspot. You need to find a hotspot «USB-modem" and activate the switch. Note that this item becomes active (no longer gray) only after the phone is physically connected to the computer by a cable.
Once turned on, the system will automatically install the necessary network adapter drivers. A wired connection icon will appear in the Windows tray. The data rate in this mode is limited by the bandwidth of your mobile operator and the quality of the network signal.
💡
Use of the USB-The modem consumes less power than the Wi-Fi distribution, and simultaneously charges the phone, which prevents fast battery discharge during active operation.
Configuring debugging and emulation of the drive
In some cases, especially when working with older operating systems (e.g. Windows) XP) or specialized software, it is required that the phone is defined as a classic USB-Mass Storage, not as a media device. In modern Android versions, this mode is hidden, but it can be emulated through the developer menu.
First, you need to activate the hidden menu. Go to Settings. → About the phone and find the line "Version" MIUI» (or "Version" OS»). Click on it 7 times in a row with quick clicks until a pop-up message appears: “You became a developer».
Now go back to the main settings menu and select “More” → “Developers” and in this list, look for the default USB configuration, where you can select your preferred connection mode, which will be activated automatically every time you connect to your PC.
| Parameter | Description of function | Recommended use |
|---|---|---|
| Without access to data | Only charging, data transfer blocked | Public charging stations, safety |
| MTP (Media Transfer Protocol) | File and media transfer | Standard work with files on Windows/Mac |
| PTP (Picture Transfer Protocol) | Transfer of the photo as on camera | Old PC, specialized software for photos |
| USB Audio | Transmitting sound via USB | Connection to external DACs or audio systems |
Also in the developer menu, you should pay attention to the item “Debugging over USB”, which allows the computer to gain deep access to the system through the ADB protocol. This is necessary for advanced users involved in firmware or deep cleaning of the system.
What is dangerous with USB debugging?
Changing the default USB configuration to “MTP” will save you from having to manually select the connection mode each time through the notification panel.
Solving problems with file visibility
A common situation: the phone is connected, MTP mode is selected, but in My Computer the device appears as empty or with an error. This can be due to Windows drivers or features of the file system. Modern smartphones use a file system that the old OS does not understand without additional drivers.
If your computer can't see the folder, try turning off the cable, rebooting your smartphone, and reconnecting. Sometimes resetting USB settings to the developer menu helps: find Reset USB settings and press it, and check if Charging Only is on in the default configuration.
For macOS users, the situation is more complicated, as it does not support MTP out of the box. You will need to install the official Android File Transfer app or alternatives like OpenMTP. Without this software, the Mac will see the phone only for charging.
⚠️ Note: When working with your smartphone file system, never delete system folders that you don’t know the name of (e.g. Android, MIUI, This can result in resetting of application settings or system failure.
If files are visible but not copied, check the free disk space and file format. Some video formats may not display correctly in standard Windows Explorer, although they are physically present on the drive.
Working with the file system and formatting
The internal memory of modern Xiaomi is formatted in a Linux-compatible file system (often ext4 or f2fs), but for a computer it is presented via the MTP protocol. This means that you can not format internal memory through “My Computer” with standard Windows tools.
Trying to format internal memory through Windows Explorer will cause an error or, in the worst case, damage to the partition table, which will require flashing the device. Use built-in tools to clean internal memory: Settings → About Phone → Memory → Clean.
The situation is different with a microSD card, if installed, which can be formatted as "Internal Memory" (extensible) or as "Portifical Drive", in the second case, the card will work like a regular flash drive, and the computer will be able to format it in NTFS or exFAT without risk to the phone system.
☑️ Pre-formatting verification
Using a memory card in portable storage mode is the best way to organize the transfer of large amounts of data between the PC and the phone without the risk of damaging Android system files.
Alternative methods of data transmission
If cable connectivity is challenging or the port is damaged, Xiaomi's ecosystem offers wireless alternatives that often work faster and more convenient.The Explorer app has a Remote Management feature that allows you to access your phone files via Wi-Fi from any browser to your PC.
Windows 10 and 11 users are also well suited to the Phone Link app, which syncs gallery and messages. It’s also worth mentioning the FTP protocol: by enabling it in Explorer (PC Access), you’ll get an address of the type ftp://192.168.1.XX:2121, which can be typed into the address bar of any conductor.
Another powerful tool is Mi Share (formerly Mi Drop) for transferring files to other Xiaomi devices or PCs with a client installed. However, for mass transfer of terabytes of data, cable is still the most reliable and fastest solution, regardless of router speed.
💡
Cable connection (MTP) provides the maximum speed of transferring large files and is independent of the quality of the Wi-Fi signal, making it indispensable for video backup and backups.
Choose the method of connection depending on the task: cable for volume and speed, Wi-Fi for convenience and work with documents on the fly.