Why Xiaomi is getting blocked and what to do first
Forgotten password on Xiaomi is a situation that one in five users face. The reasons are trivial: infrequent use of a pattern lock, change of the pattern lock. PIN-It's a complicated code or a used device that already has security installed. MIUI Blocks access to all functions after 5 failed attempts of input, and after 30 attempts may require resetting to factory settings.
Before you start taking drastic measures, check the obvious solutions:
- π Try to enter the last password you use β users often confuse current and previous codes.
- π§ If you have Mi Account linked, try to restore access through forgotten.mi.com (more in the section about the account).
- π± On some models (Redmi Note) 10/11, POCO X3) after 30 The button βForgot your password?β appears in the waiting minutes β do not ignore it.
Itβs important to understand that unlocking methods depend on the version of MIUI. For example, MIUI 14 removed the ability to reset via Fastboot without authorization in the account, and MIUI 12 still worked vulnerability with bypass through ADB. We will look at current ways for 2026, including official and βgrayβ methods.
Method 1: Unlocking with Mi Account (official method)
The safest and most recommended way for Xiaomi is to use a tied Mi Account.It works on all models, starting with the Redmi 4X and later, but requires:
- π Access to an email or phone number linked to an account.
- π Stable Internet connection (Wi-Fi or mobile data).
- π Opportunities to enter a password from your account (if two-factor authentication is enabled).
Instructions:
- On the lock screen, tap "Forgot your password?" (if there is no button, enter any code 5 times in a row).
- Select "Unblock with Mi Account".
- Enter the login (email/phone) and password from the account.
- Confirm the unlock via SMS or email (if requested).
β οΈ Note: If the device was purchased from hand, the previous owner may not have deleted his account, in which case unlocking through Mi Account is impossible - you will need to contact the service center with proof of purchase.
Make sure your phone is connected to the internet
Find the username and password from Mi Account
Check email/phone access for confirmation
Charge your phone at least 30 times%-->
Method 2: Recovery Mode (Data Loss)
If the Mi Account is not tied or you don't remember the login details, you'll have a hard reset via Recovery, which will delete all the data on your phone, including photos, contacts and apps, and is suitable for Redmi, POCO, Mi models on any version of MIUI.
Step-by-step:
- Turn off the phone with a long press of the power button.
- Click the combination: For most models: Volume up + Power. For POCO F1/F2/F3: Volume down + Power.
Mi
Recovery Mode
Use volume buttons for navigation and power button for selection.
Wipe Data β Wipe All Data
Factory Reset
Confirm the action and wait for the process to be completed (5-10 minutes).
Reboot β Reboot to System
| Xiaomi model | Combination for Recovery | Features |
|---|---|---|
| Redmi Note 8/9/10/11 | Volume up + Nutrition | MIUI 13+ may require a password to be entered even in Recovery |
| POCO X3/X4 | Loudness down + Nutrition | In some versions of Recovery in English |
| Mi 11/12/13 | Volume up + Nutrition | After the reset, you will need authorization in the Mi Account |
β οΈ Note: Devices with a blocked bootloader may be asked to log in to Mi Account after a reset, even if the account was not previously linked, and this is protection against theft, and you can't get around it without proof of ownership.
π‘
Before resetting via Recovery, remove SIM-card and memory card β this will speed up the process and reduce the risk of data damage on them.
Method 3: Password bypassing ADB (for advanced users)
The Android Debug Bridge (ADB) method is suitable for devices with USB debugging enabled. If you have previously activated this option in Settings β About Phone β MIUI version (7 times tap to unlock the developer mode), the chances of success are high.
What you need:
- π₯οΈ Computer with Windows/Linux/macOS.
- π USB-cable (original, without damage).
- π οΈ Installed Xiaomi drivers and package ADB Tools.
Instructions:
1. Connect the phone to the PC via USB.
2. Open the command line (Windows) or the terminal (macOS/Linux).
3. Enter the commands in order:
adb shell
su
rm /data/system/gesture.key (for pattern lock)
or
rm /data/system/password.key (for PIN/password)
4.Reboot phone: adb rebootβ οΈ Attention: MIUI 14 This method is blocked by the security system. If the password is still after the reboot, try repeating the command with superuser rights (su), but this requires an unlocked bootloader.
What if the ADB canβt see the device?
Method 4: Use of service codes (hidden menus)
Some Xiaomi models support service codes for lock reset, but this method does not work on all firmware and can vary depending on the region. For example, on Redmi for India and China, code # #7378423# sometimes works, but on global versions it is blocked.
Alternative codes (try at your own risk):
- π’ ##3646633## - Engineering menu (does not reset password, but allows you to check the status of the device).
- π’ ##4636## - Test menu (sometimes contains reset options).
- π’ ##7780## - soft reset (not always deletes the password).
On models with a Qualcomm processor (for example, Redmi Note 10 Pro, POCO F3) sometimes works bypassing through the EDL (Emergency Download Mode), but this requires an authorized Xiaomi account and special software.
Method 5: Contact Xiaomi Service Center
If all previous methods fail, the official way is to contact a service center, which is the only legal way to unlock a device without losing data, if:
- π You have a check or a box of IMEI, proof-of-purchase.
- π Phone not stolen (checked by database) IMEI).
- π± The device is not on the blacklist (lost/stolen).
How the procedure goes:
- Find the nearest service center on mi.com.
- Bring your passport and proof of purchase (check, warranty card).
- The employee will check the IMEI and remove the lock through service tools (usually free if the warranty is valid).
β οΈ In unofficial services may offer to βsweepβ the phone for money, but it is fraught with:
- π« Loss of guarantee.
- π Possible installation of pirated software.
- π Risk of damage to memory module (on Xiaomi with the UFS 2.2/3.1).
π‘
The official service center is the only way to unlock Xiaomi without losing data if the password from the Mi Account is forgotten.
Frequent Mistakes and How to Avoid Them
When trying to remove a password, users often make critical mistakes that can turn a phone into a brick.
- Interrupting the reset process through Recovery: If you take out the battery or force the phone to turn off during Wipe Data, there is a high risk of damage to the /data partition, which will require flashing.
- Using unofficial firmware to bypass passwords. On MIUI 14, this works 10% of the time, but often results in IMEI blocking.
- Trying to enter a password more than 30 times, and on newer models, this will activate anti-theft protection, and the phone will require authorization to the Mi Account even after the reset.
To minimize the risks:
- π Always charge your phone at least 50% before manipulation.
- π Use the original. USB-plug-in.
- π‘ Check the stability of the Internet connection when unlocking with Mi Account.