A forgotten password on Xiaomi is a situation that one in five users face. The main problem is that a standard Recovery reset erases all data, including photos, contacts and messages. But there are legal ways to unlock without losing information, if you act carefully and follow proven algorithms.
In this article, we will discuss all the current Xiaomi unlock methods (including models from 2023-2026) that run on MIUI 14/15 and HyperOS firmware. From official restoration via Mi Account to technical workarounds using ADB and Fastboot. Importantly, not all methods are universal β their effectiveness depends on the firmware version, device model and status of the Mi Account.
Before you start, check:
- π Is there a Mi Account attached (even if you donβt remember your login/password).
- π± Is it on the device? OTG-Requirement (required for some methods).
- π§ Is there access to a PC with installed Xiaomi drivers.
1 Unlocking through Mi Account (official method)
The most reliable and safe method is if the account Mi is tied on a smartphone. It works even on a locked screen, but requires access to the email or phone number to which the account is linked.
Algorithm of action:
- On the locked screen, tap Forgot Password? (or Forgot Password).
- Choose the recovery method: SMS or Email.
- Enter the confirmation code received on the linked number/mail.
- Create a new password or pattern lock.
β οΈ Note: If two-factor authentication is enabled on your device, you will need to enter code from the Mi Security app (available only on another device with the same account).
What to do if you do not have access to email/phone?
2. Bypassing the lock via ADB (for power users)
The method is suitable if the smartphone is enabled debugging over USB (USB Debugging) and there is access to a PC. It works on MIUI 12-15 and HyperOS, but requires installed ADB drivers.
Step-by-step:
- Connect your smartphone to your PC via USB (use the original cable).
- Open the command line (Win + R β cmd) and type: adb devices The device should appear in the list.
- Follow 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 restarting, the screen lock will be reset. β οΈ Note: On some models (Redmi Note) 11/12, POCO F4/F5) This method can cause data loss in applications (but the files in the memory will remain).
Install Xiaomi drivers on PC|Turn it on. USB Debugging before blocking|Use the original USB-cable|Check the version. ADB (not less than 1.0.41)-->
3 Unlocking via Fastboot (without data loss)
The method works if the device unlocked the bootloader (Bootloader Unlocked). Suitable for models Xiaomi 11T/12/13, Redmi K40/K50 and others with Snapdragon processors.
Instructions:
- Turn off your smartphone and press the power. + Volβ for the entrance to the Fastboot.
- Connect the device to the PC and check the connection with the command: fastboot devices
- Run the command to delete the lock files: fastboot erase userdata But instead use: fastboot delete-logical-partition product (this will save user data).
- Reboot the device: fastboot reboot
β οΈ Note: On HyperOS devices, this method can cause a cyclic reboot, in which case you will need firmware through the Mi Flash Tool.
| Xiaomi model | Support for Fastboot Unlocking | Risk of data loss |
|---|---|---|
| Redmi Note 10/11/12 | Yes (requires an unlocked Bootloader) | Low (unless you use erase userdata) |
| POCO X3/X4/X5 | Yes. | Medium (possible malfunctions in the application) |
| Xiaomi 13/14 Ultra | Partially (depending on the firmware version) | High (brick risk) |
| Redmi 9A/9C | No (closed-out Bootloader) | β |
4.Use of Safe Mode (Temporary Bypass)
If a third-party launcher is installed on the device (for example, Nova Launcher), you can try temporarily bypassing the lock through Safe Mode.
How to activate:
- On a locked screen, hold the Power button until the off menu appears.
- Press and hold the βStopβ (or βPower offβ) option before a Safe Mode login request appears.
- Confirm the transition. The device will restart in safe mode.
- Remove or disable an application that may have caused a lock (such as App Lock).
β οΈ Warning: Safe Mode disables all third-party applications, including Google Services, which may result in loss of synchronization of data (such as contacts or notes).
π‘
If Safe Mode doesnβt help, try connecting your device to Wi-Fi in this mode and restoring access through Mi Account (if your account was linked).
5 Unlocking through Xiaomi Service Centers
If the independent methods do not work, official Xiaomi service centers can unlock the device without loss of data, but only if the following conditions are met:
- π Availability of a check or warranty card (proof of purchase).
- π Device not blacklisted (not stolen).
- π Your smartphone has a Mi Account attached (even if you donβt remember the data).
The cost of the service: from 1,500 to 3,000 rubles (depending on the model), the term - 1-3 working days, the guarantee of data security is provided only in authorized centers.
π How to find the nearest service:
- Go to the Xiaomi Service website.
- Select City and Service Type: Unlock Device.
- Check out the reviews about the center (avoid unofficial workshops).
π‘
Official unlocking in the service is the only legal way to guarantee the safety of data 100%.
6. Alternative methods (with the risk of data loss)
If none of the above methods work, there are radical measures that do not guarantee the safety of data, but can return access to the device:
- π Hard Reset via Recovery: Wipes all data but unlocks your smartphone. To log in to Recovery, press Power + Vol+.
- π₯ Firmware via Mi Flash Tool: Suitable for devices with unlocked Bootloader. Use fastboot firmware (not clean all!).
- π§ Use of boxes (MTK/Qualcomm): It requires special equipment and skills, suitable for models on MediaTek (Redmi). 9/10) or Snapdragon (POCO X3).
β οΈ Attention: Firmware through EDL-Emergency loading mode on new models (Xiaomi) 13/14, Redmi Note 12) It can be permanently blocked IMEI, if you use unofficial firmware.
Frequent Mistakes and How to Avoid Them
When trying to unlock, users often face typical problems:
| Mistake. | Reason. | Decision |
|---|---|---|
| Device not found in ADB | There are no drivers or cables | Install Mi PC Suite or drivers manually through Device Manager |
| Remote: Partition Not Found in Fastboot | Incorrect command or blocked Bootloader | Check the status of Bootloader with the fastboot oem device-info team |
| Mi Account does not accept confirmation code | Two-factor authentication or account locking | Contact Xiaomi with proof of ownership of the device |
πΉ Tip: Before any manipulations, make a backup IMEI (If the device is defined in Fastboot. Use the command to do this:
fastboot getvar imeiSave the output to the text file.