How to restore imei programmatically using a PC. How to restore IMEI on Android after flashing the phone

In this article I will tell you how to restore IMEI on Android if the phone crashed or as a result of unsuccessful firmware and getting root.

This article is suitable for phones and tablets of all Android device manufacturers: Samsung, LG, Sony, Huawei, Xiaomi, HTC, ZTE, Fly, Alcatel and others. We are not responsible for your actions.

The absence of IMEI on Android is a serious error due to which the gadget loses the communication signal. This may result in the inability to make calls, access the Internet, or send messages.

Reasons for missing IMEI:

  • Error when returning the smartphone to factory settings.
  • Incorrect gadget firmware.

Some models of Chinese devices can work without such an identifier. If you have a high-quality product from a reliable brand, but the IMEI has been lost, then the gadget will not work correctly.

Manual IMEI repair

On an Android smartphone you need to dial the combination *#06#. In a situation where the Have Code does not appear on the screen, it is urgently necessary to restore it. The identification number can be found on the box, under the battery, or in the instructions. If the product supports two SIM cards, then 2 IMEI numbers must be indicated.

Increase

Instructions for manually restoring IMEI on Android:

  • Remove the SIM card from the phone.
  • Call *#3646633# to go to the engineering menu.
  • You need to select the “CDS Information” section, then “Radio Information” and “Phone 1”.
  • After AT+, enter the command EGMR=1,7,“IMEI” from above. Confirm your entry by pressing “SEND AT COMMAND”.

Increase

The combination for opening the engineering menu may differ on different gadgets. If the above number does not suit, then use the options from the screenshot below.

Increase

If Android supports two SIM cards, then the procedure should be repeated to restore the Name code. For the second SIM there will be the following command: AT+EGMR=1.10,“IMEI”.

When the recovery process is complete, you need to exit the engineering menu and reboot your smartphone. After starting, dial *#06# again to check IMEI. If the number is not displayed again, then the error can only be corrected using special utilities for restoring Name on Android.

360root and Chamelephon apps

To restore or change the IMEI code, root rights are required. Settings related to the system will be made here.


The advantage of this application is the quick and easy way to change the code for two SIM cards at once.

MTK65xx program

To restore the IMEI code lost after flashing, you can use the MTK65xx utility:


After rebooting the smartphone, dial *#06#. The lost Imei number will be restored after the firmware is updated.

When this method does not help, there is another option for restoring IMEI on Android after flashing:


Using Root Browser, transfer the MP0B_001 file to this path: /data/nvram/md/NVRAM/NVD_IMEI/MP0B_001. When the transfer is complete, reboot the smartphone and check the identification number again. This time it should display correctly.

On Android - a serious error due to which the device loses the communication signal, which leads to the inability to make a call, send a message or access the Internet.

Reasons for the failure:

  • Incorrect device firmware.
  • Error when returning the smartphone to factory settings.

Some models of Chinese smartphones can work without an identifier, but if you have a high-quality device from a well-known brand and your Imei has disappeared, the device will not work correctly.

Manual recovery

Dial *#06# on your Android phone. If the IMEI code does not appear on the screen, then you urgently need to restore it. You can find the identification number on the box, in the instructions, or under the battery. If the smartphone supports dual SIM cards, then two IMEI numbers must be specified.

Manual IMEI repair on Android:


If the number above does not work, try the following options:

If your Android supports two SIM cards, then you need to repeat the procedure for restoring the identification number. For the second SIM card the command will be: AT+EGMR=1.10,“IMEI”.

After recovery, you need to exit the engineering menu and reboot the phone. After turning on, dial *#06# again to check IMEI. If the number is not displayed, then to correct the error you will need an Android IMEI repair program.

Software recovery

If manual recovery did not help solve the problem of missing identifier after flashing, then try using the MTK65xx.zip program.

After rebooting the device, dial *#06#. The device identification number lost after the firmware update will be restored. If the above methods did not help you figure out how to restore IMEI on Android after flashing, then try another option:


Using Root Browser, move the MP0B_001 file to the /data/nvram/md/NVRAM/NVD_IMEI/MP0B_001 directory. After transferring the data, restart your phone and check the identification number again - this time it should be displayed correctly.

Those who use smartphones based on Chinese MediaTek processors know very well what an incorrect IMEI is. What to do if IMEI on Android is lost? Most often this happens after flashing the firmware or general reset of the smartphone. Don't worry, most of these errors can be corrected.

Restoring IMEI on Android will not take much time if you backup NVRAM and NVDATA from your device in advance.

Where is IMEI stored on Android?

To make a backup of IMEI you need to know where it is stored. On devices with MediaTek processors (90% of Chinese smartphones and 50% of budget devices from well-known manufacturers), the IMEI is stored in NVRAM. In addition to IMEI, it stores data about the calibration of wireless modules, identification information (IMEI, MAC), as well as settings for some equipment.

The device’s firmware provides a separate memory area called NVRAM; during the first startup of the smartphone, information from there is copied to the directory /data/nvram. After this, the data in this directory may change for various reasons, including problems with the firmware.

How can NVRAM be damaged?

  • Formatting a smartphone using SP Flash Tool
  • Using the wrong version of SP Flash Tool
  • Memory re-partitioning
  • Partial firmware
  • Interrupted smartphone firmware process

Signs of damaged NVRAM, or how to find out that IMEI has been lost

  • When entering *#06# Empty fields appear in the dialer for IMEI 1 and IMEI 2
  • When Wi-Fi is turned on, a virtual network appears " Nvram warning err = 0x10»

Backup IMEI on Android using SP Flash Tool

To make an IMEI backup, the first thing you need to do is charge your smartphone to at least 40%. Next, you need to install drivers for your device, as well as . Next in order:

and select the scatter file from the official firmware for your device
  • Switch to tab Readback
  • Press the button Add, a new line will appear below. Double-click on the new line and enter the name of the file to save. Specify the folder where the IMEI firmware will be saved and name itnvram.img, press save.
  • A window will appear Readback block start address. IN Region need to choose EMMC_User(MT6592 and above). Open in a text editorscatter filefrom your firmware and find the itemNVRAM, looks something like this
  • Copy values linear_start_addr And partition_size in SP Flash Tool in Start Address And Length respectively
  • Recheck the entered data and press Read Back
  • Turn off the smartphone, remove and reinsert the battery, if this is not possible, then wait 1 minute after turning off. Connect the switched off smartphone to the PC with a working cable, the program will pick up the smartphone and after a few seconds a small window with a green checkmark will appear, which means everything is correct.
  • Disconnect your smartphone from your PC and check the saved file along the path you specified in step 3.
  • For smartphones with MT67xx series processors, you additionally need to save NVDATA. Do everything the same as in the instructions above, starting from point 3.

    Repairing IMEI after flashing using SP Flash Tool

    1. In SP Flash Tool, specify your Scatter file and press " CTRL+ALT+V»
    2. In the top menu of the program, mark the item WindowWrite Memory
    3. Switch to tab Write Memory
    4. Fill in the item File Path by clicking on the folder icon and selecting your backup NVRAM
    5. At point Region choose EMMC_USER(for MT6592 and above)
    6. Open your Scatter in a text editor and copy linear_start_addr to line Begin Address (HEX)
    7. Click Write Memory
    8. Connect the switched off smartphone to the computer using a standard cable. The program will see the smartphone and write down the specified memory area, that is, it will eliminate the incorrect IMEI.

    For MT67xx smartphones, you need to do the same for NVDATA.

    After this, you need to flash the device with full factory firmware in accordance with the instructions for your smartphone. After flashing the firmware, you need to turn on the phone and reset it through the settings. Sometimes you need to flash the full firmware in Firmware Upgrade mode.

    This IMEI firmware should always be stored on a computer or cloud service, the main thing is that you always have access to it, it is much easier than correcting an incorrect IMEI manually.

    Restoring IMEI through the engineering menu

    The main advantage of this method is that you do not need any root rights, nor any additional programs, everything is done directly on the phone. So, to change IMEI through the engineering menu, you will need the IMEI itself, which can be found on the smartphone box or under the phone cover.

    How to change IMEI through the engineering menu:

    1. Open your phone and enter *#*#3646633#*#* (the combination for your device may vary)
    2. The engineering menu has opened, open the tab Connectivity
    3. Go to CDC Information - Radio Information
    4. This submenu has 2 items: Phone 1 And Phone 2, this is the first and second slot for SIM cards, open Phone 1
    5. In the line where " AT+» enter the letter « E» in English and click on AT+EGMR=1.7,"IMEI" (instead of IMEI you need to enter your first IMEI) and press Send AT Command. After this, a message with the phrase Ok should appear, which means the IMEI is in place.

      IMPORTANT! After AT+ you need to put a space!

    6. Do the same operations with Phone 2, only here you need to select AT+EGMR=1.10,"IMEI". Don't forget the space after AT+.
    7. Reboot your smartphone and check the IMEI with the command *#06# .

    Ready! You changed IMEI through the engineering menu. I strongly recommend that you enter the exact IMEI that was on the phone, otherwise there may be problems with mobile communications.

    Repair IMEI with MAUI META

    This method requires a PC. You will need a program MAUI META, installed drivers ( complete package And CDC driver) and a newly flashed phone via SP Flash Tools (preferably). You will also need the “BPLGUInfoCustomAppSrcP****” file from the installed firmware.

    The main difficulty of restoring IMEI via MAUI META is to correctly connect the device in META Mode, one of the ways:

    1. Install and run MAUI META
    2. Click Reconnect, the indicator in the program will start flashing
    3. Turn off your phone, press Volume Up and connect to PC
    4. In Device Manager under " Ports» the device will appear MTK USB Port
    5. Disconnect the device from the PC, disconnect and connect the battery, click Reconnect in the program and connect again with Volume Up, it will appear again MTK USB Port and the program will give an error, press Disconnect
    6. Enable the option " Connect smartphone in META mode» and press Reconnect
    7. Connect the device without pressing any buttons
    8. The blinking indicator turns yellow, which means the smartphone is connected, you can restore IMEI!

    The methods for entering META Mode are different for all devices!

    If after a successful connection a program window pops up, close it, click Action - Open NVRAM database and select the file " BPLGUInfoCustomAppSrcP****"from the installed firmware. Following are the instructions:

    1. From the drop down menu select IMEI download
    2. The IMEI editing window appears, click Change NVRAM Database file and select the file from the firmware again
    3. Enter the IMEI without the last digit in the IMEI field and press Download to Flash, do the same with the second IMEI if you have one
    4. Close the window, click Disconnect and restart your smartphone
    5. Check IMEI combination *#06#

    More clearly in the video.

    There are often situations when, for example, after updating the firmware and then installing all applications, you cannot access the Internet, make calls or write SMS. The fact is that along with a change in firmware, the software shell of the device is changed, codes are updated, unwanted processes are removed, and a new structure is created.

    But you need to understand that any mistake made during the installation of any program elements can cause a violation in the system, leading to the loss of IMEI - a special number stored in the device’s firmware and identifying it on the network. You can see it on the packaging (box), in the instructions included with the smartphone (warranty card), under the battery of the device itself.

    If your device is designed for two SIM cards, then two IMEI will be indicated.

    On a normally functioning phone, finding out the identification number is not difficult at all - in the telephone number entry field you need to type the following combination of characters: *#06# (on some devices you also press the call button), then the corresponding information should appear on the screen. If your request was unsuccessful, then the same failure as mentioned above has occurred.

    But, not everything is so hopeless - the identification number has not changed and has not gone anywhere, but simply lost its own registration power, and this is the reason for the failure of the main functions of your device. We will now tell you what can be done in this situation.

    There are several ways to restore the functionality of your Android device.

    The first, and most reliable, is to trust the services of a specialized service; you just need to find out its location. But we are not used to looking for easy ways!

    Those who love experiments and those who are confident in themselves can immediately move on to the second method.

    Before using this method, you should know that you need “Superuser” (or) rights. Now, you need to write down the IMEI of your device (see paragraph above), then step by step:

    Download and install the program.

    We open the utility, give permission to the request and find the “data” folder, go into it, then find the “nvram” folder, then “md.”, where the “NVRAM” folder is located, which we delete and wait until our Android recreates the files , after which a window should appear in which the operator of the network used will be determined.

    We go to the engineering menu by typing the following combination of characters in the number entry field: *2366*#

    We are looking for CDS Information, then - Radio Information, and - Phone 1.

    In the line after the letters AT+ we enter E, it should turn out: AT+EGMR=1.7,"" and also AT+EGMR=1.10,""
    Now, having selected AT+EGMR=1.7,"" in quotation marks, enter your identification number of the first SIM card (it turns out AT+EGMR=1.7,"967311665444199″), after that, under the line click SEND AT COMMAND, below should appear entry "AT command is mSent".

    After prolonged use, any smartphone may begin to work incorrectly and produce errors. Both global brands (HTC, Samsung, Lenovo, etc.) and Chinese counterfeits are susceptible to this. In extreme cases, it is necessary to flash the system, reset the device to factory settings, after which the IMEI may be lost, which should be restored.

    What to do if after the firmware the phone does not see the network

    Users do not always turn to the service center for help. Changing the firmware is not a simple process, after which problems with the device may arise, so a successful installation is very important for the performance of the smartphone. One of the possible consequences due to an error during the procedure is that the phone does not see the network. If this happens, you need to check if you have a code in your phone. If it is missing, then below are ways to restore IMEI on Android after flashing it.

    How to restore memory on Android yourself

    The absence of an imey code on Android leads to the loss of the smartphone’s communication signal. Your gadget turns into a useless device that can neither send SMS nor make calls. After unsuccessful firmware, it is better to take the device to a specialist, but if you wish, you can try to restore the code yourself. In some cases, re-installing a new version of the OS helps. There are several options for how to register IM on your Android phone:

    • using specialized programs;
    • manual recovery via the engineering menu.

    Manual recovery on Android

    To make sure there is no imey code, dial *#606#. If nothing appears on the screen, it’s time to start restoring. You can find the identification number inside the phone itself (usually written under the battery) or on the device box. If the device is designed to work with two SIM cards, then there should be two IMEI. Instructions on how to restore it manually through the engineering menu:

    1. Take out the SIM card.
    2. Make a call using the number combination *#*#364633#*#*. It will take you to the engineering menu.
    3. Go to "CDS Information", then click on "Radio Information" and select "Phone 1"
    4. At the top after AT+, type the combination EGMR=1,7,“IMEI”.
    5. Click “SEND AT COMMAND” to confirm the action.
    6. If the device is designed for 2 SIM cards, then you need to repeat the procedure, but enter the combination AT+EGMR=1.10, “IMEI”.

    The above method is written for Alcatel, Philips, Fly phones. But to go to the engineering menu on other models, other combinations are needed. Try one of the following for your phone:

    • gadgets with MTK processor - *#*#54298#*#*;
    • Samsung – *#*#4636#*#*;
    • HTC – *#*#3424#*#*;
    • Sony – *#*#7378423#*#*.

    Using special programs

    If you were unable to manually register your phone again, then there is another option on how to restore IMEI on Android after flashing the firmware. For this you can use the MTK65xx.zip application. The procedure is as follows:

    1. Remove the SIM card.
    2. Unpack and copy the application to your device via cable.
    3. Launch the program, click the “Read” button if the program did not automatically determine the identifier.
    4. Cancel the “same IMEI” option and enter the required numbers in the appropriate field.
    5. Click the "Exit" button and reboot your device.

    After turning it on, call the combination *#06# and the number lost after the firmware will be restored. If the above method does not work, you can use another method:

    1. Download and unzip the restore_imei archive on your computer.
    2. Find and open the run.bat document using standard notepad.
    3. Enter your ID in the appropriate field and click the “Save” button.
    4. Run the same file by double clicking. The file should appear in the folder - MP0B_001.
    5. Copy it to your device's SD card.
    6. Download and install “Root Browser” on your Android.
    7. Using this application, move MP0B_001 to the following path /data/nvram/md/NVRAM/NVD_IMEI/MP0B_001.
    8. Restart the device and it should display correctly.

    Video instruction: recovery via the engineering menu