What is Xiaomiβs second space and why is it blocked?
Second Space is a unique feature of MIUI firmware that allows you to create an isolated copy of the system with separate applications, settings and data. In fact, these are two phones in one: one space for work, the other for personal affairs. But what if you forgot the password from the second space or the device is locked after unsuccessful attempts to enter?
Compounding the problem, Xiaomi does not provide an official way to reset the second space password through a Mi Account, unlike the main lock screen, which is done for security reasons: the second profile is often used to store sensitive data, and its unlocking should be as secure as possible.
It is important to understand that all recovery methods fall into two categories:
- π Software - through system settings or recovery modes (do not require disassembly of the phone).
- π§ Hardware - using cable EDL or flashing (risk of data loss).
Before you start unlocking, check:
- π± Do you have a backup of the second space (created in Settings) β Second space β Backup).
- π Is the phone connected to the Mi Account (even if it does not help with the password, it will be useful for data recovery after a reset).
- π When was the last time the data was synchronized (in Settings) β Xiaomi account β Mi Cloud).
Method 1: Resetting a password through the main space (official method)
This is the only legal method that does not require resetting and works on most devices with MIUI 12-14.
- π Remember the password from the main space.
- π² You have access to your phone settings.
- π The second space is not locked after 10 failed attempts (in which case you will have to wait 24 hours).
Step-by-step:
- Open the settings in the main space.
- Move to Second Space β Controlling the second space.
- Select Remove Password (or Reset Password depending on the MIUI version).
- Confirm the action by entering a password from the main space.
- Set a new password for the second space or leave it unprotected.
Limitations of the method:
- β It does not work if the second space is locked at the Mi Cloud level (for example, when remotely locked via Find Device).
- β On some models (Redmi Note 8 Pro, POCO F1) This paragraph may not be available.
βοΈ Preparation for password reset
Method 2: Remove the second space through Recovery Mode
If you have access to the main space, but you canβt reset your password through the settings, you can completely delete the second space without losing your main profile data, which works on all Xiaomi devices, but has a critical drawback: all the data in the second space will be permanently deleted.
Instructions:
- Turn off the phone.
- Press the Power + Volume buttons up until the Mi logo (Recovery Mode) appears.
- Select the language (volume buttons) and confirm the choice with the power button.
- Go to Wipe Data β Delete Second Space.
- Confirm the deletion (some models will require a password from Mi Account).
- After the reboot, the second space will disappear, and the main one will remain intact.
β οΈ Attention: On devices with MIUI 14 and later, after the second space is deleted, you may need to re-activate the device via Mi Account!
What happens if the Recovery Mode does not open?
Method 3: Using ADB to reset passwords (for advanced users)
The method is suitable if you have USB debugging enabled in the main space, it allows you to delete a file with a second space password through the command line, but requires skills with ADB.
Step-by-step:
- Connect your phone to your PC and allow debugging over USB in the main space.
- Open the command line (CMD) In the computer, type: adb shell su rm /data/system/secondspace_password.key
- Reset the phone. Once turned on, the second space will be available without a password.
β οΈ Note: This method does not work on all versions. MIUI. Starting with MIUI 13, a password file can be stored encrypted, and deleting it will cause the second space to fail, in which case only a full reset via Recovery will help.
Alternative: If the su command is not working (no root rights), try:
adb shell pm clear com.miui.secondspaceThis will reset the second space settings, but the application data may be saved.
π‘
If ADB does not recognize the device, install the Mi USB Driver and check if File Transfer (MTP) mode is enabled in the notification curtain.
Method 4: Fastboot Flashing (extreme case)
If neither method works, you'll have to completely flash the phone over Fastboot mode, which will delete all data from the device, including both spaces, but will restore access to the phone.
What you need:
- π₯οΈ Computer with Mi Flash Tool drivers installed.
- π₯ Official firmware for your model (download from Xiaomi website).
- π Cable USB Type-C (original, undamaged).
Instructions:
- Turn off the phone and press Power + Volume down to log into Fastboot.
- Connect your phone to your PC and start the Mi Flash Tool.
- Select the downloaded firmware (.tgz format) and press Refresh β the program must determine the device.
- Press Flash and wait for the process to end (5-10 minutes).
- Once rebooted, the phone will be like new β without any second space and all the data.
β οΈ Note: On devices with a locked bootloader, you will need to unlock it through the official Mi Unlock tool before the firmware, which will take up to 72 hours of waiting (according to Xiaomi rules).
| Model phone | Does unlocking the loader support | Whether waiting is required |
|---|---|---|
| Xiaomi 13/13 Pro | Yes. | 72 hours |
| Redmi Note 12 | Yes. | 168 hours (7 days) |
| POCO X5 | Yes. | 72 hours |
| Redmi 10A | No. | β |
π‘
Fastboot flashing is the only way to unlock the second space if the Mi Account password is forgotten and USB debugging is disabled, but it will result in complete data loss.
Method 5: Contact Xiaomi Service Center
If you are not willing to risk data or are afraid of damaging your phone, the best option is to contact the official service center. Xiaomi provides a service to unlock the second space upon presentation:
- π Document confirming the purchase (check, warranty card).
- π Passport holder.
- π± The device itself (must be in working condition).
The cost of the service varies from 1,500 to 3,000 rubles depending on the model and region, in some cases, the service center can offer:
- π§ Restoring access without losing data (unless the phone has been reflashed).
- π² Transferring data from the second space to another medium (for an additional fee).
β οΈ Warning: Unofficial service centers often offer a "hack" of a second space through the EDL-The regime, but it may lead to:
- π« Loss of warranty.
- π Blocking your Mi Account (if your device is linked to your account).
- π₯ Firmware damage (if unofficial software is used).
How to avoid losing access to a second space in the future
To avoid the problem of a locked second space, follow these tips:
- π Use a password manager (such as Bitwarden or KeePass) to store a password from the second space.
- π₯ Regularly back up the second space in Settings β Second space β Backup.
- π Link your phone to Mi Account and enable data sync to the cloud.
- π Write down the answers to the control questions (if they were asked when creating the second space).
It's also useful to know:
- π Second space can be disabled without deleting data if you remember password: Settings β Second space β Shut down.
- π± On some models (Xiaomi) 12T, Redmi K50) Supports fingerprint unlocking β set it up in advance.
Useful Life Hack: If you often forget passwords, create a text file called a text file in the main space. SecondSpace_Hint.txt And you can keep a password hint (but not the password itself!) like, "Grandma's date of birth." + dog-name".