Forgot the password from Xiaomi and can not unlock the phone? This situation is familiar to many β according to statistics, one in five users at least once faced with locking a device due to loss. PIN-It's a code, a pattern lock, or a password. Thankfully, Redmi smartphones, POCO Other Xiaomi models provide several official and unofficial ways to unblock, some of which allow you to save all data on the device.
In this article, we will discuss 5 proven methods to remove the password from the Xiaomi phone β from the simplest reset via Mi Account to advanced solutions using Fastboot and ADB. Special attention will be paid to the nuances of working with different versions of MIUI (12 to 14) and Android (10-14), and also caution against common errors that can turn the phone into a βbrick.β If you are looking for a way to unlock Xiaomi without losing photos, contacts and applications β here you will find the latest solutions for 2026.
1 Unlocking through Mi Account (official method)
The most secure and recommended method for Xiaomi is to use a tied Mi Account, which works if:
- π± The phone is connected to the Internet (Wi-Fi or mobile network).
- π You remember the username and password from Mi Account that was tied to the device.
- π Find Device has been activated in the settings.
To unblock:
- On the lock screen, click Forgot Password? (or Forgot Password?).
- Select the recovery option through Mi Account.
- Enter your email/phone and password from your account.
- Confirm unlocking via SMS or email (if two-factor authentication is required).
Important: If the device has Mi Data Protection enabled, additional confirmation via SMS or backup email may be required after unlocking.
π‘
If you don't remember the Mi Account password, restore it via the official account.xiaomi.com website before you try to unlock it. Use the same email/phone that was attached to the phone.
2. Reset password via Recovery Mode (with loss of data)
If the Mi Account is not tied or you donβt remember the login details, the only official way is to hard-reset through Recovery Mode, which will remove all data from the phone, including photos, apps and settings, but is guaranteed to unlock the device.
Instructions for Xiaomi/Redmi/POCO:
- Turn off the phone with a long press of the power button.
- Press the combination of Loudness up + Power and hold for 10-15 seconds until the Mi logo appears.
- From the Recovery menu, select the language (usually English or Chinese).
- Go to Wipe Data β Wipe All Data (or Clear Data).
- Confirm the reset by selecting Confirm.
- Once the phone is rebooted, it will be unlocked, but with a clean system.
Turn off the phone completely.
Charge the device at least 30%
Prepare a backup (if you have access to the PC)
Make sure you have the data from Mi Account to re-activate.
-->
Warning: Some Xiaomi models (such as the Redmi Note 10 Pro or POCO X3 Pro) may require data entry from the Mi Account that was previously tied after being reset via Recovery.
Reset via Recovery
Recovery through Mi Account
Used ADB/Fastboot
I went to the service center.
Never blocked your phone.
-->
3. Unlock via Fastboot (for advanced users)
If the standard methods didn't work, you can try to delete the password through Fastboot mode, USB-Xiaomi cable and installed drivers. It is suitable for devices with unlocked bootloader (Unlocked Bootloader).
Step-by-step:
- Install Android Platform Tools (includes fastboot and adb).
- Turn off the phone and press Volume Down + Power to log into Fastboot Mode.
- Connect your phone to your PC and check the connection with the command: fastboot devices If the device is determined, continue.
- Run the command to delete the password (works on some MIUI firmware): fastboot erase userdata fastboot erase locksettings
- Reboot the phone: fastboot reboot
Important: This may not work on new Xiaomi models (such as the Xiaomi 13 or Redmi K60) due to enhanced protection, and after executing commands, the phone may require you to enter Mi Account data at the first setup.
What if the fastboot canβt see the device?
4.Use ADB to delete password (without data loss)
If the phone has been turned on debugging mode USB (USB Debugging, you can try to delete the password through ADB This method only works if you've previously connected your phone to that PC and confirmed debugging.
Instructions:
- Connect your phone to your PC via USB.
- Open the command line in the folder with platform-tools.
- Check the connection: Adb devices
- Delete the password file: adb shell rm /data/system/gesture.key adb shell rm /data/system/password.key adb shell rm /data/system/locksettings.db adb shell rm /data/system/locksettings.db-wal adb shell rm /data/system/locksettings.db-shm
- Reboot your phone: adb reboot
Once you reboot, the password should disappear. If not, try repeating commands or checking if additional protection is included in the MIUI settings.
π‘
The ADB method only works if USB debugging was enabled before the phone locks, and if you've never connected the device to that PC, it won't work.
5. Official unlock through Xiaomi Service Center
If you don't succeed on your own, go to a Xiaomi authorized service center, which is the most reliable, but also the longest way.
- π Check or warranty card (proof of purchase).
- π Passport or other identity document.
- π± The device itself (preferably with a charge of at least 50%).
The cost of the service varies from 500 to 2000 rubles depending on the model and region, and in some cases, the service center may refuse to unlock if the phone is listed in the database of stolen devices.
The list of official Xiaomi service centers in Russia can be found on the website mi.com/ru/service. Before visiting, check by phone whether they are engaged in unlocking passwords - not all centers provide this service.
π‘
If you bought the phone on credit or under contract from the operator (for example, MTS or Beeline), contact them first - sometimes unlocking is included in warranty service.
6. Alternative methods (at your own risk)
If none of the above methods worked, you can find βgrayβ ways to unlock online, such as:
- π§ Use custom firmware (such as LineageOS or Pixel Experience).
- π» Programs like the Mi Flash Tool or SP Flash Tool for reflashing your phone.
- π± Online services offering unlock for a fee (risk of fraud!).
Warning: These methods may:
- π¨ Lead to loss of guarantee.
- π₯ Remove the phone from the system ("BrickingΒ»).
- π΅οΈ Break the law if your device is not yours.
If you do decide to flash it, use only official tools from Xiaomi and make sure that the firmware is compatible with your model. For example, the firmware for the Redmi Note 11 will not work for the POCO X4 Pro, even if they are on the same chipset.
Comparison of Unlocking Methods
| Method | Data retention | Difficulty | PC required | It works on new models. |
|---|---|---|---|---|
| Mi Account | β Yes. | β | β No. | β Yes. |
| Recovery Mode | β No. | ββ | β No. | β Yes. |
| Fastboot | β No. Sometimes yes) | βββ | β Yes. | β οΈ Partially. |
| ADB | β Yes. | ββββ | β Yes. | β οΈ Only with USB Debugging |
| Service centre | β οΈ Depends on the case. | β | β No. | β Yes. |