How to make a memory card internal memory of the phone Xiaomi

Owners of Xiaomi, Redmi and Poco smartphones often face a lack of built-in storage, especially in budget models with 32 or 64 GB. Android allows you to use an external drive not just as a flash drive for photos, but as a full-fledged extension of the system partition. This process is called Adoptable Storage and radically changes the approach to file management.

But in the shell. MIUI HyperOS, the standard drive implementation feature, is often hidden from the user, and this is done by the manufacturer for stability reasons, because cheap memory cards can slow down the device. However, the technical ability to activate this mode exists and requires specific actions to be performed through hidden menus or ADB-team.

Before you start making radical changes to the file system, you need to weigh the pros and cons. SD-The internal memory card means that it is completely formatted with all the data lost, and the speed of reading and writing the external module directly affects the performance of the entire smartphone. If you are willing to take a risk to free up gigabytes, the instructions below will help you to implement your plan.

Adoptable Storage on MIUI

Adoptable Storage technology, introduced in Android 6.0, allows the system to consider an external drive as part of the main partition. On Xiaomi devices, this option is software blocked in the standard interface. When you insert a card, the phone suggests using it only as a “Portable Storage” or “External Storage”. USB-” Ignoring the possibility of a merger.

The lock is because many users use low-speed cards, and if the system starts writing app cache or operating system data to a slow drive, the smartphone interface will start to “freeze,” which is why the company’s engineers chose to leave the application portability feature available only for some models or through hidden codes.

⚠️ Warning: Forced activation of the function may cause unstable system operation if the memory card of the class below is used UHS-I U3 or V30.

It's important to understand the difference between simple file transfer and deep formatting. In the first case, you manually move the photo to a folder on the back of the file. SD-In the second, the system decides where to store the data, encrypting it with a special key attached to a particular device, and the card taken out of the phone formatted in this way will not be read on a computer or other smartphone without re-formatting.

To successfully complete the task, you will need:

  • 📱 Xiaomi smartphone with unlocked card slot.
  • 💾 MicroSD card with a capacity of 32 GB (64 recommended)+ GB).
  • 🔌 Computer with drivers installed ADB (advanced-mode).
  • 🔋 The battery charge of the phone is at least 60%.

Compatibility checks and hidden codes

The first step should always be to check if the manufacturer has opened access to the feature in your firmware version. In some regions and on certain models (especially global versions), the formatting menu may be available by standard means.

Click on the notification of the new drive. If you're lucky, the menu will show the choice "Use as internal storage." If you only offer "Use as portable storage", then go to check hidden engineering menus. In the Phone app, type ##6485## or ##4636##. In the menu that opens, look for items related to Storage or Memory.

📊 How much internal memory your Xiaomi has?
16-32 GB
64 GB
128GB
256 GB or more

If the codes don't work, which happens 90 percent of the time on newer versions of MIUI 12-14 and HyperOS, the only working method is to use the ADB debugging bridge. It's a versatile developer tool that lets you give commands to the system directly, bypassing the GUI, and it requires a PC connection, but gives you full control over partitions.

It's also worth checking your CPU model. On devices with MediaTek chips, unlocking can be more successful than on Snapdragon, where the restrictions are tougher. However, the main limiting factor is MIUI policy, not hardware.

Preparation of memory card for formatting

The quality of the external drive is critical. Since the card will work in the mode of constantly writing and reading small files (cache, logs, application databases), the usual cheap USB drive will quickly fail or become a bottleneck for the entire system. It is recommended to use standard maps A1 or A2 (Application Performance Class).

Before you start, make sure to back up all the data on the map, the formatting process will destroy all the information without the possibility of recovery by standard means, if the card had important photos or documents, copy them to your computer or to the cloud.

☑️ Preparation SD-map

Done: 0 / 4

Put the card in a working phone. Go to Settings → About Phone → Storage. Make sure the system sees the drive and displays its correct volume. If the phone writes "Map damaged" or requires formatting right now, agree by choosing formatting as "Portative Storage." We need the card to be clean and formatted in the FAT32 or exFAT file system before deep integration begins.

Don't ignore the battery requirement. Partition redistribution and encryption can take anywhere from 5 to 20 minutes. A sudden power outage at this point will damage the boot sector or lose data on the map.

Instructions: activation through ADB-team

This is the most effective way to get Xiaomi to accept the card as internal memory: you will need a computer (Windows, macOS or Linux) and a set of Platform Tools (ADB) download them from the official Android developer website and unpack them in a convenient folder, for example, C:\adb.

You need to activate the developer mode on the phone. → About the phone and 7 times quickly click on the item "Version" MIUI» (or "Version" OS»). You'll see a message that says, "You've become a developer." Then go to Settings. → Advanced settings → For developers and turn on the switchboard USB-debugging.

⚠️ Warning: When you connect to your computer, you'll see a request for debugging permission on your phone screen. Be sure to click "Allow" or the commands won't run.

Connect your phone to your PC with a cable. Open the command prompt (CMD) or PowerShell in the folder with ADB. Enter the adb device command. If all is right, you'll see the serial number of the device. If the status is "unauthorized," check the phone screen and confirm access.

Now enter the command to search for your memory card ID:

adb shell sm list-disks

You'll get a string like disk:179.64 or something like that, and it may be different. Write down this ID, and it's for the next command that compels you to create a private partition.

Enter the command to format (replace disk:XXX,XX with your ID):

adb shell sm partition disk:XXX,XX private 100

Private tells the system to use the drive as an internal drive, and 100 means that 100% of the card volume will be given to this, after you execute the command, the phone can restart, and a new partition will appear in the storage, which the system will consider internal.

What to do if the team is not executed?
If you get a “Permission denied” or “Command not found” error, make sure that the phone is debugging enabled. USB And you confirmed access on the screen. MIUI They block this command at the core level. `adb shell pm setInstallLocation 2`, which will allow you to install applications on external drives, but will not combine them completely.

Application portability and data management

Once formatted successfully, the system will suggest migrating the data, and even if it doesn't, you can manually manage the transfer. Go to Settings → Applications → All applications. Select a heavy application (like a navigator or social network). If the map is recognized correctly, the "Move" or "Change" button will appear.

Not all apps support portability; developers decide whether to place their files on an external medium; Xiaomi and Google system applications are often left on internal memory for stability; however, cache games and instant messengers can often be moved to free up precious gigabytes.

Use a built-in guide to manage media files or MIUI File Manager: Configure your camera to save photos and videos by default. SD-This is done in the settings of the Camera app itself» → «Additionally» → «Save it on. SD-map».

💡

Use Files to analyze your occupied space, and it will show you which folders are the most voluminous, and it will quickly move them to a new internal section.

Note the table that shows the differences in memory performance before and after the modification:

ParameterStandard regimenAdoptable Storage (Internal)
Access to PCStraight (like a flash drive)Only through the phone (USB-modem/debugging)
EncryptionNo (usually)Full encryption with the device key
Portability of applicationsPartially or prohibitedFull system support
Speed of operationDepends on the app.It can decrease at low card speed.

Possible problems and ways to solve them

The most common problem is cyclical reboot or bootloops after formatting, which happens if the memory card is too slow to handle system files, and then the phone tries to read the data, doesn't have time, and the system goes into reboot, and the solution is one: extract the card, boot, format the card on the computer in FAT32 and try a higher-end card (A2).

Another problem is that apps stop working or crash, which means that files are corrupted when you migrate, go to the application settings and select Stop, then try to run again, and if it doesn't work, delete the application and reinstall it, the system will determine the right place to install.

⚠️ Warning: Do not remove the memory card "hot" after activating the internal memory mode. This is guaranteed to lead to errors in the operation of applications whose data is on the map.

If the phone stops seeing the card or writes that it is corrupted, try connecting it to the PC again and checking for file system errors, sometimes executing the ADB command for formatting again helps, but this will delete all the data again.

💡

The stability of the smartphone in Adoptable Storage mode directly depends on the speed class of the memory card. Savings on the drive will lead to interface lags.

Frequently Asked Questions (FAQ)

Can I return the card to normal mode without losing data?
Unfortunately, no. When you switch mode, the map is formatted, and to get it back into Portable Storage mode, you need to format it again through your phone's settings, which will destroy all files. Backup in advance.
Will my phone speed up after this procedure?
The phone itself won't work any faster, but releasing the internal memory can have a positive effect on overall responsiveness, as Android needs space for temporary files, but if the card is slow, the phone may even start to run slower.
Does it work on Android 13 and 14 in HyperOS?
Yes, working principle. ADB-The commands are retained, but Xiaomi is actively fighting this in new versions. On some models, the sm partition command can be blocked at the kernel level.
Why does the application take up less space after the transfer?
When transferred to the card, only executable files are often transferred, and some data and cache can remain in internal memory, and the system can display the size differently depending on the data compression.