Protecting personal information begins with the basic settings of your smartphone. One of the first lines of defense is to block the SIM cardsitself. Unlike a pattern or fingerprint, which protect access to the operating system interface, a pin code protects your phone number from being used on another device. If an attacker steals your device and tries to insert a SIM card into his phone, without the correct code he will not be able to make calls or receive SMS to confirm entry into banks.
Many users ignore this function, relying only on the screen lock, which is a serious mistake in matters of digital hygiene. The standard passwords that the telecom operator issues when purchasing a card (usually 0000 or 1234) are too widely known and do not provide real security. Changing these values โโto a unique combination of numbers takes only a couple of minutes, but significantly increases the level of security of your data and finances.
The process of changing the code on devices running Android is unified, however, menu names may differ slightly depending on the version of the system and the manufacturer's proprietary shell. In this article, we will analyze the algorithm of actions in detail, consider possible pitfalls and answer questions that arise when a card is accidentally blocked.
Why do you need a SIM card lock and how does it differ from a screen password
The fundamental difference between screen locking and SIM card protection is the level of access. Screen password, biometrics or pattern work at the operating system level Android. They do not allow the user to access applications, photos and phone settings. However, if you remove the card from a locked smartphone and insert it into any other device, it will immediately become active.
At this moment, the attacker gains full access to your number. This opens up opportunities for fraud: calls to contacts asking to transfer money, access to instant messengers (if they are not protected by an additional password) and, most critically, receiving an SMS with confirmation codes to enter online banking or government services. SIM blocking requires entering the code immediately after turning on any device into which the card is inserted, even before loading the operating system.
โ ๏ธ Attention: If you forget your PIN code and enter it incorrectly three times, the card will be blocked. To unlock, you will need a PUK code, which cannot be found by brute force. After 10 incorrect attempts to enter the PUK, the SIM card will be destroyed by software and will have to be replaced at the operator's salon.
Using a personal code is also convenient for sharing access. For example, you can give your child a phone to play with, having first blocked the SIM card with your password. The child will be able to use Wi-Fi and applications, but will not be able to make calls or send paid SMS, since each time you reboot or insert a card, you will need to enter a secret combination.
Preparing to change the password: searching for the PUK code and standard values
Before you start changing security settings, you need to make sure that you have access to manage the card. By default, most telecom operators set standard combinations. For MegaFon, MTS, Beeline i Tele2 this is often 0000 or 1234. However, you should not rely on memory, since you could change these values โโโโearlier and forget them.
The most important element of preparation is the search PUK code (Personal Unblocking Key). This is a master key, which is only needed in emergency cases when the PIN code is entered incorrectly three times in a row. You need to store it in a safe place, separate from your phone. Usually it is indicated on the plastic card holder from which you squeezed the SIM card when purchasing. If the plastic is lost, the code can be found in the operatorโs personal account or in the contract.
It is recommended to check the current blocking status in advance. Go to settings and make sure the feature is enabled. If it is turned off, the system may ask for the current PIN code when you try to turn it on. If you don't remember the current code and the standard ones don't work, don't try to guess it in your phone settings. It is better to immediately restore the PUK through the operator to avoid complete blocking.
Save the PUK code in a password manager or write it down in a paper notebook that is kept at home. Never store a photo of plastic with codes in the phone gallery - if the device is stolen, the attacker will receive both the card and the keys to it.
Step-by-step guide: how to change the code in the Android settings
The settings interface may vary, but the logic of the system is the same for all versions Android, from the old 8.0 to the latest 14 and 15. We need to find the section responsible for equipment safety. Most often, the path looks like this: go to Settings, then select the section Security or Biometrics and security.
Inside this section, look for an item called SIM card lock, SIM card settings or Other security settings. On some devices, for example from Xiaomi or Samsung, this item may be in a subsection Privacy or directly in the menu Connections. If the search is difficult, use the search bar at the top of the settings menu by searching for "SIM" or "PIN".
After When you enter the menu, you will see a lock activation switch and a code change button. The algorithm of actions is strictly regulated:
- ๐ฑ Click on the item
Change PIN code(or similar). - ๐ข Enter the current valid password (by default 0000 or 1234 if you do not have one changed).
- ๐ Enter the new code you came up with. Typically, 4 to 8 digits are required.
- โ Re-enter the new code to confirm.
The system will notify you that the change was successful. Now, every time you reboot the phone or remove and reinsert the card, the device will request a new combination. It is recommended to immediately test the operation: turn off the phone and turn it on again. If the request appears and the new code is correct, the procedure is completed correctly.
โ๏ธ Checklist for changing the password
Interface features on different versions of Android and shells
Smartphone manufacturers often modify the standard interface Android, adding your own branded shells. This results in menu item names that can be confusing. Understanding these differences will help you quickly find the desired setting without wandering through endless lists.
On devices with โcleanโ Android (Google Pixel, Motorola, Nokia series) the path is as short as possible. Usually it is located in the Security and location -> Additional settings -> SIM card locksection. Here the interface is minimalistic and contains only the necessary switches.
In the shell One UI from the company Samsung the logic is slightly different. Often, SIM card settings are placed in a separate large section. The path may look like this: Settings -> Biometrics and security -> Other security settings -> Setting a SIM card lock. Samsung also allows you to manage the lock for each SIM card separately if you have a device with two slots.
Users MIUI (Xiaomi, Redmi, POCO) should pay attention to the section Passwords and security. Inside it you need to select Privacy -> System security -> SIM card lock. In some firmware versions, this item is hidden deep in the privacy settings, which often raises questions among beginners.
| Brand / Shell | Main path to settings | Alternative section name |
|---|---|---|
| Google Pixel (Stock Android) | Security -> Advanced -> SIM lock | SIM Settings |
| Samsung (One UI) | Biometrics and security -> Others parameters | Set SIM lock |
| Xiaomi (MIUI/HyperOS) | Passwords and security -> Confidentiality | System security |
| Huawei (EMUI) | Security -> More security settings | Card blocking |
What to do if the item is not in the menu?
If you don't find the lock option, check to see if Flight Only mode is enabled or if your phone is in reduced functionality mode. Also, on some custom firmware this function may be hidden or removed by developers. In this case, managing the code is only possible through the operator's USSD commands.
What to do if you forgot your password and received a PUK request
The situation when the phone requires entering a PUK code causes panic among many users. This happens after three unsuccessful attempts to enter the PIN code. The screen is locked and it is no longer possible to enter the normal password. It is important to remain calm: the card is not damaged yet, but you only have 10 attempts left to enter the PUK.
PUK code consists of 8 digits. It cannot be invented or changed independently; it is strictly tied to the SIM card chip by the telecom operator. You need to enter it carefully, number by number. After successfully entering the PUK, the system will immediately ask you to come up with new PIN code. At this moment, you set the combination that you will use in the future.
โ ๏ธ Attention: Do not try to select the PUK code at random. You only have 10 attempts. After the tenth error, the SIM card will be permanently blocked (burned), and it is impossible to restore it - you will need to visit a communication store for a new plastic card while keeping the number.
Where can I urgently get a PUK code if the plastic card is lost? The fastest way is the operatorโs personal account on the website or in the mobile application (accessible via Wi-Fi). Also, the code is often duplicated in the service agreement that you signed in the salon. If none of these options are available, you will have to call the operator's support service from another phone or go to the office with your passport.
PUK code is not a password for daily use. This is the emergency key. After entering it, be sure to set a new PIN code that you can remember.
Managing blocking through USSD commands and operator applications
If access to the phone settings menu is closed for some reason or the interface is too confusing, you can use the universal language for managing mobile communications - USSD commands. This method works on any phone, even push-button models, and does not depend on the version Android.
The commands may differ between different operators, but the general principle is the same. Typically, to change the PIN code, you use a command like 04*old_code*new_code*new_code#is often used. For example, if the old code is 0000, and you want to make the new one 5555, dial: 04*0000*5555*5555# and the call button. To unlock via PUK, the command **05*PUK*new_PIN*new_PIN#.
It is better to check the exact codes for your operator on the official website, as they may change. Below is a table with the most common commands, but it is worth double-checking the relevance.
โ ๏ธ Attention: USSD commands are sensitive to the input format. Make sure you use asterisks (*) and hash marks (#) and not other characters. The command must be dialed in the "Phone" application as a regular number.
An alternative modern way is to use operator applications (My MTS, MegaFon, My Beeline). In the "Services" or "Security" sections there is often a PIN code management function. This is convenient, since the application interface is more friendly than entering complex combinations of numbers, and eliminates typing errors.
Example of a PIN change command:**04*1234*5678*5678#
Where:
1234 - current password
5678 - new password (entered twice)
When entering USSD commands, it is better to copy them from a reliable source and paste them into the dialer to avoid typos. An error in one digit can lead to a temporary blocking of the code change function for 24 hours.
Frequent problems and ways to solve them
Despite the simplicity of the procedure, users sometimes encounter technical difficulties. One of the common problems is the message โInvalid PUKโ when trying to unlock, although the code was entered correctly. This may happen due to the fact that the plastic contains codes for different cards (if there were several of them in the family), or you are looking at the code from the previous SIM card.
Another situation: the phone does not accept the new PIN code, giving an error upon confirmation. Make sure you don't use combinations that are too simple, which the system might consider unsafe (although this is rare at the SIM level), or that you don't mix up the keyboard layout. Also check if the CapsLock button is accidentally pressed or if the mode for entering symbols instead of numbers is turned on.
If, after changing the code, the phone stops seeing the network or constantly asks for the code even after entering it correctly, there may be a failure in reading the SIM card contacts. Try to carefully remove the tray, wipe the SIM card contacts with a soft cloth and insert it back. In rare cases, resetting the network settings helps, but this will not affect your personal data.
Is it possible to disable the PIN code request completely?
Yes, in the same settings menu where you changed the code, there is a "SIM Card Lock" switch. If you turn it off and enter the current code for confirmation, the phone will stop asking for a password when you turn it on. However, this reduces the security of your number.
Does changing the PIN code affect the balance or tariff?
No, changing the lock code occurs exclusively on the SIM card chip and in the phone memory. This operation is free and does not in any way affect the terms of your tariff plan, account balance or connected services.
What happens if you enter the PUK code incorrectly 10 times?
The SIM card will be permanently blocked. A message will appear on the screen indicating that the card is invalid or requires replacement. It is impossible to restore it programmatically. You will have to contact the operator's service center with your passport to reissue the card while keeping your number.
Does SIM locking work if the phone is turned off?
The locking is triggered when the modem is initialized. If the phone just reboots, you will be asked for a code. If the phone is completely turned off and lying on the table, the code is not needed. But as soon as you press the power button, the first request from the system will be the SIM card PIN code (before entering the screen unlock pattern).
Is it possible to set the same PIN code on two SIM cards?
Yes, you can set the same combination of numbers for both slots. This is convenient for memorization. However, you need to change them separately, going into the settings of each SIM card individually in the phone menu.