Owners of smartphones Xiaomi, Redmi and POCO Often face a lack of built-in storage, especially when using budget models with 32 or 64 GB of memory. MIUI And its successor, HyperOS, by default, doesn't allow applications to be fully ported to an external drive, limiting the user to only saving media. However, there are proven methods to circumvent these limitations and make the gadget work with the user. SD-card-like.
In this guide, we will discuss the technical details of the Android file system in the shell from the Chinese manufacturer. You will learn why standard settings often hide the necessary options and what tools will be required for deep integration of external drive. It is important to understand that any manipulation of system files requires care, but with the right approach, the risk is minimal.
Before you start taking action, you need to evaluate the feasibility of this step for your use case. Modern memory cards have a high read and write speed, which makes them suitable for working with heavy programs, but only if certain requirements for the speed class are met.
Technical limitations of MIUI and HyperOS
The shells installed by Xiaomi have a deep modification of standard Android, as well as memory management. Unlike “pure” Android, where the Adoptable Storage function can be activated more easily, it has strict control over where exactly you install it. APK-The system prioritizes internal memory to ensure stability and interface performance.
The main problem is that the standard settings menu often simply does not display the option “Use as internal memory”; this is not accidental: developers want to avoid situations where the user inserts a slow card, after which the smartphone begins to work unstable, but for advanced users this limitation is only a software barrier.
⚠️ Warning: Forced transfer of system applications to a slow memory card can cause the interface to freeze or increase the load time of the device. U3 or V30.
It’s worth noting that even with root rights or special utilities, some Android system components will remain on the embedded chip, due to the features of data encryption and security, where the keys are tied to a specific physical memory module of the phone.
Preparation of memory card and backup
The first and most critical step is to prepare the external drive, the card will be formatted and all data on it will be permanently deleted, so prior storage of information to the computer or cloud storage is a prerequisite before any manipulation.
It is recommended to use memory cards from proven brands such as SanDisk, Samsung or Kingston. Cheap analogues of nameless manufacturers often have a real recording speed much lower than stated, which will turn your smartphone into a slow-moving device. For comfortable work, the minimum card size should be 32 GB, and the optimal one - from 64 GB and above.
☑️ Preparation for data portability
After physically placing the card in the slot, you need to make sure that the phone correctly identified the new media, usually in the notification curtain appears the corresponding message. If this does not happen, try to restart the device or check the contacts of the card.
Use of hidden opportunities through ADB
The most reliable way to get around the limitations of MIUI is to use the ADB (Android Debug Bridge) tool, which does not require root rights, which preserves the device guarantee and integrity of the system partition.
To start, you need to activate the USB debugging mode. To do this, go to the Settings menu → About your phone and quickly click on the build number seven times. After the “You became a developer” notification appears, go back to the main settings menu, find the option → For developers and activate the Debugging switch over USB.
Connect the phone to your computer with a cable and run the command line or terminal in the folder with ADB. Enter a command to check the connection:
adb devicesYou'll see a debugging permission request on your smartphone screen, which you need to confirm, and after you've successfully connected, you'll need to know your memory card ID.
adb shell sm list-disksThe system will give you a disk ID, usually in the form of disk:179.64 or similar, and remember or copy this value, as it will be needed for the next step.
What to do if your computer can’t see your phone?
Formatting and creating a data section
Once you have the disk ID, you can start formatting it as internal memory, and this operation will change the file system and create an encrypted partition that is only accessible to that particular device.
adb shell sm partition disk:XXX privateInstead of disk:XXX, substitute your previous identifier, which will take some time to unplug the cable or interrupt the connection, and when it is completed, the system will report success.
| Parameter | Meaning | Description |
|---|---|---|
| Team team. | sm partition | Primary markup tool |
| Regime. | private | Creates a secure partition |
| Access. | Only the host. | Other PCs won't read the map |
| Speed. | Depends on the card. | It affects speed. |
After formatting, you need to move the existing data to a new partition.
adb shell pm set-install-location 2A value of 2 indicates the system's priority of installing on an external drive, a value of 0 returns automatic selection, and 1 sets internal memory.
⚠️ Warning: Once you execute the sm partition command, the memory card will become unreadable for other devices without first resetting.
Alternative methods without a computer
If using the command line seems too complicated for you, there are helper apps like App2SD or Files2SD. They work on a similar principle, automating the input ADB-commands, but require the phone to be connected to the PC at the time of activation of the function.
Some Xiaomi models have a hidden engineering menu available through a set of special code in the “caller.” However, in modern versions of MIUI 12, 13, 14 and HyperOS, these codes are often blocked or changed, so you should not rely on them.
You should also consider using the “Second Space” function or creating a separate user profile if the goal is to separate personal data from work applications, which will not increase the physical volume, but will help structure the information.
💡
For maximum performance, buy cards labeled A1 or A2. These symbols mean optimizing for running apps, not just recording videos.
Possible problems and solutions
During the setup process, users may encounter an error “failed to format” or «SD-This is usually a sign of a slow write rate or damaged sectors of the drive, so try formatting the card on your computer into the file system. FAT32 or exFAT before retrying.
Another common problem is the disappearance of widgets or application icons after rebooting, which occurs when the system does not have time to mount the partition before loading the desktop, the solution lies in installing applications critical to the system (launcher, keyboard), exclusively in internal memory.
If the phone started to work noticeably slower, it makes sense to return the default settings. To do this, you can delete the created partition in the developer menu or through the ADB command adb shell sm destroy and return the card to the standard mode of operation.
💡
Use of the ADB — The only way to fully integrate SD-card to Xiaomi without root rights and loss of warranty.