How to find out the security code on Xiaomi: full instructions

Owners of Xiaomi, Redmi and Poco smartphones often face the need to enter protective combinations when changing. SIM-The security code in the Chinese giant's ecosystem is not one universal number, but a collection of different passwords, each of which is responsible for its own level of security. PIN-code SIM-The card, pattern lock of the screen and unlock code of the bootloader is critical to restore access to the gadget.

In this article, we will take a look at all scenarios where the system requests identity verification and provide working methods for solving problems. You will learn where to look for standard factory passwords, how to restore access through a Mi Account account and what to do if the device is blocked by a carrier.

It’s worth noting that there’s no single magic number that works for all phones at once.The standard factory code for unlocking the screen on most Xiaomi devices is 0000 or 1234, but current versions of MIUI and HyperOS force the user to install a unique combination when first setup, ignoring this fact can lead to locking the device after several failed input attempts.

Types of security codes in Xiaomi smartphones

Before you start restoring access, you need to clearly identify what type of protection you are concerned about. MIUIBut it protects the user's data. The primary layer is protecting the user's data. SIM-This code is set by the operator or the user himself, and is requested immediately after the phone is turned on, even before the desktop appears, and its purpose is to prevent the SIM card from being used on another device without the owner's permission.

The second level is the lock screen, which is the pattern lock, the digital key. PIN-It's the mechanism that most often raises questions when the user forgets the combination. SIM-A card that is stored on the operator's chip, this password is encrypted in a secure memory area of the phone's processor. MIUI use hardware encryption, making simple code selection almost impossible without data loss.

The third, most difficult layer is Mi Account and unlocking the bootloader. If the phone was enabled to search for the device, then after resetting the settings (Hard Reset), the system will require you to enter the username and password from the Xiaomi account that was synchronized earlier. This is an anti-theft mechanism that can not be circumvented by simple codes. There is also a bootloader unlock code that is required to install custom firmware, but it is only requested in a special mode and is tied to a specific account.

  • πŸ”‘ PIN-code SIM: 4-8 numbers requested when turning on the phone to access the operator's network.
  • πŸ“± Screen lock code: Graphic pattern, digital password or fingerprint to access the interface.
  • ☁️ Mi Account: Cloud service login and password to confirm ownership of the device after a reset.

⚠️ Attention: Don't confuse the code PUK unlockable SIM-The card after three incorrect attempts to enter PIN with the phone reset codes. PUK-code more than 10 times leads to the blocking of the SIM card, which can be restored only in the office of the operator.

πŸ“Š What type of lock causes you the most problems?
PIN-code SIM-map
Graphical screen key
Forgotten password of Mi Account
Locking the loader

Standard factory passwords and combinations

Many users are looking for generic codes that could be installed in the factory. Older versions of firmware released a few years ago did have standard combinations that manufacturers often did not change. For Xiaomi and Redmi devices, the most common factory passwords for logging in to menus or unlocking were considered 0000, 1234, 123456 or 000000. However, relying on them in 2026-2026 is not worth it, as the company’s security policy has become much stricter.

There are also special engineering codes that are entered through the Phone app that allow you to access hidden diagnostic menus. For example, code ##6484## opens an engineering menu (CIT) where you can check the operation of sensors, screen and sound. Code ##4636## displays information about the battery and usage statistics. These codes are not security passwords in the literal sense, but are often perceived by beginners as β€œsecret keys” to the system.

If you bought a used device or got it from someone you know and it's locked, try the standard options, but don't spend a lot of time on them. Current File Based Encryption (FBE) locks don't just log in without the right encryption key. Trying to guess the password can lead to a temporary lock of input for 30 seconds, 5 minutes, or even 12 hours.

List of rare engineering codes Xiaomi
#06# β€” Check IMI device code |###225### β€” Calendar and Event Information |###426## β€” Google Play Services Test |#7780##* β€” Reset (requires confirmation)

It is important to understand the difference between unlock code and content access code. In some regions, especially in China, devices may have an additional password to access certain applications or β€œsecond space”; there is no standard code for them, as it is set exclusively by the owner when setting up the Second Space or App Lock feature.

What to do if you forget your screen password or pattern lock

The situation of a user forgetting a pattern lock or a digital pin is one of the most common. Unlike older versions of Android, where you could reset a password through a Google account directly on the lock screen, modern versions of MIUI 12, 13, 14 and HyperOS, this feature is often missing or only works if you have an active Internet connection and pre-enabled sync.

If you see a message that says, "Too many attempts," or your phone just doesn't accept your combinations, the first thing you do is check if the Internet is on. If your device is connected to Wi-Fi or mobile, try entering the wrong password several times until you see the sentence, "Forgot your password?" or "Forgot your pattern lock?" By clicking on this button, the system will suggest you enter the password from your Mi Account or Google Account account that is tied to the device. This is the most gentle way to save data.

If there is no Internet connection or no recovery button, the only official way is to completely reset the data (Wipe Data), which will delete all photos, contacts, apps and files, returning the phone to factory condition. To perform this procedure, you need to get into Recovery mode. To do this, turn off the phone completely, then press the Volume + and Power buttons simultaneously. Hold them until the Mi logo appears, then release the power button, continuing to keep the volume.

β˜‘οΈ Reset algorithm via Recovery

Done: 0 / 5

After selecting the language (if the menu is in Chinese, it is the second button on the top), select Wipe Data, then Wipe All Data and confirm the action. The phone will reboot, and the process will take a few minutes. Once turned on, the device will require a Wi-Fi connection and a password from a previously synchronized Google or Xiaomi account to confirm that the phone is not stolen.

Unlocking SIM-mapping PUK-code

And you have to pay special attention to the cell phone lock, which is when you first insert a new one. SIM-Xiaomi card, it can be protected by standard PIN-code (often 0000 or 1234) that is listed on the plastic card holder. PIN-code, SIM-The card will be locked and the phone will require input. PUK-Personal Unblocking Key (Personal Unblocking Key).

PUK-The code is a unique 8-digit key that can't be picked up or changed, and it's not stored in the phone, but is tied exclusively to the SIM chip, and you can find it in a number of ways: On a plastic card issued with a SIM card (usually you need to erase the security layer), in the subscriber's personal account on the operator's website or in the mobile operator's application, and the code can be found by calling support if you pass the identification.

The process of unlocking on Xiaomi smartphones is as follows: PUK-Enter 8 digits. Once you've entered it, the system will ask you to come up with a new one. PIN-code (usually 4 digits) and confirm it. Be very careful if you type 10 times incorrectly PUK-code, SIM-The card will be locked forever, and it will be impossible to restore it, you will have to go to the communication salon to replace the SIM card with the number saved.

Type of codeLengthWhere to find out.Effects of error
PIN-code SIM4-8 digitsOn the operator card by default 0000/1234SIM lock after 3 attempts
PUK-code8 digitsPersonal account, operator card, supportCompletely locking the SIM after 10 attempts
Screen code4+ characters/keyUsers inventTemporary blocking or data resetting
Mi AccountAccount passwordRecovery on mi.comInability to use the phone (Activation Lock)

πŸ’‘

Save it. PUK-code in a safe place (for example, in cloud notes or write in a notebook), as users often throw away a plastic card with it immediately after activating the SIM card.

Mi Account and Activation Lock

One of the biggest problems for users is Activation Lock, which works if the phone has been turned on to search for the device and the user has performed a full reset (Hard Reset). The first setup after the reset, the phone will require you to enter the username and password from Mi Account, which was active on the device before the reset, which is effective protection against theft, but a headache for those who have forgotten their data.

The official way to restore access is to use i.mi.com or Xiaomi's account management page. If you remember your login (phone number or email) but you forget your password, use the recovery function. The system will send the confirmation code to the linked number or email. It's important to have access to that phone number. If the SIM card is lost, first restore the number from the operator, then reset the password from the account.

There are many myths about how to get around this protection through engineering menus or special programs on the PC, most of which are either viruses or paid services, which often turn out to be scams. The only legal way to remove the lock Mi Account without a password is to provide a receipt for the purchase of the device to an authorized service center Xiaomi. IMEI-code and check.

⚠️ Warning: Using third-party software to β€œhack” Mi Account may lead to irreversible locking of the device’s motherboard (IMEI blacklist) or malware installation: official support will not help if there is an interference with system files.

Engineering codes and safety diagnostics

For advanced users and repair professionals, codes that allow you to check the status of locks and system status will be useful. By entering them in the Phone app, you can access hidden sections. For example, code ##64663## (or variations depending on the model) can show the version of the test software. However, it is worth remembering that in new versions of Android 12/13/14, access to some engineering menus through dialing can be limited by the manufacturer for security reasons.

To check the bootloader lock status, which is important when buying a used phone, you can use a quick menu. Press the Loudness and Power buttons on the phone turned off. The Mi Bunny logo will appear on the screen. At the bottom of the screen will be the status: Locked (locked) or Unlocked (unlocked). If Unlocked status, it means that the bootloader is open, which reduces the overall security of the device, since an attacker can theoretically reflash the phone.

Also through the computer and platform ADB (Android Debug Bridge can be accessed with detailed information about the security status.Adb shell getprop ro.boot.flash.locked will return 1 if the bootloader is locked and 0 if it is unlocked.This is a more reliable way of diagnosing than visual inspection, especially if the phone screen is broken.

πŸ’‘

Locked/Unlocked status is a key indicator of the security of a used device: an unlocked bootloader allows you to reset the screen password without losing data, but makes the phone vulnerable to data theft.

Frequently Asked Questions (FAQ)

Can I unlock Xiaomi without losing data?
Officially, no, unless you have forgotten your screen password and set up a previously remote unlock through Mi Cloud. Password reset always involves encrypting data, the key to which is lost along with the password. Third-party programs that promise to save data are often fraudulent or only work on very old versions of Android (up to 6.0).
What code to enter if the phone requires a PUK and no card?
You can't enter anything at random. You need to go to your mobile operator's personal account (MTS, Beeline, MegaFon, Tele2 etc.) from another device or computer. PUK-The code is displayed in the SIM card information, and you can also find it by calling the operator's support.
What is the 000000 security code on Xiaomi?
This is one of the standard factory passwords that could be used in very old models or in Chinese versions of firmware to log into some menus. In today's global versions of MIUI and HyperOS, this code is not a universal master password and is likely not suitable for unlocking your personal device.
How to turn off the password request when turning on the phone?
You can turn it off. PIN-code SIM-maps in settings: Settings β†’ Passwords and security β†’ Confidentiality β†’ SIM-But it's going to reduce security, because if the phone gets stolen, the attacker can insert your SIM card into another phone and use the number.
Why does the phone ask for a password from a Google account after a reset?
This is FRP (Factory Reset Protection) protection, which is activated automatically if a Google account is added to the phone, and the purpose of the protection is to make the stolen phone useless for the thief, because without the owner's password, you can't use the device after the reset.