A forgotten password from the second space on Xiaomiβs smartphone is a common problem that can block access to important data. Unlike the main account, the second space (Secondary Space) is often used to separate work and personal files, but its recovery requires specific actions. In this article, we will discuss 5 proven ways to unlock, from official methods through Mi Account to technical solutions using ADB and Fastboot mode.
It's important to understand that not all methods guarantee data safety, for example, resetting through Recovery will delete all information in the second space, whereas authorization through Mi Account can save files, we will describe each option in detail, specify their pros and cons, and also warn against typical errors that can lead to complete loss of access to the device.
If you use Xiaomi on MIUI 12-14, most of the instructions will be relevant. For older versions (e.g. MIUI 10-11), some steps may differ β weβll mention that too.
1 Unlocking through Mi Account (official method)
The most reliable and recommended method Xiaomi is to restore access through the associated Mi Account, which works if:
- π± Device connected to the Internet (Wi-Fi or mobile network).
- π You remember the username and password from Mi Account, which was used when setting up the second space.
- π Find Device is activated in the settings.
To take advantage of this method:
- On the lock screen of the second space, tap the button Forgot the password? (or similar inscription).
- Select the Restore option via Mi Account.
- Enter the email or phone number associated with the account, then the password.
- Confirm the action via SMS or email (if two-factor authentication is enabled).
Once you have successfully logged in, the system will suggest you create a new password for the second space, and all the data will be saved, but some settings (such as fingerprints) will have to be reconfigured.
β οΈ Note: If you have previously changed your Mi Account password and havenβt updated it in your device settings, authorization may not work.
π‘
Before you try to unlock, check if your smartphone is connected to the network. Without the Internet, Mi Account will not be able to confirm your identity.
2.Reset second space through settings (without data loss mostly)
If the Mi Account is not tied or you donβt remember the login details, you can only reset the second space without affecting the main one.This method works on most Xiaomi/Redmi/Poco devices with MIUI 12+.
Instructions:
- Go to the main space (unlock it in the usual way).
- Open Settings β Password and Security β Second Space
- Slip on the option to Remove the second space (or Reset the password, if available).
- Confirm the action by entering the password from the main space.
After that, the second space will be removed, but all the data in the main space will remain intact. You can create a new second space from scratch.
β οΈ Note: Some models (e.g. Redmi Note 10 Pro) may need to restart the device after resetting the second space!
| Method | Data security | Internet is required | It works without a Mi Account. |
|---|---|---|---|
| Through the Mi Account. | β Preserve. | β Yes. | β No. |
| Reset via settings | β Removed (only in 2nd space) | β No. | β Yes. |
| ADB (see below) | β They are saved (with the right commands) | β No. | β Yes. |
3.Use ADB to unlock (for power users)
If previous methods didnβt work, you can try unlocking the second space via Android Debug Bridge (ADB), a method that requires USB debugging enabled and access to the computer.
Step-by-step:
- Download and install ADB Tools on PC.
- Turn on Developer Mode on your smartphone: go to Settings β About Phone β MIUI version and tap 7 times.
- Return to Settings β Additional β For developers and activate Debugging over USB.
- Connect your phone to your PC and confirm your trust in your computer.
- Open the command prompt (or Terminal on Mac/Linux) and type:
adb shell
pm clear com.miui.secondspaceThis command will reset the settings of the second space, but will not delete the data mainly. After completing, restart the device and try to log into the second space without a password.
β οΈ Note: On some firmware (for example, MIUI 13 Global) this command may not work. In that case, try an alternative command:
adb shell am start -n com.miui.secondspace/.SecondSpaceDeleteActivityDebugging is on. USB|Drivers installed ADB|The phone is connected to the PC with the original cable|Backup copy of data created-->
4.Reset via Recovery Mode (extreme case)
If none of the methods worked, you'll have to hard-reset through Recovery, which will delete all the data in the second space and return it to the factory settings, and in most of the space, the files will remain intact, but only if you don't choose the option of a full reset.
How to perform the reset:
- Turn off your smartphone.
- Press the Power + Volume buttons up at the same time until the Mi logo appears.
- From the Recovery menu, select the language (usually English or Chinese).
- Go to Wipe Data β Wipe Second Space (or similar).
- Confirm the action and wait for the process to be completed.
Once you reboot, the second space will be removed, and you can recreate it in the settings.
What if you donβt have a βWipe Second Spaceβ option in Recovery?
5. Alternative methods: contacting the service center
If independent attempts were unsuccessful, you can contact the official Xiaomi service center.
- π Device locked at Mi Account level (proof of ownership required).
- π± The smartphone does not respond to commands ADB or not included in the Recovery.
- π§ You are afraid of losing important data and need professional help.
What will be required for the application:
- π Check or warranty card (to confirm purchase).
- π Passport or other identification document.
- π Data from Mi Account if the account is linked to the device.
The cost of unlocking the service varies from 500 to 2000 rubles depending on the model and complexity of the work, in some cases, you may need to flash the device, which cancels the warranty.
π‘
The official service is the only way to unlock if the device is tied to another userβs Mi Account (for example, when buying a used smartphone).
Frequent Mistakes and How to Avoid Them
When trying to unlock a second space, users often make critical errors that can make the problem worse.
- Interrupt the reset process. If you start resetting through Recovery or ADB, do not disconnect the device from the power in any case. This can lead to a blink (complete failure) of the smartphone.
- Using unofficial firmware: Installing custom ROMs (like LineageOS) without experience can block access to both spaces. If you're not sure about your skills, you'd better consult a specialist.
- Wrong teams ADB. Error in one letter (e.g., secondspace instead of the same letter) second_space) Always copy commands from trusted sources.
Another common problem is blocking Mi Account after multiple attempts to enter a password, and if you make a mistake several times when you restore through your account, Xiaomi may temporarily block access, in which case you will have to wait from 30 minutes to 24 hours or reset your password through the official website.