The forgotten password on Xiaomi is a situation that one in five users face. The main problem: a standard reset via Recovery Mode erases all data β photos, messages, contacts and installed applications. But there are legal ways to unlock that allow you to save information. In this article, we will discuss 5 proven methods that are relevant to the models of Redmi, POCO and Mi based on MIUI 12-14 and HyperOS.
Itβs important to understand that the effectiveness of the method depends on the firmware version, the device model and the presence of a tied Mi Account. For example, on the Xiaomi 13 Pro with HyperOS, one algorithm will run, and on the Redmi Note 8 with MIUI 12.5 β another, we will describe each option in detail, specify the limitations and warn against common errors that lead to complete data loss or βbrickingβ of the device.
1 Unlocking through Mi Account (official method)
The most reliable and recommended method Xiaomi uses is a tied Mi Account, which works if:
- π± Device connected to the Internet (Wi-Fi or mobile network).
- π You remember the username and password from your Mi Account (or you can restore them).
- π Find Device has been activated in the settings.
Algorithm of action:
- On the lock screen, tap Forgot Password? (or Forgot Password?).
- Select Sign in via Mi Account and enter your account details.
- Confirm unlocking via SMS or email (if two-factor authentication is enabled).
- Set a new password or pattern lock.
β οΈ Note: If the device was purchased from hand and the previous owner did not untie his Mi Account, this method will not work).
2. Password bypass through ADB (for users with USB debugging)
The method is suitable if the smartphone is enabled debugging by USB (USB Debugging) and access to a computer. It's one of the few ways that you can guarantee that you can save all the data, but you need to prepare it.
What you need:
- π₯οΈ Computer with installed Xiaomi drivers and package ADB.
- π USB-cable (preferably original).
- βοΈ Included debugging by USB in the developer settings (Settings) β The phone. β Version. MIUI (tap) β For developers β Debugging by USB).
Instructions:
1. Connect your smartphone to your PC.
2. Open the command line (Windows) or the terminal (macOS/Linux).
3. Enter the commands in order:
adb shell
su
rm /data/system/gesture.key (for pattern lock)
or
rm /data/system/password.key (for PIN/password)
4.Reboot the device: adb rebootOnce the reboot is done, the lock screen will disappear. Importantly, if the USB debugging was not enabled in advance, this method will not work, and some models (such as the POCO F5) may require root access.
What if the ADB canβt see the device?
3. Password reset via Fastboot (without data loss on some firmware)
The method is suitable for devices with an unlocked bootloader. It allows you to reset your password without affecting user data, but it does not work on all models. For example, on the Redmi Note 10 Pro with MIUI 13, the success rate is ~70%, and on the Xiaomi 12T with HyperOS - less than 30%.
Step-by-step:
βοΈ Preparing for reset via Fastboot
- Download Fastboot firmware for your model (for example, tissot_global_images_... for Mi A1).
- Unpack the archive in a folder without Cyrillic characters.
- Open the Mi Flash Tool, select the folder with the firmware.
- Connect the phone in Fastboot mode (clamp Volume down + Power until the bunny with a hat appears).
- In the Mi Flash Tool, select the Clean all and lock option (this is important!), then click Flash.
β οΈ Warning: Do not use the Clean all option without lock - this will lead to locking the bootloader and loss of data! After the procedure, the device will restart without a password, but all files will remain in place.
| Xiaomi model | Probability of success | Requires unlocking bootloader |
|---|---|---|
| Redmi Note 8/9 | 85% | Yes. |
| POCO X3/X4 | 60% | Yes. |
| Mi 11 Lite | 40% | Yes. |
| Xiaomi 13/14 | 20% | Yes. |
4.Use of Safe Mode (for third-party launchers)
If you have a side launcher on your device (like a Nova Launcher or Apex Launcher), you can try bypassing the lock via Safe Mode, which works because all third-party applications, including the screen blocker, are disabled in Safe Mode.
How to activate Safe Mode:
- Press the power button until the shutdown menu appears.
- Tap and hold the option to Turn Off (or Power off) before a request to switch to Safe Mode appears.
- Confirm action. The device will restart.
After downloading in safe mode:
- π Remove or disable the blocking app (if it is third-party).
- π Restart the device in normal mode.
- π Set a new password.
β οΈ Attention: On new versions MIUI And HyperOS, this is a method that's often blocked by the system. If you have a password left after you reboot, try other ways.
π‘
If Safe Mode doesnβt help, try connecting your smartphone to your PC and delete /data/system/locksettings.db via ADB. This will only work if USB debugging is enabled.
5. Official unlock via Mi Unlock (for locked devices)
If you bought your smartphone from hand and you were tied to someone else's Mi Account, the only legal way to unlock it is to use Mi Unlock, which is guaranteed to work, but requires:
- π Documents confirming the purchase (check, contract of sale).
- β³ Wait 7-14 days for the application to be considered.
- π³ Payment for services (from $10. $50 depending on the model).
The unlocking process:
- Go to the Mi Unlock page and create a request.
- Attach scans of documents and IMEI devices (you can find out via *#06#).
- Pay for the service (a link to the payment will come after prior approval).
- Wait for the letter with the instructions for unlocking.
β οΈ Warning: Do not use "grey" unlock services (e.g. via AliExpress or Telegram) They are often fraudulent or exploit vulnerabilities that can permanently lock the device (Red State status in Mi Cloud).
Frequent Mistakes and How to Avoid Them
When trying to reset a password, users often make critical errors that lead to data loss or device failure.
- π Battery discharge during the procedure: If the device turns off during reset via Fastboot or Recovery, it could cause partition damage /data. Always make sure the charge is higher. 50%.
- π Use of informal firmware. Installation of custom ROM (For example, LineageOS) without unlocking the bootloader leads to bootloop ( looped reboot).
- π± Attempting to bypass the "holes" in MIUI. Many YouTube βlife hacksβ (such as TalkBack) have stopped working after the attack. MIUI 12.Not only will they not help, they can trigger the Anti-Rollback.
If you are not sure of your actions, it is better to contact an authorized Xiaomi service center. The cost of unlocking there will be ~ 1500-3,000 rubles, but this guarantees the safety of data and the deviceβs performance.
π‘
None of these methods guarantee 100% data retention, but always back up important files through Mi Cloud or Google Drive in advance.