How to transfer applications to SD-Xiaomi map: expert guide

Owners of Xiaomi, Redmi and Poco smartphones often face a shortage of internal storage, especially in budget models, where the base memory is limited to 32 or 64 gigabytes. MIUI and its successor HyperOS by default do not provide the user with the ability to transfer applications to an external drive through the standard settings menu. This is done to ensure the stability of the system and high speed of reading data, since modern memory cards are often inferior to built-in flash memory.

However, there is a proven technical method that allows you to circumvent this limitation by debugging the USB And the computer, forced transfer of applications to the computer. SD-The card is possible only after activation of the hidden mode of the developer "Force External" through the ADB-This process requires care, because incorrect actions can lead to failures in the operation of individual programs or the operating system itself.

Before you start complex manipulations, you need to understand that not all applications support external drive. Some programs, especially system services and banks, may refuse to start or work incorrectly after transfer. It is important to weigh the pros and cons, and have a computer with Internet access to download the necessary tools.

Preparation of the device and external storage device

The first step is to choose a high-quality memory card, since the speed of the transferred applications depends on the class of writing and reading the drive. Low-cost microSD cards can become a bottleneck, which will cause games and heavy programs to load longer than usual or freeze. UHS-I or UHS-II from proven brands.

Once the card is installed in the smartphone slot, it must be formatted correctly. In modern versions of the MIUI shell, the system will offer two use cases: as a portable storage device or as part of internal memory. For our purpose, it is critical to choose the first option - portable storage, since the "internal memory" mode in Xiaomi often works unstable and binds the card to a particular device.

  • πŸ“± Insert the memory card into the off smartphone or through the notification menu after turning on.
  • βš™οΈ Go to Settings. β†’ The phone. β†’ Warehouse and select yours SD-map.
  • 🧹 Click the "Clean" or "Format" button by selecting the option to use as a portable media.

Make sure that the map is not important data, because during the formatting process, all information will be irretrievably deleted. If the drive already had files, pre-copy them to the computer or to the cloud storage. Once the formatting is complete, the system will notify you of the successful preparation of the media for work.

πŸ’‘

Use memory cards no more than 256 GB for maximum compatibility with older Xiaomi smartphones, although modern flagships support both 512 GB and 1 TB.

Activation of the developer mode and debugging via USB

To do this, you need to access hidden system functions that are closed to the user, and you need to activate the developer menu, which is hidden in the depth of the settings, which is a standard procedure for Android devices to access system parameters.

Find the About Phone section at the top of the settings menu and find the MIUI Version (or OS Version) bar. You should quickly click on this item 7-10 times in a row until a pop-up notice shows that you have become a developer, and then a new option will appear in the settings menu "Additional" or immediately "Developers".

⚠️ Warning: Do not change other options in the developer menu unless you are sure of their purpose.Reset debugging settings or change the minimum width DPI It can make the interface unreadable.

Inside the developer menu, find the USB Debug and activate it with a switch, and the system will give a warning about the potential risks to be accepted, and it is also recommended to enable the USB Debug option if it is available in your firmware version, as this will allow the computer to manage files and applications.

β˜‘οΈ Checking readiness ADB

Done: 0 / 4

Installation of ADB drivers and platform on your computer

A smartphone cannot communicate with a computer at the system command level without a set of tools, and you will need a minimal set of tools from Google, known as Platform Tools, which you should download exclusively from the official Android developer website to avoid malware.

Once the archive is loaded, it must be unpacked into a convenient folder, such as the root of the C disk or on the desktop, so that the path to the files is short and does not contain Cyrillic characters, which will make it easier to enter commands in the future. Windows may also require the installation of universal Google drivers USB Driver or specific Xiaomi drivers ADB/Fastboot Tools.

Connect your smartphone to your computer using a high-quality cable, and you'll see a request on your phone for debugging permission from that computer, and you'll be sure to tick "Always allow from this computer" and click "OK." Without that confirmation, your computer won't have the necessary permissions.

  • πŸ’» Download the Android archive SDK Platform-tools from the official Google website.
  • πŸ“‚ Unpack the contents of the archive in a folder without spaces and Russian letters in the title.
  • πŸ”Œ Connect the phone and confirm the request RSA-key-screen.

To check the connection, open the command line in the tool folder. In Windows, you can do this by clamping Shift and right-clicking on an empty space in the folder, then selecting "Open PowerShell window here" or "Open terminal." Enter the command adb devices. If the device serial number appears in the list, then the connection is established successfully.

What to do if your computer can’t see your phone?
If the list of devices is empty, try replacing them. USB-The cable is on the original cable, as many cables are only for charging and do not transmit data. USB-port, preferably to the port USB 2.0 on the back of the system unit, and make sure that the computer has the basic drivers installed. MTP.

Activation of forced transfer of applications through ADB

The most important step is to introduce a special command that changes the behavior of the operating system. Android by default prohibits the installation of applications on external drives for most programs, but the pm set-install-location command allows you to change this priority.

In the open command line window or PowerShell, enter the following instructions:

adb shell pm set-install-location 2

Number 2 At the end of the command, you'll prioritize external memory. Once you enter, press Enter. If the command is successful, the system will not issue any message, the cursor will simply move to a new line. To check, you can enter the command adb shell pm get-install-location, and the system will output the message. 2[external].

Value of parameterDescription of actionRecommendation
0Automatic selection by the systemStandard status
1Only internal memory.Not suitable for our purpose.
2External Memory (SD) OnlyRequired importance

It is worth noting that this command does not automatically transfer already installed applications, it only gives permission to install new programs on the map and adds a β€œMove” button to the settings of some already installed applications, unless the developer has prohibited this at the code level of the program.

πŸ’‘

The team changes the global priority of the installation, but does not guarantee the transfer of all applications, since the final decision depends on the manifest of each specific application. APK-file.

The process of transferring installed applications

Once the mode is activated, you can move the data. Go to Settings. β†’ Annexes β†’ All applications. Select the program you want to move. If the application supports portability, the memory management menu will have an active button "Move to the port". SD-map.

In some versions MIUI The interface may be different and the movement button may not be available even after input. ADB-In this case, use third-party file managers with root rights or specialized utilities like App2SD, However, their effectiveness on newer versions of Android is limited by security policies.

When transferring heavy games with cache (for example, PUBG, Genshin Impact: There is often a situation where only the APK-The file, and the cache stays inside, and this takes up space, but it doesn't free it up completely. In these cases, sometimes you have to manually transfer the cache folders from the internal memory to the appropriate directories on the back of the cache. SD-map, observing the structure of the paths.

  • πŸ“‚ Open the settings of a particular application.
  • πŸ”„ Click the "Move" or "Change" button (if available).
  • ⏳ Wait for the process to end without turning off the smartphone screen.

Note that after the transfer, the application icon remains on the desktop, but the physical data is now located on an external drive. Launch speed can decrease slightly, which is especially noticeable in resource-intensive games and applications with heavy graphics.

πŸ“Š Have you managed to transfer the applications to SD-map?
Yeah, it went well.
Only a portion of the applications were moved
The ADB team didn't help.
I'm afraid I'm gonna hurt my phone.

Return to standard settings and possible problems

If you notice a smartphone that is unstable, frequent crashes of applications or slowing down of the system, it makes sense to return all settings back, you need to reconnect the phone to the computer and enter a command that returns the priority of internal memory.

adb shell pm set-install-location 0

Once the 0 command is executed, the system will return to the automatic installation location selection. Applications that have been transferred to the map may require re-installation or manual return, as automatic reverse transfer does not always work correctly.

⚠️ Attention: Extraction SD-cards without first disabling in the settings ("Unmount") can cause the data of applications that were transferred to it.

One common problem is the β€œApplication not installed” error when trying to install new programs, which can mean that the memory card is damaged, has too low write speed, or the file system of the card is not supported to execute the application code, in which case, try formatting the card again or replacing it with a faster model.

Frequently Asked Questions (FAQ)

Will the transfer setting reset after the phone restarts?
No, the pm set-install-location 2 command entered via ADB is saved to the system until you explicitly change it back or complete a Wipe Data/Factory Reset.
Can I transfer system applications (Settings, Phone, Messages)?
System applications are protected from modification and portability, as they are critical to running the operating system. Attempting to force a transfer can lead to a cyclic reboot.
Why does the app work slower after the transfer?
The speed of applications depends on the speed of reading random blocks of data. Embedded memory of smartphones (UFS 2.1/3.1) is much faster than even the fastest microSD cards. So heavy applications and games can load longer and work with micro-latency.
What happens if I remove the memory card with the installed applications?
Applications will stop running, and their icons may disappear from the desktop or become gray, and the data inside these applications will become unavailable until the same memory card is re-installed, and the system will assume that the applications have been deleted.