How to unlock a password on a Xiaomi phone: the full guide 2026

Forgotten password on Xiaomi is a situation faced by one in five smartphone users of this brand. According to statistics of service centers, 68% of requests for locking devices are related to lost graphics keys or keys. PIN-Fortunately, the manufacturer has provided several formal and informal ways to restore access, from a simple reset via Mi Account to complex firmware manipulation.

In this article, we will discuss all the current methods of unlocking Xiaomi (including the Redmi, POCO and Black Shark models), their pros and cons, and give checklists for each option. Particular attention will be paid to the new restrictions in 2026 that Xiaomi introduced to protect user data from unauthorized access. If you are afraid of losing important files, at the end of this article you will find tips on saving data before reset.

1 Unlocking through Mi Account (official method)

The most secure and recommended method Xiaomi uses is a tied Mi Account, which works on all devices with MIUI 12 and later, but requires pre-association of the account to the phone. If you have never signed in to Mi Account on a locked device, this method will not work.

The procedure takes no more than 5 minutes and does not result in data loss.

  • πŸ”„ On the lock screen, click Forgot Password? (or Forgot Password? on English firmware).
  • πŸ“§ Enter the email or phone number associated with the Mi Account.
  • πŸ” Confirm your identity through SMS-code.
  • πŸ“± Create a new password or pattern lock.

⚠️ Note: If the device is enabled with Find Device, after 5 failed attempts to enter the password, the phone may lock for 24 hours.

This method is suitable for most modern models, including:

  • Xiaomi 13/13 Pro/13 Ultra
  • Redmi Note 12/12 Pro+/12T
  • POCO F5/X5 Pro
  • Black Shark 5/5 Pro

πŸ’‘

If you do not remember whether Mi Account is linked to a phone, try entering any email – the system will tell you whether there is an account with such an address.

2.Reset via Recovery Mode (Hard Reset)

Hard reset is a universal method that works even without a Mi Account attached, but has a critical drawback: all data on the phone will be permanently deleted.

  • πŸ”’ There are no important files on the device (or they are synced to the cloud in advance).
  • πŸ“± The phone is not tied to the Mi Account.
  • πŸ”§ Other Unlocking Methods Have Not Worked.

Instructions for logging into Recovery Mode and resetting settings:

  1. Turn off the phone with a long press of the power button.
  2. Press the combination of Loudness up + Power and hold for 10-15 seconds until the Mi logo appears.
  3. From the Recovery menu, select Wipe Data (or Clear Data on Chinese firmware).
  4. Confirm the action by choosing Wipe All Data.
  5. After reset, select Reboot to reboot.
Xiaomi modelCombination for RecoveryFeatures
Xiaomi 12/12T/12SVolume up + NutritionSome firmware requires confirmation through Mi Account even after a reset.
Redmi Note 10/11Volume up + NutritionThe Recovery menu may not have touch controls – use volume buttons to navigate.
POCO F3/F4Volume up + NutritionAfter reset, it may be necessary to reactivate via the Internet.
Black Shark 4/5Volume up + Volume down + NutritionHold the buttons until the vibration occurs (about 20 seconds).

⚠️ Attention: On devices with MIUI 14 and later after Hard Reset, you may need to enter data from your previous Mi Account, even if it wasn't tied in the first place. This is a theft protection measure introduced in 2023.

πŸ“Š What Unlocking Method Have You Tried Before?
Mi Account
Hard Reset
Fastboot
I've been to the service.
Never blocked.

3. Unlock via Fastboot (for advanced users)

Fastboot is suitable for unlocking Xiaomi if:

  • πŸ”§ You have access to a computer with drivers installed ADB and Fastboot.
  • πŸ“± The phone's debugging on. USB (If not, the way won't work).
  • πŸ”’ You are ready for possible data loss (depending on the selected teams).

Unlocking will require:

  1. Install Android SDK Platform-Tools on PC.
  2. Connect the phone to the computer in Fastboot mode (clamp Volume down + Power when the device is turned off).
  3. Open the command line in the folder with ADB and type:
fastboot oem unlock


fastboot flashing unlock




fastboot reboot

If the fastboot oem unlock command doesn’t work, try an alternative:

fastboot erase frp


fastboot reboot

⚠️ Note: On devices with locked bootloader (Xiaomi 13 Ultra, Redmi) K60 Pro and newer) these commands will not work without first unlocking the bootloader through the official Xiaomi website.

Install drivers ADB|Download Platform-Tools|Enable debugging on USB phone-on|Prepare original USB-cable|Backup of data (if possible)-->

4. Use of service codes (for older models)

Xiaomi devices before MIUI 10 (released before 2019) sometimes triggered service codes to reset passwords. Today, this method is extremely rare, but it can be tried on models like the Redmi 4X, Redmi Note 5 or Mi A1.

Try entering these codes in the dialer:

  • πŸ“ž ##7780## - soft reset (saves media files).
  • πŸ“ž *2767*3855# β€” full reset (remove everything).
  • πŸ“ž ##3646633## - Engineering menu (sometimes allows you to reset the lock).

If you reboot your phone after you enter the code, but you still have the password, it doesn't work, and on new firmware, these codes are usually blocked by the manufacturer.

Why did the service codes stop working?
Since 2020, Xiaomi has been actively fighting security holes that could bypass the lock, and newer versions of MIUI have either ignored service codes or require confirmation through Mi Account.

5. Contact the Xiaomi Service Center

If none of these methods work, the last option is to contact an authorized service center, which is the only legal way to unlock your phone without losing data, if:

  • πŸ“„ You have a check or warranty card on the device.
  • πŸ†” You can confirm your identity (passport, SNILS).
  • πŸ“± The phone is not on the blacklist (stolen/lost).

The cost of the service in official Xiaomi services varies from 1,000 to 3,000 rubles depending on the model, the average unlock period is 1-3 working days.

DocumentWhat do you need?Can we do without him?
PassportConfirmation of the identity of the ownerNo.
Check of purchaseProof of legal possessionSometimes replaces the warranty card
Phone box.IMEI and serial number verificationYes (if the IMEI matches the check)
Mi AccountAdditional proof of ownershipYes (unless the phone is linked to your account)

If you buy a phone with your hands, the chances of unlocking are minimal – Xiaomi service centers refuse in 90% of such cases due to the risk of working with stolen devices.

πŸ’‘

Official unlocking in the service is the only way to save data on the phone if the password is forgotten and the Mi Account is not tied.

6. Alternative methods (at your own risk)

There are dozens of magical ways to unlock Xiaomi online, from using apps like Dr.Fone to firmware via EDL Mode, which we don’t recommend for a few reasons:

  • 🚨 Brick Risk: Wrong firmware can turn a phone into a brick".
  • πŸ•΅οΈ Data Leak: Many Unblockers Steal Logins/Passwords.
  • πŸ’Έ Hidden payments: Free software often requires payment after a scan".

If you do decide to experiment, here is a brief overview of the methods:

MethodRisks.Chances of success
Firmware through EDLBrick, loss of IMEI70% (requires an author’s account)
Use of Dr.FoneData leak, viruses30% (not working on all models)
Bypassing ADBRequires root rights50% (only for older MIUIs)

⚠️ Note: Since 2023, Xiaomi has tightened protection against unauthorized unlocking. EDL Now they require an official permit from the manufacturer, which can only be obtained through the service center.

7.How to avoid blocking in the future

To avoid having a forgotten password, follow these guidelines:

  • πŸ”‘ Use password managers (such as Bitwarden or KeePass) to store PIN-code.
  • πŸ“§ Link Mi Account and enable two-factor authentication.
  • πŸ”„ Keep your important data synced regularly with Mi Cloud or Google Drive.
  • πŸ“± Set up Smart Lock (unlock by Bluetooth device or location).

It's also useful to create emergency contact information on the lock screen.

  1. Go to Settings β†’ Lock screen β†’ Emergency information.
  2. Please provide an alternative phone number or email to contact.
  3. Save the changes.

This data will be displayed on the lock screen even without entering a password, which will help you get your phone back if you lose it.

πŸ’‘

V MIUI 14 the function "Reserve" appeared PIN-code" - an additional password to unlock, which can be configured in Settings β†’ Security β†’ Additional settings.

Frequently asked questions

Can I unlock Xiaomi without losing data?
Yes, but only if you have a Mi Account attached to your phone or you go to an official service center with proof of ownership, and all other methods (Hard Reset, Fastboot) result in the deletion of user data.
What to do if you need an old Mi Account after a reset?
This is theft protection introduced in MIUI 13 and later, and if you forget your account details, restore them through account.xiaomi.com. If your account is not yours (for example, a phone is bought by hand), you can only unlock the device through a service center with the previous owner's documents.
Does unlocking a call to a locked phone work?
No, it's a myth. Some firmware used to be able to bypass locking through an emergency call, but with MIUI 11, this vulnerability is eliminated. Today, these methods do not work on any Xiaomi model.
How much does it cost to unblock in unofficial services?
Prices range from 500 to 5 000 rubles depending on the model and method, but we do not recommend using informal services: they often use illegal methods of firmware, which can lead to loss of warranty or breakage of the device.
Can I unlock Xiaomi through Find Device?
Yes, if your phone has Find Device enabled and it's connected to the Internet, go to i.mi.com, log in to your Mi Account, select your device, and click Unlock, which only works when you have an active Internet connection on your phone.