Users of Xiaomi, Redmi and Poco smartphones often face mysterious situations when the number 7 appears on the lock screen, the error code 7 or the system requires you to enter a password of exactly seven characters, this problem can be caused by a failure in MIUI, an error in setting up parental controls or, most often, locking the device through the Mi Account service after buying a used gadget. In some cases, the number 7 is displayed as a residual input attempt counter or a security mode indicator.
This requires a clear understanding of the reason for the lock. If you forget your own password, the recovery process will take several minutes. However, if the device was bought from hand and was blocked by the previous owner, the situation is complicated by the need to unblock the account. Android security system does not allow you to simply bypass the security, so it is important to act consistently so as not to turn the smartphone into a “brick”.
In this article, we will look at all possible scenarios, from a simple reset of the pattern lock to a deep cleaning of the system through Recovery Mode. We will also explain why this figure appears and how to prevent similar situations in the future. It is important to understand that the methods for solving different versions of MIUI (12, 13, 14, HyperOS) may differ slightly, but the basic principles remain the same.
Diagnostics of the problem: what does the number 7 mean?
Before taking action, you need to accurately identify the nature of the lock. The number 7 on the lock screen Xiaomi can be interpreted differently depending on the context of the appearance, most often it is an activation error or an indication of the number of remaining attempts to enter the code. In some cases, users confuse the requirement to enter a 7-digit password with a system error.
If the screen displays a message that the device is locked and requires login, it's about Find Device protection. It's a standard theft protection mechanism. The number 7 here can be part of an error code or just a coincidence. If your phone doesn’t accept your usual 4-digit phone PIN-code and requires a longer combination, you may have accidentally activated complex password mode or enabled the “Schedule Password” function».
⚠️ Note: If after buying a new or used smartphone you see a requirement to enter a password from Mi Account, which does not belong to you, then the previous owner did not leave his profile.
Diagnostics also includes checking the physical condition of the buttons. Sometimes sticking the volume button or sensor can lead to chaotic input of numbers, including seven, which is perceived by the system as an incorrect password.
💡
Before any manipulation, try restarting the device in safe mode, press the off button and then (hold) the "off" button on the screen until the prompt to go to safe mode appears, which will help eliminate the influence of third-party blocking applications.
How to Unblock Using a Google Account
The easiest and safest way to remove the lock if the system offers an alternative sign-in is to use a Google-linked account, which works if the smartphone is connected to the Internet and you remember your email information. On the screens of older versions of Android and MIUI, after several mistrying passwords, a button appeared "Forgot your password?" or "Google login".
The process of access restoration is as follows:
- 📱 Enter the wrong password or pattern lock 5 times in a row.
- 🌐 Wait for the countdown timer and the button “Forgot the key / password».
- 📧 Click on the button and enter the login and password from the Google account that was synced with the device earlier.
- 🔄 The system will check the data and suggest installing a new way to lock the screen.
Unfortunately, on the modern versions MIUI 13/14 And HyperOS is less common because of the increased security policy, and Google is gradually abandoning the ability to reset the screen password through an account in favor of a more stringent binding to biometrics and a more secure security system. PIN-However, on devices with the Android version below 10 This method is still relevant and often helps to avoid data loss.
If the login button does not appear through Google, it means that the device administrator has banned the remote reset or the function is simply not supported by the current firmware build. In this case, you should not waste time endlessly trying to guess the code, as this will lead to an increase in lock time up to a complete ban on typing.
Resetting settings via Recovery Mode
If the soft methods didn’t work, the radical but effective way is to completely reset data through the Recovery menu, which will remove all information from the phone’s internal memory, including photos, contacts and apps, but will remove any password, pattern lock or 7 blocking the login, a routine that manufacturers have in place for emergencies.
To enter the recovery mode, the following sequence of actions must be performed:
1. Turn off your smartphone completely.
2. Press the Volume Up and Power button (Power). simultaneously.
3. Hold the buttons until the Mi logo appears, then release the power button while continuing to keep the volume.
4. From the Recovery menu, select the language (usually English or Chinese).Once you have selected a language, use the volume buttons for up/down navigation and the power button to confirm your choice. You need to find Wipe Data or Clear Data. Within this menu, select Wipe All Data. The system will warn you that all data will be destroyed. Confirm the action by selecting Confirm.
The formatting process can take 1 to 5 minutes. Once completed, the screen will show the words "Data wiped successfully." Select Back to Main Menu, then Reboot -> Reboot to System. The phone will reboot as new, and when it is first enabled, it can request a password from a previously linked Google or Mi Account (FRP protection).
☑️ Preparing for resetting through Recovery
Delete Mi Accounts through Official Service
If, after resetting via Recovery, the phone requires you to enter a password from Mi Account that you do not know (the situation with used devices), the only legal way is to contact Xiaomi. The number 7 or any other code here will not help, since the lock is tied to the server. You will need to prove that the device belongs to you.
To unlock through the service center or online form, you must provide:
- 📄 Original check or invoice for the purchase of the device (photo or scan).
- 📦 Smartphone box with IMEI-code-matching.
- 🆔 Identity document.
- 📱 The device itself is locked.
It takes anywhere from a few days to two weeks, and engineers check the documents and, if everything is clean, remotely untie the device from the previous owner's account, and then you can reconfigure the phone, which is the only way to bypass FRP (Factory Reset Protection) protection without losing warranty and risking damage to the software.
⚠️ Warning: Never buy Xiaomi smartphones with your hands if the seller can’t log out of your Mi Account and reset settings. “Forgot the password, but the check is there” means that the phone is stolen or found 90% of the time.
There are paid services that offer unlocking for money, but they often require transferring your account details or using questionable software. The official way through checks and boxes is the most reliable, albeit long-term option.
Using ADB to delete system files
For advanced users, there is a method of removing the file that stores the access keys through debugging. USB (ADB). This method works only if the phone was previously allowed to "debug by" USB» If the phone is just locked off by the input screen, this method won't work without access to the menu.
If you can access the file system, the algorithm is as follows: first you need to install ADB drivers on your computer and connect the smartphone with a cable, then you enter special commands through the command line to delete gesture.key or password.key files.
adb shell rm /data/system/gesture.key
adb shell rm /data/system/password.key
adb shell rm /data/system/locksettings.dbOnce the commands are executed, you need to restart the device. 11/12/13/14 No root access to these sections is allowed, so it works mostly on old models or custom firmware. MIUI This will likely lead to an access error.
Risks of using ADB
Prevention of blocking and expert advice
That the problem of “how to remove 7” or any other lock code never got into your hands again, you should adhere to simple rules of digital hygiene. Regular backup of data to the Mi Cloud or Google Drive cloud will allow you to restore contacts and photos at any time after reset.
Write your passwords in a safe place. Using complex passwords is good for security, but bad for memory.
| Type of lockdown | Risk of data loss | Difficulty withdrawal | Essential tools |
|---|---|---|---|
| pattern lock | High (on discharge) | Low. | Google Account/Recovery |
| Mi Account | 100% (no junction) | Tall. | Check, box, support. |
| PIN-code | Medium. | Medium | Reset via Recovery |
| Fingerprint. | Low. | Low. | Reserve password |
It is also recommended that you only enable Find Device if you are sure you remember your account password, otherwise it changes from defender to jailer, and check the list of trusted devices regularly in your account security settings.
💡
The main guarantee against blocking problems is knowing the password from the Mi Account and having a check to buy. Without these two components, restoring access to modern Xiaomi smartphones is extremely difficult.