Forgotten passwords on Xiaomi are a situation that one in five users encounter, and according to statistics from service centers, 18% of device locks are related to loss of access due to a loss of access. PIN-Fortunately, unlocking a smartphone without losing data is possible in 60% of cases, if you follow proven patterns and take into account the nuances of firmware. MIUI.
In this article, we will discuss 5 official and informal unlocking methods, including Mi Account, Fastboot and Recovery modes, as well as tools like ADB and Mi Flash Tool. Particular attention will be paid to models with Qualcomm Snapdragon chip (for example, Redmi Note 12 Pro+ or POCO F5), where the process is different from devices on MediaTek (like Redmi 10A).
1.Preparation for unlocking: what to do before blocking
If youβre reading this article in advance, you have a chance to avoid losing data completely if you block it in the future. Most of Xiaomiβs unblocking methods require one of three conditions:
- π A linked and confirmed Mi Account (even if you donβt remember your password).
- π§ Included debugging by USB (Settings β The phone. β Version. MIUI β 7 times to tap β Additionally. β For developers β Debugging by USB).
- πΎ Backup data to Mi Cloud or PC (via Mi) PC Suite).
If none of the conditions are met, you only have to reset hard through Recovery, but it will delete all the data on the device.
β οΈ Note: On Xiaomi models with MediaTek (e.g. Redmi) 9A or POCO C50) debugging USB It turns off automatically after you restart. To keep it active, activate the Unlock option in the developer menu. OEM.
If your phone is already locked, move to the next section. If you are not, do at least one of the steps above.
- Open Settings β Xiaomi account.
- Log in to an existing account or create a new one (remember the login and password!).
- Confirm your account via SMS or email.
2 Unlocking through Mi Account (official method)
This is the safest method, but it only works if:
- π± The phone is connected to the Internet (Wi-Fi or mobile data).
- π Mi Account was tied to the device before being blocked.
- π§ You remember your account login and password (or you can restore them).
Instructions:
- On the lock screen, tap Forgot Password? (or Forgot Password?).
- Select Sign in via Mi Account.
- Enter your login (email or phone number) and password. If you don't remember your password, click Forgot your password? and follow the recovery instructions.
- After successful authorization, the system will prompt you to create a new password or PIN-code.
If the buttons forgot the password?
- π Restart the phone (clip the power supply) + Volume up for 10 seconds).
- π Connect to Wi-Fi on the lock screen (swipe down) β wifi icon).
- π Repeat the attempt to log in via Mi Account.
β οΈ Note: On Xiaomi models with MIUI 14 and newer (e.g. Xiaomi) 13T or Redmi Note 12) after 5 failed attempts to log in through Mi Account, the device is locked for 24 hours!
Make sure your phone is connected to the internet
Remember the username and password from Mi Account
Check that your account was linked before the lock
Have access to email/SMS password-recovery-->
3. Recovery Mode (Universal Method)
If the Mi Account is not tied or you don't remember the login details, you're left resetting to factory settings, which works on all Xiaomi models, but deletes all data on the device, including photos, messages and apps. SD-map (if it is installed).
Step-by-step:
- Turn off the phone (squeeze the power for 10 seconds).
- Press Power + Volume up at the same time and hold for 10-15 seconds until the Mi logo appears.
- Release the buttons and you will be taken to the Recovery Mode menu (on some models you need to select a language).
- Use volume buttons for navigation and power for selection. Select Wipe Data β Wipe All Data.
- Confirm the action (Confirm).
- After reset, select Reboot β Reboot to System.
The phone will reboot and suggest that you set it up as new, and this method works even if you have to:
- π Password forgotten, PIN graphical.
- π΅ There is no internet connection.
- π« Not tied to Mi Account.
| Xiaomi model | Combination of buttons for Recovery | Features |
|---|---|---|
| Redmi Note 10/11/12, POCO X3/X4 | Food + Volume up | Menu in English, sensor working |
| Xiaomi 12/13, Mi 11 | Food + Volume up | Requires confirmation via Mi Account after reset |
| Redmi 9/9A/9C, POCO M3 | Food + Volume up | Menu in Chinese, use volume buttons |
| Xiaomi Pad 5/6 | Power + Volume up + Down | In addition, a connection to the PC may be required. |
β οΈ Attention: On devices with MIUI 13 and later, after reset via Recovery, you may need to enter data from Mi Account, which was previously tied.If you do not remember them, the phone will turn into a "brick" (it will not load beyond the activation screen).
4 Unlocking via Fastboot and Mi Flash Tool (for advanced)
This method is suitable if:
- π§ The phone was debugging on. USB.
- π» Have access to a Windows computer.
- π You are ready for possible data loss (but the chance of saving it is higher than when resetting through Recovery).
The work will require:
- π₯ Mi Flash Tool (official utility from Xiaomi).
- π Firmware for your model (download from xiaomifirmwareupdater.com).
- π Cable USB (preferably original).
Instructions:
- Turn off the phone.
- Press Power + Volume down for 10 seconds to enter Fastboot Mode (a hare in a hat-eared hat will appear).
- Connect the phone to the PC.
- Launch the Mi Flash Tool, press Select and select the downloaded firmware (file with.tgz extension).
- At the bottom, choose Clean all and lock or Clean all.
- Press Flash and wait until it is completed (5-10 minutes).
After the reboot, the phone will be unlocked, but:
- π± All data will be deleted (except files on the SD-map).
- π If the firmware is not suitable for your model, the device may stop turning on ("brick").
- π On some models (Xiaomi 13 Pro, Redmi) K60) You need to unlock the bootloader through the Mi Unlock Tool.
What to do if the Mi Flash Tool can't see your phone?
5. Unlock via ADB (if debugging is enabled)
The method only works if USB debugging has been activated before locking, it allows you to delete a password file without completely resetting, but requires command line skills.
What do you need?
- π» Computer with installed ADB and Fastboot.
- π USB-cable.
- π± Phone with a charge of at least 50%.
Instructions:
- Connect the phone to the PC.
- Open the command line (Windows) or terminal (macOS/Linux) and type:
adb shell
su
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
rebootIf you reset the password, try the adbd error:
- π Reboot your phone in Fastboot and enter:
fastboot boot twrp.img
adb shell
[Repeat commands above]Where to download twrp.img? For your model, look at the official TWRP website.
- π« Nana MIUI 14 and later, this method may not work due to enhanced protection.
- π§ If the password is still there after the reboot, try repeating commands or resetting data via Recovery.
π‘
Before using ADB, check if the device in the system is determined by the adb device command. If the list is empty, install the drivers or try another cable.
6 Unlocking through a service center: when nothing helps
If all of the above methods have failed, you should contact the service center, which is true if:
- π Your phone is blocked by your Mi Account and you donβt remember the login details.
- π΅ The device does not turn on after unsuccessful manipulations with the firmware.
- π οΈ Smearing equipment is required (for example, for discharge) NVRAM MediaTek).
Official Xiaomi service centers in Russia and CIS:
- π List on the official website.
- π° The cost of unlocking: from 1,500 to 5 000 rubles (depending on the model and complexity).
- β³ Timeframe: 1-3 working days.
What to bring with you:
- π Passport (to confirm ownership).
- π± Charger (if the phone is discharged).
- π Check or box (if the phone is guaranteed).
β οΈ Note: Unofficial services may offer "unblocking through" IMEI" It's often a fraud, because it can cause the phone to lose its connection to the network or turn into a brick. Xiaomi's official services never use this method.
π‘
Contacting the service center is the only legal way to unlock Xiaomi if the Mi Account password is forgotten and USB debugging is not enabled.