How to clean up PIN-Code from the phone Xiaomi: all working methods

Introduction

Forgotten PIN-The code on Xiaomi’s smartphone is a situation that thousands of users face every day. Unlike a pattern lock that you can try to find, a four-digit (or longer) digital code blocks access to the device completely. Manufacturer intentionally does not provide β€œloops” to bypass protection: this is part of the security policy MIUI, Protecting personal data in case of theft or loss of a phone.

Depending on the model (Redmi Note 12, POCO X5, Xiaomi 13T, etc.), the firmware version and the presence of a linked Mi Account, you can use one of 5 unlock methods. Importantly, some methods lead to a complete reset of data β€” without the ability to recover photos, messages or applications. So before you act, assess the risks.

This article presents 2026-relevant instructions based on the latest MIUI 14/15 updates, including FRP (Factory Reset Protection) bypassing on new devices, all of which are tested on real smartphones and require no special skills.

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 login and password from the account that was added to the device.
  • πŸ”„ Find Device is activated in the settings.

If all conditions are met, follow the instructions:

  1. On the lock screen, click Forgot Password? (or Forgot Password? on English firmware).
  2. Select the option to Unblock through Mi Account.
  3. Enter the email or phone number associated with the account, then the password.
  4. Confirm the action via SMS or email (if two-factor authentication is enabled).
  5. Create a new one. PIN-code or disable the lock completely.

πŸ’‘

If the β€œForgot password” button does not appear, try entering it. PIN-The code is incorrect 5 times in a row - the system itself will offer alternative unlock options.

⚠️ Attention: On devices with MIUI 14+ After 3 failed attempts to enter a password from Mi Account, the system can block the ability to unlock for 24 hours, in which case only hardware methods remain (see sections 3 and 4).

What if you don’t receive an SMS with a confirmation code?
If the message does not arrive, check: 1. Internet connection stability (switch from Wi-Fi to mobile data or vice versa). 2. Availability of funds on balance SIM-Cards (sometimes the operators block the cards) SMS 3. Spam folder in messages - the code may have been there. 4. Try requesting the code to backup email (if it is linked to the account).

2. Recovery Mode reset (data loss)

If your Mi Account is not tied or you don’t remember the login details, the only officially supported way is a hard reset via Recovery Mode, which will remove all data from the device, including photos, contacts and installed apps, but return access to the phone.

The manual is suitable for most Xiaomi, Redmi and POCO models (except for devices with a locked bootloader, for example, Xiaomi 12S Ultra on Chinese firmware).

Turn off the phone (press the power button for 10 seconds)

Make sure that the battery charge is > 30%

Prepare. SIM-card or Wi-Fi to set up after resetting

Save your phone's IMEI (written on the box or under the battery)

-->

Steps for discharge:

  1. Turn off the phone (if it's on, press the power button and select Turn off).
  2. Press the button combination: πŸ”˜ Power button + Loudness up (for most models). πŸ”˜ On certain devices (e.g, POCO F4) β€” Power button + Loudness down.

Mi

Recovery

Use volume buttons for navigation and power button to select the item.

Wipe Data

Wipe All Data

Reboot

Reboot to System

⚠️ Attention: On devices with MIUI 13+ After resetting through Recovery, protection may work FRP (Factory Reset Protection: In this case, you will need to enter data from the previously associated Mi Account. If you do not remember them, go to section 4 (the method through Fastboot).

Xiaomi modelCombination for RecoverySupports FRP?
Redmi Note 10/11/12Food + Volume upYes (MIUI 12+)
POCO X3/X4/X5Food + Volume upYes (on global firmware)
Xiaomi 11/12/13Food + Volume upYeah (requires Mi Account)
Redmi 9/9A/9CFood + Volume upNo (on older versions of MIUI)

Redmi Note Series Series Series

POCO (any model)

Xiaomi (Flagship Series)

Redmi (budget series)

Another brand-->

3. Unlock via Fastboot (for advanced)

The method via Fastboot is suitable if:

  • πŸ”§ You have a computer with Xiaomi drivers installed.
  • πŸ”Œ The phone is determined in Fastboot mode (checked by the command of fastboot devices).
  • πŸ“₯ You are ready to download the official firmware for your model.

This is more difficult than resetting through Recovery, but it allows you to bypass FRP on some models.Warning: wrong actions can turn the phone into a β€œbrick” (inoperable device).

Step-by-step:

  1. Download and install Android SDK Platform-Tools (or Mi Unlock Tool from Xiaomi).
  2. Turn off your phone and put it in Fastboot mode: Press the power button + volume down for 10 seconds
  3. Connect your phone to your PC through USB-cable (preferably original).
  4. Open the command prompt (cmd) in the folder with the platform-tools and type: fastboot devices If the device is determined (the serial number appears), continue. If not, install the drivers.
  5. Download the official firmware for your model from MIUI Downloads (choose the Fastboot version).
  6. Unpack the archive with firmware and launch the script flash_all.bat (for Windows or flash_all.sh (for macOS/Linux).
  7. Wait for the process to be completed (10-20 minutes) and the phone will reboot automatically.

⚠️ Note: On new models (Xiaomi 13, Redmi Note 12 Pro)+) After you have firmware through Fastboot, you may need to log in via Mi Account, even if you have reset your data, in which case you cannot unlock your phone without accessing your account.

πŸ’‘

Fastboot firmware deletes all data, but retains the ability to recover IMEI (unlike Recovery resets on some models).

4. Bypass PIN-code through service codes (limited support)

On older Xiaomi models (before 2019), there was a way to unlock through service codes, which is extremely rare today, but it is worth trying if other methods are not available.

Instructions:

  1. On the lock screen, enter any PIN-code 5 times in a row until the message appears Repeat try in 30 seconds.
  2. Type the code on the keyboard: ##7378423## or ##3646633#####
  3. If the code works, you'll be taken to the service menu. Go to Security or Lock Screen and reset the PIN.

⚠️ Attention: MIUI 12 and later, these codes are locked, and entering them can lead to a complete locking of the phone, requiring you to enter a password from Mi Account.

If the service menu is open but the Security section is not available, try the alternative code:

##4636##

It will open a testing menu where you can sometimes find the option to reset the lock.

5. use of third-party tools (at your own risk)

On the Internet you can find many programs that promise to unlock Xiaomi without losing data: Miracle Box, UFi Box, Octoplus, etc. These tools work through exploits in firmware and can:

  • βœ… Delete PIN-code-free.
  • βœ… Go around FRP on some models.
  • ❌ Install malware on your phone.
  • ❌ Damage the loader by making the device inoperable.

We do not recommend using such programs, but if you decide to follow the rules:

  1. Download software only from official sites (for example, UFi Box).
  2. Check your files for viruses through VirusTotal.
  3. Use only on models that have confirmed reviews of successful unlocking.
  4. Create a backup (if the phone reacts to the connection to the PC).

⚠️ Note: Most modern Xiaomi smartphones (starting with the Redmi Note 8 Pro and later) have protection against such tools. IMEI, What will make your phone unsuitable for calls.

List of models vulnerable to third-party tools (2026)
To date, confirmed work only on the following devices (with outdated firmware): - Redmi 5/5A/5 Plus (MIUI 9-10) - Redmi Note 4/4X (firmware until 2019) - Mi A1/A2 (Android One, but requires unlocking the bootloader) On new models (MIUI 12+) these methods do not work.

6. Contact the Xiaomi Service Center

If none of the methods worked, the last option is to contact an authorized Xiaomi service center, which is the only legal way to unlock without losing data, but it has nuances:

  • πŸ“„ You will need to present a purchase document (check, warranty card) or a box from a phone with a serial number.
  • πŸ’³ Service paid - the cost varies from 1,000 to 3,000 rubles depending on the model.
  • ⏳ Unblocking period – from 1 to 5 working days (depending on the load of the service).
  • πŸ”’ In some cases, the wizard may refuse if the phone is linked to another Mi Account (e.g., when buying from hand).

How to find the official service:

  1. Go to the Xiaomi Service Locator website.
  2. Enter your city or enable geolocation.
  3. Select a center marked Authorized Service Partner.
  4. Before visiting, check by phone whether they are unlocking. PIN-Code (not all services provide this service).

⚠️ Warning: Informal service centers may offer a β€œbypass” of locking through the firmware with the modified boot.img. This violates the Xiaomi license agreement and may result in a:

  • Lose the warranty.
  • Incorrect operation of sensors (cameras, GPS, NFC).
  • Blocking your Mi Account for suspicious activity.

FAQ: Frequent questions about unlocking Xiaomi

Can I unlock Xiaomi without losing data?
Yes, but only if: The phone is tied to Mi Account, and you remember the login details. You have an old model (until 2019) with a vulnerability to service codes. You are ready to use third-party tools (risk of damage to the phone). On new devices (2020 and later), without data loss, unlocking is impossible.
What to do if you ask for an old Mi Account after a reset?
It's the defense that works. FRP. Solutions: Remember your account information (check your email for Xiaomi emails); If you bought your phone with your hands, contact your previous owner; use the Fastboot method (Section 3) to firmware the official version MIUI. Contact the service center with purchase documents. ❌ Don’t try to β€œdeceive” the system by substituting it. IMEI or firmware custom Recovery - this will lead to the locking of the device.
How do I know if my Xiaomi bootloader is blocked?
bootloader status check: Turn off the phone. Press Power + Volume down to log into Fastboot. Connect the phone to your PC and type in the command line: fastboot oem device-info If the answer has a line Device unlocked: false - bootloader is locked. On new models (Xiaomi 12/13, Redmi Note 11/12), unlocking the bootloader requires binding to Mi Account and waiting 7-15 days (Xiaomi policy).
Can I unlock Xiaomi through my Google Account?
No. Unlike pure Android phones like the Google Pixel, Xiaomi smartphones use their own locking system, the "Forgot Password?" function through Google doesn't work on them. The only official way is Mi Account.
What to do if the phone is discharged during unlocking?
If the phone is turned off in the process: πŸ”‹ Charge it to at least 30% before trying again. πŸ”Œ Use the original cable and charger (some methods, such as the Fastboot, require stable power supply). ⚑ If the phone doesn’t turn on after discharging, try pressing the power button for 20-30 seconds (sometimes helps when the power controller β€œhangs). ⚠️ If the discharge occurred during firmware through Fastboot, the risk of turning the phone into a brick is high, in which case only flashing in the service center will help.