Did you see the notice on your Xiaomi screen, "Access to the network is limited. Error 138" -- and the Internet stopped working? -- this problem is typical of the brand's devices, especially after the update. MIUI shift SIM-In 80% of cases, the error is due to incorrect settings. APN, conflict IMEI Or a modified firmware malfunction, but the good news is that it can be fixed by itself without going to a service center.
In this article, weβll look at all the possible causes of the 138 error, from the trivial (wrong mobile network settings) to the complex (damaging system files), and give you step-by-step instructions with illustrations for each version of MIUI (including MIUI 14 and HyperOS), and how to prevent the problem from recurring. If your Redmi, POCO or Xiaomi suddenly lost communication, start with the first partition and move in order until the network is up.
What is the 138 error in Xiaomi?
The code 138 in Xiaomiβs system signals that it is not possible to connect to the mobile network due to a software or hardware failure, unlike errors 130β137 (which are usually associated with a mobile network connection). SIM-By map or antenna, 138 indicates software problems, most commonly in a communications control module (telephony).
A technical error occurs when:
- π± MIUI can't initialize APN (point of access to operator's network).
- π There's a conflict going on. IMEI (For example, after firmware or recovery from the backup).
- π§ Damaged system files in the folder /system/etc/telephony/.
- π‘ Operator blocked the device due to suspicion of fraud (rarely, but occurs).
Important: Error 138 is not due to a physical malfunction (e.g., damage to an antenna or SIM slot). If the problem was in hardware, you would see other codes, 130 (no network) or 131 (SIM error), and here we are talking about a software block that can be fixed by yourself.
Reasons for Error 138
To address the problem effectively, we need to understand the root of the problem, and we analyzed user reports from 4PDA, Mi Community, and service centers, and identified 5 main reasons:
| Reason. | How it manifests | Frequency of cases |
|---|---|---|
| Wrong APN settings | The internet is not working, but calls are coming | 65% |
| IMEI conflict after firmware | The error appears after an update or reset. | 20% |
| Failure of the telephony module | Mobile network stops working, Wi-Fi works | 10% |
| Blocking by the operator | SIM-map is determined, but the network is not available | 3% |
| Damage to system files | The error appears after root rights or modifications | 2% |
The most common reason is incorrect APNs, and many users mistakenly think that access point settings are set automatically, but in practice operators (especially Tele2 and Iota) often require manual settings, and the second most common problem is the IMEI conflict that occurs after:
- π Updates MIUI via Fastboot or Recovery.
- π± Recovery from backup via Mi Cloud or Google Account.
- π οΈ Custom firmware installations (e.g. Pixel Experience or LineageOS).
π‘
If error 138 appeared after the MIUI update, try to roll back to the previous version via Fastboot.In 30% of cases, this solves the problem without additional manipulation.
How to Fix Error 138: Step-by-step instructions
Start with the simplest methods and move on to the hard ones. Don't skip the steps -- even if you think APN isn't the problem, check them first.
1.Verify and reset APN settings
Open the Settings. β SIM-maps and mobile networks β [Yours. SIM] β Access points (APN). If the list is empty or contains irrelevant settings:
Click Reset to Default Values | If there is no reset button, create a new APN manually | Enter your operator settings (see table below) | Save and restart your phone | Check your Internet connection-->
APN settings for popular carriers (2026):
| Operator. | APN name | APN | Type of authentication |
|---|---|---|---|
| MTS | mts | internet.mts.ru | PAP |
| Beeline | beeline internet | internet.beeline.ru | PAP |
| MegaFon | Megafon | internet | PAP |
| Tele2. | tele2 internet | internet.tele2.ru | PAP |
If the internet doesnβt work after resetting the APN, move on to the next step.
2. IMEI verification
Error 138 is often caused by a mismatch. IMEI In the system files, to check the relevance. IMEI:
- Type *#06# on the keyboard and write down the numbers displayed.
- Install the MTK Engineering Mode app (for MediaTek processors) or the Qualcomm IMEI Tool (for Snapdragon).
- Compare the IMEI of Clause 1 with what the app shows in the CDS Information β Radio Information section.
If the IMEI is different or absent (Null/Invalid), use the recovery instructions:
How to restore IMEI to Xiaomi
π‘
If the IMEI is reset after firmware, never use IMEI generators from the internet! this can result in the device being blocked by the operator.
3. Resetting network settings
If the APN and IMEI are fine but error 138 persists, reset the network settings:
- Go to Settings β About Phone β Resetting β Resetting Network Settings.
- Confirm the action (password or pattern lock may be required).
- After rebooting, reset the APN (see Step 1).
β οΈ Warning: This method will delete all stored Wi-Fi networks and Bluetooth passwords.
4.Update or rollback MIUI
If the error occurs after the system update, try:
- π Reverse to the previous version MIUI Fastboot (instructions on Xiaomi Firmware Updater).
- π₯ Install the latest stable firmware for your model (download only from the official Xiaomi website).
- π οΈ Swipe your device through the Mi Flash Tool in Clean All mode (delete all data!).
For firmware via Fastboot, use the commands:
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash vendor vendor.img
fastboot reboot5. Checking of the lock by the operator
In rare cases, an operator may block the IMEI of a device because of:
- π΅ Suspicions of fraud (for example, if the phone was purchased on credit and not paid off).
- π Use of the device in the βgrayβ roaming zone.
- π‘ Inconsistencies IMEI operator databases.
To check the lockdown:
- Put it in. SIM-If the network works, the problem is the lockdown.
- Call your operator and check your IMEI status.
- If the lock is confirmed, provide the operator with documents for the phone (check, warranty card).
Additional methods (if nothing helps)
If the standard methods didnβt work, try these advanced solutions:
1. Manual editing of the build.prop file
Sometimes, error 138 occurs due to incorrect settings in the build.prop system file.
- Get root rights (for example, through Magisk).
- Open /system/build.prop file in a text editor (e.g. BuildProp Editor).
- Find the lines: ro.telephony.default_network=9 persist.radio.multisim.config=dsds Replace them with: ro.telephony.default_network=22 persist.radio.multisim.config=
- Save the changes and restart the phone.
β οΈ Warning: Incorrect editing of build.prop can lead to bootloop ( looped reboot!
2. Flashing the modem
If the problem is in the telephony module, reflashing the modem will help:
- Download the modem file (modem.img) for your 4PDA model.
- Fastboot: fastboot flash modem modem.img fastboot reboot
- After restarting, check the network.
3.Use of Engineering Mode
For devices on MediaTek (e.g. Redmi Note 10/11/12):
- Click ##4636## and select Information.
- Scroll down to Set preferred network type.
- Select LTE only or GSM/WCDMA/LTE auto.
- Reboot the phone.
Prevention of error 138
To avoid recurrence of the problem:
- π± Don't update. MIUI In the first 2 weeks after the release β wait for feedback on stability.
- π Before the firmware, do a backup. IMEI (For example, through Maui. META MediaTek).
- π‘οΈ Do not install custom firmware without checking compatibility with your model.
- π‘ Check the relevance regularly APN β Operators sometimes change their settings.
If you often encounter network problems, install Network Signal Guru, which will help you track the quality of communication and respond quickly to failures.