[Xiaomi Mi 5s Guides, News, & Discussion] unicastbg:
Hi guys,

It turned out this script can't really unlock the bootloader. Although I didn't see it, my phone must have come with an unlocked bootloader.

I did another test on the same script but for Redmi 4X and the result was the same - can't unlock the bootloader.

So the moderators can delete this topic as it now serves no purpose. There are other topics for flashing TWRP and rooting the phone.

I am sorry for misleading you guys...

Here's how to install TWRP and SuperSu.

I'm not responsible if you brick your phone or lose data. I did a test on mine and all worked fine.

Info found here - (https://www.gizdev.com/root-xiaomi-mi-5s-unlock-bootloader/).

What you need:

1. Mi Flash Tool - Link(or just the ADB driver - Link)

2. Flasher ToolKit for Mi 5s - Link.

3. USB Debugging enabled in Developer Options

Install the Mi Flash Tool or the ADB drivers. Windows might tell you the drivers cannot be verified. Click on Yes to continue with the installation.

Unzip the Flasher ToolKit files to a folder on your computer.

Start with FLASHER TOOLKIT Capricorn.bat.

[IMG="startup screen"]https://www.gizdev.com/wp-content/uploads/2016/12/Mi-5s-toolkit-root.png[/IMG]

Hit Enter and this is what you'll see:

[IMG="Main screen"]https://www.gizdev.com/wp-content/uploads/2016/12/Mi-5s-toolkit.png[/IMG]

First you need to unlock the bootloader, so click on 3. Bootloader Utility. - This only really checks if the bootloader is locked or not. Nothing else.

The program will inform that hitting Enter will restart the phone in Bootloader mode.

Once there the unlocking will begin and you'll see this:

Now the phone will restart.

Once it boots up Android, you can continue with the next step - installing TWRP. Now it's a good time to transfer the SuperSu zip file to your phone. In Downloads for example.

Select the first option - Flash ZCX-TWRP 3.0.2.X for Mi 5s.

The image will be transferred and the phone will be restarted in Recovery mode. It might take a while to load TWRP for the first time, be patient.

Now that you're in TWRP, click on Install, select the SuperSU zip file. Once flashed, go back to Reboot, System.

If something fails:

-The ADB drivers didn't work for me so I installed Mi Flash and unplugged/plugged the phone in the USB.

Check in Device Manager if the ADB drivers are loaded for your Mi 5s. If you don't see anything saying ADB, unplug the phone and plug it back in the USB. Or try another USB port. Or try uninstalling the current drivers and reconnect the phone again.

-If you've closed the Flasher ToolKit and you try to start it again, but nothing happens, open Task Manager and kill/end task the adb.exe *32 process.

- If your phone restarts in Recovery, but all you see is the TWRP logo for minutes, give it about 10 minutes. If nothing changes, restart the phone by pressing and holding the power button. Have you unlocked the bootloader first?

It might have been a good idea to take a camera and shoot every step of the process, but I was testing it to confirm it's working. Hence most of the screenshots are from the web.

Anyway, that's what I can think of right now. If I'm missing something or you can't get it to work, let me know.