Introduction: Can you unlock Xiaomi without resetting?
A forgotten password on a Xiaomi smartphone is one of the most common problems among MIUI users. Unlike other brands, Redmi, POCO or Mi phones have dual protection: a local PIN/pattern lock and binding to a Mi Account account, which makes unlocking difficult, but does not make it impossible.
The main fear of users is data loss. Photos, correspondence, saved passwords from social networks and banking applications... Resetting to factory settings through Recovery erases everything, but there are methods of bypassing lock without formatting. In this article, we will discuss 5 working ways to unlock Xiaomi (including models from 2023-2026) with saving files, and also tell you which ones are suitable for devices with a locked bootloader.
Important: The effectiveness of the method depends on the version of MIUI (12, 13 or 14), the status of the Mi Account (whether it is connected to the device), and whether you have USB debugging. If you have never enabled Developer Options, some of the methods will not be available β but not all.
1 Unblocking through Mi Account (official method)
The easiest and safest method is to use a linked Mi Account, which works if:
- π± Device connected to the Internet (Wi-Fi or mobile network).
- π You remember the username and password from the Mi Account that was linked to the phone.
- π On the lock screen there is a button "Forgot your password?" (available on the screen). MIUI 12β14).
Instructions:
- On the lock screen, tap βForgot password?β (or βForgot password?β on English firmware).
- Enter the email or phone number associated with your Mi Account.
- Confirm the entrance through SMS-account code.
- Create a new PIN/pattern lock.
β Pros: No computer, data is saved, works on all models (Redmi Note 12, POCO X5, Mi 13, etc.).
β Cons: If your Mi Account is not tied or your password is forgotten, it won't work.
Password bypass through Fastboot mode (for devices with unlocked bootloader)
If the bootloader on your Xiaomi is unlocked (for example, you have previously installed custom firmware), you can reset your password through Fastboot without losing data.This method is suitable for Redmi, POCO and Mi models based on Qualcomm Snapdragon (for example, Redmi Note 11 Pro+, POCO F4).
You'll need:
- π» Computer with Windows/Linux.
- π Cable USB (preferably original).
- π οΈ Quickboot (part of Android) SDK Or Mi Flash Tool).
Step-by-step:
1. Turn off the phone.
2. Press the buttons Volume down + Power before the logo Fastboot (robot with a gear).
3. Connect the device to the PC.
4. Open the command line (Windows) or the terminal (Linux/Mac) and execute:
fastboot devices
(Your Xiaomi serial number should be displayed)
5. Enter a command to delete the password:
fastboot erase userdata
WARNING! This command does NOT erase user data, but only resets lock settings.
Reset the device:
fastboot rebootMake sure the bootloader is unlocked (checked by the fastboot oem device-info team)
Download and install Xiaomi USB Drivers
Connect your phone to the back USB 2.0 port on your PC (front ports may not work)
Disable the antivirus (it can block fastboot)
-->
β οΈ Note: If the phone is stuck on the boot after the fastboot erase userdata command or requires you to enter the password again, then the bootloader is blocked. EDL-regime (section 4).
3. Use of ADB (if USB debugging is enabled)
If your Xiaomi has previously been activated debugging via USB (in Settings β About Phone β MIUI version 7 times tap, then in Additional β For developers), you can reset your password through ADB without losing data.
Algorithm:
- Connect your phone to your PC via USB.
- Open the command line and execute: adb shell su rm /data/system/gesture.key # graphical key /data/system/password.key # for PIN-rm /data/system/locksettings.db rm /data/system/locksettings.db-wal rm /data/system/locksettings.db-shm reboot
- After resetting, the password will be reset.
πΉ For MIUI 14: If the above commands didnβt work, try an alternative method:
adb shell am start -n com.android.settings/.ChooseLockGenericThis will open the password change menu directly.
π‘
If the su command doesn't work, then there are no root rights on the device, in which case try to do without it by executing commands without su (efficiency is lower, but sometimes works).
β οΈ Note: On some models (Redmi) 10C, POCO M4 Pro) after such manipulations, it may be necessary to re-assign the Mi Account. Prepare the username and password in advance!
4. Unlock through EDL-Mode (for locked bootloader)
EDL-Emergency Download Mode is an emergency boot mode that allows you to flash a device even with a locked bootloader.It is suitable for Xiaomi on Qualcomm processors (most Redmi models and the likes of the two). POCO).
Unlocking will require:
- π» Windows PC.
- π Cable USB Type-C (required original!).
- π οΈ Mi Flash Tool and firmware for your model.
- π Authorized Mi Account (for new devices).
Instructions:
- Turn off the phone.
- Press Volume Up + Volume Down + Power for 10-15 seconds at the same time. The screen should remain black (this is normal).
- Connect the device to a PC. Device Manager should appear Qualcomm HS-USB QDLoader 9008.
- Install the Qualcomm Drivers driver (you can download it on XDA Developers).
- Open the Mi Flash Tool, select the firmware (for example, fastboot_rom For your model, press Refresh. The device must be determined.
- At the bottom, select Clean all and lock (this will save data!) and click Flash.
β Important: On new devices (Redmi Note 12 Pro)+, Xiaomi 13T and newer EDL-Regime requires authorization of the Mi Account. If it is not, use the services of the service center.
What if the Mi Flash Tool canβt see the device?
5. Alternative methods: Unblocking through service centers and third-party services
If independent attempts have not been successful, two options remain:
| Method | Cost | Timeline | Data retention | Suitable for |
|---|---|---|---|---|
| Official Xiaomi Service Center | 1 500β4 000 β½ | 1-3 days | β No (full reset) | All models, including new ones (Xiaomi 14, Redmi Note 13) |
| Unofficial services (Chip-off, JTAG) | 2 000β8 000 β½ | 1-5 days | β Yes (unless the memory chip is damaged) | Older models (Redmi 9, POCO X3) with a JTAG connector |
| Online Services (Remote Unblocking) | 500β2 000 β½ | 10β60 minutes | β Yes (unless there are hardware locks) | Devices with unlocked bootloader or vulnerabilities in MIUI |
β οΈ Attention: Online services often require payment upfront and do not guarantee results (4PDA, XDA). Also be wary of βunlock in 5 minutesβ offers β this could be a scam.
πΉ Tip: If data encryption was enabled on the phone (in Settings) β Security, even after resetting the password, the files may not be available, in which case only a complete reset will help.
6. How to avoid blocking in the future: prevention
To avoid the problem of forgotten passwords again, follow these guidelines:
- π Use biometric unlocking (fingerprint or facial recognition) as a backup option.
- π Write it down. PIN-code to a secure location (e.g., Google Keep or an encrypted notebook).
- π Update regularly MIUI β In new versions, vulnerabilities that allow to bypass the lock are fixed.
- π Link your Mi Account and make sure you have access to a backup. email/phone.
- πΎ Enable backup in Settings β The phone. β Backup.
πΉ For developers: If you work with them often ADB or Fastboot, create a script to automatically reset your password and store it on your PC. ADB:
@echo off
adb shell
su
rm /data/system/gesture.key
rm /data/system/password.key
rebootSave him like reset_lock.bat and launch if necessary.
π‘
The most reliable way to unlock without losing data is to combine a tied Mi Account with USB debugging enabled, and if both conditions are met, the chances of success are 90%.