How to Restore Second Space on Xiaomi if You Forgot Your Password

A forgotten password from the second space on Xiaomi smartphones is a common problem that can block access to important data, such as work chats, personal files or apps. Unlike the main account, the second space (Secondary Space in MIUI) is not always tied to Mi Account, which makes recovery difficult. In this article, we will discuss all working methods of unlocking, from standard methods through settings to technical solutions using ADB and Fastboot.

It’s important to understand that the second space on Xiaomi is encrypted separately from the main profile, so resetting the phone to factory settings does not always help – the data can remain encrypted. We analyzed methods for devices on MIUI 12-14 (including Redmi Note 10/11/12, Poco X3/X4, Mi 11/12) and identified those that work without losing information. If you are not sure about your technical skills, we recommend starting with the simplest options.

1. Recovery via Mi Account (if space is tied)

The safest way is to use a Mi Account that is tied, and it only works if you've previously logged in to a second space through that account.

  • πŸ”‘ Go to Settings. β†’ Accounts. β†’ Mi Accounts in the main space.
  • πŸ“± Make sure your smartphone is displayed in the Devices section (this confirms the binding).
  • πŸ”„ Restart your phone and try to log into the second space via Forgot Password? – The system can offer recovery via SMS email.

If you have forgotten your password? is not available, then the space is not tied to your account. In this case, move to the next method.

⚠️ Please note: Do not enter your password more than 5 times β€” MIUI It can block the second space for 24 hours, and if you see a message that says "Too many tries," wait until the time is specified or use alternative methods.

πŸ“Š What Xiaomi model do you use?
Redmi Note 10/11/12
Poco X3/X4/X5
Mi 11/12/13
Another model

2. Reset password through recovery mode (Recovery Mode)

If Mi Account didn’t help, try resetting your password through Recovery Mode.This method works on most Xiaomi devices with the bootloader unlocked, but deletes all data in the second space (the main profile will remain intact).

Instructions:

  1. Turn off the phone.
  2. Press Volume Up + Power before the Mi logo appears (on some models – Volume Up + Volume Down + Power).
  3. From the Recovery menu, select Wipe & Reset β†’ Reset Second Space Password (the item name may vary).
  4. Confirm the action and restart the device.

After reset, the second space will be available without a password, but all applications and files installed in it will be deleted.

Disable your Google account in the main space (Settings β†’ Accounts β†’ Google)

Battery charge > 50%

Download the official firmware for your model (in case of errors)

Save it. IMEI (Type *#06# in the main space)-->

3.Use ADB to unlock (for advanced users)

If you're familiar with ADB (Android Debug Bridge), you can try to delete a password file through the command line. This method doesn't guarantee data security, but sometimes allows you to bypass the lock without completely resetting.

Step-by-step:

  1. Enable USB Debugging in the main space (Settings β†’ About Phone β†’ MIUI Version (click 7 times) β†’ Additional β†’ For developers β†’ Debugging over USB).
  2. Connect the phone to the PC and confirm the debugging permission.
  3. Open the command line (Windows) or terminal (macOS/Linux) and type:
adb shell


su




rm /data/system/users/1/lock




reboot

If the su command doesn't work, the device doesn't have root rights, and then it won't work.

⚠️ Attention: Misuse of the right ADB It can cause data loss in the main space or a device to "brick" if you're not sure about commands, skip this method.

What if the ADB can’t see the device?
Make sure you have Xiaomi drivers installed (download from the official website). USB-Cable (original preferably) Turn on Charge Only, then select File Transfer again. Reboot PC and phone.

4. Unlock via Fastboot (for unlocked bootloader)

If the bootloader on your Xiaomi is unlocked, you can try reflashing the password section through Fastboot.

  • πŸ”“ Unlocked bootloader (checked by the fastboot oem device-info command - look for Device unlocked: true).
  • πŸ’» Installed Fastboot and Xiaomi drivers on PC.
  • πŸ“ Official firmware for your model (download from Xiaomi website).

Instructions:

  1. Turn off the phone and press Volume Down + Power to log in to Fastboot.
  2. Connect the device to the PC and check the connection with the command:
fastboot devices
  1. Scroll through the userdata section (this will delete all data in the second space!):
fastboot erase userdata


fastboot reboot

After the reboot, the second space will be available without a password, but empty.

πŸ’‘

Before you run your firmware through Fastboot, back up your main space using the Mi PC Suite or TWRP app (if installed).

5. Contact the Xiaomi Service Center

If none of the methods worked, the official way is to contact the service center, and Xiaomi can help unlock the second space if you have:

  • πŸ“„ Check or warranty card (confirms possession of the device).
  • πŸ” Access to Mi Accounts Linked to Phone.
  • πŸ“± Correct. IMEI (software-free).

The cost of the service varies from 1,500 to 5,000 rubles depending on the model and region, and in some cases, the service may offer a complete reset of the device, if the data in the second space is not critical.

Unlocking methodData securityDifficultyConditions required
Mi AccountPreserve.Low.Space is tied to the account
Recovery ModeRemovedMediumNo binding to the Mi Account
ADBPartial lossTall.Debugging by USB, root rights (optional)
FastbootRemovedVery high.Unlocked loader
Service centreDepends on the case.Low.Phone ID, Mi Account

6. How to avoid future data loss

To avoid encountering the problem of a locked second space again, follow these tips:

  • πŸ” Attach the second space to Mi Account in settings (Settings) β†’ Second space β†’ Mi Account).
  • πŸ“ Write down your password to your password manager (e.g. Google Password Manager or Bitwarden).
  • πŸ”„ Regularly back up important data from the second space through Settings β†’ System system β†’ Backup.
  • πŸ“± Use a fingerprint or facial recognition to enter (if supported).

If you often work with sensitive data in a second space, consider alternatives:

  • πŸ“ Encrypted containers (applications like Cryptomator or VeraCrypt).
  • πŸ”’ User profiles in Android 12+ (On some Xiaomi models, you can use Settings β†’ System system β†’ Multiplayer mode).

πŸ’‘

The second space in MIUI is not a full-fledged Android multiplayer system, but an add-on above the main profile, so its settings and security depend on the main account.

FAQ: Frequent questions about Xiaomi's second space

Can I recover data from the second space after resetting my password?
No, if you reset your password through Recovery or Fastboot, the data in the second space is deleted without the possibility of recovery. The only chance is if you backed up through Mi Cloud or third-party apps.
Why is the β€œForgot Password” option not working in the second space?
This option only appears if the space is tied to Mi Account, and if you are not logged in to create the second space, the system will not be able to verify your identity and will not offer a recovery.
Can I delete the second space without a password?
Yes, but it will cause you to lose all the data in it. To delete: Go to Settings β†’ Second Space. Select Delete Second Space (requires a password from your main profile). If you forget your primary password, you'll have to reset your phone completely.
Does this work for POCO and Redmi?
Yes, all of the methods described are relevant for MIUI devices, including POCO and Redmi. Except that some POCO models with global firmware may not support the second space.
What if after resetting the second space, the phone asks for an old password?
This means that the data encryption has not been completely removed. Try: Reset your phone to factory settings via Recovery; Swipe your device through Fastboot to clear the userdata partition; if the problem persists, contact the service center β€” the file system may have been damaged.