What to do if Xiaomi phone is locked: the full guide

When your Xiaomi suddenly stops responding to commands or requires a password you don’t remember, it can knock out any user, the screen goes out, the logo lights up, or worse, there is a frightening message about locking the device, at which point the main thing is not to panic and coolly assess the nature of the problem, as the further algorithm of actions depends on it.

There are several types of locks, from simple system freezes to serious protection of the Mi Account account. Understanding what kind of restriction you are faced with will allow you to choose the right tool to restore access to data and functions of the gadget. In this article, we will analyze all possible scenarios and offer proven solutions.

Before we get to the radical measures, we should try basic reboot methods, which often help to fix temporary software failures, but if the problem lies deeper, a more complex procedure will be required to interfere with the MIUI or HyperOS operating system.

Diagnostics of the type of device lock

The first step is to make sure that you're diagnosing it accurately, and if the screen is black and doesn't respond to touch, there may be a critical kernel failure or battery failure, and if the device is switched on but requires code, it's important to know which one is the SIM card PIN, the screen pattern lock, or the password for your Google and Mi Account.

Often users confuse locking the bootloader with locking the screen. If the image of a hare repairing an android appears on the black screen, or the Fastboot logo, this means that the device has fallen into firmware mode. This is not a breakdown, but a special mode from which you can exit with a simple combination of buttons.

⚠️ Warning: If the screen displays a message saying "This device is locked" to request a Mi Account, it means activation of theft protection. Without the previous owner's authorization data, it is almost impossible to unlock the device legally.

You can use a diagnostic menu to determine the exact status of the device, and try entering ##6484## in the phone app if you have access to the dial, and this will trigger the CIT engineering menu, where you can check the touchscreen and display to rule out hardware malfunction.

πŸ“Š What kind of lock you have?
Forgot the screen password.
Blocking of Mi Account
Black screen (hanging)
Fastboot mode
Other

Methods of unlocking the screen with a forgotten password

If you forget your pattern lock or digital password, it's harder to solve than just rebooting. Modern versions of Android and MIUI shells have high levels of data protection. The standard method through Forgot Password often requires an Internet connection and authorization in a Google account associated with the device.

One way is to use Google's Find My Device service, where if you have the Internet and geolocation enabled on your locked smartphone, you can remotely erase all data, including your password, through your computer or other phone, and go to the service's website, select your device, and click "Clean the device."

  • πŸ”‘ Make sure your device is connected to Wi-Fi or mobile network.
  • πŸ“± Log in to the same Google account used on the locked phone.
  • πŸ—‘οΈ Select the β€œErase Device” option, which will result in a complete reset.
  • πŸ”„ After the reboot, the phone will look like new, but the data inside will be lost.

It's important to understand that after this procedure, the phone will require you to enter your Google account login and password when you first set up, which is anti-theft protection, and you can't get around it without your owner's data. If you can't remember your Google password, you can first restore it through the search engine's recovery process.

πŸ’‘

If you have Mi Cloud sync enabled, try logging in from your computer at i.mi.com. Some older versions of MIUI had a remote screen unlock feature without losing data, but it rarely works now.

Using Recovery Mode to Reset Settings

When access to the system is not possible, Recovery Mode comes to the rescue, a special partition on the phone that allows you to perform system operations regardless of the state of the main operating system, and enters this mode by a combination of physical buttons when the device is turned off.

To enter standard Recovery on most Xiaomi and Redmi models, you need to press the volume button and the power button at the same time. Hold them until the Mi logo appears, then release power, continue to keep the volume. The menu is navigated by volume buttons, and the choice is by power button.

Power + Volume Up = Entrance to Recovery


Power + Volume Down = Entrance to Fastboot

From the Recovery menu, select a language (usually English or Chinese), then go to Wipe Data, where you will be offered two options: Wipe All Data (full reset) and Reset Password (password reset, not all models), the first option is guaranteed to delete the password, but destroy all files.

β˜‘οΈ Checklist before resetting via Recovery

Done: 0 / 4

The reset process can take a few minutes. Once it's done, the phone will automatically restart. The first boot after Factory Reset always takes longer than usual, as the system checks the integrity of the files and adjusts the settings.

Unlocking through Fastboot and PC mode

Fastboot is a low-level interface for debugging and firmware, and is often used when Recovery is down or locked. You'll need a computer with ADB/Fastboot drivers installed and a USB cable to run in this mode.

To get into Fastboot, turn off your phone and press the volume button along with the power button. The screen will show a picture of a hare in a hat-eared or the words Fastboot. Connect the device to a PC. If the drivers are installed correctly, the device will appear in Windows Device Manager Android Bootloader Interface.

Team team.Description of actionRisk of data loss
fastboot rebootNormal device rebootNo.
fastboot flash recovery recovery.imgInstallation of custom recaveriHigh-pitched
fastboot oem unlockUnlocking the loaderYes (full reset)
fastboot erase persistCleaning of the calibration section (dangerous)critical

Using Fastboot commands requires caution. Incorrect commands can lead to a "brick" of the device, that is, complete inoperability. For example, the command fastboot oem unlock unlocks the bootloader, but automatically performs a data waip for security purposes.

⚠️ Note: Using third-party utilities to unlock through Fastboot (so-called "authorizers" or "activators") is often a scam. Officially, you can only unlock the bootloader through Mi Unlock service with a 168-hour wait.

Mi Account problems after reset

The most difficult situation is when, after resetting, the phone requires you to enter a password from a Mi Account that was previously synced with the device. This is a Find Device feature, similar to iCloud protection, which links the device to the account at the server level.

If you know your username and password, just type them in. If you changed your password recently, make sure your phone is connected to the Internet (Wi-Fi or SIM card) so that the data can be updated. In case the data is lost, the only legal way is to restore access through id.mi.com using a linked phone number or email.

There's a myth that flashing your phone removes Mi Account locking. This is wrong. Locking is checked every time you connect to the activation servers. Even after you completely flash through your computer, the authorization request will remain until the device is removed from the trusted list in your account settings.

What to do if you bought a used phone with a lock?
If you bought a phone with your hands and it was blocked by someone else's account, contact the seller. Only he can remotely untie the device through the Mi Cloud website. Without his participation, the phone will turn into a brick.

Hardware causes of blocking and hanging

It's not always software. If a Xiaomi phone is locked and doesn't respond to buttons, it could be a hardware malfunction. A common problem is a touchscreen or display plume failure. You can check this by plugging in an external one. USB-mouse-over OTG.

Also, a bloated battery can cause blockages, and as the battery increases in volume, it presses the board and plumes, causing short circuits or contact disruptions. Visually inspect the back cover: if it has moved away or cracks have appeared, the problem is likely physical.

  • πŸ”‹ Check the charging indicator: if it doesn't light up, it may be a faulty port or power controller.
  • 🌑️ Overheating: If the phone is hot, let it cool 20-30 minutes before switching on.
  • πŸ’§ Moisture: Water ingress can cause button contacts to close, simulating a blockage.

In cases of hardware malfunctions, software methods are useless and can even harm, and if there is no sign of life after connecting to the charger for an hour, a diagnosis at the service center is necessary.

πŸ’‘

Hardware locking is often disguised as software. If a reset via Recovery didn't help and the phone is behaving strangely (heating, not charging), look for a problem in the hardware.

Prevention of blocking and data retention

To avoid such situations in the future, it is important to maintain digital hygiene. Regularly back up important data. In the Xiaomi ecosystem, this can be done through the Mi Cloud or locally to your computer. Saved contacts, photos and notes are easy to restore on a new device or after a reset.

Write your passwords in a safe place. Using password managers or a paper notebook lying in a safe place will save you from losing access. It is also not recommended to turn off security features such as Find Device if you are afraid of theft, but be sure to remember the login details.

Keep an eye out for system updates. Often newer versions of MIUI and HyperOS fix bugs that may have caused cyclical reboots or false locks, but updates are only needed with a charged battery and stable Wi-Fi.

πŸ’‘

Set up automatic sync of contacts and photos with Google Photos and Google Contacts. This will take a couple of minutes, but will save your data in the event of a complete loss of access to your phone.

Can I unlock Xiaomi without losing data?
Officially, no, unless you forgot your screen password and didn't enable the unlock function through Mi Account beforehand. Password reset always leads to data deletion for security reasons. The only exception is if you remember the Mi Account password and enabled remote unlock in the cloud settings, but this feature doesn't work stable on newer versions of Android.
How long does the lock last after entering the wrong password?
Android uses exponential latency, and after a few missteps, the phone locks up for 30 seconds, then for 1 minute, 5 minutes, 15 minutes, and so on, and after many failed attempts, you may need to log in to your Google account or reset completely.
What to do if the phone is locked after the update?
If the lock happened immediately after the software update, try a forced reboot (Power + Volume Up 10-15 seconds). If this did not help, it may have been an error and you will need to flash it through your computer using the Mi Flash Tool.
Will the reflashing help to unblock the Mi Account?
No. Mi Account lock is tied to a unique device identifier (IMEI) on the company's servers, and flashing only changes the files on the phone itself, but when you connect to the Internet, the server will again request authorization from the previous owner.