How to change PIN-Z code SIM- cards on Xiaomi smartphones: all ways

Forgot PIN- code from SIM- card or want to put a more reliable? on smartphones Xiaomi, Redmi and POCO code change procedure takes less than a minute, but has nuances depending on the model and version of MIUI. In this article, we will analyze all the current methods - from standard change through settings to restore access when blocked.

Important: PIN-Z SIM- card code is not the same as a pattern lock or screen unlock password. It protects the SIM itself from unauthorized use in other devices. If you type it incorrectly 3 times in a row, the card will be blocked, and you will need PUK- code to unlock it (you can find it from the operator or in your personal account).

Why you may need to change the PIN- code SIM- card

Many Xiaomi users have not changed a standard PIN (such as 0000 or 1234) for years, although this poses risks:

  • πŸ”“ Data Leakage: If the phone falls into the wrong hands, an attacker can extract the SIM- card and use it on another device, receiving SMS (including with bank confirmation codes).
  • πŸ“± Newer device incompatibility: Some operators (e.g., Tele2 or Yota) require a change of standard PIN when eSIM is activated.
  • πŸ”„ Transition to a different tariff: when changing the operator or tariff plan, confirmation through PIN is sometimes required.
  • πŸ›‘οΈ Extra protection: The sophisticated PIN will make life harder for scammers, even if they steal your Xiaomi.

According to a 2023 Kaspersky study, 68% of users never change standard PIN- codes on SIM- cards, although it takes less than 2 minutes. Meanwhile, mobile operators in Russia are required to provide the ability to change PIN through USSD- commands or personal account from 2021, a requirement of Federal Law β„– 248-FZ.

πŸ“Š Have you ever changed the PIN- code of your SIM- card?
Yeah, regularly.
Yeah, but long ago.
No, I'm using standard.
I don't know what that is.

Method 1: Change PIN- code through the settings of Xiaomi

This is the simplest and most versatile method that works on all Xiaomi smartphones running MIUI 12/13/14 (including Redmi Note 12, POCO X5, Xiaomi 13T, etc.).

  1. Open the Settings app (cog icon).
  2. Go to section. SIM-Maps and mobile networks (or Mobile Network on older versions).
  3. Choose yours. SIM-card (if two of them).
  4. Tap on the security SIM- card or Management SIM- card.
  5. Click Change PIN- code.
  6. Enter the current PIN (by default, it is 0000, 1111 or 1234).
  7. Create and enter a new PIN (from 4 to 8 digits).
  8. Confirm the change.

If you do not have a SIM- card, try an alternative route:

Settings β†’ Passwords and security β†’ Privacy β†’ Security of SIM-card

Make sure that SIM-card active (there is a network)

Remember your current PIN or find it in your contract with the operator.

Think of a new PIN (don’t use dates of birth or simple combinations)

Check if the phone is charged (in case of locking)

-->

⚠️ Warning: If you enter the current PIN incorrectly 3 times, the SIM- card will be locked. Unlocking will require a PUK- code (you can find it on the plastic SIM- card holder or in the operator's personal account). Without the PUK- code, you will have to change the card!

Method 2: USSD- Commands to change PIN (without settings)

Not everyone knows, but you can change the PIN- code directly through conditional commands (USSD) without going into the phone settings. This method works independently of the Xiaomi model and the MIUI version, but not supported by all operators.

  • πŸ“ž For MTS, Beeline, MegaFon and Tele2: #04[old PIN][new PIN][new PIN]# Example: If the old PIN 1234 and the new 5678, dial: *#04*1234*5678*5678#]
  • πŸ“± For Yota and Tinkoff Mobile: **04*[old PIN][new PIN][new PIN]#

After dialing the command, press the call button. If done correctly, you will receive a notification of a successful PIN change.

  • πŸ”’ Correctness of old PIN (no errors shown).
  • πŸ“Ά Network availability (USSD only works when the connection is active).
  • πŸ“± Team support by your operator (check on the official website).

πŸ’‘

If the team’s USSD- does not work, try entering it through the standard Phone app, not through third-party calls (such as Truecaller or Google Phone).

Method 3: Change PIN through the operator’s personal account

Some operators (e.g. MegaFon or Tinkoff Mobile) allow you to change the PIN- code of the SIM- card via the web version of your personal account or mobile application.

  • πŸ“΅ You do not have access to your phone (lost or broken).
  • πŸ”’ You forgot the current PIN and you want to reset it.
  • 🌐 You are abroad and cannot use USSD.

Instructions on the example of MegaFon:

  1. Go to your personal account or open the MegaFon application.
  2. Go to the SIM- Card Management or Security Settings section.
  3. Select the option to Change PIN- code.
  4. Enter the current and new PIN (SMS- confirmation may be required).
Operator.Method of changing PINLink to personal account
MTSThrough the My MTS or USSD applogin.mts.ru
BeelineOnly through USSD or support callmoskva.beeline.ru
MegaFonPersonal account or applicationlk.megafon.ru
Tele2USSD or call in supportmy.tele2.ru
Tinkoff MobileApplication or personal accounttinkoff.ru/mobile

⚠️ Warning: If you changed PIN through the operator's personal account and the phone still asks for the old code, restart the device. Sometimes the changes don't apply immediately.

What to do if you forgot PIN-code SIM-maps on Xiaomi

If you entered the wrong PIN 3 times, the SIM- card will be blocked and the PUK- code request will appear on the screen.

  • πŸ“„ Plastic holder of SIM-card: PUK is usually listed next to PIN on the card you received when you purchased the SIM.
  • πŸ“§ Operator contract: If saved, there may be PUK.
  • 🌐 Operator’s Personal Cabinet: MTS, MegaFon and Beeline PUK displays in the SIM- Map Management section.
  • πŸ“ž Support call: If nothing helps, call the operator from another phone (the support number is usually listed on the site).

If you enter PUK wrongly 10 once, the SIM- card will be permanently locked and you will have to change it in the operator's cabin, so it is better not to guess, but to specify the code in advance.

How to unlock a SIM- card without a PUK- code?
If you have lost the PUK and cannot recover it, the only way out is to contact the operator’s cabin with a passport. SIM- card will be replaced for free, but the number will remain the same. Some operators (for example, Tinkoff Mobile) can order a new SIM through the courier app.

Frequent Mistakes and How to Avoid Them

When changing the PIN- code to Xiaomi, users often face typical problems:

Mistake.Reason.Decision
You can't change the PIN.SIM- Card is inactive or not on the networkCheck the signal level or restart the phone
No item "SIM Security" is availableOutdated version of MIUI or custom firmwareUpdate the software or use the USSD- command
The new PIN is not retained.Conflict with dual SIM applicationsTurn off the second SIM- card before changing
Phone asks for PUK after PIN changeOperator error or network failureRestart the device or contact support

If after changing the PIN, the phone stopped catching the network, try:

  1. Turn on/off Flight Mode.
  2. Reboot the smartphone.
  3. Manually select the operator in the settings (Settings β†’ SIM-cards β†’ Network selection).

πŸ’‘

If after changing the PIN- code, mobile Internet disappeared, check the settings of the APN. Sometimes operators reset them when changing the security settings of the SIM- card.

How to Create a Reliable PIN for SIM- Card

Many people put simple combinations like 1234 or 0000, but that's the equivalent of no protection.

  • πŸ”’ Length: Use 6-8 digits (maximum for most operators).
  • 🎲 Accident: Avoid dates of birth, repeating digits (1111) or sequences (1234).
  • πŸ”„ Unique: Do not use the same PIN as for a credit card or pattern lock.
  • πŸ“± Storage: Write the code in a secure location (e.g., in the Xiaomi Password Manager).

Examples of reliable PIN- codes:

  • πŸ” 742961 (random combination).
  • πŸ” 384729 (without apparent logic)
  • πŸ” 519370 (not related to personal data)

Don't use:

  • ❌ Last 4 digits of the phone number.
  • ❌ Year of birth or other personal data.
  • ❌ Repeated digits (2222, 5555).

πŸ’‘

To remember the new PIN, come up with an association: for example, code 314159 is the beginning of pi, and 271828 is the number e (mathematical constant).

FAQ: Answers to Frequent Questions

Can you change the PIN- code to Xiaomi without entering the current one?
No, changing the PIN always requires entering the current code. If you forget it, contact the operator for a PUK- code or replace the SIM- card.
What if after changing the PIN phone stopped seeing the SIM- card?
Reboot the device. If it doesn't work, check if the SIM- card is inserted correctly (the contacts are sometimes oxidized). In extreme cases, reset the network settings: Settings β†’ SIM- cards β†’ Network reset.
Is this a good way to use eSIM on Xiaomi?
The procedure is different for eSIM: the PIN changes through the operator’s application (for example, MTS Connect or MegaFon eSIM). In Xiaomi settings, you can only turn on / off the PIN request at startup.
Can the request be deactivated? PIN-code when turning on the phone?
Yes, but it will reduce security. Go to Settings β†’ SIM- Cards β†’ Security SIM β†’ Request PIN and disable the option. However, we do not recommend doing this!
Does the PIN change to Xiaomi work with custom firmware (e.g. Pixel Experience)?
On unofficial firmware, the SIM- card control point may not be available, in which case use the USSD- commands or the operator's personal account.