Owners of Xiaomi smartphones often face a lack of internal storage, especially on models with a basic memory configuration. the built-in drive quickly fills with system files, messenger cache and heavy games, which leads to a slowdown in the device. Transferring data to an external medium becomes not just a convenient option, but a necessity for comfortable use of the gadget.
However, current versions of MIUI and Android hide the ability to install programs on a memory card by default, for security and stability, but limit the user’s ability. In this guide, we’ll look at proven ways to circumvent restrictions and securely organize your smartphone’s file system.
Technical limitations of MIUI and Android
Since Android 6.0, Google has implemented Adoptable Storage, which allows the system to view an external memory card as part of internal storage. However, manufacturers including Xiaomi often disable this feature at the firmware level.This is because microSD cards are usually slower than those of embedded flash memory, which can cause interface lags.
And Android's security system encrypts the data on the memory card by linking it to a particular device. If you take the card out and paste it into another phone, the data won't be read without formatting, and understanding these limitations is important before you start the procedure.
Importantly, not all applications support portability, and developers themselves specify in the program manifest whether it is allowed to move components to an external medium, and system applications and mission-critical services are often not accessible for migration.
⚠️ Note: Forced transfer of system applications can lead to unstable operation of the operating system or the occurrence of a cyclic reboot (bootloop).
Preparation of memory card and device
Before you start any manipulation, you need to properly prepare the external drive, read and write speed directly affects the speed of installed applications, using a cheap card with a low speed class will turn your smartphone into a slow device.
It is recommended to use UHS-I or UHS-II cards with a speed class of at least 10. The optimal volume is from 32 to 128 GB, since the default FAT32 file system has limitations, and exFAT may require additional drivers or superuser rights to fully work in internal storage mode.
💡
Use memory cards only from proven brands (Samsung, SanDisk, Kingston). Cheap cards from marketplaces often have fake volume and quickly fail.
Make sure to back up all the important data, and the process of converting the card to internal storage involves completely formatting it, and all the photos, videos and documents that were on it will be permanently deleted.
- 📱 Remove the memory card from your smartphone and connect it to your computer through a card reader.
- 💾 Perform full formatting in the exFAT file system or NTFS (For subsequent formatting by the phone it is not critical, but useful for cleaning).
- 🔋 Make sure your smartphone battery is at least 60% battery power to avoid interruption.
Activation of the developer mode and debugging via USB
Changing the system memory settings requires access to hidden Android features. The first step is to activate the developer mode. This is a standard procedure that does not require superuser (Root) rights, but it opens up access to debugging commands.
Go to the Settings → About Phone menu and find the MIUI version. You need to quickly click on it 7-10 times in a row until the notification “You became a developer” appears. After that, a new section “Additional” or “Extended Settings” will appear in the main settings menu, where the desired item is hidden.
☑️ Setup of debugging
In the Developer menu, find the USB Debugging Switch and activate it. The system will warn you of the risks, confirm the action. When you first connect to your computer, a request will appear on the smartphone screen for debugging permission from this computer; be sure to check the box "Always Allow" and click "OK".
Using ADB to change memory configuration
The most reliable way to get Xiaomi to use the card as internal memory is to use the Android Debug Bridge toolkit (ADB). It's a console utility that lets you send commands directly to the operating system. You'll need a computer (Windows, macOS or Linux) and a cable. USB.
You first need to download and install the Platform Tools package from Google's official website. After unpacking the archive, open the command line in the tool folder. To check the connection, type in the command:
adb devicesIf a device with a serial number appears on the list, the connection is successfully established. If the status is unauthorized, check the phone screen and confirm access. ID - Your memory card:
adb shell sm list-disksThe system will give you a disk ID, like a disk:179.64, which is unique to your device and card, and write it down because you'll need it for the next step.
⚠️ Warning: sm partition will destroy all the data on the card. Make sure you choose the right disk:id to avoid formatting internal memory accidentally.
Now, you can set up a memory split command, and you can set up a part of the map for the applications, and you can leave a part for the files, and for example, the command below will allocate 50% of the space for the applications:
adb shell sm partition disk:179,64 private 50Once the command is executed, the phone can restart. In the storage settings, the card will appear as internal memory. Now the system will automatically transfer application data to the new partition.
Alternative methods and third-party utilities
If using the command line seems too complicated for you, there are graphical shells for ADB, such as Xiaomi ADB/Fastboot Tools or App2SD. These programs automate the process of entering commands, but require drivers and working debugging over USB.
Some users have resorted to installing Google Play assistant apps that try to force portability through standard Android APIs, and the effectiveness of such methods on MIUI is extremely low, since the shell blocks the system calls necessary for these utilities to work.
Why not use Root rights for transfer?
Another method is to change manifest files of applications, but this requires decompilation of APK, which is impossible without deep technical knowledge and is impractical for the average user.
Compatibility table and map characteristics
When choosing a memory card, it is important to pay attention not only to volume, but also to the speed marking. Below is a table that helps you choose the best medium for installing applications.
| Class of card | Min. Recording speed. | Suitable for applications | Recommended level |
|---|---|---|---|
| Class 10 | 10 MB/s | No (photo/video only) | 32GB |
| UHS-I (U1) | 10 MB/s | Only lightweight applications. | 32-64GB |
| UHS-I (U3) | 30 MB/s | Yes (standard) | 64-128GB |
| UHS-II / A2 | 90 MB/s | Yes (maximum speed) | 128-256 GB |
Marking A1 or A2 on a memory card indicates that it is optimized for application performance class, which is better at handling the many small read/write operations that are characteristic of Android applications.
Return to factory memory settings
If you decide to sell your phone or your memory card is out of order, you have to go back to the original state, you can't just pull it out, the data will remain encrypted, and the system will give you errors, and you need to migrate the data backwards.
Go to Settings → Storage, select your card, and click Change or Use as a Portable Storage. The system will prompt you to transfer the data back to internal memory, and make sure there is enough free space.
💡
Always return the card to portable storage mode through your phone's settings before extraction to avoid data loss and encryption errors.
If the phone doesn't turn on or doesn't work properly after experimenting with memory, you may need to reset the entire Wipe Data via the Recovery menu.
⚠️ Attention: When you reverse-transfer data, if internal memory is critically small, the process may be interrupted. 1-2 GB of space manually before starting migration.
Optimization of work with external memory
Even after successful application porting, it is important to monitor the status of the card: the file system on external media is susceptible to fragmentation faster than on embedded drives. Periodically check the health of the card using utilities like SD Maid or built-in diagnostic tools.
It is not recommended to store important documents in a single instance on a card used as internal memory; the risk of a sudden failure of a microSD card is higher than that of an embedded memory chip; regular backup to the cloud or on a PC remains a mandatory rule.
- 🚀 Close the background applications before actively working with heavy programs on the SD-map.
- 📸 Set the camera so that the photo is saved to the map, but the video (especially the video) 4K) It is better to write in internal memory to avoid loss of staff.
- 🔄 Once a month, check the card for errors through the storage settings menu.
Using a memory card on Xiaomi is a trade-off between volume and speed. Proper setup allows you to significantly expand the capabilities of a budget device, but requires careful attention to the choice of media and backup.