Forgot. PIN-Xiaomi Phone Code: 5 Ways to Unlock Without Losing Data (and Loss)

Forget it. PIN-Smartphone code is a bad situation, but it's not a bad one, especially if you're talking about Xiaomi phones, where the manufacturer has provided several official and unofficial unlock methods, the main thing is not to panic and not try to guess the code using the method of scientific poke: After 5-10 failed attempts, the device can lock for 24 hours or completely erase all data.

In this article, we will discuss all the current ways to unlock for Xiaomi, Redmi and phones. POCO (including models 2023–2026 yearly, taking into account the specifics of MIUI 14/15. From simple methods using a Mi Account to radical ones, through fastboot or service centers, you will also learn how to minimize data loss and what to do if the phone requires verification of the old one. PIN-post-reset.

Spoiler: If you have a Mi Account tied and the internet is on, you have a 90% or higher chance of unlocking your phone without losing data, or you'll have to donate files or contact the service.

1 Unblocking through Mi Account (the safest way)

This method works if:

  • πŸ“± Your phone has a Mi Account attached (even if you don’t remember your password).
  • 🌐 Internet access (Wi-Fi or mobile network).
  • πŸ”„ In the settings enabled data synchronization.

After 5 failed attempts to enter PIN-If you have a password button on the screen, or Unblock it through Mi Account, click on it and follow the instructions:

  1. Enter the username (email or phone) from the Mi Account associated with the device.
  2. Confirm the login via SMS or backup email (if you forgot the password, use the recovery function).
  3. Create a new one. PIN-code.

If the buttons Forgot your password? no, try connecting to Wi-Fi manually (on some Xiaomi models this option is available even on a locked screen). To do this, swipe down from the top edge of the screen and hold the Wi-Fi icon.

⚠️ Note: If the phone was bought with hands and the previous owner did not untie his Mi Account, this method will not work. IMEI) Unblocking through the service center.

πŸ“Š What kind of Xiaomi phone is you?
Redmi Note 12/13
POCO X5/X6
Mi 11/12/13
Another model
Not Xiaomi.

2. Recovery Mode reset (data loss)

If your Mi Account is not tied or you don’t remember the login details, you’ll have to hard reset to factory settings, which will delete all the data from your phone, including photos, contacts and apps, but unlock the device.

Instructions for Xiaomi phones with MIUI Recovery 5.0 (relevant for most models of 2018-2026):

β˜‘οΈ Preparing for resetting through Recovery

Done: 0 / 4
  1. Turn off the phone (press the power button for 10 seconds if it freezes).
  2. Press the power button and volume button at the same time before the Mi logo appears.
  3. From the Recovery menu, select Wipe Data (use volume buttons for navigation and power button for confirmation).
  4. Confirm the reset by selecting Wipe All Data.
  5. After the process is complete, select Reboot.

On the newer models (Xiaomi 13/14, Redmi Note 12 Pro+), the Recovery menu may look different. If you see pictures instead of text, look for the bin icon (this is the data reset).

⚠️ Note: Some phones may need to enter old phones after reset via Recovery PIN-This is anti-theft protection. If you don't remember the old code, you'll have to use the Mi Unlock Tool (see section 4).

3. Unlock through ADB (for advanced users)

The method is suitable if the phone is enabled debugging by USB And you have access to a computer. That's rare, but if you've previously configured it. ADB For other purposes (for example, to install custom firmware), try this method.

Procedure:

  1. Connect your phone to your PC through USB-cable.
  2. Open the command line (Win + R β†’ enter cmd) and check the connection with the command: adb devices If the device appears in the list, go further.
  3. Delete the file with PIN-The command is adb shell rm /data/system/locksettings.db adb shell rm /data/system/locksettings.db-wal adb shell rm /data/system/locksettings.db-shm
  4. Reboot your phone: adb reboot

After restarting, the phone should start without a request. PIN-If there is a no error, devices/emulators found, so debugging by USB It is disabled and this method will not work.

πŸ’‘

If you often forget passwords, turn on Xiaomi’s Smart Lock (Security β†’ Screen Lock settings) feature, which allows you to automatically unlock your phone in trusted places (such as at home) or when you connect to trusted devices (smartwatches, headphones).

4.Use of Mi Unlock Tool (official tool)

Mi Unlock Tool is Xiaomi’s official utility for unlocking the bootloader.It can help if the phone requires an old one after resetting via Recovery. PIN-But there are limitations to the method:

  • ⏳ You need to wait 72–168 hours after linking your account to your device.
  • πŸ“± Phone must be unlockable (some models for Chinese market locked permanently).
  • πŸ’» You need a Windows computer and original USB-cable.

Instructions:

  1. Download Mi Unlock Tool from the official website.
  2. Turn off the phone and put it in Fastboot mode (clip Power + Volume down).
  3. Connect your phone to your PC and start the Mi Unlock Tool.
  4. Sign in to your Mi Account (should match the one linked to your phone).
  5. Press Unlock and wait for the process to be completed.

Once the bootloader is unlocked, you can flash the phone through fastboot or install a custom recavator (TWRP) to bypass the lock. However, this voids the warranty and can lead to a device blink if errors occur.

What is a brick?
Brick is a state of the device in which it becomes completely inoperable (like a β€œbrick”). There are two types: – Soft-brick – the phone is turned on but not loaded (solved by firmware). – Hard-brick – the device does not respond to buttons and is not determined by the computer (often not recoverable).

5. Contact the Xiaomi Service Center

If all of the above methods have failed, you have to contact the official service center, which is the most reliable, but also the longest way.

  • πŸ“„ Document confirming the purchase (check, warranty card or box with IMEI).
  • πŸ†” Passport of the owner (if the phone is purchased for an individual).
  • πŸ’³ Payment for the service (from 1000 to 3 000 rubles depending on the model).

The service will identify the device by IMEI and remove the lock without loss of data (if possible).Some models (Xiaomi 13 Ultra, Redmi K60 Pro) have an extended warranty to cover such cases.

The service center addresses can be found on the official Xiaomi website or through the Mi Community app, with an average unlock time of 3-7 working days.

⚠️ Warning: Don't go to informal workshops promising to unlock your phone in 1 hour, there's a high risk of getting a device with corrupted firmware or stolen data (if the phone was synced to the cloud).

6.How to avoid blocking in the future

Not to face the problem of forgotten PIN-Once again, follow these tips:

Problem.DecisionWhere to set up
Forgot. PIN-codeUse a pattern lock or fingerprint as a backup methodSettings β†’ Screen Lock β†’ Type of Lock
I don't remember Mi's account.Link backup email and phone for recoverySettings β†’ Mi Account β†’ Security
Phone locked after resetTurn on automatic unlocking on Bluetooth devices (headphones, watches)Settings β†’ Connected devices β†’ Smart Lock
I'm afraid I'm gonna lose my data.Set up automatic backup in Mi CloudSettings β†’ About the phone β†’ Backup

We also recommend writing down. PIN-code in an encrypted note (for example, in the Mi Notes application with a password) or save it in the password manager (Google Password Manager, 1Password).

πŸ’‘

If you are using the same thing PIN-The code for your credit cards and your phone, change it on at least one device, and if you steal it, the fraudsters will have access to all your data.

FAQ: Frequent questions about unlocking Xiaomi

Can you unlock Xiaomi without losing data if you don’t have a Mi Account?
No, without a tied Mi Account, the only way to unlock is a Recovery reset, which deletes all data. Except if you had a Smart Lock enabled or you had previously set up ADB.
The phone after the reset asks for an old one PIN-code. What to do?
This is a Factory Reset Protection (FRP). You need to: Sign in to the Mi Account that was tied to the phone before the reset, or use the Mi Unlock Tool (see section 4), or contact the service center with a confirmation of purchase. PIN-The system will block attempts after 3-5 failures.
Does unlocking by call (the "emergency call" method) work?
No, on Xiaomi phones with MIUI 12 and later, this method does not work. Previously, you could access settings through an emergency call, but the manufacturer closed this vulnerability.
How much does it cost to unlock in the service center?
Cost depends on the model: Xiaomi Redmi (budget models) β€” 1 000–1 500 Xiaomi. Mi/POCO (middle-class) β€” 1 500–2 500 Xiaomi. 13/14 Pro, MIX Fold - up 3 000 If the phone is guaranteed, unlocking can be free (if you have a check).
Can I unlock Xiaomi via Find My Device (like on Android)?
No, Xiaomi uses its own Find Device system, which does not allow you to unlock the phone remotely. Google’s Find My Device only allows you to erase data (if the device was tied to a Google account before blocking).