forum.mi-globe.com • Rooting Xiaomi Mi5c - 100% easiest way!
Page 1 of 2

Rooting Xiaomi Mi5c - 100% easiest way!

Posted: 24 Sep 2017, 00:16
by zapperbyte
After reading around and testing some things with the Mi5c i found out that there is currently no easy way to root the phone.
Problems are:
- Phone directly boots into fastboot mode after flashing some custom roms
- Phone directly boots into fastboot mode after flashing standard root solutions like supersu or magisk
- Mi5c boot.img is packed with sha256 hash (not default sha1) read more

The solution for this was made by usedbyte from xda, he modified the code for mkbootimg tools and published the source on github.
I cross-compiled the tools for android ARM architecture and created a flashable zip file that will fix all the problems with the sha256 hash on Mi5c boot images.

I uploaded the cross-compiled binaries and the flashable zip as attachement.

How to root Mi5c / How to use it:

-Unlock Bootloader of Mi5c
-Flash TWRP for Mi5c
-Install Roms, Magisk Root, Supersu, whatever you want
-Install any other mods you like that would change the boot.img
-At the end after all installations, flash the ZIP file i created.

Re: Rooting Xiaomi Mi5c - 100% easiest way!

Posted: 24 Sep 2017, 18:20
by Laub7bukst
Thx, I will try this, because rooting now is quite a procedure right now. Is this unspecific to Miui version?

Re: Rooting Xiaomi Mi5c - 100% easiest way!

Posted: 24 Sep 2017, 18:50
by zapperbyte
Laub7bukst wrote:Thx, I will try this, because rooting now is quite a procedure right now. Is this unspecific to Miui version?

Yes, can use it with any rom. It only repacks your boot partition with correct hash.

Re: Rooting Xiaomi Mi5c - 100% easiest way!

Posted: 25 Sep 2017, 15:08
by Laub7bukst
can confirm that this is working.

Tested with: 7.9.14 Miui 9 Beta xiaomi.eu rom and SuperSu 2.82-SR4

Re: Rooting Xiaomi Mi5c - 100% easiest way!

Posted: 13 Oct 2017, 16:51
by vexer
And it works without any problems with Magisk.

Thanks!

Re: Rooting Xiaomi Mi5c - 100% easiest way!

Posted: 28 Oct 2017, 11:26
by edipwick
thx for info

Re: Rooting Xiaomi Mi5c - 100% easiest way!

Posted: 30 Oct 2017, 18:00
by vexer
...and I'm running a second Mi5C with the mi-globe rom: no need to use this tool :)

Thanks!

Re: Rooting Xiaomi Mi5c - 100% easiest way!

Posted: 02 Nov 2017, 20:58
by Brunaldo
Whi for me dont' works in Xiaomi.eu 7.10.26 beta? I've flashed it after this rom and after Magisk v14 or supersu 2.82 sr5

Re: Rooting Xiaomi Mi5c - 100% easiest way!

Posted: 02 Nov 2017, 21:14
by Brunaldo
I have flashed only the second file zip. Right? (Mi 5c bootimg fix). Mi phone restart with Magisk but is not rooted, and with supersu i have bootlop. Please any help...

Re: Rooting Xiaomi Mi5c - 100% easiest way!

Posted: 02 Nov 2017, 22:40
by zapperbyte
Brunaldo wrote:I have flashed only the second file zip. Right? (Mi 5c bootimg fix). Mi phone restart with Magisk but is not rooted, and with supersu i have bootlop. Please any help...


You can download globeROM from mi-globe.com for MI 5c. It has root and my fix already included.
If you want to use another ROM you have to install in the correct order.
First - install your ROM !
Second - install Magisk or SuperSU Zip File
Third - install my mi5c bootimg fix Zip File