[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
/*
* I'm not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed (like it did for me...).
* Please do some research if you have any concerns about features included in the products you find here 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.
* Your warranty will be void if you tamper with any part of your device / software.
* Same statement for XDA.
*/

LineageOS is a free, community built, aftermarket firmware distribution of Android 9 (pie), which is designed to increase performance and reliability over stock Android for your device.

LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts.

LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review.

What's working

:

. HWC [Prebuilt Permissive Kernel]

. Wi-Fi, NFC

. Bluetooth : aptX™ HD [48 KHz/24 bits]

. RIL : Calls, SMS, Data

. Call Recorder : AMR-WB & AAC

. Hotspot & Tethering

. Screen Mirroring [aka Miracast]

. Camera : minimalistic ... use my GCam or MIUICamera MOD instead !

. Audio/Video : Playback & Record

. FM Radio & FM Recorder

. Mics [All]

. Sensors [All]

. GPS

. Flashlight, IR Blaster

. Notification LED on the back

. Autobrightness, Full LiveDisplay Control, Notch hide

. Fingerprint [FOD] : use autobrightness in a bright room for fast unlocking, or disable android animations

. AOD : to use at your own risk (burn-in, no deep-sleep)

. DT2W : enabled by default

. Encryption

. USB OTG

. Fast Charging

. Offline Charging

. SafetyNet

. DRM Widevine L1 enabled : Netflix in Full HD with the official app from the Play Store (no Magisk Module / modded app needed)

More

:

. Heavy ART, Battery, CPU & Memory optimizations : ZERO lag/freeze/random reboot !

. Super smooth UX

. Hi-Fi audio experience

. Stellar deep-sleep at 99% on GSM mode (disable mobile data /LTE /4G+) : use Wi-Fi instead at home !

. Chromium Webview inside [source]

. Open GApps compatible, or use my optimized "Google Essential Package" +++

. Wi-Fi Max Speed (Mbps) : 150 (2.4 GHz) / 433 (5 GHz)

=> choose in your router settings the

highest

frequency for "Channel Width" for both 2.4 & 5 GHz +++

Known issues

:

- SELinux Permissive

- FOD & Screen Recorder don't work when the option "hide notch" is enabled ... disable it if you want to use them.

INSTRUCTIONS

FIRST INSTALL

Coming from the official MIUI/xiaomi.eu, LineageOS 17.x or any android 10 custom ROM ... etc

This LineageOS 16.0 is based on android 9 (pie) firmware not android 10 !

- With your current TWRP :

. Format /data : type "yes" with keyboard popup

. Flash this

firmware.zip

[MANDATORY]

- Without rebooting TWRP :

. Wipe system & vendor

. Flash the latest downloaded LOS 16.0 build

. Flash the Open GApps or my "Google Essential Pack" (+ GCam)

. Optional : reboot to TWRP again & flash Magisk

- Boot now to LineageOS system and finish your setup +++ : set MagiskHide ON to pass SafetyNet !

*******​

DIRTY INSTALL

(2min/max)

= working data for current LineageOS 16.0 (not MIUI, not LOS 17.x)

= you are NOT in MIUI/ LOS 17.x and you just want to restore your backup => it will not work : encryption is different from each software version. You must restart from scratch (clean install)

- From your current TWRP :

. Wipe "/dalvik & cache"

. go with TWRP file manager and delete : /data/system/package_cache

/data/property/persistent_properties

. Flash the latest build

. Flash the Open GApps or my "Google Essential Pack" [+ GCam]

. Optional : reboot to TWRP again & flash Magisk

- Boot to LineageOS system !

MORE CLEAR THAN THIS, I CAN'T OR YOU MUST BE BLIND !!!

DOWNLOADS

:

Here

Banking Apps & GPay

:

. Hide your banking app, Google Play Services & Magisk Manager with a random name (Magisk Parameters) +++

. GPay supported countries : here

Credits

. phhusson for his amazing work on the project treble

. AndyYan for his reference on building Lineage GSI

. LineageOS Community for documentation, bugfix, news, ...

Contributors

:

gringo80 : exploring, building and testing ...

Source Code for both Recovery and Boot : Here

ROM OS version : 9.x Pie

ROM Kernel : Linux 4.9.x

Version Information

Status : Stable

Stable Release Date : 2020-12-12

Created : 2019-11-05

Latest Update : 2020-12-12