A situation when the screen of the Xiaomi smartphone suddenly goes out, and when you try to turn on the device requires a pattern lock or a graphical key. PIN-The code you can't remember is one of the most stressful for the owner of the gadget, and the memory can be important contacts, work documents and personal photos, access to which seems blocked forever. MIUI provide several scenarios of actions that allow you to regain control of the device.
The first thing to understand is that the way you solve the problem depends on whether your phone was tied to your Mi Account and if you have enabled the device search function, if you have previously activated synchronization, the chances of success without losing data greatly increase, otherwise you will have to resort to more radical measures, such as Hard Reset, which will completely clean up the internal memory of the smartphone.
Don’t panic and look for “magic programs” on the Internet that promise instant unlocking – most of them are malware. Below we’ll look at proven, safe and workable ways to help you regain access to the system. It’s important to act consistently so that you don’t permanently lock the device or trigger FRP (Factory Reset Protection) protection.
Using the “Find Device” feature from Xiaomi
The easiest and painless way to reset a forgotten password is only possible if the locked smartphone has logged in to the Mi Account and activated the Find Device option. This tool allows you to remotely control the gadget via a browser on a computer or other phone. You will need a stable Internet connection on the locked device itself, since the unlock command must be received by the device in real time.
To start, go to the official i.mi.com website from any device available to you. Enter your Mi Account login and password. If the security system requests confirmation via SMS or additional code, follow the on-screen instructions. Once you have successfully logged in, you will see a map with your smartphone's location (if it's online) and a menu of available actions.
⚠️ Note: Remote unlocking does not work on all versions MIUI. In the latest Xiaomi security updates, this option can be hidden or require re-authorization directly on the screen of the locked phone, making the method useless if you don’t remember the access code.
If you have an Unlock button on your device control menu, click on it. The system will alert you that all data on your device will be deleted. Confirm the action and the phone will reset by resetting all screen protection settings to factory settings. This is one of the few legal ways to bypass the pattern lock without using complex engineering menus.
Recovery Mode (Hard Reset)
If remote unlocking is not possible, the only working option is to force resets through the Recovery menu, which is available on any Xiaomi, Redmi or POCO smartphone, regardless of the firmware version, and the method is to load a special system partition that allows you to control the device bypassing the main Android interface.
Before starting the procedure, make sure that the battery is at least 40-50%. Interrupting the reset process due to battery discharge can damage system files and turn the phone into a brick. Also keep in mind that after this operation, all data (photos, contacts, applications) will be permanently deleted.
☑️ Checklist before reset
To enter the recovery mode, perform the following steps:
- 🔌 Turn off the smartphone completely by pressing the power button.
- 🔘 Simultaneously press the buttons Volume Up and Power.
- ⏳ Hold both buttons until the Mi or Redmi logo appears, then release the power, but keep the volume up.
- 📱 When the Main Menu appears, release all buttons.
Navigate in this menu with volume buttons (up/down), and select item with the power button. You need to find the Wipe Data section and select it. Then confirm the action by selecting Wipe All Data. The system will ask for confirmation again - select Confirm. After the process, click Back to Main Menu, then Reboot and Reboot to System.
Unlocking with Google Find My Device
An alternative to Xiaomi’s branded service is Google’s standard tool: If your device has been locked on and your Google account is activated, you can reset your password through Find Your Device, which will also result in complete deletion of data, but can be useful if you don’t remember your Mi Account data.
Go to android.com/find and log in to the Google account you used on your smartphone. From the device list, select your locked phone. From the side menu, select the option “Erase Device” and the smartphone will receive a command to reset and reboot.
| Method | Conditions required | Data retention | Risk of blocking FRP |
|---|---|---|---|
| Mi Cloud | Mi-account, Internet | No (full reset) | High-pitched |
| Recovery Mode | Physical access | No (full reset) | High-pitched |
| Google Find | Google account, Internet | No (full reset) | High-pitched |
| Safe Mode | Working graphical interface | Yes (third-party software only) | Low. |
Once rebooted, the phone will be like new. When you first set up, the system will ask you to enter a password from a Google account that was synced to the device before the reset, which is an FRP security measure to prevent stolen phones from being used.
What is FRP and how to get around it?
Using a Safe Mode to Remove Viruses
Sometimes the problem with not being able to unlock the screen or having persistent password requirements is not caused by forgotten code, but by malicious software. The virus can block input, block the interface, or mimic system windows, and in such cases, it helps to download to Safe Mode, which disables all third-party applications.
To enter Safe Mode on Xiaomi, it is usually enough to press the off button on the desktop (if there is access) or use a combination of buttons when you turn on. On many MIUI models, you need to pinch the off button in the menu, and then hold your finger on the “off” icon on the screen for a long time until you are prompted to switch to Safe Mode.
Once you log in, where Safe Mode is in the corner of the screen, go to Settings → Apps. Find suspicious programs that you haven't installed or that have recently appeared before the problems started. Delete them. Once you reboot in normal mode, the lock may disappear.
💡
If Safe Mode doesn’t help remove the virus, try turning off the internet before logging in so the malware doesn’t have time to activate and lock the screen again.
The problem of activating the Mi Account after resetting
After you do Hard Reset or remotely clean your data, when you first boot, the system may require you to enter a password from the Mi Account that was linked to the device, which is anti-theft protection, and if you don't remember the password, the phone will be locked, and you won't be able to use it.
In this case, don't try to guess the password repeatedly - the account may be temporarily blocked. Go to account.xiaomi.com from your computer and use the access recovery function. You will need access to the linked phone number or backup mail.
⚠️ Note: If the phone was bought with hands and the previous owner did not untie the device from his account, it is almost impossible to unlock it without his participation.
Incorrect data may result in the device being locked by IMEI. If you are the legal owner but cannot restore access, contact an authorized service center with documents confirming the purchase (check, warranty card).
Prevention and backup
To avoid facing this situation again in the future, it is important to back up your data regularly. Xiaomi smartphones have a built-in Mi Cloud tool and local backup. Set up automatic synchronization of contacts, photos and notes.
It is also recommended to write down a pattern lock or PIN-code to a safe place (notebook, password manager) immediately after installation. Don't rely on memory alone, especially if you use complex combinations. Change passwords periodically so you don't forget them over time.
Make sure that Find Device and Phone Search are always activated. This is the only thread that can save your data in the event of loss of access to the interface. Check the settings in Settings → Mi Account → Find Device.
💡
Regular sync with the cloud is the only way to ensure that data is saved when a forgotten password is forgotten, since most unlock methods require a complete reset.