How to unlock Xiaomi without a password and not lose data: proven ways of 2026

A forgotten password on Xiaomi is a situation that even experienced users face, and the main problem is that most standard unlock methods (such as resetting via Recovery) lead to complete data loss, but there are ways to bypass screen lock without deleting files if you are properly prepared and take into account the nuances of MIUI firmware.

In this article, we will discuss the current methods of unlocking Xiaomi, Redmi and POCO for 2026, including working with ADB, Fastboot, Mi Account and even hardware solutions. We will analyze which methods work on new models (for example, Xiaomi 14 or Redmi Note 13 Pro+), and which are suitable only for older devices with an unlocked bootloader. Importantly, on devices with MIUI 14+ and activated Data Protection feature, some methods may not work due to increased security.

1 Unlocking through Mi Account (official method)

The most reliable and legitimate method is to use a tied Mi Account, which works on all Xiaomi models if:

  • πŸ”Ή Device connected to the Internet (Wi-Fi or mobile network).
  • πŸ”Ή You remember the username and password from the Mi Account tied to the phone.
  • πŸ”Ή The smartphone does not activate the function "Data Protection" (in the MIUI 14+).

Instructions:

  1. On the locked screen, tap the Forgot Password button (usually at the bottom of the screen).
  2. Select Sign in via Mi Account and enter the authorization details.
  3. Confirm unlocking via SMS or email (if two-factor authentication is enabled).
  4. Set a new password or pattern lock.

⚠️ Note: If the Data Protection function is activated on the device (included in Settings) β†’ Password and security, after unlocking through Mi Account, the phone will require you to enter the old password to decrypt data.

πŸ“Š What kind of smartphone you Xiaomi?
Xiaomi 13/14 Series
Redmi Note 12/13
POCO F/X series
Old model (until 2020)
other

2.Use of ADB (for USB debugging devices)

The ADB (Android Debug Bridge) method is suitable if USB debugging was previously enabled on your smartphone. This is rare, but if you have set up a phone for development or connected it to a PC, there is a chance. The method works on MIUI 12-14, but may not work on new models with enhanced protection (for example, Xiaomi 14 Ultra).

What you need:

  • πŸ–₯️ Computer with Windows/Linux/macOS.
  • πŸ”Œ USB-cable (original, do not damage the port!).
  • πŸ“₯ Established ADB and Fastboot.

Step-by-step:

  1. Connect your smartphone to your PC and open the Command Prompt (Windows) or Terminal (macOS/Linux).
  2. Enter the command to check the connection: adb devices If the device is displayed, go further. If not, install Xiaomi drivers.
  3. Delete the password file (for the pattern lock): adb shell rm /data/system/gesture.key For PIN/password: adb shell rm /data/system/password.key
  4. Reboot the device: adb reboot

⚠️ Attention: MIUI 14+ gesture.key and password.key can be stored in an encrypted partition. If the password is not reset after rebooting, try an alternative command:

adb shell am start -n com.android.settings/.ChooseLockGeneric

It will call the password change menu, but will require you to enter the old one (if it does not reset).

Install ADB and Fastboot|Download Xiaomi drivers for your model|Check the debugging on-line USB (If not, the method will not work)|Prepare original USB-cable-->

3. Unlock via Fastboot (for unlocked bootloader)

If your Xiaomi has a Bootloader Unlocked, you can reset your password through Fastboot mode. This method does not delete data, but requires technical skills. Suitable for Redmi, POCO and Xiaomi models with an unlocked bootloader (checked by the fastboot oem device-info team).

Instructions:

  1. Turn off your smartphone and press Volume Down + Power to log into the Fastboot.
  2. Connect the device to the PC and open the terminal.
  3. Check the connection: fastboot devices
  4. Delete password files (similarly) ADB): fastboot erase userdata ⚠️ This command does not format a section /data, It just resets the lock settings.
  5. Reboot the device: fastboot reboot

πŸ”Ή Important: On some models (for example, POCO F5) After this procedure, you may need to re-activate Mi Account. If the phone requests a password from the account, enter it - the data will remain in place.

What if the Fastboot can’t see the device?
If the fastboot device team doesn’t show you your smartphone: 1. Check the drivers (install the Mi Flash Tool). 2. Try another one. USB-cable or port (preferably) USB 2.0). 3. On Windows, disable driver signatures: type in the command line bcdedit /set nointegritychecks on and restart the PC. 4. If used macOS/Linux, Add the rule for udev (instructions are available on LineageOS Wiki).

4. Bypassing locks via Safe Mode (for older versions of MIUI)

Nana MIUI 10-12, you can try to delete the password through Safe Mode.The method works if the lock is installed by a third-party application (for example, AppLock), and not the system. PIN-For new versions. MIUI this way is irrelevant.

How to turn on Safe Mode:

  1. On the locked screen, press the Power button until the off menu appears.
  2. Tap and hold the option to Turn Off (or Reboot) before a request to switch to Safe Mode appears.
  3. Confirm the reboot. When you turn on, you'll see Safe Mode at the bottom of the screen.

Further action:

  • πŸ”“ If the lock was from a third-party app, remove it through Settings β†’ Annexes.
  • πŸ”§ If the password is system, try resetting it through Settings. β†’ Password and security (sometimes Safe Mode allows you to change your settings without entering your current password).

⚠️ Attention: B MIUI 13+ Signing into Safe Mode may require you to enter a password. If this method does not work, move on to other ways.

5. Hardware methods (for experienced users)

If the software fails, hardware solutions remain, requiring disassembly of the device or the use of specialized equipment, suitable for models where data protection is not activated (for example, Redmi 9A, POCO M3).

Options:

MethodDescriptionRisks.Models.
Short-circuiting of contactsPower out of the memory module by closing the test points on the board, requires a soldering iron and circuitry.Failure of the motherboard, loss of warranty.Xiaomi until 2020 (e.g. Redmi Note 7)
Use of boxing (UFi, EasyJTAG)Connecting via JTAG or ISP to reset a password requires the purchase of equipment (~$200-$500).Firmware damage, IMEI lock.Any model, but new (for example, Xiaomi 13T) requires bypass protection.
Replacement of the eMMC chipTransferring data to a new chip with pre-dumped firmware is expensive and difficult.Data loss in case of incorrect soldering, high cost.Xiaomi/Redmi/POCO with a removable memory chip.

πŸ”Ή Warning: Hardware methods void warranty and can cause the device to fail completely. If you have no experience in soldering or electronics, you should contact a service center. On newer models (such as the Xiaomi 14), these methods often don’t work because of hardware protection (Qualcomm Secure Boot).

πŸ’‘

Before disassembling your smartphone, take a picture of all the plumes and screws. Use plastic blades to avoid damaging the case. If you're not sure, don't take any chances!

6. Alternative methods (for specific cases)

If standard methods don’t work, try these options:

  • πŸ“ž Calling a locked phone: Call the device from another phone, take a call, and while you're talking, try opening Settings through the notification panel. MIUI 14+ This method doesn't usually work.
  • πŸ”„ Firmware rollback: If a custom firmware (for example, LineageOS) was installed on the smartphone, you can try to roll back to stock MIUI Data can be saved, but the risk of losing it is high.
  • πŸ“§ Restore via Google: On some models (e.g., Google Restore, POCO X3) After 5 failed attempts to enter a password, a button appears: Forgot the password? with the recovery option via Google Account.

πŸ”Ή Important: On devices with MIUI 14 and later, many alternative methods are blocked. For example, bypassing through Google Account is disabled due to Xiaomi's security policy.

πŸ’‘

If the smartphone activates the Data Protection feature (MIUI 14+), unlocking without data loss is almost impossible, in which case the only way out is to reset via Recovery and delete all files.

FAQ: Frequent questions about unlocking Xiaomi

Can I unlock Xiaomi 13/14 without losing data?
On Xiaomi 13/14 with MIUI 14+ and activated Data Protection function, unlocking without reset is impossible. The only official way is to enter a password from Mi Account, but if the Data Protection function is enabled, after unlocking you will need an old password to decrypt files.
What to do if you forget your Mi Account password?
Restor access via the official Mi Account website. You will need access to the email or phone number associated with your account. If two-factor authentication is enabled, confirm the recovery via SMS or backup email. Without access to Mi Account, you cannot officially unlock your phone.
Does the method work with ADB on Xiaomi with a blocked bootloader?
No. The ADB requires an unlocked bootloader or USB debugging enabled before locking. If the debugging wasn't activated in advance, it won't work. On newer models (e.g. Redmi Note 13 Pro), Xiaomi blocks access to ADB in a locked state.
Can I unlock POCO F5 via Fastboot without losing data?
On POCO F5 with the unlocked bootloader, you can try the fastboot erase userdata command, but it does not guarantee data safety. In practice, it often leads to resetting. If the bootloader is blocked, this method is not available. The alternative is to use Mi Account, but only if the Data Protection function is disabled.
How much does it cost to unlock in the service center?
Cost depends on model and method: Software unlock (via Mi) Account/ADB): 500–1500 β‚½. Hardware (JTAG, contact-closing): 2000–5000 β‚½. Replacement of the eMMC chip: 5000–10 000 β‚½ (In official Xiaomi service centers, unlocking without a purchase check is usually not performed.