[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] vince31fr:
*** Please read this : https://xdaforums.com/showpost.php?p=82949289&postcount=212 ***

I maintain for my own use an unofficial build of LineageOS for MicroG, that I decided to share here.

What's included:

GmsCore, GsfProxy, FakeStore, maps API (MicroG core apps)

F-Droid Privileged Extension and FDroid

Aurora Store

Etar-Calendar instead of los Calendar (completely useless with MicroG).

QKSMS instead of los SMS app

Pdf Viewer Plus

Several NLP backends for MicroG : DejaVuNLPBackend, MozillaNLPBackend, AppleNLPBackend, RadioCellsNLPBackend, NominatimNLPBackend

Magic Earth GPS & Navigation: the only exception to my open-source policy for preinstalled apps

Carnet (notes app, can sync with NextCloud)

Several new search engines in Lineage's browser (Ecosia, Qwant, Searx, Startpage)

I also kanged some features from other ROMs that I really miss in los:

Smart charging (disables charging when a given level is reached)

Fingerprint vibration toggle

Swipe down to clear all in recent apps

I used [MENTION=5994357]Cozzmy13[/MENTION] device tree and kernel, all credits go to him (and to all los contributors, of course):

device tree: https://github.com/Demon000/device_xiaomi_cepheus

https://github.com/Demon000/device_xiaomi_sm8150-common

kernel: https://github.com/Demon000/kernel_xiaomi_sm8150

vendor: https://github.com/Demon000/vendor_xiaomi

Downloads:

20/05/2020 build:

Many improvements in the device tree : see here. Among the most prominent ones are double tap to wake (DT2W), and fixes for ANX camera.

True black theme (can be enabled in theme picker when dark mode is toggled, by setting the 'primary color'). Not yet in official lineage sources, but submitted to lineage by Cosmin.

More de-googling : default DNS have been changed to quad9's 'unblocked' servers.

16/05/2020 build:

Synced latest lineage sources (security patch 35)

Synced device tree, some improvements under the hood

Kanged a new feature from other custom roms: swipe down to clear all in recent apps. It must be enabled in the launcher settings

Updated apps to their latest versions, and in particular Aurora Store which fixes many problems due to changes in play API

Fought a bit more against data leak to google: completely removed all references to google's captive portal that were still remaining, and changed default option for phone number lookup from google to OpenStreetMap.

27/04/2020 build:

Merged latest DT improvements, see here: wfi hotspot, IR, FOD...

Synced latest Lineage sources, up to security patch r33.

MicroG: enabled GCM registration by default, as well as DéjàVu NLP provider and Nominatim Geocoder. The goal is to make google-free beginner's life easier: there's now no need for an initial setup of microG. Advanced users can of course change this default behavior.

09/04/2020 build:

Merged latest DT improvements (see here and here). Most notably, NFC support added, FOD improvements, battery savings in AOD.

Synced latest Lineage sources.

25/03/2020 build:

Hopefully, camera and video playback issues are solved.

23/03/2020 build:

Synchronized to latest Lineage sources and device tree.

Camera problem solved thanks to latest additions to dt.

09/03/2020 build:

Synchronized to latest Lineage sources, including March security update (r31).

Synchronized to latest device tree and kernel. Many improvements, including one very important: Selinux is now enforced.

Removed DuckduckGo, and re-added Jelly (Lineageos' browser). I added plenty of search engines: Ecosia, Qwant, Qwant Lite (default on fresh install), several Searx instances among the ones that are regularly on top at searx.space (searx.info, searx.xyz, search.galactica.cat), and Startpage. I also added Qwant as suggestion provider.

Removed Aurora Services: useless when Aurora Store is installed as system app.

Replaced AOSP keyboard by OpenBoard from F-Droid.

Added Carnet from F-Droid, a notes app which can synchronize with a NextCloud account.

04/02/2020 build:

Updated a few apps to their latest FDroid version (Etar, QKSMS)

Merged latest lineage tree (this is done at each release...). Among other things, localization (language translations) has been a lot improved

Prepared the rom for OTA releases. Next updates will be proposed by the lineage updater (can be opened in Settings -> System -> Updater). By default, the presence of new versions is checked once a week (this can be modified), and a notification should be thrown. I'll carefully check each release, but maybe in some cases, your device won't boot and only a data wipe or flashing a previous build could recover it... But this is the same for manually downloaded updates... Use at your own risk! For information, downloaded OTA files are stored in /data/lineageos_updates, but downloaded builds can be deleted through the updater app.

24/01/2020 build: A clean flash is mandatory. You've been warned! Backup your phone before flashing...

Replaced stock SMS app by QKSMS

Replaced stock browser by DuckDuckGo

Preinstalled FDroid and MicroG FDroid repo

Preinstalled Aurora Store

Preinstalled NLP backends: DejaVuNLPBackend, MozillaNLPBackend, AppleNLPBackend, RadioCellsNLPBackend, NominatimNLPBackend

Preinstalled Pdf Viewer Plus

The APKs of all these apps come from FDroid and can thus be updated by FDroid.

What has also been done:

Reworked the launcher home screen: clock widget, desktop icons...

Preinstalled Magic Earth GPS navigation app. Although not free software, it has a strict privacy-friendly policy, and I am not aware of any alternative open-source GPS navigation app providing traffic information.

Fixed NLP backends random deconnecting, by a quick and dirty hack, in the hope a better solution to be eventually found.

Replaced supl.google.com by supl.vodafone.com for A-GPS. something went wrong with that, it will be for the next release

Replaced connectivity check for captive portal login (default is connectivitycheck.gstatic.com) by http://captiveportal.kuketz.de.

I will pursue, step by step, the ungoogling of that rom. Any clue or advice in that goal will be appreciated. My next step for a future release will be to replace default google DNS 8.8.8.8 by something else, maybe by Quad9 DNS.

16/01/2020 build: Clock FC fixed

14/01/2020 build: Initial build with minimal preinstalled apps. Added many ones in next builds.

Bugs:

The same as Cozzmy13 build, actually DT2W --> fixed since 20/05/2020 build

NLP backends: they are not automatically started in background (see https://github.com/microg/android_packages_apps_GmsCore/issues/986). At each boot, you need to manually go in MicroG settings and re-check NLP backends --> fixed since 24/01/2020 build