How to remove the password from the smartphone Xiaomi: all working ways in 2026

Why Xiaomi is getting blocked and what to do first

Forgotten password, pattern lock or PIN-Xiaomi code is a situation that one in five users face, and the reasons are trivial: infrequent use of the device, changing the password to "reliable" and then forgetting, or buying a used phone with an already installed lock. 90% of unlocks are possible without data loss.

The first thing to do is to calm down and assess the situation, and if you've ever signed in to a Mi Account on this device, the chances of getting back into the factory settings without resetting are high, and if the phone is hand-built or the account has never been tied, you'll have to use alternative methods, some of which require technical skills.

Importantly, modern Xiaomi models (starting with MIUI 12 and later) have enhanced protection against unauthorized access, which means that β€œgrandfather” methods like resetting via Recovery may not work without first linking the account.

Method 1: Unlocking with Mi Account (the most secure method)

If your Xiaomi is tied to your Mi Account and you remember your username and password, this is your chance to get back access without losing data.The method works on all models, including the Redmi Note 12, Poco X5, Xiaomi 13 and older devices.

Step-by-step:

  • πŸ“± On the lock screen, tap the button Forgot the password? (or Forgot password? on English firmware).
  • πŸ”‘ Enter the email or phone number associated with the Mi Account.
  • πŸ“§ Postal or SMS The confirmation code will come - enter it in the appropriate field.
  • πŸ”“ Create a new password or pattern lock.

If the buttons Forgot the password? no (this happens on custom firmware), try to enter any password 5 times in a row - after that the system will offer the option of recovery through the account.

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

πŸ“Š What kind of smartphone you Xiaomi?
Redmi (Note/Pro series)
Poco
Xiaomi (Flagship Series)
Black Shark
Other

Method 2: Recovery Mode reset (without data loss is not always possible)

This method is suitable for devices that have Mi Account Protection disabled (usually on older models before MIUI 11 or after manual shutdown) and if this function is active, reset will result in a username/password requirement from your account after rebooting.

How to log in to Recovery Mode:

  1. Turn off the phone (press the power button for 10 seconds).
  2. Press the combination of Loudness up + Power and hold for 5-7 seconds until the Mi logo appears.
  3. From the Recovery menu, select Wipe Data β†’ Wipe All Data (use volume buttons for navigation and power button for confirmation).
  4. After reset, select Reboot β†’ Reboot to System.

If the phone requires input from Mi Account after the reset, the protection was active, in which case you can move to method 3 or 4.

β˜‘οΈ Preparing for resetting through Recovery

Done: 0 / 4

Method 3: Unlocking via Fastboot (for advanced users)

This method requires a computer, USB-cable and basic knowledge of working with ADB It is suitable for devices where Recovery is blocked or the Xiaomi account is not tied. 12/13, Redmi Note 11/12) This method may not work due to hardware protection.

Instructions:

  1. Download and install Platform Tools (ADB & Fastboot) on PC.
  2. Turn off the phone and press Volume Down + Power to log into Fastboot Mode.
  3. Connect the device to your computer and open the command line in the folder with Platform Tools.
  4. Enter the command: fastboot oem unlock If the command doesn't work, try: fastboot flashing unlock
  5. Follow the instructions on your phone screen (unlock confirmation via Mi Account may be required).

After successful unlocking, the phone will restart in Recovery mode, where you can make a data reset.

⚠️ Note: On some models (Poco) F3, Redmi K40) Unlocking through Fastboot deletes all data, including files in internal memory. If the phone is encrypted, it will be impossible to restore data after such a reset.

What if the fastboot oem unlock command doesn’t work?
If the command returns the error "FAILED (remote: 'Device is locked. Cannot flash images')", this means that the device has activated the Mi Account protection. In this case, you must: 1. log in to Xiaomi account on another device. 2. Go to i.mi.com and unplug the locked phone. 3. Repeat the attempt to unlock via Fastboot.

Method 4: Use of service codes (for older models)

Xiaomi devices before MIUI 10 (e.g. Redmi 4X, Redmi Note 5) sometimes trigger service codes to reset passwords.This method does not guarantee a 100% result, but can help if other methods are not available.

Try the following codes:

  • πŸ”’ ##7780## - Reset settings (without deleting data).
  • πŸ”’ *2767*3855# β€” Resetting everything (including internal memory!).
  • πŸ”’ ##3646633## - Engineering menu (sometimes allows you to reset your password through the MTK Settings).

Type the code as a normal phone number, and if nothing happens, your model doesn't support it.

πŸ’‘

If your phone is locked but you have access to calls (e.g., you can call from another device), try to quickly go to settings and disable your password during the call. This bug worked on some MIUI 9-10 firmware, but it is fixed in newer versions.

Method 5: Contact Xiaomi Service Center (official method)

If all previous methods have failed, the last option is to contact the official Xiaomi service center, which is true for devices with a Mi Account tied, which can not be untie (for example, if the phone is bought by hand and the previous owner is not available).

What will be required:

  • πŸ“„ Check or warranty card (proof of purchase).
  • πŸ†” Passport (for proof of identity).
  • πŸ“± The phone itself with a charge of at least 30%.

The service center may require payment for unlocking (from 500 to 2000 rubles depending on the model), in some cases the procedure takes up to 7 days, as it requires approval from the head office of Xiaomi.

Unlocking methodSuitable modelsYou need a PC?Data loss?Difficulty
Through the Mi Account.All models.No.No.⭐
Recovery ModeOlder models (up to MIUI 11)No.Yes.⭐⭐
FastbootModels without active protection Mi AccountYes.Yes.⭐⭐⭐
Service codesModels up to 2018No.Yes (partially)⭐
Service centreAll models.No.No (usually)⭐⭐⭐⭐

What to do if nothing helps: alternative solutions

If all of these methods fail, radical measures remain:

  1. Flashing through EDL-mode (requires special cable and knowledge in the firmware).
  2. Replacement of the motherboard (expensive, but guaranteed to remove the lock).
  3. Buying a phone from hand to spare parts and transferring data via an eMMC chip (for power users only).

Warning: self-flashing through EDL can lead to a "brick" (complete failure) of the device. If you are not sure about your skills, you better consult a specialist.

FAQ: Frequent questions about unlocking Xiaomi

Can I unlock Xiaomi without losing data?
Yes, but only if you remember the username and password from the Mi Account attached to the phone, in which case use the recovery method through the Forgot Password button on the lock screen. All other methods (except the service center) will lead to deletion of data.
What to do if the Xiaomi used to buy requires an old Mi Account?
There are three options: Contact the seller and ask to untie the account via i.mi.com; contact the service center with a check (if any); use informal unlock methods (for example, through EDL, but this is risky); If the seller is unavailable and the check is not available, the phone will most likely become a brick.
Why does the phone ask for a password again after resetting via Recovery?
This means that the device has activated the Mi Account Protection feature, which links the phone to a Xiaomi account, and even after the reset requires authorization. Solution: Sign in to your Mi Account (if you remember it), untie the device via the web interface, contact the service center with proof of purchase.
Can I bypass the lock through the engineering menu?
On older models (MIUI 8-9), logging into the engineering menu with code ##3646633## sometimes helps, but in newer versions of firmware, this method is blocked. On MIUI 12+, the engineering menu does not allow you to reset your password.
How much does it cost to unblock the service center?
The cost depends on the model and region: Redmi (budget models): 500-1000 rubles. Poco / Xiaomi (middle segment): 1000-1500 rubles. Flagships (Xiaomi 13, Mix Fold): 1500-2500 rubles. In some cases, payment for diagnosis (300-500 rubles), even if unlocking fails.