A forgotten password on a Xiaomi smartphone is a situation that thousands of users face every day. Unlike other brands, Redmi, POCO or Mi phones have an additional layer of protection through binding to Mi Account, which complicates the unlocking process. Without the right actions, you risk permanently losing access to data or turning the gadget into a brick.
In this article, we will look at all the current ways of unlocking, from official (via Xiaomi account and reset settings) to technical (using ADB and Fastboot), and pay special attention to bypassing the lock without losing data β rare information that you will not find in standard instructions, and you will learn what actions lead to a hard lock device and how to avoid it.
Why Xiaomi is blocked when the wrong password is used
Xiaomi smartphones use a layered security system that is different from standard Android locking.
- π Local. PIN/Password is the standard screen lock that you set in the settings. 5 Failure to enter the system requires waiting 30 Seconds, the waiting time increases.
- π± Mi Account β a Xiaomi account that can block the device remotely (Find the device function) or require login/password input after resetting settings.
- π‘οΈ Protection against discharge (FRP) β If the phone was enabled Mi Account and activated the option βFind the deviceβ, after hard reset you will need to enter account data.
The main problem is that even after resetting your settings through Recovery, your phone can remain locked if you don't know the username and password from Mi Account, which is protection against theft, but it also creates difficulties for legitimate owners.
β οΈ Note: If you bought the phone with your hands and the previous owner did not untie his Mi Account, you can unlock the device only through the official Xiaomi service (you need a check or a sales contract).
Newer models (starting with MIUI 13) have added Safe Mode β if you type the wrong password 10 times in a row, the phone will prompt you to log in via Mi Account or wait for unlock after 24 hours, but this mechanism does not work on all firmware.
Method 1: Unlocking with Mi Account (official method)
The most reliable and recommended way for Xiaomi is to use a tied Mi Account, which works if:
- π§ Remember the email and password from Xiaomi account.
- π± Mobile Internet or Wi-Fi (for authorization) is enabled on the phone).
- π The device was not reset to factory settings (otherwise you will need to enter account data after restarting).
Instructions:
- On the lock screen, enter any password 5 times in a row until the message Forgot the password? or Unblock through Mi Account appears.
- Click on this caption and enter the email/phone linked to your Xiaomi account.
- Enter your account password. If you forgot, use the recovery function at account.xiaomi.com.
- After successful authorization, the system will offer to set a new lock password.
Check your internet connection (turn on mobile data or Wi-Fi)
Make sure you enter the right email (registration is important!)
If the account is not tied, this method will not work.
Try to restore the password through the computer if it does not work on the phone.-->
If an error fails to unlock after entering the account data, the reasons may be as follows:
- π No Internet connection (check mobile data or connect to Wi-Fi).
- π Xiaomi servers are temporarily unavailable (try it later).
- π« Account blocked for suspicious activity (you need to unlock through support).
β οΈ Warning: If you are trying to unlock a hand-held phone and the previous owner hasnβt untie his Mi Account, this wonβt work.
Method 2: Reset to factory settings (Hard Reset)
If you donβt remember the Mi Account or lock password, the only option is a full reset, which will delete all data from your phone, including photos, messages and apps. However, newer models (Redmi Note 12, Xiaomi 13 and later) may require data entry from Mi Account after a reset if the Find Device feature was previously activated.
Instructions for resetting via Recovery Mode:
- Turn off the phone with a long press on the power button.
- Press the button combination: For most models: Volume up + Power. For POCO and some Redmi: Volume up + Volume down + Power.
Mi
Recovery
Wipe Data
Factory Reset
Yes
Reboot
| Xiaomi model | Combination for Recovery | Do you need a Mi Account after a reset? |
|---|---|---|
| Redmi Note 10/11/12 | Volume up + Nutrition | Yes, if it was on Find the device |
| Xiaomi 11/12/13 | Volume up + Nutrition | Yes. |
| POCO F3/F4/F5 | Volume up + Volume down + Nutrition | Yes. |
| Redmi 9/9A/9C | Volume up + Nutrition | No (on old firmware) |
If after resetting the phone requires you to enter Mi Account data, and you do not know them, there are two options:
- Contact the Xiaomi service center with documents on the phone.
- Use informal bypass methods (see Method 4), but they are not suitable for all models.
Redmi Note 10/11/12|Xiaomi 11/12/13|POCO F3/F4/F5|Redmi 9/9A/9C|Another model-->
Method 3: Unlocking through ADB (for advanced users)
If you have USB debugging enabled on your phone and you have access to your computer, you can try resetting your password through ADB (Android Debug Bridge), which only works if you meet two conditions:
- π The phone previously activated the option of debugging USB (Settings β The phone. β Version. MIUI (press 7 times) β Additionally. β For developers β Debugging by USB).
- π» You have a computer with Xiaomi drivers and tools installed ADB.
Instructions:
- Connect your phone to your computer through USB-cable (original!).
- Open the command prompt (Win + R β enter cmd) and execute the commands: adb devices If the device appears in the list, continue. If not, install drivers or check the cable.
- Enter the command to delete the file with the password: adb shell rm /data/system/gesture.key or for newer versions of MIUI: adb shell rm /data/system/locksettings.db adb shell rm /data/system/locksettings.db-wal adb shell rm /data/system/locksettings.db-shm
- Reboot your phone: adb reboot
After rebooting, the lock password should reset. If not, try repeating the steps or using an alternative command:
adb shell am start -n com.android.settings/.ChooseLockGenericπ‘
If the adb device command does not find the device, try reinstalling the drivers via the Mi PC Suite or manually through Windows Device Manager.
β οΈ Attention: On models with MIUI 14 and later, this method may not work due to enhanced security, also after resetting the password through ADB Mi Account issues may arise (re-authorization will be required).
Method 4: Bypass locking through Fastboot (for tech-savvy)
If ADB It doesn't help or debug USB If you're not able to unlock your phone, you can try to unlock it through Fastboot, which requires an unlocked bootloader, which isn't always possible without data loss. POCO).
Step-by-step:
- Turn off your phone and put it into Fastboot mode: Click Volume Down + Power before the Fastboot logo appears (a cartoon labeled Fastboot).
fastboot devicesfastboot oem unlockAttention!
boot.img
TWRP
fastboot flash boot twrp.img
fastboot reboot recoveryTWRP
Advanced β File Manager
/data/system/gesture.key
/data/system/locksettings.db
Reboot the phone.
This method is only suitable for users with experience with custom firmware. For beginners, the risks are:
- π¨ The device brick (turning into a brick) with incorrect actions.
- π Loss of warranty (if the bootloader was blocked).
- π± Delete all data without recovery.
What if the Fastboot canβt see the device?
Method 5: Officially Unlocking through Xiaomi Service Center
If all previous methods fail, you can contact an authorized service center, which is the only legal way to unlock your phone if:
- π You have a check or a sales contract (proof of ownership).
- π The phone is tied to someone else's Mi Account (for example, after buying from hand).
- π± The model does not support unofficial unlock methods (for example, Xiaomi 13 Ultra with enhanced protection).
How the procedure goes:
- Find the nearest service center on Xiaomiβs website.
- Take with you: Locked phone, proof of purchase (check, invoice, contract), passport (for proof of identity).
Xiaomi
Mi Account
The process can take from a few hours to 5 working days.
The cost of the service varies from 500 to 2000 rubles depending on the model and region. In some cases, unlocking can be free (if the phone is guaranteed and you provide all the documents).
β οΈ Warning: Unofficial services that offer undocumented Mi Account unlocking often use fraudulent schemes, including the risk of account hijacking, installing spyware, or losing access to your phone altogether.
Frequent Mistakes and How to Avoid Them
When trying to unlock Xiaomi, users often make critical mistakes that make things worse.
| Mistake. | Effects of consequences | How to avoid |
|---|---|---|
| Resetting via Recovery without detachment Mi Account | Phone requires account data after rebooting | Check the account binding in Settings β Mi Account β Find the device before resetting |
| Use of informal firmware | Device Brick or Loss of IMEI | Switch only official ROMs through the Mi Flash Tool |
| Attempt to unlock through ADB without root rights | Error of permission denied | Get root rights through Magisk or TWRP |
| Entering the wrong password more than 20 times | Hard locking for 24-48 hours | Use Mi Accounts after 5 unsuccessful attempts |
Another common problem is that the phone doesn't turn on after it's reset, and it's because:
- π Battery discharge (charge your phone before manipulation).
- π Fastboot Firmware (use only official files for your model).
- π± Damaged section. EFS (Reflashing is required through the Mi Flash Tool).
π‘
If the phone hangs on the Mi logo after the reset, try going to Fastboot and flashing stock firmware through the Mi Flash Tool with the clean all option.