How to install the application on the memory card in Android 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 of memory. MIUI or its newer version HyperOS takes up a significant part of the space, leaving the user with a limited number of gigabytes for personal needs. When the built-in drive is overflowing, the phone starts to work slower, and installing new programs becomes impossible.

Fortunately, most models support microSD card installation, which solves the space shortage problem. SD-Map as default destination: In Android 11 and later, Google has limited the ability to migrate system applications to external drives without root rights, but there are proven workarounds.

This guide will help you understand the intricacies of how the Android file system works on Xiaomi devices. We will look at the standard methods, use of developer mode and more advanced ways to merge memory partitions. It is important to understand the risks and benefits of each method before you start manipulating system files.

Before you start transferring data, you need to properly prepare the external media; a poor or damaged card can lead to loss of information or malfunction of the operating system; make sure you use proven brands of drives with high write speed.

Preparation of memory card and smartphone for work

The first step is to physically install the memory card into your device's slot.Most Xiaomi smartphones use a hybrid tray where the microSD card shares space with the second. SIM-Carefully remove the tray with a paper clip, install the drive and return the tray back.

Once turned on, the phone will automatically detect a new medium. The system will offer two uses: as a portable storage or as internal memory. The use of Adoptable Storage mode allows the system to consider the card as part of the system partition, which is a key point for porting applications.

However, in the MIUI shell, this feature is often hidden or unstable with some map models. If the standard menu does not offer application formatting, do not despair. There are alternative methods to activate this feature through an engineering menu or third-party utilities.

Pre-save important photos and documents to your computer or cloud storage, and the encryption process will make the card unreadable on other devices without unlocking.

β˜‘οΈ Checking readiness for transfer

Done: 0 / 4

Standard method of transfer through system settings

The safest way to do this without requiring superuser rights is to use the regular Android features, and even if you don't automatically port all the apps, some of them can be moved manually, and then go to Settings β†’ Applications β†’ Application Management.

In the list of installed programs, select an application that takes up a lot of space, such as a social network or a game. Click on "Memory" or "Storage." If the system allows transfer, the "Change" or "Move to" button will be active. SD-map".

Unfortunately, many of Google’s system applications and mission-critical services do not have this option, and developers specifically block this option to ensure the stability of the program, in which case the transfer button will be missing or inactive.

Why is the transfer button grey?
The button is inactive if the application is a system component, a desktop widget, or if the developer has explicitly prohibited installation on an external medium in the program manifest, and portability is not possible if the card is formatted as a portable storage, not as an internal one.

For mass file management, it's better to use built-in Explorer. Open Explorer on your Xiaomi app, go to the App category and check if there's an option to clear the cache or move the data. Sometimes cleaning the cache frees up more space than transferring the cache itself. APK-file.

Activation of the hidden developer menu for SD-map

If standard methods don’t work, you can try to activate hidden Android features. There’s an option on the developer menu that allows you to install apps on an external medium, even if the developer didn’t plan to.

To access this menu, you need to click on the build number in the About Phone section several times. Once you have the message "You became a developer", go back to the main settings menu and find the option "Additional β†’ For developers" and find the "Allow applications to be saved on an external drive" switch and activate it.

Once you turn on this option, restart your device. Now, when you install new apps from Google Play or APK-Note that this does not guarantee the operation of all programs, since some of them simply do not know how to start with a slow speed. SD-map.

ParameterBuilt-in memorySD-card (Class 10)SD-map (UHS-I)
Reading speedHigh (up to 2000 Mb/s)Low (up to 90 Mb/s)Medium (up to 100 Mb/s)
Recording speedVery high.Low.Medium
StabilityMaximumMediumTall.
Impact on the batteryMinimumElevated.Average.
πŸ“Š How much memory is your Xiaomi?
16-32 GB
64-128 GB
256-512 GB
More than 512 GB

Using ADB for Forced Transfer

For advanced users who are not afraid of command lines, there is a method using the ADB utility (Android Debug Bridge), which allows you to force change the default installation attributes, you will need a computer with Xiaomi drivers installed and Android platform tools installed.

Connect your smartphone to your PC through USB-In the developer menu on your phone, turn on Debugging by USB. On the computer, open the command line in the folder with ADB and type in the command to check the connection: adb devices. If the device is displayed, you can proceed to the next step.

To change the installation location, the default command is pm (package manager).

adb shell pm setInstallLocation 2

Here, the number 2 represents the priority of the external memory card. The value 0 returns the default settings (auto), and 1 forcefully puts only in the internal memory. SD-map.

⚠️ Note: Using the setInstallLocation command can cause widgets and some system services to work in an unstable way. If you notice frequent application crashes after you apply the setting, return the value to 0 using the same command.

This method does not require root rights, but requires a computer at hand every time you want to change your settings, and it is also worth considering that after resetting the phone settings or flashing these changes will be lost, and the procedure will have to be repeated.

Memory partitions merge through the terminal (Root rights)

The most radical and effective method is to combine internal memory and microSD card completely, requiring Root rights (usually through Magisk) and partitioning applications such as Partition Manager or Link2SD.

The method is to create a special partition on the memory card with the ext4 file system, which the system will perceive as an extension of the internal drive, which allows you to bypass the limitations of Android on the size of applications and the number of programs installed.

A mistake in partitioning can lead to bootloop and data loss. Be sure to make a full backup of the system through TWRP or similar recavities before starting.

πŸ’‘

Use only memory cards labeled A1 or A2, which guarantee the minimum speed of random access required to run applications, otherwise the smartphone interface will be extremely slow.

Once you create partitions and configure Link2SD, you can force any application, including system ones, to be moved. The application will create symbolic links that direct the system's requests to files on the memory card, freeing up precious space in the main /data partition.

Optimization of application work on SD-map

Even after successful application porting, it is important to monitor performance. Memory cards have a limited write cycle life; persistent log and cache writing can quickly disable the drive; Regular checks of card status through applications like SD Insight are recommended.

For multimedia applications like Spotify, Netflix or YouTube Premium, it’s best to manually specify the way to save offline content in the settings of the program itself.

Don't store documents that are often edited or messenger databases on a memory card, which can lead to file desynchronization or corruption. Photos and videos are ideal for external storage, as they are recorded sequentially and rarely changed.

⚠️ Warning: Never remove a memory card while the phone is on, if it is being recorded or if it has applications installed. This is guaranteed to lead to errors in the operation of programs and possible data loss.

Possible problems and ways to solve them

Users may experience a number of common problems during operation: It often happens that after updating the MIUI firmware, the card write rights are reset, or applications stop seeing files, in which case re-authorizing in the storage settings menu helps.

If the phone has stopped seeing the card or it appears as corrupt, try formatting it on your computer in the exFAT file system (for cards with a capacity of more than 64 GB) or FAT32 (for cards up to 32 GB).

Slow interfaces after transferring applications are a sure sign of slow card speeds, in which case the only way out is to replace the drive with a faster model. Don't skimp on memory cards, as they directly affect the speed of the entire smartphone.

πŸ’‘

Speed of the smartphone with applications on SD-The card will always be lower than the internal memory. Only transfer programs that do not require high performance of the disk subsystem.

Frequently Asked Questions (FAQ)

Can WhatsApp and its database be transferred to a memory card?
You can't move WhatsApp itself with standard means, because it's a system security requirement. β†’ Data and storage can be changed to save media files SD-This will free up a significant amount of internal memory.
Why did the app stop updating on Google Play?
This is a common problem. Google Play can lose its way to an app if it's on an external medium. Try temporarily moving the app back to internal memory, updating it, then migrating it back to the map. In some cases, cleaning up the Play Market cache helps.
Is it safe to use the β€œInternal Storage” mode on Xiaomi?
Using this mode is safe for data, but reduces the overall speed of the device. Also, if the memory card fails, you will lose access to the applications until you restore the card or buy a new one (old data without a backup can not be restored due to encryption).
How do I get all my apps back into internal memory?
To do this, go to Settings β†’ Applications, select each moved application and click Move (if the button is active). If you used the ADB method, enter the command adb shell pm setInstallLocation 0. If you used Link2SD, you can turn off the function in the settings of the application itself.