Xiaomi smartphone owners often use the “Second Space” feature to separate personal and work information, creating an isolated environment with separate apps and files. However, the situation when a user forgets the pin, pattern lock or password from this hidden partition is one of the most stressful in digital hygiene. Access to important data can be lost if you do not know the exact algorithm of actions to unlock.
The MIUI security system is designed so that the standard recovery methods that work for the main account are not applicable here for privacy reasons. Data in the second space is encrypted separately, and code selection attempts are limited by the number of attempts. In this article, we will discuss in detail all legal ways to solve the problem, from using a Mi Account to completely resetting the settings.
You should immediately tune in to the fact that the recovery process can lead to the complete loss of data stored in a hidden profile. Modern Android security algorithms do not allow you to simply “bypass” the password without losing information unless backups were provided in advance. The only guaranteed way to return access to files without deleting them is accurate knowledge of the password or login through the associated Mi Account, if the function was activated in advance.
Principles of security and data encryption
Before you start taking action, you need to understand exactly how protection works. The second space is not just a folder, but a full-fledged virtual machine inside your smartphone. Each space has its own unique identifiers and encryption keys. When you set a password, the system generates a hash that is stored in a secure memory area.
Brute-force attacks are blocked by the system after a few failed inputs. Usually 5 or 10 attempts are made, after which the device requires waiting or blocks the ability to enter for a certain time, this is done so that in the event of a phone the attacker can not access your hidden content.
It is important to distinguish between the main screen unlock password and the Second Space password. These may match, but often users set different combinations to improve security. Resetting the main screen password will not automatically remove protection from the Second Space.
- 🔒 Data encryption occurs at the file system level, making it impossible to simply copy files without a key.
- ⏳ After 5 failed attempts to enter, the system temporarily blocks the password for 30 seconds.
- 📱 Switching between spaces requires authorization if the appropriate option is enabled in the security settings.
⚠️ Warning: Attempts to use third-party password cracking software can lead to irreversible damage to system files and complete device lock (brick).
Using a Mi Account to Restore
The most civilized and secure method MIUI has in mind is using a cloud account, where if you've linked your Mi Account to sync when you create Second Space, it takes a couple of minutes to restore access, and it allows you to reset a forgotten password without losing any photos, documents, or apps that you store.
To implement this method, you need to find the option “Forgot password” or “Change password” on the password input screen. The system will prompt you to enter data from the account that was listed as a recovery account. After successful authorization, you will be asked to install a new combination of numbers or a pattern lock.
However, this method only works if the smartphone has an active Internet connection (Wi-Fi or mobile network) at the time of the recovery attempt. Without communication with Xiaomi servers, verification is impossible.
What to do if the recovery button is not active?
- ☁️ A stable Internet connection is required to verify your account.
- 🔑 You need to remember the password from the Mi Account, not just from the phone.
- 🔄 After reset, all data in the Second Space is stored intact.
Reset password through the settings of the main space
If you remember the password from the main space and have access to it, change the security settings of the Second Space from there. MIUI You can manage profiles through the main settings menu. → Second space.
The profile management menu may have the option of changing your password or disabling the requirement to enter it when you switch. However, modern versions of the shell often require proof of identity to make such changes, requesting the current password of the Second Space, which, according to the condition of the task, we do not know.
However, it is worth checking for the "Delete Second Space" feature in the same menu, and if the data inside the hidden profile is not critical to you, this option will be the fastest solution to the problem, you can create a new space with a new password that you know.
☑️ Pre-reset check
It is important to understand that deleting the profile through the main space settings is an irreversible operation. All applications installed exclusively in the Second Space will be removed from the device.
The Radical Method: Removing the Second Space
When none of the sparing methods work, and accessing data inside a hidden profile is not a priority, the only working option is to completely remove the Second Space, which returns the memory occupied to the main pool and resets all the security settings of this partition.
To perform the operation, go to Settings → Second Space. In the upper right corner of the screen, find the menu icon (three dots or a gear). In the drop-down list, select “Delete Second Space.” The system will request confirmation of action, warning that all data will be destroyed.
Once confirmed, the cleanup process will begin. The duration depends on the amount of data stored. Once completed, the smartphone will suggest creating a new Second Space from scratch, where you can set a new, memorable password.
| Action. | Data retention | Necessary rights | The risk of blocking |
|---|---|---|---|
| Recovery through Mi Account | Yes. | Internet access | No. |
| Change through settings | Yes (partially) | Main screen password | No. |
| Removal of space | No. | Main screen password | No. |
| Reset to factory settings | No (full) | Physical access | Minimum |
⚠️ Note: Deleting the Second Space does not affect the main profile data, but irrevocably erases all content of the hidden profile, including photos, contacts and correspondence.
Complete reset of the device (Hard Reset)
In extreme cases, when you forget the passwords from both the main and the Second Space, or if the system interface is blocked, you have to resort to a complete reset of the device to the factory settings, this is the “nuclear” option, which returns the phone to the “store-like” state.
To enter Recovery Mode, Xiaomi devices typically use a combination of buttons. Turn off the smartphone completely. Then press both the volume button and the power button at the same time. Hold them until the Mi logo or Recovery menu appears.
In the Recovery menu, you can navigate with volume buttons and select with power buttons. Select the language (English), then Wipe Data → Wipe All Data. Confirm the action. Once you complete the process, select Reboot.
Reset Nuances on Different Versions of MIUI
Once you reboot, the phone will be clean, you can configure it as a new device by creating new passwords, but any personal files that haven't been saved to the cloud or computer will be lost.
- 🔌 Before reset, it is advisable to charge the battery to at least 60%.
- 💾 The formatting process can take anywhere from 5 to 15 minutes depending on the amount of memory.
- 🔐 After reset, you will need to enter a password from Google account previously used on the phone.
Password prevention and management
To prevent a forgotten password from happening again, it's important to set up your security system correctly. Using biometrics (fingerprint or facial recognition) to enter Second Space makes life much easier, and even if you forget the digital code, biometrics will allow you to access it.
It is recommended to check the relevance of your Mi Account regularly, go to the security settings and make sure that the phone number and email for recovery are correctly indicated and available to you, and it is also useful to back up important files from time to time to an external medium or to the cloud storage.
Don’t use too simple combinations like “1234” or “0000,” but don’t create overly complex passwords that you can’t remember. PIN-6 digit code associated with a personal date known only to you.
💡
Write the password you have set down to a secure location (notebook, password manager) as soon as it is installed. Human memory tends to forget information that is not used daily.
Remember that the security of your data is in your hands, and regular maintenance and checking of access settings will help you avoid unpleasant situations in the future.
💡
Biometric unlocking is the most convenient way to access the Second Space, eliminating problems with forgotten digital codes.