Why Xiaomiโs screen is blocked and what to do about it
A locked screen on a Xiaomi smartphone is a situation that one in five users encounter, and the reasons range from trivial forgetfulness (password or pattern lock) to failures after a MIUI update. But whatever the reason, the main thing is not to panic. 90% of the time, the device can be unlocked without data loss if you follow proven algorithms.
Modern models of Redmi, POCO Xiaomi (starting with the Mi 8 and newer) use multi-level protection: from standard PIN-But even the most advanced biometrics can't save you if you forget your backup password. Fortunately, the manufacturer has provided several formal and informal ways to restore access โ from simple data entry Mi Account to complex manipulations through Fastboot.
It's important to understand that the newer the MIUI model and version, the harder it is to get around the lock. For example, on Xiaomi 13 Pro with MIUI 15, unlocking through ADB may not work without first activating the debugging over USB. But on Redmi Note 10 with MIUI 12, this method often helps. So before you start, check the model and the firmware version, this will save time.
Method 1: Unlocking with Mi Account (official method)
The safest and most recommended way for Xiaomi is to use a tied Mi Account, which works on all devices with MIUI, if you previously:
- ๐น Log into a phone account.
- ๐น Connected the device to the Internet (Wi-Fi or mobile network)
- ๐น Do not turn off the function "Find the device" in the settings
Instructions:
- On the lock screen, tap Forgot password? (or Forgot password? on English firmware).
- Choose Restore through Mi Account.
- Enter the email or phone number associated with the account and the password.
- Confirm your login via SMS or email (if two-factor authentication is enabled).
- Follow the systemโs prompts to create a new password or pattern lock.
โ ๏ธ Note: If you do not remember the data from Mi Account, restore them on the official website account.xiaomi.com. Using third-party services to "hack" the account is fraught with blocking IMEI device.
Make sure your phone is connected to the internet.
Check if the โFind Deviceโ function is enabled in your account settings
Prepare an email/phone and password from Mi Account
Have access to mail or SMS to confirm
-->
Method 2: Recovery Mode (Data Loss)
If Mi Account is not tied or you don't remember the data, the radical method is hard reset through recovery mode, which erases all the data on the device, including photos, contacts and apps. Use it only as a last resort!
Step-by-step instructions for most Xiaomi/Redmi/POCO models:
- Turn off the phone with a long press of the power button.
- Hold the combination: ๐น Loudness up + Food for most models ๐น Loudness up + Loudness down + Power for some older devices (e.g. Redmi) 4X)
Mi
Recovery Mode
Wipe Data
Clear Data
Wipe All Data
Reboot
โ ๏ธ Note: Some models (e.g. Xiaomi Mi) A1/A2 With pure Android, the Recovery menu may be different.
What happens if the Recovery Mode does not open?
Method 3: Unlocking via Fastboot (for advanced users)
The method via Fastboot is suitable if:
- ๐น The device is debugging on USB (USB Debugging)
- ๐น You can access a computer with installed Xiaomi drivers and the Mi Flash Tool
- ๐น You are ready for possible data loss (depending on the selected teams)
Algorithm of action:
- Install the Mi Flash Tool and Xiaomi drivers on PC.
- Turn off the phone and put it in Fastboot mode: Clip Volume Down + Power before the hare appears in the hat-eared (logo Fastboot)
- Connect the device to the PC through USB-cable.
- Open the command line (Windows) or terminal (macOS/Linux) in the folder with the platform-tools (from Android SDK) and execute the command to check the connection: fastboot devices If the device is determined (its serial number appears), continue.
- To reset your password without losing data (does not work on all models), type: fastboot erase frp Then restart your phone: fastboot reboot
โ ๏ธ Warning: Fastboot erase userdata or fastboot erase persist commands will result in a complete data reset! Use them only if you are ready to lose all information on the device.
๐ก
Before working with Fastboot, back up your data via Mi PC Suite if your phone is at least somehow responsive to your computer connection.
Method 4: Use ADB (if debugging was enabled)
If the phone has previously been activated debugging over USB (USB Debugging in the developer settings), you can try unlocking the screen through ADB. This method saves data, but requires preliminary preparation.
Instructions:
- Connect your phone to your PC via USB (use the original cable!).
- Open the command line in the folder with the platform-tools (from Android SDK).
- Check the device connection: Adb devices If the phone appears in the list, follow the following commands.
- Delete password files (works on the MIUI beforehand 12): adb shell rm /data/system/gesture.key adb shell rm /data/system/password.key adb shell rm /data/system/locksettings.db adb shell rm /data/system/locksettings.db-wal adb shell rm /data/system/locksettings.db-shm
- Reboot the device: adb reboot
โ ๏ธ Attention: MIUI 13+ and new models (Xiaomi) 12/13 series, Redmi Note 11/12) This method may not work because of the increased protection, so try an alternative command:
adb shell am start -n com.android.settings/.ChooseLockGenericIt runs the wizard setting a new password.
Method 5: Unlocking through Xiaomi Service Center
If you don't succeed, contact the official Xiaomi service center, which is the only legal way to unlock your device without risking damage or loss of warranty.
- ๐น Guaranteed result (if the phone is not blacklisted) IMEI)
- ๐น Maintenance of official guarantee
- ๐น Data recovery (in some cases)
What will be required for the application:
- ๐ Passport holder (or power of attorney if your phone is not yours)
- ๐ฑ The device itself with a battery charge of at least 30%
- ๐ณ Checks or warranty card (if any)
- ๐ง Data from Mi Account (if linked)
The cost of unlocking in 2026 varies from 1500 to 4000 rubles depending on the model and the complexity of the work. For example, for Xiaomi 13 Ultra, the price can reach 5000 rubles due to the complexity of hardware protection.
Official reset via Mi Account
Hard Reset in Recovery Mode
Fastboot or ADB
I went to the service center.
I haven't tried it yet, I'm looking for a solution.
-->
Method 6: Bypassing the lock via EDL Mode (emergency method)
EDL Mode (Emergency Download Mode) is an emergency firmware mode that allows you to reflash a device even with a locked bootloader.
- ๐น Knowledge of firmware and tools like Mi Flash Tool or QFil
- ๐น Having the right firmware for your model
- ๐น Special cable (or ability to solder the device into the EDL testpoint)
โ ๏ธ Attention: Incorrect actions in EDL Mode can turn a phone into a brick, a non-functional device that is not switched on or detected by a computer:
- ๐ธ You have experience in Xiaomi devices
- ๐ธ You have found the exact firmware for your model and region
- ๐ธ Ready for possible loss IMEI or serial number
Short instructions (for experienced users):
- Download firmware in.tgz or.fastboot format for your model from the official Xiaomi website.
- Unpack the archive and install the Mi Flash Tool.
- Transfer the phone to EDL Mode: ๐น Through a button combination (e.g. Volume up) + Loudness down + Power on a phone turned off) ๐น Through testpoints (requires disassembly of the device)
Qualcomm HS-USB QDLoader 9008
Mi Flash Tool
Flash
๐ก
EDL Mode is the last chance to bring the phone back to life if other methods have failed, but without experience, it is better to consult specialists to avoid aggravating the situation.
Frequent Mistakes and How to Avoid Them
When trying to unlock, users often make critical errors that can lead to complete data loss or โbrickingโ of the device, the most common of which are:
| Mistake. | Effects of consequences | How to avoid |
|---|---|---|
| Use of informal firmware | IMEI blocking, loss of warranty, unstable operation | Download the firmware only from the official website |
| Interrupting the firmware process | The phone is not turned on ("brick") | Don't turn it off. USB-cable and do not turn off the PC until it is completed |
| Reset via Recovery without backup | Loss of all data (photos, contacts, messages) | Before resetting, try saving data via Mi PC Suite |
| Attempt to unlock through third-party services | Data theft, viruses, blocking of Mi Account | Use only official methods or service centers |
| Wrong firmware choice (for example, global instead of Chinese) | Errors in the operation of the communication module, camera, sensors | Check the firmware conformance to the model and region (EEA, Global, China) |
โ ๏ธ Warning: If after a failed unlock, the phone stopped turning on or got stuck on the Mi logo, do not try to repeat the actions.