Unbrick Xiaomi Mi6 / Mi5 / Mi 5S / Mi 5S Plus / Mi Note 2 / Mi Mix / Mi6 imei Repair

Please use the latest version QPST for Mi6.

Welcome to 1st course at Android unbrick school. In this lesson we will learn how to root the Xiaomi Mi 5s plus model, how to repair it, and finally how to load it globally. I assume that you have removed the bootloader lock from your Xiaomi phone before doing this, so if you want a separate video for that process. You can also apply the same methods on the Mi5 and Mi5s models, using the corresponding twrp and rom files. The links to the required files are available under the text. Links to all the programs and drivers that you see on the videotape will be included in the related article on (I'm talking about this article). It is possible to copy commands from the Cmd screen here and paste them on the working screen.

In the meantime, you will notice that we do not twrp, we only boot from twrp, so we do not interfere with the original recovery of the phone, so we have removed the possibility of bricking the phone in case of false image or any malfunction. We copy the downloaded SuperSu zip into your phone's memory beforehand, so I changed the name to su.zip to keep the commands short.
When our phone was turned off, we pressed the volume down and power button to fastboot and connected to the PC. In the folder where the twrp image is located, right-click on the shift + right arrow key to open the command window.



The command to enter in the cmd screen is:

Fastboot boot twrp.img

, The entera will open the phone in twrp mode in about 5-10 seconds after the bass. In order to intercept the file system, we confirm the first message and shift the arrow from left to right. We install it with the option to install / install SuperSu zipini, which you have previously put into the phone's memory. In the meantime, from the 2.8 version of TWRP, we can now process commands from the cmd screen without touching the phone anymore. The first command you need to enter for this is the "adb shell" command followed by the commands we will give you with twrp. As you will see in our example, "twrp install su.zip" starts to install SuperSU. When the process is over, if you want to do it again by tapping on the phone or just typing "reboot" command again. When the system is turned on, we have SuperSu installed, which means we get root privileges. Root's full Turkish counterpart is "the kernel, the consent to access".

We need to enable the android's "usb debugging" feature before continuing, we do this in the developer options section. To activate this section, click on "Settings"> "Miui version" on the phone properties screen 7-8 times in a row, yes, now you are a developer 🙂

When we give the "adb shell" command, we will browse the phone screen, ask for permission to connect, give consent, as we see on the first line of the video, we will give a command error without giving consent, after a while we go to a line and enter "su" command. After giving the necessary permission, we are ready to work on the phone.

The next command will be to open the "Qualcomm Diag" port of the phone, after giving the command will open a new port with the name Qualcomm under "Connections" in the device manager on the PC. With this port we will get the necessary backup with the QPST program. After that we will say QCN backup, this backup is very important, we will go through this in detail in our future courses.



Change the required rows in the QCN backup that we received. You can use any hex editor, HxD Hexeditor which I use on the video. We open the search box with CTRL + F or "Find" from the menus, we search for the line "088a" because the ime starts with 8, the first line is the 2nd line, I'm talking about double imitation models. We converted the hex format to the new number we are going to repair with the imei converter program. By pressing F3, we find the 2nd line, ie the 1st line, and change it again. After the process is finished, we save the QCN file as "save as", ie with a different save option, we do not overwrite the original backup at all, no matter what happens.


We will delete some of the partitions in order to remove the "writing prohibition" required for repair. These parts are always the same except for exceptions in Qualcomm models that are not ime protection. ModemSt1, ModemSt2, and FSG partitions. So you need to pay attention to the part names,Not numbers, this section is very important, please write your mind thoroughly. Names are fixed, numbers are variable.

We are entering the list command to see these names, after the "adb shell" and "su" commands:

"Ls -al /dev/block/platform/soc/624000.ufshc/by-name"

After thoroughly checking the digits, we reset the fixed modem reset1, modemst2, and fsg partitions in order by changing only the last numbers of the reset command, in order:

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

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

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

Why were we doing this? NV_550 In order to remove the write protection on the iMei line, we will not need it in some models, we will go through the next lessons. After entering the commands, do not worry about the error message that appears on the bottom line, it is not related to your position. After entering 3 commands, we reboot the phone with "reboot" command.

When we turn on our phone, we check * imei nolar by pressing * # 06 #, they appear as "invalid", we confirm. Invalid error For Xiaomi brand, other model phones will have "0" as a warning, let's make a note.

Now that we have clicked on the "Backup" tab while backing up with QPST, we now click on the "Restore" section and transfer the new QCN we have edited to the phone. After you see the "Memory Restore Completed" command, you can restart it manually by calling "adb reboot" command. When the phone is switched on again, the ime is finished.

Let's go to the Global upload step. We will use Qualcomm service mode for this, ie we will use the EDL / QDLoader 9008 port. I would advise you to take a backup before this, to do the installation from scratch. To the Adb screen:

"Adb reboot edl"

We enter the command and enter. If you have installed Qualcomm drivers, you will see the 9008 port under Device Manager. If you have installed it, install the MiFlash program in this step and install the necessary drivers when the program is installed. Do not forget to proceed by saying "yes" to the drive-related warning during installation. Launch MiFlash, click "Refresh", your port will appear in the bottom window. Then click "Browse" to show the Global Rom folder you downloaded, assuming you have removed the rom zip from the ROM and do it before this step if you have not. If you select the parent folder of the "images" folder as in the video, this step is important, otherwise the program will fail. When everything is ready, the bottom line is "flash all", click on "Flash", it will take about 2-3 minutes and the phone will restart with full Turkish and Google loaded global rom.

The expressions here are intended to make phones that are disgusted, null and void again, except to change the original imei no is illegal!


Required programs and drivers:

System generic adb and fastboot + drivers

Qualcomm QPST

Imei 변환기

Qualcomm QPST Diag drivers

Mitac Hexdecimal Editor

SuperSi-v2.78-SR1

MiFlash 64bit

Twrp Recovery:

Xiaomi Mi 5S Plus Twrp

Xiaomi Mi 5S Twrp

Xiaomi Mi5 Twrp (Miui 8)

Xiaomi Mi Note 2 Twrp

Xiaomi Mi Mix Twrp

Global Roms:

Mi5 Global Rom

Mi 5S Plus Global Rom

Mi 5S Global Rom (to be installed with Twrp)

Mi Note 2 Global Rom (to be installed with Twrp)

Mi Mix Global Rom (to be installed with Twrp)

Post a Comment

1 Comments