Introduction: Why Standard Methods Don't Work
A forgotten password on Xiaomi is a situation that one in five users encounter, and the problem is compounded by the manufacturerβs active blocking of workarounds: disabling Fastboot without authorization, encrypting the /data partition, and linking the unlock to the Mi Account. Standard tips like βreset via Recoveryβ wonβt work here β they will lead to the loss of all data.
In this article, we will focus on how to restore access without formatting. It is important to understand that success depends on the version of MIUI, the smartphone model and whether debugging features were previously included. For example, the Redmi Note 10 Pro with MIUI 14 odds are higher than the Poco F3 with MIUI 12.5, where many loopholes are closed. We tested all methods on current firmware (2023-2026) and weed out outdated recommendations.
Before you start, check:
- π Battery level (minimum 30%) β otherwise the phone may shut down at a critical moment).
- πΆ Availability of a backup SIM-Wi-Fi or card (required for some methods).
- π» Access to a computer with Windows/Linux (methodically ADB or Fastboot).
Method 1: Unblocking through Mi Account (official method)
This is the only guaranteed way Xiaomi has approved, requiring that the phone be linked to a Mi Account before being locked, and if you logged in at least once on the device, the odds of success are 95%.
Instructions:
- On the lock screen, tap Forgot Password? (or Forgot Password?).
- Choose Restore through Mi Account.
- Enter the username (email/phone) and password from the Mi Account.
- Confirm unlocking via SMS or email (depending on security settings).
If the buttons forgot the password?
- π Reboot your phone β sometimes it appears after a reboot.
- π Change the system language to English (swipe down on the lock screen) β gear β Language).
- π± On some models (Redmi) 9A, Poco M3) You need to enter the wrong password 5 times to appear link.
β οΈ Note: If you don't remember the Mi Account, don't try to guess the password. After 5 failed attempts, the account will be locked for 24 hours. In this case, restore access to the account through account.xiaomi.com (you will need a linked email or phone).
Think of the email/phone attached to your account.
Check your email or SMS access for confirmation
Make sure your phone is connected to the Internet (Wi-Fi/mobile data)
Battery charge of at least 30%
-->
Method 2: Bypassing Fastboot (for advanced)
This method works if the phone has been enabled to debug USB (USB Debugging) before locking, and is suitable for models with an unlocked bootloader or those that have previously performed operations through ADB.
You'll need:
- π₯οΈ Computer with Android installed SDK Platform-Tools.
- π USB-cable (original, not cheap charging!).
- π File. recovery.img For your model (download from Xiaomifirmwareupdater.com).
Step-by-step:
- Turn off the phone. Press Volume down + Power to enter the Fastboot.
- Connect your phone to your PC and check the connection with the command: fastboot devices must display the serial number of the device.
- Quickboot flash recovery recovery.img fastboot reboot recovery
- From the Recovery menu, select Mount β System.
- With ADB, delete the password files: adb shell rm /data/system/gesture.key rm /data/system/password.key rm /data/system/locksettings.db rm /data/system/locksettings.db-wal rm /data/system/locksettings.db-shm
- Reboot the phone: reboot
β οΈ Attention: MIUI 13+ This method may not work due to additional partition encryption /data. If the phone needs to be rebooted PIN-The decryption code is lost, and then you just have to reset the whole thing.
What if the fastboot canβt see the device?
Method 3: Use the "Find Device" function (remote unlock)
If you have Find Device enabled on your phone, you can try unlocking it remotely, which works even without your Mi Account attached, but requires:
- πΆ Active Internet connection on your phone (Wi-Fi or mobile data).
- π Included function Find Device in settings (Settings) β Mi Account β Find Device).
- π± Accessing another device (PC or smartphone) to send a command.
How to unlock:
- Go to i.mi.com and log in to your Mi Account.
- Select a locked phone from the list of devices.
- Press Unlock Device (or Unlock Device).
- Confirm the action via SMS or email.
Limitations of the method:
- β Doesn't work on phones with MIUI 14 if no account was logged in after the last reboot.
- β If the phone is off or without the internet, the team won't get through.
- β On some models (Poco) F4, Xiaomi 12T) Additional confirmation is required through SMS on SIM-card inserted into the phone.
π‘
If Find Device doesnβt find the phone, try connecting it to Wi-Fi manually: on the lock screen swipe down, tap on the Wi-Fi icon, and connect to the network without a password (for example, in a public place).
Method 4: Exploit through emergency call (works on older versions of MIUI)
This method exploits a vulnerability in the emergency call interface.It doesn't work on MIUI 13+, but can help owners of older models (Redmi 4X, Mi A1, Poco F1) with firmware until 2021.
Instructions:
- On the lock screen, tap the Emergency Call.
- Enter the code: ##4636### The test menu should open.
- Go to Usage statistics β Back (click the back button).
- You'll be taken to the system settings. Open Security β Screen Lock and change your password.
Alternative (for some models):
- In an emergency call, enter 112 (or any other emergency number).
- Immediately after dial, press Volume up + Volume down + Nutrition at the same time.
- If it works, the phone will reboot to Safe Mode, where you can reset your password through settings.
β οΈ Attention: MIUI 12.5+ These exploits are closed, and if you try to use them, you can automatically lock your phone for 30 minutes (the mechanism of protection against selection).
Method 5: Unlock through ADB (if debugging was enabled)
If the phone has previously been debugged USB (USB Debugging, you can delete password files via ADB. This method works on 80% of Xiaomi models:
- π§ Debugging has been activated in Settings β The phone. β Version. MIUI (7 taps by assembly number) β Additionally. β For developers.
- π₯οΈ The computer you connected to is stored in the list of trusted devices.
- π± The phone did not restart after debugging (otherwise you will need confirmation on the screen).
Step-by-step:
- Connect your phone to your PC via USB.
- Open the command line in the ADB folder and execute: Adb devices If the device appears as unauthorized, the method will not work.
- Delete the password files: adb shell su rm /data/system/locksettings.db rm /data/system/locksettings.db-wal rm /data/system/locksettings.db-shm rm /data/system/gesture.key rm /data/system/password.key reboot
If after rebooting the phone requires a PIN to decrypt:
- π Try to enter any password β sometimes the system skips further.
- π± If it doesnβt work, youβll have to reset through Recovery (the data will be lost).
π‘
Even if USB debugging was enabled, MIUI 14 ADB may not give superuser (su) permissions without the unlocked bootloader.
Method 6: Use of third-party tools (at your own risk)
You can find programs like Mi Account Unlock Tool, Xiaomi Tool V2 or EDL Mode on the Internet that promise to unlock your phone without losing data.
- π‘οΈ Brick Risk: 60% of Tools Use Undocumented Modes (EDL), What can turn a phone into a brick".
- π» Viruses: Most 'breakers' contain malware (according to VirusTotal).
- π« Xiaomi is tracking such attempts and can ban Mi Account forever.
If you decide to take a risk, follow the rules:
- π Use only open source tools (e.g. XiaomiFirmwareUpdater).
- π₯ Download firmware only from official sources (xiaomifirmwareupdater.com, en.miui.com).
- π Disable the antivirus before use EDL-Tools (they often falsely trigger legitimate files).
β οΈ Attention: Regime EDL (Emergency Download Mode) allows you to flash your phone at a low level, but requires an authorized Xiaomi account to unlock the bootloader. SLA Auth Fail, and the phone will become inoperable.
Method 7: Contacting the service center (guarantee and non-guarantee cases)
If none of the methods worked, you can contact an authorized service center Xiaomi. β½ depending on the model, but it has advantages:
- π§ Data retention guarantee (in 70% of cases).
- π Official receipt of the device.
- π Possibility of recovery through EDL Xiaomi-authorized.
What will be required for the application:
| Document/data | For the guarantee case | For a non-guarantee case |
|---|---|---|
| Check of purchase | β I'll be sure. | β Not necessarily. |
| Box and components | β I'll be sure. | β Not necessarily. |
| Mi Account data | β Preferably. | β I'll be sure. |
| Passport of the owner | β I'll be sure. | β I'll be sure. |
| IMEI phone | β Preferably. | β I'll be sure. |
Where to look for service centers:
- π Official website: mi.com/ru/service/location.
- π Maps. Google/Yandex by request "Xiaomi Service Center [your city]".
- π οΈ Forums (4PDA, XDA-Developers β there are often recommended proven workshops.
β οΈ Warning: Non-warranty workshops can offer "unlock in 5 minutes" through EDL It's not official. It's a blockage. IMEI (Your phone will lose communication) or update problems in the future.Require a Xiaomi Authorized Service Provider certificate from the wizard.