Forgot the password from Xiaomi: 7 proven ways to unlock the phone (including bypassing) PIN-code)

Forgotten. PIN-A code or pattern lock on Xiaomi and now the phone has turned into a β€œbrick”? the situation is familiar to millions of users – according to statistics, one in five smartphone owners at least once blocked themselves because of the loss of a password. Fortunately, Xiaomi offers several official and informal ways to unlock, but not all of them are safe for your data. 7 working methods – from a simple reset via Mi Account to a complex bypass of locking through Fastboot, including nuances for models with a high-performance system. MIUI 12-14.

It's important to understand that some methods lead to complete data cleanup (photos, contacts, messages), others allow you to save information - it all depends on the chosen path. We will also uncover the myths about the "magic unlock codes" and explain why methods like calling a locked phone or using emergency call mode only work in 1% of cases and then on old firmware until 2019. If your Redmi Note 12 or POCO X5 requires you to enter a password after rebooting, don't panic, there is a solution!

1 Unlocking through Mi Account (official method)

Xiaomi’s most reliable and recommended method is to use a tied Mi Account, which works on all models, starting with the Redmi 4X (2017) and later, provided that:

  • πŸ“± The phone is connected to the Internet (Wi-Fi or mobile network)
  • πŸ”‘ You remember the username/password from Mi Account (or tied) email/phone number)
  • βš™οΈ The settings have enabled the function Find the device (Settings) β†’ Mi Account β†’ Find the device)

Instructions:

  1. On the lock screen, tap Forgot password? (or Forgot password? on English firmware).
  2. Choose Unblock with Mi Account.
  3. Enter the login (email or phone number) and password from the account.
  4. Confirm unlocking via SMS or email (if two-factor authentication is enabled).

⚠️ Note: If you have previously disabled Find Device in Settings, this method will not work. Xiaomi can also request proof of ownership of the device through a photo of a box or check (relevant for models). POCO F5 newer).

Make sure your phone is connected to Wi-Fi| Check if Find Device is enabled | Prepare a username/password from Mi Account| Access email/phone to confirm

-->

2. Recovery Mode reset (data loss)

If the Mi Account is not tied or you don't remember the login details, you'll have a hard reset through Restore mode, which will delete all the data on the phone, including photos, apps and settings, but will return access to the device, suitable for all Xiaomi, Redmi and POCO models.

Step-by-step:

  1. Turn off the phone with a long press of the power button.
  2. Press the button combination: For most models: Volume up + Power (hold 10-15 seconds) For POCO X3/X4: Volume up + Volume down + Power

Recovery

Wipe Data β†’ Wipe All Data

Clear Data

Confirm the action and wait for the process to be completed (5-10 minutes).

Reboot

Xiaomi modelCombination for RecoveryFeatures
Redmi Note 10/11/12Volume up + NutritionMenu in English/Chinese
POCO F3/F4/F5Volume up + Volume down + NutritionRequires confirmation via the power button
Xiaomi 12/13/14Volume up + NutritionYou may need to connect to a PC to unlock the bootloader

⚠️ Note: On new models (Xiaomi) 13T, Redmi Note 12 Pro+) After reset, you may need to enter a password from the previous Mi Account due to Factory Reset Protection (FRP). If you don’t remember your account details, your phone will remain locked!

πŸ’‘

Before resetting via Recovery, try connecting your phone to charge for 30 minutes - a discharged battery can interrupt the process and turn the device into a "brick".

3. Unlock via Fastboot (for advanced users)

The method via Fastboot is suitable if:

  • πŸ”§ You have access to a computer with drivers installed ADB/Fastboot
  • πŸ“₯ You can download the official firmware for your model
  • πŸ”“ The phone has unlocked the bootloader (Bootloader)

If the bootloader is locked, you will first need to unlock it through the Mi Unlock Tool (the process takes up to 72 hours due to Xiaomi restrictions).

Instructions for unlocking:

  1. Install the Android SDK Platform-Tools on your PC.
  2. Download the phone to Fastboot mode: (a) Turn off the phone b) Press Volume down + Power (for most models) in) Connect to the PC via USB
  3. In the command line (on behalf of the administrator), check the connection: fastboot devices must display the serial number of the device.
  4. Flush the official firmware (e.g. for Redmi Note 11): fastboot flash boot.img fastboot flash system.img fastboot flash userdata userdata.img
  5. Reboot the phone: fastboot reboot
What if the Fastboot can’t see the device?
If the fastboot device command doesn't show your phone: 1. USB-cable (use original). 2. Install Mi drivers USB Driver from the official website. 3. Try another one. USB-port (preferably) USB Disable driver signatures in Windows (to do this, temporarily disable Secure Boot in Windows) BIOS).

4. Bypassing the lock via ADB (if USB debugging is enabled)

If the phone previously had USB debugging enabled (Settings β†’ About Phone β†’ MIUI version β†’ 7 taps to unlock developer mode, then Settings β†’ Additional β†’ For developers β†’ USB debugging), you can try to bypass the lock via ADB.

Steps:

  1. Connect your phone to your PC via USB.
  2. Open the command line in the ADB folder and execute: adb shell rm /data/system/gesture.key rm /data/system/password.key rm /data/system/locksettings.db rm /data/system/locksettings.db-wal rm /data/system/locksettings.db-shm
  3. Reboot your phone: adb reboot

Once rebooted, the password should be reset, but this method only works on firmware up to MIUI 12.On newer versions (MIUI 13/14) Xiaomi has closed this loophole.

Redmi Note 10/11/12|POCO X3/X4/X5|Xiaomi 11/12/13/14| Other Xiaomi|Not Xiaomi|

-->

5. Use of service codes (myths and reality)

There are often "secret codes" like ##3646633## or #7378423### that allegedly reset the password on the Internet. This does not work on modern Xiaomi (starting with MIUI 10), which opens the engineering menu, but does not affect the locking of the screen.

The only code that can help is ##4636## (test menu), but it's not unlock-related. Be careful: entering random service codes can:

  • πŸ“΅ Reset the network settings
  • πŸ”‹ Discharge the battery (some codes run display tests)
  • 🚫 Block it. SIM-map (codes like ##7465625##)

πŸ’‘

Service codes won't unlock Xiaomi's screen - it's a myth. The only working way through codes is to check IMEI (*#06#), but it's not about password.

6. Contact the Xiaomi Service Center

If all of the above methods fail, the official service remains. Xiaomi will unlock the phone upon presentation:

  • πŸ“„ Check or guarantee card
  • πŸ“¦ Phone boxes (with serial number)
  • πŸ†” Passport holder

Cost of service:

Type of unlockCost (β‚½)Timeline
Password reset (without data loss)1 500 β€” 3 0001-3 days
Flashing (with loss of data)2 000 β€” 4 0001 day
Unlocking the bootloader + firmware3 500 β€” 6 0002-5 days

Please note: informal workshops may offer β€œunlocking in 5 minutes”, but often this is a fraud (installing custom firmware with viruses or data theft).

7.How to avoid blocking in the future

To avoid the problem again, follow the following simple rules:

  • πŸ” Use a fingerprint or facial recognition as an additional way to unlock.
  • πŸ“ Write it down. PIN-code to a secure location (e.g. Google Keep or Mi Cloud).
  • πŸ”„ Regularly back up through Settings β†’ System system β†’ Backup.
  • πŸ”— Attach Mi Account and enable Find Device.

You can also configure Smart Lock (Settings β†’ Screen Lock β†’ Smart Lock) to automatically unlock your phone in trusted places (such as at home or work).

πŸ’‘

If you’re afraid to forget your password, install the Mi Remote app and set up unlocking via Bluetooth devices (such as the Mi Band).

FAQ: Frequent questions about unlocking Xiaomi

Can I unlock Xiaomi without losing data?
Yes, but only if: Mi Account is tied and remembered. USB debugging is enabled (for ADB method); the phone has been unlocked through a service center, saving data (expensive and not always possible); in all other cases, the data will be deleted.
What to do if you ask for an old Mi Account password after resetting?
This is triggered by Factory Reset Protection (FRP). Solutions: Enter data from the previous Mi Account. If you don't remember, contact the service center with proof of purchase. To bypass FRP on some models, you can use the Mi Account Unlock Tool (but this violates Xiaomi's rules and can lock the device permanently).
Does unlocking a call to a locked phone work?
No, this method only worked on Android 5-6 (until 2017).On modern Xiaomi with MIUI 12-14, the lock screen does not allow you to receive calls without entering a password.
Can I unlock Xiaomi through a computer without Fastboot?
Yes, but only if the phone is debugging. USB. You can use a program like Dr.Fone or Tenorshare. 4uKey, They are paid (from 1,500) β‚½). They can contain viruses (download only from official websites).
How to unlock Xiaomi if it is turned off and not turned on?
If the phone doesn't respond to the power button: Connect to charge for 30-60 minutes (possibly battery drained). Try to pinch Volume up + Power for 20-30 seconds (forced reboot). If it doesn't work, bring it to the service (possibly a problem with hardware).