Why is standard reset not suitable?
Forgetting the password from Xiaomiβs smartphone is a frustrating situation, but itβs not a dead end. The main problem is that most βfastβ solutions (like resetting via Recovery Mode) result in a complete cleanup of internal memory, which means youβll lose photos, correspondence, documents, and even saves in games. But the good news is that the manufacturer has provided several ways to unlock without losing data, if you act carefully and follow the verified instructions.
In this article, we will look at all the working methods for 2026, from official (via Mi Account) to technical (using ADB and Fastboot). It is important to understand that success depends on several factors: whether the Xiaomi account was tied, whether debugging is enabled over USB, and which version of MIUI is installed on the device. For example, on new models (Xiaomi 13/14, Redmi Note 12), some life hacks stopped working due to tighter security.
Before you start, check:
- πΉ Is the smartphone connected to the Internet (Wi-Fi or mobile network)? This is critical for methods with Mi Account.
- πΉ Do you have access to an email or phone number linked to your Xiaomi account?
- πΉ Is the device enabled by debugging USB (Settings β The phone. β Version. MIUI β 7 times to tap)?
Method 1: Unlocking with Mi Account (official method)
This is the most reliable and recommended way for Xiaomi, but it only works if:
- The smartphone is linked to the Mi Account.
- The device has access to the Internet (via Wi-Fi or SIM-card).
- You remember the login and password from the account.
Instructions:
- On the locked screen, tap Forgot Password? (or Forgot Password).
- Choose Unblock with Mi Account.
- Enter the email or phone number associated with the account.
- Confirm your login via SMS or email (depending on your security settings).
- Follow the instructions on the screen to reset the lock password.
β οΈ Warning: If your smartphone isn't connected to the Internet, it won't work (POCO F5, Redmi K60) After 5 failed attempts to enter a password, the option Forgot the password? can disappear for 24 hours.
Check your internet connection
Make sure you remember the username/password from your Mi Account.
Battery charge of at least 30%
A second phone/computer is on hand to confirm the code
-->
Method 2: Use of ADB (for advanced users)
If debugging is on USB (USB Debugging) was enabled before blocking, you can try to delete the file with the password through ADB. This method works for MIUI 12/13/14, It requires a computer and basic command line skills.
Steps:
- Connect your smartphone to your PC through USB-cable (original!).
- Open the command line (Win + R β enter cmd).
- Enter the commands in turn: 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 reboot
- After resetting, the password should be reset.
β οΈ Note: On new models (Xiaomi 13 Ultra, Redmi Note 12 Pro)+) Password files can be stored elsewhere or encrypted. If you reboot android.process.acore, you'll have to reset.
What if the ADB canβt see the device?
Method 3: Fastboot and Data Partition Editing
This method is more complicated, but suitable for devices where debugging is done. USB It will require an unlocked bootloader β if it is not, the method will not work, POCO X4 Pro).
Instructions:
- Turn off your smartphone and press Volume Down + Power to log into Fastboot Mode.
- Connect the device to the PC and check its visibility with the command: fastboot devices
- Download a modified boot image for your model (e.g, magisk_patched.img).
- Please use it for a short time: fastboot boot magisk_patched.img
- After downloading to the system, delete password files via ADB (as in Method 2).
Critical: This method can trigger anti-Rollback protection on new devices (e.g. Xiaomi 12T). Check your modelβs compatibility on the XDA Developers or 4PDA forums before using it.
π‘
If after the firmware magisk_patched.img phone is stuck on startup the logo, press the volume up + Meals for food 10 second-on-seconds.
Method 4: Safe Mode bypass (for older versions of MIUI)
On MIUI 10/11 (e.g. Redmi 8, Mi 9 Lite), you can try to log in to Safe Mode and delete your password through settings.
How to do this:
- On the lock screen, press the Power button before the turn off menu appears.
- Tap and hold the power off until a request to switch to Safe Mode appears.
- Confirm the transition. After download, delete the password in Settings β Screen Lock.
β οΈ Warning: Safe Mode disables all third-party applications, including launchers. If the screen remains black after deleting the password, restart the device.
Method 5: Contact Xiaomi Service Center
If none of the methods worked, the official service remains. Xiaomi can unlock the device by documents (passport + purchase check), but:
- π Confirmation of ownership (guarantee card or check) will be required).
- π° The cost of the service is from 1,500 to 3,000 rubles (depending on the model).
- β³ Term - from 3 to 7 days (if there is no queue).
Where to look for service:
- π Official website: mi.com/ru/service.
- π Maps. Google/Yandex by request "Xiaomi Service Center [your city]".
- π οΈ Authorized Partners (check reviews!).
Important: Some "unofficial" services offer unlocking via EDL Mode (Firmware Emergency Mode).This works, but requires special hardware (Qualcomm HS-USB QDLoader 9008) and can void the warranty.
| Method | Conditions required | Data retention | Difficulty |
|---|---|---|---|
| Mi Account | Linked account, Internet | β Yes. | β |
| ADB | USB debugging enabled | β Yes. | βββ |
| Fastboot | Unlocked loader | β Yes. | ββββ |
| Safe Mode | MIUI 10/11 | β Yes. | ββ |
| Service centre | Phone IDs. | β οΈ Depends on the service. | ββ |
What do you do if nothing helps?
If all methods are exhausted and the data is critical, there are two options:
- TWRP data extraction: Install custom recovery (TWRP) and copy files to your PC. You'll need an unlocked bootloader.
- Chip-off method: Removal of memory chip (eMMC/UFS) and reading data through a programmer. 5 000 RUB), but guaranteed to keep the information.
β οΈ Note: The chip-off method is only suitable for phones with a non-removable battery (for example, Xiaomi Mi 11). 9A) risk of damage to the fee.
π‘
If the phone was bought with hands, the chances of unlocking without losing data are minimal - the previous owner could have tied his Mi Account or enabled encryption.