• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[ROM][9][OFFICIAL] LineageOS 16.0 for Mi MIX 2

mikeioannina

Recognized Developer
Mar 22, 2011
1,900
26,531
113
Ioannina
Code:
[COLOR="Purple"]#include <std_disclaimer.h>[/COLOR]
[COLOR="Navy"]/*
 * Your warranty is now void.
 *
 * I am not responsible for bricked devices, dead SD cards,
 * thermonuclear war, or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about features included in this ROM
 * before flashing it! YOU are choosing to make these modifications, and if
 * you point the finger at me for messing up your device, I will laugh at you.
 */[/COLOR]
Installation:
If you are on stock OS, you need a custom recovery first. You can get the recommended TWRP recovery in the official installation instructions link below.
If you are coming from stock or other ROMs, you need to make a factory reset.
As always, make sure to backup before installing this ROM.

More detailed instructions at:
Install LineageOS on chiron

Download link:
LineageOS Downloads

Recommended Google Apps package:
Open GApps (choose ARM64 as Platform and 9.0 as Android, use the Variant you want. Recommended nano package)

Required TWRP recovery
twrp-3.3.1-chiron-20190608.img

Official root addon and weather provider
LineageOS Extras

Changelog:
Changes for chiron

Bug reports:
How to submit a bug report
LineageOS GitLab

Donate to support development:
Donate via PayPal to mikeioannina
Donate via PayPal to wight554
Donate via PayPal to LineageOS

XDA:DevDB Information
Official LineageOS 16.0 for Mi MIX 2, ROM for the Xiaomi Mi Mix 2

Contributors
mikeioannina, wight554
Source Code: https://github.com/LineageOS

ROM OS Version: 9.x Pie
ROM Kernel: Linux 4.x
ROM Firmware Required: MIUI Stable V10.4.1.0
Based On: LineageOS

Version Information
Status: Nightly

Created 2019-06-09
Last Updated 2019-08-19
 

mikeioannina

Recognized Developer
Mar 22, 2011
1,900
26,531
113
Ioannina
MiuiCamera
I have created a flashable ZIP based on @NeoArian Mi 6 ZIP to get MiuiCamera on LineageOS 16.0 for Xiaomi Mi MIX 2 with the new android 9.0 blobs.
The file is attached to this post. Note that it will overwrite the default Snap Camera app so that you don't have two apps. Because of the included addon.d script the Snap Camera will automatically gets overwritten and MiuiCamera will gets installed over upcoming OTA's. If you want to get rid of this Module just remove /system/addon.d/69-MiuiCamera.sh and reflash the build of you choice, MiuiCamera will get removed and Snap will be added back.

Frequently asked Questions
 

Attachments

Last edited:

krasny2k5

Senior Member
Feb 24, 2011
127
33
0
Last edited:

AndyYan

Recognized Contributor
Jan 30, 2012
4,197
3,282
113
Beijing
but in the op there is no mention of any firmware. Si it necessary or not?
Another question, i come from che latest Eu pie 9.6.5 beta, will i have any problem? Thanks guy
OP clearly says "ROM Firmware Required: MIUI 9.1.24".
Don't even think about pairing a Pie FW with this. Flashing a FW doesn't take you a minute.
 

yeyeoke

Member
Jul 17, 2011
31
3
0
Just tried flashing, it just ends in Error 7, using the recommended firmware and twrp. I formated everything and then tried to flash.

Verifying package compatibility...
I:Extracting updater binary 'META-INF/com/google/android/update-binary'
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment not used in updater.
SELinux: Loaded file_contexts
script aborted: assert failed: xiaomi.verify_trustzone("TZ.BF.4.0.6-00124","TZ.BF.4.0.6-00130") == "1"
 
Last edited:

Brunaldo77

Senior Member
Jun 2, 2016
94
13
0
Just tried flashing, it just ends in Error 7, using the recommended firmware and twrp. I formated everything and then tried to flash.

Verifying package compatibility...
I:Extracting updater binary 'META-INF/com/google/android/update-binary'
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment not used in updater.
SELinux: Loaded file_contexts
script aborted: assert failed: xiaomi.verify_trustzone("TZ.BF.4.0.6-00124","TZ.BF.4.0.6-00130") == "1"
The same for me, arb

---------- Post added at 07:15 AM ---------- Previous post was at 07:00 AM ----------

The same for me, arb
Any solution to remove arb?
 

AndyYan

Recognized Contributor
Jan 30, 2012
4,197
3,282
113
Beijing
I've just gathered some local feedback, and it seems that the 9.1.24 FW requirement Mike posted is simply incorrect - keep using Stable V10.0.2.0 (as all other Pie ROMs that are based on Oreo FW do), else you'd get that TZ mismatch error.
Given that I've been building unofficial LOS from Wight's trees for quite some time, which Wight also pushed to official, and we've been using V10.0.2.0 all along until Pie FW dropped, I believe this is reasonable. Plus, we've never seen another ROM require 9.1.24 either.
 

Guido31

Member
May 30, 2015
20
7
0
Same here: assert failed: xiaomi.verify_trustzone("TZ.BF.4.0.6-00124","TZ.BF.4.0.6-00130") == "1"
TWRP: twrp-3.3.1-chiron-20190608.img
Firmware: tried with 9.1.4_8.0 (and also by mistake with 9.5.8_9.0)

But thanks anyway- I'm sure everything will work in some days!
 

Brunaldo77

Senior Member
Jun 2, 2016
94
13
0
I've just gathered some local feedback, and it seems that the 9.1.24 FW requirement Mike posted is simply incorrect - keep using Stable V10.0.2.0 (as all other Pie ROMs that are based on Oreo FW do), else you'd get that TZ mismatch error.
Given that I've been building unofficial LOS from Wight's trees for quite some time, which Wight also pushed to official, and we've been using V10.0.2.0 all along until Pie FW dropped, I believe this is reasonable. Plus, we've never seen another ROM require 9.1.24 either.
i've checked and and my result is anti: 1
Am I stuck with custom rom? I have active arb? Thanks in advance Andy
 

ck007

Senior Member
Mar 30, 2011
67
9
0
Hello guys, for those who have problems with the flash of the rom, I can say that if you'll use the firmware from andyyan repo (fw_chiron_miui_MIMIX2Global_V10.0.2.0.ODEMIFH) you won't have problems with the installation.
 
  • Like
Reactions: hawkwind

AndyYan

Recognized Contributor
Jan 30, 2012
4,197
3,282
113
Beijing