Why applications are not installed on SD-Xiaomi Map and How to Fix It
Xiaomi smartphone owners often face the problem of lack of internal memory, especially on budget models like Redmi. 9A POCO M3. It would seem that the solution lies on the surface: to transfer applications to the SD-But here, users are in for a nasty surprise, in modern versions of Android and the shell. MIUI This function is either hidden or it's limited?
Starting with Android 6.0 Marshmallow, Google has changed the way it works with external drives. SD-Default cards are seen as portable storage (for photos, music, documents) rather than an extension of internal memory.Manufacturers including Xiaomi have further tightened those restrictions in their firmware. MIUI, So we can avoid problems with performance and safety, but there are workarounds, and we'll go through them in detail below.
It is important to understand that not all applications can be transferred to the SD-For example, system services (com.miui.home, com.android.phone) and games with anti-piracy protection (Genshin Impact, PUBG Mobile will remain in internal memory, but for most of the user programs โ messengers, social networks, utilities โ there are solutions.
Preparation SD-maps: selection and formatting
Before you try to migrate applications, you need to properly prepare the memory card itself. SD-These are the key requirements:
- ๐น Speed class: minimum class 10 or UHS-I (better UHS-II Class Class cards for speed. 4/6 They will slow down applications.
- ๐น Volume: from 32 GB (optimally 64-128 GB). Cards less than 16 GB MIUI It may not be possible to format as an internal memory.
- ๐น Manufacturer: give preference to brands SanDisk, Samsung EVO, Kingston Canvas โ Cheap no-name cards often fake real volume.
- ๐น File system: Formatting as internal memory will require ext4 or f2fs (automatically selected by the system).
If you've already used a card on your phone to store photos or music, you need to format it completely.
- Put it in. SD-card in the smartphone slot (on some Xiaomi models only hybrid slot is supported - check if it is not occupied by the second one) SIM-card).
- Go to Settings. โ Warehouse โ SD-map.
- Slip on the three dots in the top right corner and select Storage Settings.
- Select Format as internal memory (Warning: All data on the map will be deleted!).
โ ๏ธ Note: After formatting SD-The card, as internal memory, cannot be retrieved without losing data, the system will treat it as part of the main storage, and if you pull out the card, some applications may stop working.
Method 1: Transfer applications through MIUI settings (official method)
The easiest, but also the most limited, way is to use the built-in MIUI feature, which is suitable for most custom applications, but does not work with system services and some games.
- Open Settings โ Applications โ Application Management.
- Select the application you want to transfer (such as Telegram or VK).
- Slip on Warehouse.
- If you have an option, you'll see a Change button next to the words "Inner Memory." Click on it.
- Choose. SD-map and confirm the transfer.
Pay attention to a few nuances:
- ๐ธ The Change button will be inactive if the app developer has banned the transfer to the SD-Map in the manifesto (android:installLocation).
- ๐ธ Some applications may be slower after porting, due to limited read/write speeds. SD-map.
- ๐ธ Application data (cache, settings) may remain in internal memory. to transfer them will require additional actions (see section on data transfer).
โ๏ธ Preparation for the portability of applications
If there is no change button at all, it means that:
- ๐ SD-The card is not formatted as internal memory (see the section on preparing the card).
- ๐ The application is system-based or has portability protection.
- ๐ Your version. MIUI Blocks this function (relevant for some regions, for example, for firmware) MIUI EU).
Method 2: Using ADB for Forced Transfer
If the official method didnโt work, you can use Android Debug Bridge (ADB), a debugging tool that lets you manually tell the system where to install applications, which takes a computer and a little more effort, but works even with programs that donโt normally carry.
To start, turn on USB debugging on your smartphone:
- Go to Settings. โ The phone.
- Tap 7 times on the MIUI version until you become a developer!
- Back to Settings โ Additionally. โ For developers.
- Activate the debugging switch over USB.
Now connect your phone to your computer (use Xiaomiโs original cable for a stable connection) and execute the following commands in ADB:
adb shell
pm set-install-location 2 # forced installation on SD- card
pm move-package com.example.app # replace com.example.app with your applicationโs batch nameTo find out the batch name of the application, use the command:
pm list packages | grep 'keyword word'For example, for WhatsApp it will be com.whatsapp, for Instagram it will be com.instagram.android.
โ ๏ธ Attention: Forced transfer through ADB This can lead to unstable applications, especially if SD-Some programs (e.g. Google Play Services) will not work after the transfer!
๐ก
If the pm move-package command returns the error [INSTALL_FAILED_INVALID_INSTALL_LOCATION], So the app is strictly non-transferable. Try an alternative method with link2sd (see next section).
Method 3: Link2SD application for deep transfer
Link2SD โ This is a utility that allows you not only to transfer applications to the SD-It's also useful for games that take up a lot of space with cache, like Call of Duty Mobile or Free Fire).
Link2SD requires:
- ๐ง Root rights (on some Xiaomi models, they can be obtained through Magisk).
- ๐ง SD-map formatted with a section ext2/ext3/ext4 (second-part).
- ๐ง Installed annex Link2SD Google Play.
Instructions for setting:
- Download and install Link2SD.
- When you first start, the program will prompt you to select the file system for the second partition. SD-maps - choose ext4.
- Reboot the phone.
- In the main Link2SD menu, select the app you want to migrate.
- Then, click on it and choose to create a link (or move to it). SD-card if root rights are not available).
- Confirm link building for APK, DEX and Lib files.
| File type | What happens when you transfer | Impact on work |
|---|---|---|
| APK | Transfer the installer of the application itself | No consequences. |
| DEX | Optimized Dalvik files are transferred | Maybe slow down the launch a little bit. |
| Lib | Application libraries are moved | Risk of error if SD-slow-card |
| Data (cash) | A symbolic link is created | It can cause data loss when retrieving the card. |
Important: If you are using Link2SD without root rights, the transfer will be incomplete โ only a part of the files will move to the port. SD-For full transfer (including application data) root is mandatory.
Method 4: Transfer application data (cache, settings)
Even if the application itself has been successfully transferred to SD-The card, its data (cache, settings, uploaded files) often remain in internal memory, for example, on YouTube these are uploaded videos, on Spotify they are offline playlists.
There are two ways:
- Through the App Settings: Open Settings โ Annexes โ App management. Select the application you want (like Google Maps). โ Clear cache (this won't delete important data, only temporary files) If you have the option to Transfer data to the SD-map, use it.
Through the file manager
- Install FX File Explorer or Solid Explorer.
- Enable the display of hidden files in the manager settings.
- Go to /sdcard/Android/data/, where most applications are stored.
- Select a folder with the data of the desired application (for example, com.spotify.music) and transfer it to the folder. SD-hand-write.
- Create a symbolic link (root rights required) or manually specify a new location in the application settings.
โ ๏ธ Note: Manually moving data without creating symbolic links will cause the application to stop seeing its files. Use this method only if you understand the risks or have root access to build links through ln -s.
What if the application does not work after data transfer?
Problems and Solutions: Why Apps Don't Work After a Transfer
Transfer of applications to SD-The map is not always a smooth process. Here are the most common problems and the ways to solve them:
| Problem. | Possible cause | Decision |
|---|---|---|
| The application does not start after the transfer | SD-map disabled or damaged | Check the card on another device, format it again |
| The app will fly out when it opens. | Lack of reading speed is lacking SD-map | Use a UHS-I class card or higher |
| The โMove to the buttonโ SD-card | Annex prohibits transfer of | Use ADB or Link2SD with root rights |
| These applications are not portable | Developer blocks data transfer | Clean the cache manually or use symbolic links |
| After extraction SD-Application maps disappeared | Annexes are designated as โexternalโ | Do not remove the map or move the applications back |
If none of these methods worked, consider alternative ways to free up memory:
- ๐๏ธ Remove unused applications (use Settings) โ Annexes โ Unused).
- ๐๏ธ Clear the cache through Settings โ Warehouse โ Clear the cache.
- ๐๏ธ Transfer media files (photos, videos) to SD-Map or cloud (Google Photos, Mi Cloud).
- ๐๏ธ Use the Lite mode function in MIUI for lightweight versions of applications.
๐ก
If your Xiaomi smartphone does not support the transfer of applications to the SD-map through standard settings, the only working alternatives are ADB or Link2SD Without them, full portability is impossible due to the limitations of Android and MIUI.