If your Xiaomi smartphone suddenly shows a notification with an error code 138, it means that the device cannot connect to mobile Internet or Wi-Fi despite the visible presence of the network, POCO Mi, but its causes and solutions often depend on the specific situation: a failure in the settings. APN lock-in IMEI operator.
In this article, we will look at all possible causes of error 138, from basic (wrong network settings) to complex (hardware malfunctions of the communication module), you will receive step-by-step instructions for diagnosing and fixing the problem, as well as tips on how to avoid it recurring. We pay special attention to hidden settings MIUI, which are often ignored in standard guides.
What does the 138 error mean for Xiaomi?
Code 138 in the system MIUI This is not a universal Android bug, it is specific to Xiaomi firmware and can manifest in different ways:
- π΅ Mobile Internet is not working, although the network indicator shows 4G/5G.
- π Signal! or R near signal level.
- π« The message "Access to the network is limited" in the notification curtain.
- π Wi-Fi connects, but pages donβt load (other devices are working normally).
It is important to distinguish Error 138 from other network problems.
| Error code | Reason. | Is it on Xiaomi? |
|---|---|---|
| 138 | Restriction of access (APN, IMEI, policy) | Yes. |
| 6 | Registration on the network (no coverage) | Yes. |
| 38 | Authentication error (incorrect) PIN/PUK) | Yes. |
| 1005 | Mistake. DNS (Usually when connected to Wi-Fi) | No (Universal for Android) |
Error 138 may be temporary (for example, after an update) MIUI), and permanent (if blocked) IMEI). In 80% of cases, it is possible to eliminate it without contacting the service center.
The main reasons for the error 138
The reasons are divided into software (settings, firmware) and hardware (communication module, antenna).
1. Incorrect settings APN
The most common reason is the reset or incorrect parameters of the access point (APN). It could happen after that:
- π Updates MIUI.
- π± Resetting to factory settings.
- π§ Manual editing of network settings.
- π² Custom firmware installations.
Operators periodically update the parameters APN, But the smartphone doesn't always pull them up automatically. For example, MTS changed its address in 2026. APN from Internet.mts.ru to mts for new SIM-map.
2.Problems with IMEI
If IMEI your Xiaomi:
- π Blocked by the operator (for example, for late payments under the contract).
- π οΈ Reset or damaged after firmware.
- π± Does not match the model (found on "gray" devices).
β The network will be limited, and the logs will appear error 138. IMEI You can use the *#06# command or the Settings menu β The phone. β General information.
How to check if it is blocked IMEI?
Failures in the communication module
Hardware malfunctions are manifested as follows:
- πΆ Network signal disappears in random places (even where it was previously caught).
- π Rebooting the smartphone temporarily solves the problem.
- π οΈ The service menu (#4636##) displays the status "Disconnected" or "ErrorΒ».
Most often it's the fault:
- π‘ Antenna cable (running or moving away from the connector).
- π Communication module (overheating or failing).
- π± Slot SIM-maps (contact oxidation).
π‘
If the 138 error occurs after a phone falls or moisture hits, there's a 95% chance that the problem is hardware. Don't try to solve it software--it can make the breakdown worse.
4. Blocking by the operator
Operators may restrict access to the network in the following cases:
- π³ Unpaid bill (even if the balance is positive, there may be delay restrictions).
- π± Suspicion of fraud (e.g. frequent shifts) SIM-map).
- π Roaming (some tariffs block internet abroad).
- π‘ Network congestion (time limit during rush hour).
To check the lock, call your operator's hotline or send USSD-request:
- MTS: *111*0887#
- Beeline: *102#
- MegaFon: *105*00#
- Tele2: *155*1#
5. Firmware conflict or MIUI
Error 138 may occur after:
- π Updates to MIUI (especially in beta versions).
- π± Custom firmware installations (e.g. Pixel Experience or LineageOS).
- π§ Reverse to the old version (downgrade).
In such cases, it helps:
- π Resetting network settings (Settings) β System system β Reset β Resetting network settings).
- π₯ Flashing through the Mi Flash Tool (only for experienced users!).
π‘
If the error 138 is detected immediately after the update MIUI, Try to revert to the previous version through Settings. β The phone. β Updating the system β Three points. β Select a Service Package.
How to Fix Error 138: Step-by-step instructions
Start with the simplest ways and gradually move on to the most complex ones, and after each step, check if the error has disappeared.
1. Reboot the smartphone and SIM-map
It is very common, but it helps in 30% of cases:
- Turn off the phone.
- Get it. SIM-Check the card for damages.
- Clear the contacts. SIM-cards and slots with dry soft fabric.
- Push the card back in and turn the device on.
If SIM-card damaged (scratching contacts, cracks), replace it in the cabin of the operator.
2.Appointment of APN manually
Automatic setup APN It might not work properly. Add the parameters manually:
- Go to Settings. β SIM-maps and mobile networks β [Yours. SIM] β Access points (APN).
- Press. + (Add APN).
- Enter the parameters for your operator (see table below).
- Save and select a new APN.
| Operator. | APN name | APN | Type of authentication |
|---|---|---|---|
| MTS | MTS Internet | mts or internet.mts.ru | PAP or CHAP |
| Beeline | Beeline Internet | internet.beeline.ru | PAP |
| MegaFon | Megafon | internet | PAP |
| Tele2. | Tele2 Internet | internet.tele2.ru | PAP |
After saving, reboot your phone if you want to. APN does not persist or disappears after restarting - this is a sign of a failure in the firmware.
βοΈ Verification APN pre-conservation
3. Resetting network settings
This method removes all stored Wi-Fi networks, passwords and mobile Internet settings:
- Open Settings β System β Reset.
- Select Network Resetting.
- Confirm the action (it may be necessary to enter) PIN-code).
After discharge:
- π Reboot the phone.
- πΆ Connect to Wi-Fi and check your mobile internet.
- π± If the error persists, move on to the next step.
π‘
Before resetting the network, save Wi-Fi passwords in notes or take screenshots with settings APN β This will save time after the reset.
4.Verification IMEI and re-establishment
If IMEI It is damaged or reset, and can be restored without contacting the service:
Step 1. Verification IMEI:
- Dial *#06# and display a 15-digit number (or two dual-SIM numbers).
- Compare it to the number on the box or under the battery.
Step 2: Recovery IMEI (for root users only!):
- Install the MTK Engineering Mode app (for MediaTek processors) or the Qualcomm IMEI Tool (for Snapdragon).
- Enter the original IMEI (from the box and save.
- Reboot the phone.
β οΈ Attention: Incorrect change IMEI This can lead to a complete loss of communication and cancellation of the warranty.If you are not sure about your actions, contact the service center.
5. Update or roll back firmware
If the error occurred after the update MIUI:
- π Try to revert to the previous version through the update menu.
- π₯ If rollback is not possible, install the full firmware via the Mi Flash Tool (instruction below).
Flashing instructions:
- Download the official firmware for your model.
- Unpack the archive and place the.tgz file in the folder downloaded_rom phone-on.
- Go to Settings β About Phone β System Update β Three Points β Select an Service Pack.
- Select the downloaded file and wait for the installation to be completed.
β οΈ Warning: Flashing through Mi Flash Tool erases all data! pre-backup through Settings β Additionally. β Backup and reset.
6. Diagnostics of hardware malfunctions
If none of these methods worked, the problem could be the iron.
Antenna test:
- Click ##4636## and select Phone Information.
- Look up Service State status β if itβs Out of Service or Emergency Only, the problem is in the communication module.
Contact checks SIM-map:
- π Check out the slot. SIM-maps for oxidation or contamination.
- π± Try inserting. SIM-Map to another phone β if it works there, the problem is your Xiaomi.
If you suspect a hardware malfunction, contact the service center.
- π§ Replacement of antenna cable: 1,500β3,000 β½.
- π‘ Repair of the communication module: 3000-8000 β½.
- π± Replacement of motherboard: from 10 000 β½.
Additional solutions
If the standard methods donβt work, try these:
1. Change of network regime
Sometimes the smartphone canβt connect to the 4G/5G - Forced set the mode. 3G:
- Go to Settings. β SIM-maps and mobile networks β [Yours. SIM] β Type of network.
- Select Only. 3G (or 2G/3G).
- Reboot the phone.
If the Internet is working, the problem is in the settings 4G/5G. Return the Auto mode and check for firmware updates.
2. disable VoLTE and VoWiFi
VoLTE functions (voice by voice) 4G) VoWiFi (Wi-Fi calls) may conflict with the network:
- Open the Settings. β SIM-maps and mobile networks β [Yours. SIM].
- Turn off VoLTE and VoWiFi options.
- Reset the device.
If the Internet is running after that, the problem is with the operator's settings. Contact support to clarify VoLTE settings.
3.Use of VPN
In rare cases, error 138 is linked to operator blocking traffic. VPN:
- Install the app VPN (For example, ProtonVPN or Warp).
- Connect to a server in your country.
- Check the Internet.
If VPN It works, it's on the operator's side.
4. Virus testing
Some viruses block network traffic. Scan the device.
- Install antivirus (Dr.Web, Kaspersky, Malwarebytes).
- Run a full check.
- Remove the detected threats and restart the phone.
If viruses are found, reset your network settings after removing them (Settings) β System system β Reset β Resetting network settings).
What do you do if nothing helps?
If you have tried all the methods, but the error 138 remains, there are two options:
1. Contact the Xiaomi Service Center
It is worth choosing this path if:
- π± Phone guarantee (repair will be free of charge).
- π§ You suspect a hardware malfunction (for example, after a fall).
- π‘ IMEI It has fallen off and you canβt repair it yourself.
How to prepare for your visit:
- π Take a check or a guarantee card.
- π± Write it down. IMEI from the box (if saved).
- π Make a backup copy of the data.
The average time of repair under warranty: 5-14 days, without warranty - 1-3 days.
2. Smartphone replacement
If the phone is old (released before 2019) and it costs more than 50% to repair, it is more advisable to consider buying a new device.
- π± Xiaomi Redmi Note 13 Pro+ (Snapdragon 7s Gen 2, support 5G).
- π± POCO X6 Pro (Dimensity 8300-Ultra, double 5G).
- π± Xiaomi 14 (flagship chipset, best antenna).
Before buying, check your carrierβs support on Xiaomiβs support site.
How to avoid the 138 error in the future?
To minimize the risk of recurrence of the error, follow these tips:
1. Update regularly MIUI
Firmware updates often contain patches for network modules.
- Go to Settings β About the phone β System update.
- Press three points. β Update settings.
- Turn on Automatic Download over Wi-Fi.
2. Use official firmware
Custom firmware (such as LineageOS or Pixel Experience) may conflict with network settings. If you're not an experienced user, stay on the official website. MIUI.
3. Check it out. IMEI post-fix
After any interference with the system (firmware, root, reset) check IMEI *#06# If it resets, restore it before the phone restarts.
4. Avoid mechanical damage
Strikes and falls often cause failure:
- π‘ Antenna module (thin wires are detached from the board).
- π± Slot SIM-cards (contacts bend).
- π Power module (responsible for signal stability).
Use a cover with shock protection and avoid getting moisture.
5. Watch out for balance and status SIM-map
Operators may restrict access to the network:
- π³ In a negative balance.
- π± If fraud is suspected (for example, if the SIM-The map is used in another region).
- π Upon expiration of the tariff period.
Regularly check the status of services through USSD-requests or personal account of the operator.
π‘
If you travel frequently, turn off automatic roaming in the settings SIM-This will help to avoid unexpected blockings abroad.