Here’s a method on how you can try to restore NVRAM and IMEI code on your Redmi 4 Prime smartphone. Please, make sure you’re completely understand what you’re trying to achieve and remember that authors do not take any responsibility for your actions. Try to follow the instructions carefully and if some step is not quite clear for you we recommend to browse for more information on our website or use Google search.

Restoring NVRAM and IMEI code on Xiaomi Redmi 4 Prime (HM4 Prime, Markw)

Let’s start with this interesting tutorial right now! Scroll to the bottom of this post to find download links for required files and tools.

  1. Download and install QPST and Qualcomm USB Drivers on your PC or laptop: QPST.WIN.2.7.429.rar
  2. Enable USB Debugging.
  3. Enable Diag Mode on your phone. Enter this code *#*#13491#*#* and in the opened window tap on the first button (DIAG, SERIAL_SMD, RMNET_IPA, ADB) and press “Ok”. If you can’t enter Diad Mode, you can try flashing to official MIUI8 Stable 8.0.5.0 ROM version using the MiFlash tool.
  4. Now connect your turned on phone to PC and check “Device manager” to see if all required drivers are installed.
  5. Now we’ll make QCN backup. That’s important, so we can roll back in case of any issues.
  6. First of all copy your IMEI and MEID code and save somewhere.
  7. Start “QPST Configuration” tool. In the opened window you should see your device in the list. If the list is empty double check all required drivers on your PC.
  8. In the top menu select “Start Clients \ Software Download”. In the opened window select “Backup” tab. Now press the “Browse” button in the bottom and select a place where you want to save backup of your modem settings (it’s recommended to save in both .qcn and .xqcn file types). Press “Start” to continue. Repeat for another file type.
  9. Now we will move the new modem setting. Download and unpack redmi4pro_8null.zip, in this archive you’ll find clean modem files with IMEI=800000000000000. Go to “Restore” tab, press the “Browse” button in the bottom and select file that we’ve previously unpacked from redmi4pro_8null.zip archive.
  10. Select “Allow phone / file ESN mishmatch”.
  11. Press “Start” and wait until the process is completed.
  12. Close all QPST windows!
  13. Now we’ll restore our IMEI code.
  14. Reboot your phone.
  15. Go to “Settings” > “About” and tap a few time on “Storage” > “About phone” and you should see your phone number and clean IMEI (800000000000000). You will need to change this to your own IMEI codes you’ve previously saved. For this we’ll need to download qualcomm_IMEI_Write_tool.zip
  16. Unpack Qualcomm IMEI Write Tool and start WriteDualIMEI(W+G_eMMC).exe (in case you want to write the MEID code, then use the “qualcomm Write IMEI MEID.exe” file.).
  17. Simply enter your both IMEI codes and and press “Start” to continue. You should see a success message if everything was done correctly.
  18. In the end we need to disable Diag Mode. Enter *#*#13491#*#* and tap on the last button (MTP,ADB) and press “Ok”.

Required Software & Files: