The country code in the phone number on Xiaomi Mi 7 is a common problem that users face after buying a device in another region or when importing from abroad. This prefix (+7, +380, +86, etc.) is automatically inserted by the system when calling, creating inconvenience: subscribers see the international format instead of the usual local one, and SMS sometimes leave with errors. In some cases, the country code even blocks the possibility of registering with local services (banks, government services, instant messengers).
In this article, we will discuss all the current ways to remove the Mi 7 country code, from simple settings to technical methods using ADB and engineering menus. Importantly, the procedure differs depending on the firmware version (MIUI Global, EU, China) and the status of unlocking the bootloader, we have taken into account all the nuances so that you can choose the best option without the risk of βbrickingβ the device.
If you bought a Xiaomi Mi 7 with a firmware but live in Ukraine or Kazakhstan (or vice versa), the country code problem will become especially urgent. MIUI aggressively imposes regional settings, and simply changing the interface language often doesnβt help. Fortunately, there are workarounds β both official (via the phone menu) and βsurgicalβ (editing system files).
Before you start, check:
- π± Version MIUI: Settings β The phone. β Version. MIUI. For methods with ADB You will need a version below. MIUI 10.
- π bootloader status: if it is blocked, some methods will not be available.
- πΆ Current country code: Try calling another number β which prefix is displayed by the recipient?
1. Delete the country code through standard MIUI settings
To start with, the simplest method that works on most global firmware devices (MIUI Global) does not require superuser rights or technical skills, but is only effective if the country code has been added in software (for example, after a software update).
Instructions:
- Open the Phone app and go to Settings β More.
- Find the "Number Format" or "Call Settings" option (the name may vary depending on the version of MIUI).
- Turn off the option to Show country code or International format.
- Restart the device and check if the prefix has disappeared when outgoing calls.
If this item is not on the menu, try an alternative path:
- π Contact us. β Settings β Number display format.
- π Select the country of your current region (e.g., "Ukraine" instead of "Russia").
- π Save the changes and restart the Phone app.
β οΈ Attention: On Chinese firmware (MIUI China) this method only works when the Mi Account is linked to the purchase region. If the device is imported, first unlock the bootloader.
π‘
If the country code is still displayed after the changes, try to delete and add again. SIM-Map β sometimes resetting mobile network settings helps.
2. reset network settings (without data loss)
If the country code appeared after the firmware update or change SIM-And this is a safe method, which doesn't affect photos, apps or accounts, but it will return to factory settings:
- πΆ Mobile network parameters (APN, pick-up).
- π Call settings (redirect, wait, conference call).
- π Wi-Fi settings (saved networks, connection priorities).
How to perform the reset:
- Go to Settings. β SIM-maps and mobile networks.
- Select Network Reset (or Additional β Reset)
- Confirm the action and wait for the reboot (it will take 1-2 minutes).
- After switching on manually select the operator in Settings β Mobile Network β Network Operators.
This helps 60 to 70 percent of the time when the country code was added because of a failure in the communication module settings, and if the problem persists, move on to deeper methods.
What if the phone does not catch the network after resetting the network?
3.Editing the country code through the engineering menu
The engineering menu (#4636##) allows you to manually change the parameters of the communication module, including the format of the display of numbers, which works on most versions of MIUI, but requires caution - incorrect settings can disrupt the network.
Step-by-step:
- Open the Phone app and enter the combination: ##4636##.
- In the menu that appears, select Phone Information (or Phone Information).
- Scroll down to the "Set preferred network type" block and remember the current value.
- Find the Country Code or Mobile Country Code (MCC).
- Enter your country code (e.g. 255 for Ukraine, 643 for Russia) and click Set.
- Reset the device.
If the Country Code string is missing or blocked, try an alternative path:
- π§ In the engineering menu, select Network. β Band Selection.
- π‘ Press Auto, then go back and check the country code display.
β οΈ Attention: On some firmware MIUI China engineering menus can be blocked. In this case, use the method of using the ADB (section 5) or install global firmware.
| Country Code (MCC) | Country. | Phone prefix |
|---|---|---|
| 250 | Russia | +7 |
| 255 | Ukraine | +380 |
| 400 | Kazakhstan | +7 (but MCC is different) |
| 460 | China | +86 |
| 310 | USA | +1 |
4. Installation of regional firmware (MIUI EU/Global)
If the country code is stitched into the firmware (often found on Chinese versions of the Mi 7), the only reliable way is to reflash the device to a global or European version of MIUI.
- π΅ Absence of Russian language (on the MIUI China).
- π« Blocking Google Services (on some Chinese firmware).
- π Automatic updates to unstable versions.
Step-by-step process:
- Unlock the bootloader through the official Mi Unlock Tool (requires Mi Account binding to the device and waiting 7-15 days).
- Download stable global firmware for Mi 7 (codename dipper) from en.miui.com.
- Install the Mi Flash Tool and connect the phone in Fastboot mode (clip Volume Down + Power).
- In the program, select the downloaded firmware file (.tgz) and press Flash.
- After the reboot, reset to factory settings (Settings β Additional β Restore and Reset).
Critical: Fastboot erases all data, including photos and apps. Pre-backup via Settings β Additional β Backup or Mi Cloud.
Download firmware for the dipper model|Install Xiaomi drivers on PC|Unlock the bootloader (if blocked)|Save. IMEI and account details|Charge your phone at least 60%-->
5. Deletion of country code through ADB (for advanced)
If the previous methods did not work, and you do not want to sew the device, you can manually edit the system settings through ADB (Android Debug Bridge. This method requires the developer mode to be enabled and USB-debugging.
Instructions:
- Activate Developer Mode: Go to Settings β About Phone and click on MIUI Version 7 times.
- Return to Settings β Additional β For developers and enable USB debugging.
- Connect the Mi 7 to your PC, install ADB drivers, and open the command prompt in the folder with the platform-tools.
- Enter the commands in order: adb shell settings put global preferred_network_mode 9 settings put global mobile_country_code XXXX (substitute XXXX on MCC in your country, for example, 255 for Ukraine).
- Reboot the device with the adb reboot command.
To completely remove the prefix, also do:
adb shell
settings delete global operator_numericIf the country code remains after the reboot, check the current settings with the command:
adb shell getprop | grep countrySearch ro.product.locale.country and persist.radio.country.code.
β οΈ Attention: On some firmware MIUI alteration ADB Resets after the update. To record the result, disable automatic software updates in Settings β The phone. β Updating the system.
π‘
ADB is the most versatile method, but it requires care. Errors in commands can cause mobile communication to fail. Always check your current settings before changing.
6. Alternative solutions (if nothing has worked)
If all of the above methods are useless, consider the following options:
1. Use of third-party applications
- π± True Phone Dialer β an alternative call with manual setting of the number format.
- π§ Country Code Remover β Removes prefixes from system databases.
2. Manual editing of the build.prop file
Only for users with root rights:
- Open /system/build.prop file in a text editor (e.g. Root Explorer).
- Find the lines: ro.product.locale.country=CN persist.radio.country.code=460
- Replace CN and 460 with your country code (e.g. RU and 250).
- Save the file, set the rights to 644, and restart the device.
3. Contact the service center
If the Mi 7 is warranty and the country code interferes with the work (for example, blocks bank SMS), contact the official Xiaomi service with a request to reflash the device for the global version.
- π Check or guarantee card.
- π Passport (to confirm purchase).
- π± Phone with factory firmware (without root and custom recovery).