How to transfer applications to the second space Xiaomi: full instructions with nuances

The second space feature in Xiaomi smartphones (including Redmi, Poco and Black Shark) allows you to create an isolated copy of the system with separate applications, settings and data, which is convenient for separating work and personal accounts, testing programs or protecting confidential information. However, many users have difficulty migrating existing applications between the main and second spaces. In this article, we will discuss all the ways to migrate applications, including hidden settings. MIUI, Avoiding limitations and solving common mistakes.

It is important to understand that the second space in Xiaomi is not just a folder or profile, but a full-fledged virtual environment with its own Android. ID, storage and settings. So direct copying APK-We're going to look at the official methods through Settings, alternative solutions using the ADB, and also nuances for different versions MIUI (Particular attention will be paid to account-based applications (e.g. banking or instant messengers) where the transfer may require re-authorization.

If you're just planning on creating a second space, first consider its limitations. MIUI 14/15 You canโ€™t use the same application in both spaces at the same time (except for system utilities), and some vendors (like Google or Meta) block their services from running in virtual environments due to security policies.

What is the second space in Xiaomi and why is it necessary?

Second Space is a technology feature. MIUI, Allows you to create two independent copies of Android on one device with different:

  • ๐Ÿ“ฑ Applications (you can duplicate messengers, social networks, games)
  • ๐Ÿ”‘ Accounts (different Google, Mi Account, social networks)
  • ๐Ÿ“ Files (isolated storage for each space)
  • ๐ŸŽจ Settings (themes, wallpaper, sounds do not overlap)

Main use cases:

  • ๐Ÿ’ผ Work. + Personal life: differentiation of corporate and personal data.
  • ๐Ÿ”’ Security: Storing confidential information in an isolated environment.
  • ๐ŸŽฎ Testing: Verifying beta versions of applications without risk to the main system.
  • ๐Ÿ›ก๏ธ Child Protection: Creating a Sandbox with a Limited Package of Programs.

Technically, the second space is implemented through the Work Profile mechanism (based on Android for Work), but with advanced features. APK-Files, not just enterprise applications, but there are limitations:

โš ๏ธ Note: Cloning-protected apps (e.g. WhatsApp, Telegram number-binding) can block an account while using both spaces.

๐Ÿ“Š Why do you use the second space on Xiaomi?
Separation of work and personal life
Application testing
Protection of confidential data
Other

Preparing a smartphone before transferring applications

Before migrating applications, there are several critical steps to take to avoid data loss or crashes:

  1. Update. MIUI until the last version. MIUI 12 and older, the second space algorithm has been significantly refined. โ†’ The phone. โ†’ Updating the system.
  2. Create a backup of the main space through Settings โ†’ Memory. โ†’ Backup: This will save application settings that cannot be transferred directly (e.g., game progress).
  3. Clear the cache for the applications you plan to port, which will reduce the size of the data you transmit and reduce the risk of errors. โ†’ Annexes โ†’ Select an application โ†’ Warehouse โ†’ Clear the cache.
  4. Check the space. Second space requires a minimum of 1.5 to 2 GB of free memory for stable operation. Optimal to have 5.+ GB.

Pay special attention to applications with two-factor authentication (2FA). When transferring, they may require re-entering the code from SMS Prepare backup codes in advance or disable them. 2FA, if possible.

โ˜‘๏ธ Preparation for the portability of applications

Done: 0 / 5

If you plan to port save games, note that not all titles support cloud-based saving via Google Play Games or Mi Cloud. /Android/data/[package_name]/files).

โš ๏ธ Attention: Annexes C DRM-protection (e.g. Netflix, Disney)+) They may stop working after transfer to the second space due to a change in the device identifiers.

Official way of transfer through settings MIUI

The easiest way is to use built-in tools. MIUI. It is suitable for most standard applications, but has limitations for system utilities and high-security programs.

Step instructions:

  1. Open the Settings. โ†’ Second space.
  2. Click Switch to the second space (you will need to enter a password if it is set).
  3. Go back to Settings โ†’ Applications โ†’ Application Management.
  4. Select the application you want to migrate and click Clone (if available) or Install in the second space.
  5. Confirm the action and wait for the process to be completed.

List of applications that cannot be transferred in an official way:

  • ๐Ÿ”’ System utilities (Settings, Phone, Contacts)
  • ๐Ÿ›ก๏ธ Applications with SafetyNet (Google Pay, banking clients)
  • ๐ŸŽฎ Anticheat games (PUBG Mobile, Genshin Impact)
  • ๐Ÿ“ฑ Programmes linked to IMEI (Mi Fit, some of them. VPN)

These applications will require alternative methods, which we will discuss later, and note that after the transfer, some programs may lose data (for example, WhatsApp will require re-authorization via the service). SMS).

Type of applicationOfficial postponementAlternative methodData loss?
Social mediaโœ… Yes.โŒ Not requiredโš ๏ธ Requires re-entry
Bank clientsโŒ No.๐Ÿ”ง ADB orcloningโŒ They are saved (when properly transferred)
Gamesโš ๏ธ Partially.๐ŸŽฎ Manual copying of savesโœ… Possible (if there is no cloud backup)
Messengersโœ… Yes.โŒ Not requiredโœ… Always (because of the number binding)

๐Ÿ’ก

If the app doesn't show up in the portable list, try removing it from the main space first, then installing it again in the second one, which will work for most Google Play apps.

Transfer applications over ADB (for power users)

If the official method did not work or you need to move the system application, you can use Android Debug Bridge (ADB). This method requires a computer connection and basic command line knowledge, but allows you to bypass most of the limitations. MIUI.

Step-by-step:

  1. Turn on the developer mode on your smartphone: go to Settings โ†’ About phone and 7 times click on the MIUI version.
  2. Activate Debugging by USB in Settings โ†’ Additional โ†’ For developers.
  3. Connect the phone to the PC and confirm the debugging permission.
  4. Open the command prompt (or Terminal on Mac/Linux) and type:
adb shell pm list packages -f | grep "package:"

This command will display a list of all packages installed, find the desired application (for example, com.whatsapp for WhatsApp) and do:

adb shell pm install-existing --user 11 com.whatsapp

Where 11 is ID Second Space (may vary depending on version) MIUI). To find out the exact ID, use:

adb shell pm list users

Once you execute the command, the application will appear in the second space, but note that some programs (especially those with SafetyNet) may not start or may be running in error.

โš ๏ธ Attention: Use ADB transferring banking applications or programs from DRM For example, SberBank Online or Tinkoff recognize the change in the runtime environment and require re-authorization with confirmation via the SMS.

How to transfer system applications (e.g. Camera or Gallery)
To transfer system utilities, you will need to first deactivate them in the main space: 1. Execute adb shell pm disable-user --user 0 com.miui.gallery (replace the package with the desired one). 2. Reboot the phone. 3. Install the application in the second space through ADB (as described above). 4. Restore work in the main space: adb shell pm enable com.miui.gallery. โš ๏ธ Risk: Some system applications (e.g. Settings) cannot be disabled without loss of functionality.

Transfer of application data (saves, settings, cache)

Simple transfer. APK-The file is often not enough โ€” many programs store user data in isolated folders, for example, in games it is progress, in messengers it is history of correspondence, in browsers it is bookmarks.

Where application data is stored:

  • ๐Ÿ“‚ /data/data/[package_name] โ€” basic settings and cache (root rights required to access).
  • ๐Ÿ“ /Android/data/[package_name] โ€” files available without root (save games, downloads).
  • ๐Ÿ–ผ๏ธ /Android/obb/[package_name] โ€” Additional game files (usually weighing a few gigabytes).

Instructions for transfer:

  1. Connect your phone to your PC and enable File Transfer (MTP).
  2. Copy the folder with data from the main space (for example, /Android/data/com.supercell.clashofclans).
  3. Switch to the second space through Settings โ†’ Second space.
  4. Insert the copied files into a similar folder in the second space.
  5. Restart the phone and check the appโ€™s performance.

For root data applications (folder) /data/data/) need:

  • ๐Ÿ› ๏ธ Root access (for example, via Magisk).
  • ๐Ÿ“ฒ Root Explorer (Root Explorer, Solid Explorer).
  • ๐Ÿ”„ Backup via Titanium Backup (if available).

๐Ÿ’ก

To migrate game saves, use cloud services (Google Play Games, Mi Cloud) or specialized tools like Helium. Manual file copying can lead to loss of progress due to differences in device identifiers between spaces.

Solving typical problems when porting applications

Even if you follow instructions correctly, users often encounter errors, and let's look at the most common ones and how to fix them.

Problem.Possible causeDecision
The application does not run in the second space.SafetyNet conflict or lack of licenseReinstall the app via Google Play in the second space
Lost data after transferFiles from the file are not copied /Android/data/Restore data from backup or repeat the copy
Error "Application not installed"Incompatibility with the virtual environment or damaged APKDownload. APK Reinstall and install through adb install
Authorization is not working (SMS doesn't come)Blocking by the operator or service due to virtual environmentUse Parallel Apps instead of the second space

It is particularly difficult to port device-based applications such as:

  • ๐Ÿฆ Bank clients (Sberbank, Tinkoff, VTB) โ€“ require re-activation.
  • ๐ŸŽต Streaming services (Spotify, Apple Music) โ€“ can block an account.
  • ๐Ÿ“ก VPN Antiviruses (Kaspersky, Norton) - lose their license.

SafetyNet verification applications (e.g. Google Pay or Google Pay) Pokรฉmon GO) They won't work in the second space without further manipulation of Magisk and SafetyNet Fix, because the virtual environment changes the fingerprints of the device, which is recognized as a root sign.

1. Clear the application data in the second space.

2. Remove it and install it again through Google Play.

3. Use Parallel Apps instead of the second space for duplication.-->

Alternative ways of duplicating applications

If transferring through a second space is not possible (for example, because of an application lock), consider alternative methods:

  • ๐Ÿ”„ Parallel Apps (Dual Applications): Built-in feature MIUI, So, it allows you to clone messengers and social networks without creating a second space. โ†’ Annexes โ†’ Dual annexes.
  • ๐Ÿ“ฑ Island (Sandbox): Application for creating an isolated environment based on Work Profile. Supports data transfer and runs without root on Android 9+.
  • ๐Ÿ”ง App Cloner: A utility for creating independent copies of applications with separate data. Requires manual transfer APK second-space.
  • ๐ŸŒ Web versions: For some services (e.g. Telegram or Telegram) VK) can be used PWA via browser in second space.

Comparison of methods:

MethodRoot is required.Support for dataLimitations
Second spaceโŒ No.โš ๏ธ Partially.Not all apps are portable
Parallel AppsโŒ No.โŒ No.Only messengers and social networks
IslandโŒ No.โœ… Yes.Some applications are not working
App Clonerโš ๏ธ For certain functionsโœ… Yes.Paid version for full functionality

For banking applications, Island is the best solution, as it creates an isolated environment with original device certificates, but some banks (such as Alfa Bank) can still block access by detecting a virtual environment.

FAQ: Frequent questions about Xiaomi's second space

Can WhatsApp be moved to a second space with all the chats?
No, the official transfer of WhatsApp will lead to the loss of correspondence history, since the application is tied to the phone number and Android. ID. To save chats: Back up in the main space (Settings) โ†’ chat โ†’ Backup. Move the backup file (/sdcard/WhatsApp/Databases/msgstore.db.crypt14) Install WhatsApp in the second space and restore the chats from the copy. โš ๏ธ WhatsApp will use a single number in both spaces, which can result in account locking.
Why are some apps not displayed in the list for portability?
It's got to do with restrictions. MIUI for: System utilities (e.g. Settings or Calls) Applications with Device Admin rights (antiviruses, MDM-Software that uses SafetyNet (banks, payment systems). Bypass: use it. ADB (as described above) or Island for isolation.
How to delete the second space without losing data?
Before removing the second space: Copy all important files from the /sdcard/SecondSpace/ On PC or in the cloud. Export contacts, SMS and other data through the relevant applications. Go to Settings โ†’ Second space โ†’ Remove the second space. โš ๏ธ All data inside the second space will be permanently deleted, including the installed applications and their settings.
Can I use Google Pay in the second space?
No, Google Pay won't work in the second space because of SafetyNet check. If you try to add a card, you'll get an error "Device not certified." Alternatives: Use Google Pay only in the main space. For the second space, set up Mi Pay (if supported by your bank). Install Magisk and the SafetyNet Fix module, but this voids the warranty.
How do you move the game to the second space?
To port games (such as Clash of Clans or Brawl Stars): Connect your phone to your PC and copy the folder with the saves from the game. /Android/obb/[package_name]. Install the game in a second space via Google Play. Insert the copied files into a similar folder in the second space. If the game uses cloud-based saves (for example, through Google Play Games), log in to the same account in the second space. โš ๏ธ Some games (such as Genshin Impact) block startup in virtual environments.