How to Recover a Password from Second Space on Xiaomi: A Complete Guide to 2026

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).

πŸ“Š What Xiaomi model do you use?
Redmi Note 12
POCO X5
Xiaomi 13
Redmi 10
Another model

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:

  1. Open the settings in the main space.
  2. Move to Second Space β†’ Controlling the second space.
  3. Select Remove Password (or Reset Password depending on the MIUI version).
  4. Confirm the action by entering a password from the main space.
  5. 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

Done: 0 / 4

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:

  1. Turn off the phone.
  2. Press the Power + Volume buttons up until the Mi logo (Recovery Mode) appears.
  3. Select the language (volume buttons) and confirm the choice with the power button.
  4. Go to Wipe Data β†’ Delete Second Space.
  5. Confirm the deletion (some models will require a password from Mi Account).
  6. 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?
If the phone doesn't respond to the button combination, try: 1. Connect the charger and try again. 2. Use the Power + Volume down combination (on some models). 3. Hold the buttons longer than 10 seconds. If nothing helps, perhaps the firmware is damaged - you will need to flash through the Fastboot.

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:

  1. Connect your phone to your PC and allow debugging over USB in the main space.
  2. Open the command line (CMD) In the computer, type: adb shell su rm /data/system/secondspace_password.key
  3. 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.secondspace

This 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:

  1. Turn off the phone and press Power + Volume down to log into Fastboot.
  2. Connect your phone to your PC and start the Mi Flash Tool.
  3. Select the downloaded firmware (.tgz format) and press Refresh – the program must determine the device.
  4. Press Flash and wait for the process to end (5-10 minutes).
  5. 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 phoneDoes unlocking the loader supportWhether waiting is required
Xiaomi 13/13 ProYes.72 hours
Redmi Note 12Yes.168 hours (7 days)
POCO X5Yes.72 hours
Redmi 10ANo.β€”

πŸ’‘

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".

FAQ: Frequent questions about Xiaomi's second space

Can the data of the second space be recovered after resetting?
If you backed up through Settings β†’ Second Space β†’ Backup, you can restore the data after you recreate the second space. Without a backup, you can't restore it - the data is stored in encrypted form.
Why does the second space ask for a password from Mi Account?
This happens if: You tried to reset your password through Recovery, the device was reflashed, the second space was blocked through Find Device (remotely), in which case you need to enter the password from the Mi Account attached, and if you forgot it, restore access through the official website.
Does the second space work on custom firmware (e.g. Pixel Experience)?
No, the second space is an exclusive MIUI feature, and on custom firmware (like LineageOS or Pixel Experience), it's not supported, and if you've been reflashing your phone, you can only return the second space with the original MIUI.
Can I use the second space without a password?
Yes, you can skip the step of setting your password when you create the second space, but it's not safe: anyone who picks up your phone will be able to access your personal data. PIN-code.
How to transfer data from the second space to the main one?
You can't do this directly, but there's a workaround: Back up the second space (Settings β†’ Second Space β†’ Backup). Remove the second space through Recovery. Recreate it and restore it from the backup. Copy the files you want to back up to the main space through Explorer. For applications, portability is impossible β€” you have to install them again.