[Xiaomi Mi 5 Guides, News, & Discussion] jinishpv:
PLEASE BARE FOR MY BAD ENGLISH,I AM NOT GOOD IN POSTING TUTORIALS,IF THERE R ANY MISTAKES PLEASE POST IT

U GUYS CAN BACKUP EFS(IMEI) WITH 2 METHODS ONE REQUIRE ROOT ANOTHER WITHOUT ROOT

STEP 1-BACKUP WITHOUT ROOT

FOR THIS U NEED QPST AND QUALCOMM DIAG DRIVERS THE LINK IS PROVIDES BELOW

INSTALL QPST AND QUALCOMM DIAG DRIVERS

CONNECT THE PHONE WITH THE COMPUTER AND DIAL *#*#717717#*#* ON THE DIAL PAD WHICH ENABLES DIAG MODE ON MI5

ON THE DEVICE MANAGER U WILL SEE "QUALCOMM HS-USB DIAGNOSTICS 90AD(COMXX)"

NOW JUST OPEN QPST CONFIGURATION FROM PROGRAMS, U WILL C UR PHONE CONNECTED ON THE ACTIVE PHONES TAB

THEN CLICK ON START CLIENTS->SOFTWARE DOWNLOAD

JUST CLICK ON THE BACKUP TAB AND CLICK START BUTTON, XXXXX.QCN WILL B CREATED ON UR DESKTOP THAT QCN FILE IS UR IMEI BACKUP SAVE THAT FILE SAFELY FOR THE FUTURE

STEP 2-RESTORING WITHOUT ROOT

LIKE ABOVE CONNECT UR PHONE TO THE COMPUTER AND DIAL *#*#717717#*#*, OPEN THE QPST CONFIGURATION THEN CLICK START CLIENTS->SOFTWARE DOWNLOAD , JUST CLICK ON RESTORE TAB AND BROWSE FOR THE QCN BACKUP AND ENABLE ALLOWPHONE/FILE ESN MISMATCH THEN CLICK START TO RESTORE,AFTER RESTORATION IS COMPLETED U NEED TO REBOOT THE PHONE THATS IT

IN SOME CASES RESTORING THROUGH ABOVE METHOD DONT WORK FOR THAT U NEED TO FOLLOW STEPS BELOW(RESTORATION WITH ROOT)

3-BACKUP WITH ROOT

CONNECT THE PHONE WITH USB DEBUGGING ENABLED ,ON THE ADB COMMAND WINDOW TYPE THE FOLLOWING COMMANDS

adb shell

su

dd if=/dev/block/sde28 of=/sdcard/modemst1

dd if=/dev/block/sdf3 of=/sdcard/modemst2

dd if=/dev/block/sdf5 of=/sdcard/fsg

THREE BIN FILES(modemst1.bin,modemst2.bin and fsg.bin) WILL B FOUND ON UR INTERNAL MEMORY SAVE IT SOMEWHERE SAFELY

4-RESTORE WITH ROOT

COPY THE THREE BIN FILES(modemst1.bin,modemst2.bin and fsg.bin) TO UR ROOT OF INTERNAL MEMORY ,CONNECT UR PHONE TO THE COMPUTER WITH USB DEBUGGING ENABLED ,ON ADB COMMAND WINDOW TYPE THESE COMMANDS

adb shell

su

dd if/sdcard/modemst1.bin of=/dev/block/sde28

dd if/sdcard/modemst2.bin of=/dev/block/sdf3

dd if/sdcard/fsg.bin of=/dev/block/sdf5

reboot

THATS IT RESTORE COMPLETED

IF U DONT HAVE A QCN BACKUP OR THE THREE BIN FILES AND UR IMEI IS CORRUPTED OR NULL FOLLOW BELOW STEPS TO RESTORE IMEI

UR DEVICE MUST B ROOTED

FIRST WIPE UR EFS PARTITION THROUGH BELOW ADB COMMANDS

adb shell

su

dd if=/dev/zero of=/dev/block/sde28

dd if=/dev/zero of=/dev/block/sdf3

dd if=/dev/zero of=/dev/block/sdf5

reboot

AFTER THE PHONE IS REBOOTED

DOWNLOAD THE SAMPLE-MI5.QCN BACKUP FILE FROM THE DOWNLOAD SECTION

THIS IS THE MODIFIED MI5 QCN BACKUP WHICH CONTAIN THE 1ST AND 2ND DUMMY IMEI, U HAVE TO EDIT THIS QCN WITH ULTRA EDIT HEX EDITOR, LINK FOR THE ULTRA EDIT IS BELOW

IN SAMPLE-MI5.QCN THE FIRST IMEI IS 123456789012345 AND THE SECOND IMEI IS 543210987654321

IN HEX FORMAT THE FIRST IMEI IS 08 1A 32 54 76 98 10 32 54 AND THE SECOND IMEI IS 08 5A 34 12 90 78 56 34 12

INSTALL ULTRA EDIT AND OPEN SAMPLE-MI5.QCN

THEN CONVERT UR 1ST AND 2ND IMEI IN TO HEX FORMAT WITH THE IMEI CONVERTER WHICH IS PROVIDED IN THE DOWNLOAD SECTION, NOTE DOWN THE HEX CONVERTED IMEI'S

SEARCH FOR 08 1A 32 54 76 98 10 32 54 ON THE FIND AND NEXT OPTION ON THE HEX EDIT AND REPLACE IT WITH UR 1ST HEXCONVERTED IMEI,THEN

SEARCH FOR 08 5A 34 12 90 78 56 34 12 ON THE FIND AND NEXT OPTION ON THE HEX EDIT AND REPLACE IT WITH UR 2ND HEXCONVERTED IMEI ,THEN SAVE IT ,EXAMPLE(I AM REPLACING 1ST AND 2ND IMEI'S WITH 08 8A 21 89 22 34 32 54 76 AND 08 4A 77 22 24 33 03 54 76 RESPECTIVELY)

CONNECT UR MI5 IN THE DIAG MODE MENTIONED ABOVE AND RESTORE THE EDITED QCN THROUGH THE STEP 2

ALL THE ABOVE MENTIONED STEPS R TESTED WITH MY MI5 32GB/3GB RAM WHICH IS RUNNING MIUI8(6.7.24), BOOTLOADER UNLOCKED,TWRP INSTALLED,ROOTED

FOR PICTURES FOR ABOVE STEPS DOWLOAD THE WORD DOCUMENT

DOWNLOADS

ULTRA EDIT- http://www.4shared.com/rar/1U0grbRQba/ue_english.html?

QUALCOMM DIAG DRIVERS- http://www.4shared.com/rar/bgSkz_Rmce/Qualcomm_Diag_QD_Loader_2016_d.html?

QPST- http://www.4shared.com/rar/iZ4C-n_1ce/QPST_27411.html?