Rooting Xiaomi Mi5c - 100% easiest way!

ROMs, Mods, Discussion and all other Topics about the Xiaomi Mi 5c (song).

Moderator: dr4kendroid

User avatar
zapperbyte
Recognized Developer
Recognized Developer
Posts: 78
Joined: 12 Jul 2017, 13:45
Location: Germany
Phone Model: Mi 6 , Mi Pad 3
Has thanked: 8 times
Been thanked: 38 times
Contact:

Rooting Xiaomi Mi5c - 100% easiest way!

Post by zapperbyte » 24 Sep 2017, 00:16

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.
You do not have the required permissions to view the files attached to this post.
These users thanked the author zapperbyte for the post (total 7):
Laub7bukstopoyivo siebimagnussungamvexerakbar_rhDarkEngel

User avatar
Laub7bukst
New Member
New Member
Posts: 2
Joined: 24 Sep 2017, 17:03
Has thanked: 1 time
Been thanked: 1 time

Re: Rooting Xiaomi Mi5c - 100% easiest way!

Post by Laub7bukst » 24 Sep 2017, 18:20

Thx, I will try this, because rooting now is quite a procedure right now. Is this unspecific to Miui version?

User avatar
zapperbyte
Recognized Developer
Recognized Developer
Posts: 78
Joined: 12 Jul 2017, 13:45
Location: Germany
Phone Model: Mi 6 , Mi Pad 3
Has thanked: 8 times
Been thanked: 38 times
Contact:

Re: Rooting Xiaomi Mi5c - 100% easiest way!

Post by zapperbyte » 24 Sep 2017, 18:50

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.

User avatar
Laub7bukst
New Member
New Member
Posts: 2
Joined: 24 Sep 2017, 17:03
Has thanked: 1 time
Been thanked: 1 time

Re: Rooting Xiaomi Mi5c - 100% easiest way!

Post by Laub7bukst » 25 Sep 2017, 15:08

can confirm that this is working.

Tested with: 7.9.14 Miui 9 Beta xiaomi.eu rom and SuperSu 2.82-SR4
These users thanked the author Laub7bukst for the post:
zapperbyte

User avatar
vexer
New Member
New Member
Posts: 2
Joined: 13 Oct 2017, 16:18
Has thanked: 1 time
Been thanked: 0

Re: Rooting Xiaomi Mi5c - 100% easiest way!

Post by vexer » 13 Oct 2017, 16:51

And it works without any problems with Magisk.

Thanks!

User avatar
edipwick
New Member
New Member
Posts: 1
Joined: 28 Oct 2017, 11:24
Has thanked: 0
Been thanked: 0

Re: Rooting Xiaomi Mi5c - 100% easiest way!

Post by edipwick » 28 Oct 2017, 11:26

thx for info

User avatar
vexer
New Member
New Member
Posts: 2
Joined: 13 Oct 2017, 16:18
Has thanked: 1 time
Been thanked: 0

Re: Rooting Xiaomi Mi5c - 100% easiest way!

Post by vexer » 30 Oct 2017, 18:00

...and I'm running a second Mi5C with the mi-globe rom: no need to use this tool :)

Thanks!

User avatar
Brunaldo
New Member
New Member
Posts: 5
Joined: 02 Nov 2017, 19:48
Has thanked: 0
Been thanked: 0

Re: Rooting Xiaomi Mi5c - 100% easiest way!

Post by Brunaldo » 02 Nov 2017, 20:58

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

User avatar
Brunaldo
New Member
New Member
Posts: 5
Joined: 02 Nov 2017, 19:48
Has thanked: 0
Been thanked: 0

Re: Rooting Xiaomi Mi5c - 100% easiest way!

Post by Brunaldo » 02 Nov 2017, 21:14

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...

User avatar
zapperbyte
Recognized Developer
Recognized Developer
Posts: 78
Joined: 12 Jul 2017, 13:45
Location: Germany
Phone Model: Mi 6 , Mi Pad 3
Has thanked: 8 times
Been thanked: 38 times
Contact:

Re: Rooting Xiaomi Mi5c - 100% easiest way!

Post by zapperbyte » 02 Nov 2017, 22:40

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

Post Reply


Xiaomi LYXQEJ01JY Bluetooth Earphones Ne

55.00 $
Coupon:     Flash Sale
2018-08-19

Xiaomi Mi 8 SE 4G Phablet - GOLD

329.99 $
Coupon:     Flash Sale
2018-08-19

Xiaomi Mi 8 4G Phablet International Ver

469.99 $
Coupon:     Flash Sale
2018-08-19

Xiaomi Mi 8 MIUI 9 4G Phablet Internatio

429.99 $
Coupon:     Flash Sale
2018-08-19

Xiaomi MI MIX 2S 4G Phablet 6GB RAM Glob

559.99 $
Coupon:     Flash Sale
2018-08-19