Repsir Imei Nill Xiaomi

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 9

Lets get Started!!

Pre-Requisites / What you need in your computer.

1. Rooted Phone.
2. IMEI numbers written down from the back of the device (under the battery).
3. ES File Explorer on your Phone
4. Following Softwares Installed on your Computer

 IMEI Converter.zip (7.5 KB, Downloads: 17763) 

 qpst_2.7.422.zip (25.3 MB, Downloads: 28197) 

 minimal_adb_fastboot_v1.3.1_setup.zip (724.34 KB, Downloads: 24228) 


UltraEdit [Download from www.ultraedit.com
5. Following Drivers on your Computer

 QualcommDrv.zip (6.85 MB, Downloads: 28830)


6. Patience and Enough Time [Yes! its going to be a long read!]

Now lets get started..

Enabling Diag mode on your device

1. Run "Minimal ADB and Fastboot" and execute the following commands
adb shell
su
setprop sys.usb.config diag,adb
This will disconnect your device and reconnect the device
2. Now use the following commands to confirm that the above commands were
successful
1. adb shell

2. su

3. getprop sys.usb.config

4.
Copy the Code

3. Also you will see an additional device in the device manager


Before:
After:
4. Download and Extract the following file to a known Location in your computer

 RM2_RM2PRIME_QCN.zip (41.19 KB, Downloads: 20294)


5. Now open this file using UltraEdit and you should see a screen like this

IMPORTANT:What we are going to do next is that we are going to Edit this file to
Put the desired IMEI Number in the File
I have edited this File to contain the Numbers, that we search for in Points 5 and
6, in the place of IMEI.
Our work is to replace those numbers with the IMEI of your own device.
6. Now Run the "IMEI Converter.exe" and Convert the IMEI that you had written
from the back of the device to Hex

(The IMEI shown in the above pic is just for Illustration Purposes)
7. Now Find the following sequence of hex numbers for SIM1 
08 8A 76 15 02 82 19 52 55
and Replace it with the IMEI generated from the IMEI Converter.exe for the IMEI
for Sim1
NOTE: MAKE SURE THE PROPER SEQUNCE AND SPACING IS
MAINTAINED

To replace the Numbers Just Click on the Number and Type the new
Number
8. Now Find the following sequence of hex numbers for SIM 2
08 8A 76 15 02 82 19 52 51
And replace it with the IMEI generated by the IMEI Converter for the IMEI for
Sim2
9. Now save the file and Exit UltraEdit
10. Now again Run the Minimal ADB and Fastboot and execute the following
commands in the sequence
1. adb shell

2. su

3. dd if=/dev/block/mmcblk0p13 of=/sdcard/modemst1

4. dd if=/dev/block/mmcblk0p14 of=/sdcard/modemst2

5. dd if=/dev/block/mmcblk0p20 of=/sdcard/fsg
Copy the Code

6. dd if=/dev/zero of=/dev/block/mmcblk0p13

7. dd if=/dev/zero of=/dev/block/mmcblk0p14

8. dd if=/dev/zero of=/dev/block/mmcblk0p20

9. reboot
Copy the Code

The first set of commands will create a backup of the existing images and the
next will wipe off the modemst1 modemst2 and fsg partitions
11. Once you restart you will find IMEI to be gone and 0
12. Once you restart you will lose the diag mode. you will have to follow 1 to 3 to
enable it
13. Now Run the QPST and Select the Ports Tab

You should see the port added automatically


In case you dont see any port you can use the "Add New Port" button
14. Now Click on the Start Clients option on the Top Menu bar

and select Software Download


15. You will see a Window like this

16. Click on the restore tab and then browse to the file that you just saved.
17. Now click the start Button
18. Once it is done Reboot your system and You should have your IMEI restored

You might also like