What is the password for resetting settings on Xiaomi: standard codes and ways to bypass

Introduction: Why you need a password when resetting Xiaomi

Resetting on Xiaomi smartphones is a procedure that returns the device to factory settings by removing all user data, apps and settings. However, many owners face an unexpected password request when trying to perform a hard reset through the Recovery menu. This is the unauthorized access protection built into MIUI firmware since version 8.

The standard password for resetting is not a universal code, but one tied to a Mi Account account or a previously installed pattern lock. If you forget it, the procedure becomes more complicated: the system can lock the device after 5 failed attempts. In this article, we will analyze all official and alternative methods of resetting, including bypassing the password through Fastboot, EDL-regime and service centres.

Importantly, the methods are different for models with Qualcomm processors (such as the Redmi Note 10 Pro) and Mediatek (such as the POCO M3).

Xiaomi’s Standard Passwords for Resetting: Myths and Reality

There are many "universal" codes on the Internet, such as 123456, 000000 or miui, but they do not work on modern devices. MIUI 12/13/14 firmware uses dynamic password binding to:

  • πŸ” Mi Account – if the device is linked to an account;
  • πŸ“± pattern lock - if the unlock pattern is installed;
  • πŸ”‘ PIN-code SIM β€” Some models (such as Xiaomi) 12T).

The only β€œstandard” password is an empty string (just click β€œConfirm” without entering), but it only works if:

  1. The device is not linked to the Mi Account.
  2. No pattern lock or PIN is installed;
  3. The firmware is not modified (no custom Recovery).

πŸ’‘

If you are buying a used Xiaomi, be sure to check if the previous Mi Account is untied. To do this, go to Settings β†’ Xiaomi Account and try to log in under your login. If the system asks for a password from the old account, the device is blocked.

How to Reset Your Settings When You Know Your Password

If you remember the Mi Account password or the pattern lock, the procedure will take 5-10 minutes.

  1. Turn off the device with a long press of the power button.
  2. Click the combination: For most models: Volume up + Power; For POCO F3/F4: Volume down + Power; For Xiaomi Pad 5: Volume up + Volume down + Power.

Recovery

Wipe Data

Mi Account

Yes

After the reboot, the device will look like new.Caution: If you used File-Based Encryption, you may need an additional password to unlock the internal storage.

Make sure the battery is at least 50 times charged%|

Backup important data (photos, contacts) |

Remember the username and password from Mi Account|

Untie your device from your Google Account (in Settings β†’ Accounts)

-->

Password bypass via Fastboot: step-by-step instructions

If you forgot your password, but unlocked on your device OEM Unlock (in Settings) β†’ For developers, you can reset settings via Fastboot mode.This method works on 80% of Xiaomi models, except for devices with a Mediatek processor and a locked bootloader.

Requirements:

  • πŸ–₯️ Computer with Windows/Linux and installed drivers ADB/Fastboot;
  • πŸ”Œ USB-cable (original, without damage);
  • πŸ“± Unlocked OEM Unlock (if not, see the section on the EDL).

Instructions:

  1. Turn off the phone and press Volume Down + Power to log in to Fastboot.
  2. Connect the device to the PC and open the command line (cmd).
  3. Enter the command to check the connection: fastboot devices If the device is displayed – continue.
  4. Run reset: fastboot erase userdata fastboot erase cache fastboot reboot
What if the Fastboot can’t see the device?
Make sure you have the Mi Flash Tool drivers installed (download from Xiaomi's official website). USB-port (preferably) USB Disable the antivirus, it can block the connection. If you use Mediatek, you need to SP Flash Tool instead of Fastboot.

Warning:

⚠️ On devices with MIUI 14 and a newer Fastboot reset could result in a lockdown FRP (Factory Reset Protection: After the reboot, the system will require you to enter data from the last Google account. If you do not remember them, you will need to bypass through the system. EDL service-centre.

Dumping through EDL-Mode: for advanced users

EDL (Emergency Download Mode) is a service mode that allows you to flash a device even with a locked bootloader.

  • πŸ”’ Devices with lockdown OEM Unlock;
  • πŸ“± Qualcomm Snapdragon models (e.g. Xiaomi) 11T Pro, Redmi K40);
  • 🚫 Phones after a failed update ("bricks").

Attention: Entry to the EDL requires:

  1. Special cable (EDL cable) or short circuit test points on the board;
  2. Mi Flash Tool and firmware for your model;
  3. An authorized Xiaomi account (for new devices)

Step-by-step:

  1. Download Fastboot ROM firmware for your model from en.miui.com.
  2. Install the Mi Flash Tool and unpack the firmware into a folder without Cyrillic characters.
  3. Transfer the phone to EDL: For Qualcomm: Press Volume Up + Loudness down + USB-cable; For Mediatek: use SP Flash Tool.

Mi Flash Tool

Refresh

COM-port

Flash

ModelProcessor typeSupported discharge methodIs authorization required?
Xiaomi 13 ProQualcomm Snapdragon 8 Gen 2Fastboot, EDLYes (for EDL)
Redmi Note 12Qualcomm Snapdragon 4 Gen 1Fastboot, EDLNo.
POCO X5 ProQualcomm Snapdragon 778GFastbootNo.
Redmi A2Mediatek Helio G36SP Flash ToolNo.

:Through the Recovery menu |Through Fastboot |Through EDL|Through the service center |I haven't tried-->

What to do if nothing helps: service centers and alternatives

If all of these methods fail, there are three options:

  1. Official Xiaomi Service Center: πŸ“ A check or box is required to confirm possession; πŸ’° Cost of discharge: 1,500–3,000 β‚½ (model-wise); ⏳ Time: 1-3 days.
  2. Informal workshops: πŸ”§ Use boxes (UFi Box, Octopus) to bypass FRP; 🚨 Risk of damage to the device or loss of warranty; πŸ’΅ Price: 1,000-2,500 β‚½.

Self-repair

  • πŸ”¨ Flashing through Test Point (requires rations);
  • πŸ“– Study of topics in forums 4PDA or XDA Developers;
  • ⚠️ High risk of turning a phone into a brick".

Tip: Before you go to the service, check if the warranty is valid. If the device is warranty, resetting it through informal methods will cancel it.

⚠️ On Xiaomi models 12S Ultra, Mix Fold 2 and new flagships use hardware binding IMEI Even after the reset, EDL The phone may remain locked, and in such cases, official service is the only way out.

How to avoid password problems in the future

To avoid being blocked the next time you reset, follow the simple rules:

  • πŸ”‘ Untie Mi Account before selling your phone: Settings β†’ Xiaomi account β†’ Get out;
  • πŸ“ Save backups of passwords in the manager (e.g. Bitwarden or Google Password Manager);
  • πŸ”„ Regularly update the firmware in new versions MIUI Vulnerabilities that can bypass the blockage are eliminated;

If you often experiment with firmware, install TWRP Recovery. This custom recovery allows you to reset settings without a password, but requires an unlocked bootloader.

πŸ’‘

Even if you reset your settings via Fastboot or EDL, the Mi Account binding may still be there.Always check your account status in Settings β†’ Xiaomi Account after the reset.

FAQ: Answers to Frequent Questions

Can I reset Xiaomi without a password if I don’t remember the Mi Account?
Yes, but only if: The device is not tied to the account (checked through Fastboot by the command fastboot oem device-info - look for the line Device unlocked: true); You can log in to the EDL-mode and flash stock firmware; the phone has firmware older MIUI 10 (Vulnerability to circumvention through ADB). On new models (2022 and later), bypassing without a password is almost impossible without data loss.
What is FRP-blocking and how to remove it?
FRP (Factory Reset Protection) is Google’s protection that activates after resetting your settings if your device was linked to a Google account. To remove it: When you first turn on after reset, connect to Wi-Fi; Enter data from the last Google account that was on your phone; If you don’t remember your password, restore it through accounts.google.com. Xiaomi with MIUI 13+ may require additional bypasses via ADB or Test Point.
Does resetting with #7780### work on Xiaomi?
No. Codes like ##7780## or *2767*3855# only work on older Samsung phones and some Android 4.x models. On Xiaomi with MIUI, these commands don't reset, but can: Open the test menu (#4636##); Show firmware information (#1234###); Do nothing (most codes are blocked).
Can I reset my settings through my computer without Fastboot?
Yes, if the phone is debugging on. USB (Settings β†’ For developers β†’ Debugging by USB). In this case: Connect your phone to your PC; Open the command line and type: adb shell recovery --wipe_data Confirm the reset on the device screen. If debugging is disabled, this method will not work.
What if the phone asks for an old password after reset?
This means that: The device is encrypted (File-Based Encryption), and you need an old PIN/password to unlock the storage; Complete reset (for example, via Wipe Cache instead of Wipe Data); Mi Account is not untied (requires the entry of data from the old owner); Solution: Repeat the reset via Fastboot with the fastbootse userdata command; If it does not help, run the full firmware through Mi Flash Tool (select the Clean All option).