The forgotten password on Xiaomiβs lock screen is a situation that one in five users encounter. According to service center statistics, 38% of unlock requests are for devices with MIUI 14/15, where security has become stricter, the problem is compounded by the fact that after 5 failed input attempts, Xiaomi can lock the device for 30 minutes or even require a reset to factory settings.
In this article, we will discuss 7 formal and informal unlocking methods, from simple (via Mi Account) to complex (using ADB and Fastboot), and focus on data retention: 60% of the time, data can be recovered if you follow instructions. Importantly, the methods are different for devices with Snapdragon chip and MediaTek, which affects the availability of EDL mode.
1 Unlocking through Mi Account (official method)
The most secure method that works on all Xiaomi, Redmi and POCO devices with a linked Mi Account is suitable even if you do not remember the password from the account β it can be restored via email or phone.
Algorithm of action:
- πΉ Enter any password on the lock screen 5 times in a row until the message βForgot passwordβ appears?".
- πΉ Click on this caption and select "Unblock via Mi Account".
- πΉ Enter the username and password from your Mi Account (if you forgot, restore it via account.xiaomi.com).
- πΉ Confirm the unlock through SMS or email (depending on security settings).
β οΈ Note: If the device was bought with hands and the previous owner did not untie his Mi Account, this method will not work).
π‘
If you have two-factor authentication enabled in Mi Account, prepare backup codes or access to an authorizing application (Google Authenticator, Authy) in advance.
| Conditions | Does the method work? | Is the data preserved? |
|---|---|---|
| Mi Account Account is tied up | β Yes. | β All data will be saved. |
| The device reset to factory settings earlier | β No (requires proof of old password) | β |
| Device in Lost Mode (Lost) | β No. | β |
| MIUI 12 and older | β Yes. | β Yes. |
2 Unlocking through Find Device (remote)
The βFind Deviceβ feature (similar to Googleβs βFind Phoneβ) allows you to remotely unlock Xiaomi if:
- π± Device connected to the Internet (Wi-Fi or mobile network).
- π Battery level above 15%.
- π The "Find Device" function was activated in the settings (Settings) β Mi Account β Find Device).
Instructions:
- Go to i.mi.com and log in.
- Select the locked device in the list.
- Click "Unlock" and confirm the action.
- Wait for the synchronization (can take up to 5 minutes).
π΄ Limitations:
- β Does not work on devices with MIUI Russia (due to restrictions on Google Mobile Services).
- β If the device is enabled "Developer Mode" with debugging by USB, Remote unlocking can be blocked.
3. Reset the pattern lock via Safe Mode (without loss of data)
This is a good idea if you have forgotten the pattern lock or PIN-code, but remember the password from Mi Account. Safe Mode temporarily disables third-party applications, including the screen blocker from third-party manufacturers (for example, AppLock).
How to start Safe Mode:
- Turn off the device with a long press on the power button.
- Hold the Volume Down + Power button until the Mi logo appears.
- Release the buttons when you see the words "Safe Mode" in the lower left corner.
In safe mode:
- π Go to Settings. β Passwords and security β Screen locking.
- π Enter the password from Mi Account to confirm.
- π Install a new pattern lock or PIN-code.
- π Reboot the device to exit Safe Mode.
What to do if Safe Mode does not start?
4. Unlock via Fastboot (for advanced users)
The method is suitable if:
- π§ You have access to a PC with Xiaomi drivers installed.
- π§ Debugging is on. USB (Settings β The phone. β Version. MIUI β 7 times to activate the developer mode).
- π§ Device unlocked to work with Fastboot (checked by the team fastboot oem device-info).
β οΈ Warning: The wrong commands in Fastboot can turn a device into a brick. If you're not sure, contact the service center.
Step-by-step:
- Turn off the device and press Volume Down + Power to log into the Fastboot.
- Connect your smartphone to your PC via USB.
- Open the command line (Windows) or terminal (macOS/Linux) and do:
fastboot oem unlock
fastboot flashing unlock
fastboot rebootAfter the reboot, the device will be unlocked, but all data will be deleted. This method does not work on devices with a locked bootloader (Redmi Note 10 Pro, POCO X3 Pro and later).
Install Mi Flash Tool from the official website|Download the firmware for your model|Check the battery level (minimum 50%)|Connect the original USB-cable|Disable antivirus on PC-->
5. EDL mode usage (for Snapdragon devices)
Emergency Download Mode (EDL) is an emergency firmware mode that allows you to reflash the device even with a locked bootloader. It works only on devices with a Qualcomm Snapdragon processor (POCO F4, Xiaomi 12T, Redmi K50, etc.).
π΄ Risks:
- β οΈ You need an authorized Xiaomi account to unlock. EDL (2023).
- β οΈ The wrong firmware can damage IMEI.
- β οΈ On devices with MIUI 14+ EDL It can be blocked at the hardware level.
Instructions:
- Download the.tgz firmware for your model from the Xiaomi Firmware Updater website.
- Install the QDLoader HS-USB driver (manually through Device Manager).
- Connect the device turned off to the PC, holding Volume up + Volume down.
- Start the Mi Flash Tool, select the firmware and press Flash.
π‘
EDL mode is the last chance to unlock a device without visiting a service center, but requires technical skills. On devices with MediaTek, instead of EDL, BROM mode is used, which is unlocked via the SP Flash Tool.
6. Bypassing the lock via ADB (if debugging is enabled)
If the device is enabled debugging over USB (Settings β For developers β Debugging over USB), you can delete the file with the password via ADB. The method works on MIUI 12-15, but requires access to a PC.
Instructions:
- Connect the device to the PC and open the command line.
- Enter commands:
adb shell
su
rm /data/system/gesture.key
rm /data/system/locksettings.db
rm /data/system/locksettings.db-wal
rm /data/system/locksettings.db-shm
rebootAfter the reboot, the lock will be reset. If the commands do not work, try:
adb shell am start -n com.android.settings/.ChooseLockGenericβ οΈ Attention: On devices with MIUI 15 and encryption FBE (File-Based Encryption: This method will cause data loss after rebooting.
7. Contact the Xiaomi Service Center
If none of the methods worked, you can contact an authorized Xiaomi service center, which is the only official way to unlock devices with:
- π The Bootloader Locked (Bootloader Locked).
- π Lost Mi Account of the previous owner.
- π Damaged firmware after unsuccessful manipulations.
π What's needed:
- π Check or warranty card (to confirm possession).
- π Passport (for devices linked to Mi Account).
- π° Payment for the service (from 1,500 to 5,000) β½ model-wise).
The average unlock time in the service is 1-3 days. In some cases (for example, for the POCO F5 Pro or Xiaomi 13 Ultra), you may need to send the device to a regional center.
π‘
Before visiting the service center, back up your IMEI (if the device is switched on). To do this, type in the phone dialer *#06# and take a picture of the screen.