[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] photonmedia:
** Standard Disclaimer: Unlocking your Bootloader will Void your Warranty. I take no responsibility for this or for any bricked devices. These thing should go without saying at this point, but there they are. If you are here, I assume you are familiar with LineageOS, TWRP, and moving from MIUI to AOSP-based ROMs**

**Download Link Updated to build 2020-07-10**

TL;DR:

This is a Clean, Stock LineageOS Build for Xiaomi Mi 9 (cepheus) that does NOT include any GApps, MicroG, or Signature Spoofing.

What you choose to add/modify after installing this ROM is entirely up to you.

All,

I wanted to distance myself from Google as much as possible, so I decided to build LineageOS from the source.

I used the LineageOS source they provide via GitHub, available here.

I also use the Proprietary Blobs for the Cepheus Device Tree from Demon000's GitHub, available here.

To get current version to build, I also needed to add the LineageOS/android_hardware_xiaomi source to my local manifest and use the repopicks Cozzymy13 includes in the OP of his ROM's thread. [Thanks k1l for and Cozzymy13 for pointing out these additions!]

The result is a stock build of LineageOS 17.1 for the Cepheus device. In the spirit of LineageOS, this does not include Signature Spoofing. You will need to use Xposed or some other method if you desire that functionality.

This also does not include MicroG or any other additional applications. This is pure LineageOS, built on 2020-07-10.

NanoDroid patcher works well for anyone who wants to add MicroG support. You will still need to use Xposed or similar if you want Signature Spoofing as NanoDroid does not offer a patch for Android 10 as of this build.

Feel free to provide download mirrors.

What Works:

Pretty much everything from what I can tell

Fingerprint Sensor it working like a champ so far.

DT2W/DT2S

NFC Seems to be working but I don't have a device to test against

Known Issues:

You tell me...

Install:

From TWRP:

1) Wipe Date (standard wipe)

2) Flash lineage-17.1-20200710-UNOFFICIAL-cepheus.zip

3) Format Data (Wipe -> Format Data -> type "yes"

3b) - OPTIONAL - Flash Magisk Zip for Root

4) Reboot to system

Alternate Install Steps for Full MicroG with Signature Spoofing:

From TWRP:

1) Wipe Date (standard wipe)

2) Flash lineage-17.1-20200710-UNOFFICIAL-cepheus.zip

3) Format Data (Wipe -> Format Data -> type "yes"

3b) - OPTIONAL - Flash Magisk Zip for Root

4) Reboot to system (ignore any errors about missing Google Services)

5) Reboot to TWRP

6) Flash NanoDroid Patcher (either the Full package or you can customize per the instructions in the NanoIx link below)

7) Reboot

8) Install the Magisk Module for Xposed Framework and the EDXposed.ZIP as per the instructions in the Xposed link below)

9) Reboot to activate the new Module

10) Within the EDXposed App, Install the FakeGApps Module

11) Reboot to activate the new Module

As everything I really care about is working in this build, I do not plan to devote much, if any, time to "supporting" this release. I just thought I'd share my clean 17.1 LineageOS in case anyone else is interested.

Download:

LineageOS 17.1 Unofficial (Built: 2020-07-10) md5sum: 1c340fc16a6fbc7586d0a856acb9c600

NanoDroid Patcher (optional): NanoIx

Magisk Root (optional): Magisk

XPosed for Android 10 - Magisk Module (optional): Xposed