[All-In-One] Xiaomi Mi Mix 2 (chiron): Unlock Bootloader, Flash TWRP, Root, Flash ROM

senerex

Senior Member
Apr 15, 2018
120
449
63
Prishtina, Kosova
If I want to flash an AOSP rom (like lineage out AICP), I need to flash any firmware or just wipe, flash the rom or gapps and all done?
Update MIUI to the latest version (usually the developers take the latest MIUI version as basis for the development of the custom rom Lineage, AICP, RR etc.), unlock bootloader (point B), flash twrp (point C), make a "clean" install of the custom rom (Point F). Just follow the steps of the AIO in the first post and you should be fine.

Does the OEM unlocking in Dev opt. need to remain on even after unlocking?

Sent from my [device_name] using XDA-Developers Legacy app
You can decide yourself. I usually leave it open.
 
  • Like
Reactions: letmeputdatipin

BTan11800

New member
Aug 2, 2018
1
0
0
Hi, thanks for the hard work that went into this guide. I have one question however.

At the final stage of your instructions, I installed Magisk instead of the root option you recommend for LineageOS. I was then stuck in a bootloop. I went back into recovery and followed your steps exactly (using the recommended root option) and then the phone worked fine. Is Magisk unavailable with LineageOS on a Mi Mix 2. This seems contradictory to what the interwebs say but I get stuck in a bootloop every time. Maybe I should install Magisk before the Firmware?

Also, I noticed that the LineageOS zip contains a boot file. Is this the file I should patch if proceeding with that way to install Magisk (instead of installing from recovery via the zip)?

Thanks again.
 

DTLNR

Member
Apr 3, 2017
10
1
0
question

I fallowed the steps, didnt had to get the veirification thingy went to UNLOCK screen and it said it will ERASE MY USER DATA, now im sitting over here thinking what to do? Why is it that it wants to erase my user data? I dont remember this happening with my old redmi note 2 (im using mi mix 2 now btw).

and also this means it will basically factory reset my device, right?
 
  • Like
Reactions: hogjor

senerex

Senior Member
Apr 15, 2018
120
449
63
Prishtina, Kosova
Hi, thanks for the hard work that went into this guide. I have one question however.

At the final stage of your instructions, I installed Magisk instead of the root option you recommend for LineageOS. I was then stuck in a bootloop. I went back into recovery and followed your steps exactly (using the recommended root option) and then the phone worked fine. Is Magisk unavailable with LineageOS on a Mi Mix 2. This seems contradictory to what the interwebs say but I get stuck in a bootloop every time. Maybe I should install Magisk before the Firmware? Also, I noticed that the LineageOS zip contains a boot file. Is this the file I should patch if proceeding with that way to install Magisk (instead of installing from recovery via the zip)?

Thanks again.
Actually also Magisk (and not only the official Lineage root AddOn) should work. Anyway please post your question in the Lineage forum here: https://forum.xda-developers.com/mi-mix-2/development/rom-lineageos-15-1-mi-mix-2-t3784676. Maybe the Lineage developer for our Mix2 has an explanation as to why Magisk is not working in your case.

I fallowed the steps, didnt had to get the veirification thingy went to UNLOCK screen and it said it will ERASE MY USER DATA, now im sitting over here thinking what to do? Why is it that it wants to erase my user data? I dont remember this happening with my old redmi note 2 (im using mi mix 2 now btw). and also this means it will basically factory reset my device, right?
It is Xiaomi's decision to reset the OS and thus erase all data in the phone if you unlock the bootloader. Xiaomi warns you in 3 steps of unlocking bootloader procedure that all your data will be erased. But it is not only Xiaomi that does this, also other manufacturers do this.
 

elio321

Senior Member
Nov 29, 2010
201
17
0
Help!

I can't get past instruction 6B unlocking the bootloader...

I have the tool installed on my Windows 10 laptop and am logged into it with my Mi account.

But when I put the Mix 2 into fastboot mode and connect it via USB the unlock tool remains greyed out and I cannot click the 'unlock'button in the tool window. I am guessing the Mix 2 is not being detected... but the laptop makes a sound when I plug and unplug the Mix 2. Also in device manager I see it listed as LeMobile Android Device and on opening that Android bootloader interface appears underneath in the list... is it a driver issue ?, if so any ideas how to solve this please ?

Please help I have followed instructions to the letter and all fine till I hit this sticking point ?

Thanks guys

Regards

Mark

PS I did the temp disable driver signature enforcement fix..
that would not be anything to fi with it would it ?
 

abufrejoval

Senior Member
Dec 26, 2010
135
98
0
Frankfurt
Unknown Error (90000)

I used this really nice guide to walk through all these steps, but always failed at the same point: At 99% it simply failed to unlock, because evidently it couldn't get the unlock code from the server in China. At least that's what I read from the detailed log file the unlocking tool is writing: It simply echoes the json resturn message that comes from the server.

I had the Huawei account, I had associated the device, I even finally inserted a SIM card and had it associate with the device and account (the phone was meant for my son and in any case, Huawei has no business knowing my phone number...) but that changed nothing. I even reverted back from the automatic Oreo update and switched the gobal developer ROM, again that didn't do a thing.

In the end I had to return the phone on the day the 14 day "no questions asked" grace period in EU e-tail ran out: I'm sorry it most likely will now get destroyed (evidently it's too much trouble to repackage them), because it was a very fine phone and could have been perfect for someone who doesn't care about the ability to have adminstrator level access to his very personal computer, but I do.

Replaced it with a Nokia 8 for the same last-year-premium price, which unlocked very easily using $5 to get the code. Not the better device, but easier to unlock.

If anyone has a clue how to solve this, I'd be more than happy to buy another Mi Mix 2 (or any other Xiaomi), because they seem to be well made and at least still officially have the policy to enable unlocking.
Let's just hope this iNonsense doesn't spread...
 

Ippfcox

Senior Member
Sep 14, 2016
83
17
0
威海
Thanks for all your help Senerex :) I think now we know my device has some hardware problem internally so i just soak it up and move on.... I may buy another mi mix 2 and try again, i hope im not getting a lemon twice!! Thank You Sir
I want to say, there are many people have the same problem, their solution is to find a computer with win7, I don't know if it works, I will have a try tomorrow. Do you solve this problem now?
 

veitograf

Senior Member
Jan 11, 2011
337
44
28
www.veitograf.de
hey guys, after 72 hour of waiting i was finaly able to unlock my phone. now i tried to install latest twrp but it tells me the following error.

target reported max download size of 536870912 bytes
sending 'revocery' (25892 KB)...
OKAY [ 0.548s]
writing 'revocery'...
FAILED (remote: No such partition.)

anyone knows what the problem could be?
 

emptynick

Senior Member
Jan 16, 2010
186
107
0
Bielefeld
hey guys, after 72 hour of waiting i was finaly able to unlock my phone. now i tried to install latest twrp but it tells me the following error.

target reported max download size of 536870912 bytes
sending 'revocery' (25892 KB)...
OKAY [ 0.548s]
writing 'revocery'...
FAILED (remote: No such partition.)

anyone knows what the problem could be?
Yes, the typo you have there
 
  • Like
Reactions: veitograf