How to Reset Your Password to Xiaomi Without Losing Data: The Complete 2026 Guide

Forgot the password from Xiaomi and fear losing photos, contacts or messages? This situation is familiar to many: according to statistics, one in five users at least once blocked their smartphone because of a lost device. PIN-Fortunately, it is possible to unlock Xiaomi without resetting data, but only if you follow proven schemes and avoid common errors.

In this article, we will discuss 5 official and informal methods that work on devices with MIUI 12-14 (including Redmi Note 12, POCO X5, Xiaomi 13T and other models). Importantly, not all methods are universal – their effectiveness depends on the firmware version, the type of lock (password, pattern lock, fingerprint) and the associated Mi Account. We will also tell you what actions lead to irretrievable data loss and how to avoid them.

1 Unblocking through Mi Account (official method)

The most reliable method, if your Xiaomi is linked to a Mi Account, is to restore access through the website, which works even when the screen is locked, but requires:

  • πŸ“± Access to another device (PC, tablet, phone) with the Internet;
  • πŸ”‘ Login knowledge (email/phone) and password from the Mi Account;
  • 🌐 Stable connection of a locked smartphone to the network (Wi-Fi or mobile Internet).

Instructions:

  1. Go to account.xiaomi.com and log in.
  2. In the menu, select Devices β†’ Find your smartphone.
  3. Click Find the device, then Unlock the screen.
  4. Confirm the action via SMS or email.

⚠️ Note: If the device has enabled the function Data Protection Mi (in) MIUI 14), after unlocking, you may need to enter the old password to decrypt files, in which case the data will not be available until the correct code is entered.

πŸ’‘

If you don't remember the password from your Mi Account, try to restore it through your linked email or phone number. To do this, click on the login page and follow the instructions.

2.Use of the recovery mode (Recovery Mode)

If you don’t have a Mi Account attached or you don’t remember the login details, you can try resetting your password through Recovery Mode, which is suitable for devices with a bootloader unlocked and requires minimal technical skills.

Important: on some models (Redmi 9, POCO M3), this method can lead to partial data loss (only the settings will be deleted, and the files will remain). On Xiaomi 12/13 with MIUI 14, there is a high risk of a complete reset.

Step-by-step:

  1. Turn off your smartphone.
  2. Press the Power Button + Volume up for 10-15 seconds at the same time until the Mi logo appears.
  3. From the Recovery menu, select Wipe Data β†’ Wipe All Data (use volume buttons for navigation, power button for confirmation).
  4. Confirm the action and wait for the reboot.
What if Recovery Mode asks for a password?
If you want to enter a password after you log in to Recovery, it means that the device has FRP (Factory Reset Protection) activated, in which case you can only unlock through your Mi Account or using your PC and the Mi Flash Tool (see section 4).

Xiaomi modelProbability of data retentionWhether a PC is required
Redmi Note 10/11High (80%)No.
POCO X3/X4Average (50%)No.
Xiaomi 11T/12Low (20%)Yes (for FRP bypass)
Redmi 9A/9CHigh (90%)No.

Password bypass with ADB (for advanced users)

If you have USB debugging enabled on your smartphone (Settings β†’ About Phone β†’ MIUI β†’ 7 times press to activate developer mode), you can reset your password via ADB (Android Debug Bridge), which works on MIUI 12-14, but requires prior preparation.

Tools required:

  • πŸ–₯️ Computer with Windows/Linux/macOS;
  • πŸ”Œ USB-cable (original);
  • πŸ› οΈ Installed drivers Xiaomi and ADB Tools.

Instructions:

1. Connect your smartphone to your PC via USB.


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: reboot

⚠️ Attention: On devices with MIUI 14 and encryption FBE (File-Based Encryption: This method can result in loss of access to internal memory after rebooting. FBE safety-setting.

pattern lock|PIN-code|Password.|Fingerprint/face|I remember.-->

4 Unlock via Mi Flash Tool (for unlocked bootloader)

If previous methods fail, you can still firmware the device through the Mi Flash Tool, which is guaranteed to reset the password, but requires:

  • πŸ”“ Unlocked bootloader (bootloader);
  • πŸ’» Computer with Mi Flash Tool installed;
  • πŸ“„ Official firmware for your model (download at xiaomifirmwareupdater.com).

Step-by-step:

  1. Download and install the Mi Flash Tool.
  2. Unpack the archive with firmware in a folder without Cyrillic characters.
  3. Turn off the smartphone and put it in Fastboot mode (clamp Power + Volume down).
  4. Connect the device to your PC and in the Mi Flash Tool press Refresh.
  5. Select the firmware folder and click Flash (select the Clean All option for a full reset or Save User Data to try saving files).

⚠️ Note: Firmware via the Mi Flash Tool with Clean All option deletes all data, including photos and apps. Save User Data option does not work on all models - check compatibility on forums before using it 4PDA or Xiaomi.EU.

Download the correct version of the firmware for your model|Install Xiaomi drivers on PC|Unlock bootloader (unlocked)|Backup of important data (if possible)|Prepare. USB-cable and charge the phone up to 50%-->

5. Alternative methods (for specific cases)

If the standard methods didn’t help, you can try informal solutions, but they are only suitable for power users:

(a) Use of TWRP (castom recovery):

By installing TWRP, you can manually delete password files (/data/system/locksettings.db). However, this method requires an unlocked bootloader and risks disrupting the system.

(b) Service code circumvention:

Some models (Redmi 5/6) have a combination of #3646633## (Engineering Mode), but newer devices have blocked this method.

(c) Contact the service centre:

If the device is enabled FRP protection and there is no access to the Mi Account, the only legal way to unlock is to contact the official Xiaomi service with purchase documents.

πŸ’‘

Xiaomi service centers can unlock the device without losing data if you have a check or warranty card, but this method takes 3-7 days and is paid.

6. How to avoid data loss when unlocking

Even if you managed to reset your password, you still have the risk of losing your files to minimize the damage.

  • πŸ“± Regularly sync your data with Mi Cloud (Settings) β†’ Mi Account β†’ Mi Cloud);
  • πŸ”„ Use local backup (Settings) β†’ Additionally. β†’ Backup and reset);
  • πŸ’Ύ Save important files to SD-card;
  • πŸ” Set up a Smart Lock (Settings) β†’ Screen locking β†’ Smart Lock for automatic unlocking in secure locations (e.g. at home).

⚠️ Attention: On devices with MIUI 14 and encryption FBE Even a backup in the Mi Cloud may not be available after the password is reset, in which case the data can only be restored through a full reset followed by synchronization.

If you often forget passwords, consider alternative unlocking methods:

  • πŸ‘† Fingerprint (works even when the screen is locked);
  • πŸ‘€ Facial recognition (less safe but convenient);
  • πŸ”‘ Password-picture (pattern lock is easier to remember).

FAQ: Frequent questions about unlocking Xiaomi

Can I reset my password to Xiaomi without losing data if I can’t remember my Mi Account?
Theoretically, yes, but only if the device has FRP protection turned off and the bootloader is unlocked, in which case the ADB or TWRP method will help. However, on new models (Xiaomi 13, Redmi Note 12) without a Mi Account, unlocking is almost impossible without data loss.
Why does the phone ask for an old password after resetting via Recovery Mode?
This means that the device has enabled data encryption (FBE), in which case, even after a reset, the system requires the old password to decrypt files, if you do not remember it, the data will not be available, the solution is a complete reset via the Mi Flash Tool with the Clean All option.
Does the ADB work on Xiaomi with MIUI 14?
On part of the devices yes, but with reservations: If debugging is enabled USB and the bootloader is unlocked - the method will work; If enabled FBE-encryption – after resetting the password, the data may become unavailable; POCO F4/F5 Xiaomi 12S Ultra ADB frequently blocked by the system.
How much does it cost to unlock in the Xiaomi service center?
The cost depends on the model and the region: Redmi 9/10: 1000-1500 rubles; POCO X3/X4: 1500-2000 rubles; Xiaomi 11/12/13: 2000-3000 rubles. The deadline is from 1 to 5 days. Please note: service centers do not guarantee the safety of data when unlocking.
Can I unlock Xiaomi through Google Find My Device?
Unlike pure Android devices, Xiaomi smartphones do not support unlocking through Google Find My Device. The only official way is to account for Mi or contact the service.