FORUMS
Remove All Ads from XDA

[ROM] [UNOFFICIAL] [9.0] [pyxis] LineageOS 16.0 (Mi 9 Lite)

330 posts
Thanks Meter: 307
 
By gringo80, Account currently disabled on 5th November 2019, 09:03 PM
Post Reply Email Thread


PHP Code:
/*
 * 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, Bluetooth, NFC
. RIL (Calls, SMS, Data)
. Hotspot & Tethering
. Camera (minimalistic) : use GCam instead if you want !
. Audio/Video : Playback & Record
. FM Radio
. Sensors
. Flashlight, IR Blaster
. Notification LED on the back
. GPS : very quick location indoor/outdoor
. Fingerprint (FOD) : register 2 FP for the same finger (phone in normal position then flipped 180°)
. Autobrightness
. AOD (to use at your own risk : burn-in, no deep-sleep)
. Encryption
. USB OTG
. Fast Charging
. Offline Charging
. SafetyNet
. DRM Widevine L1 enabled : Netflix in Full HD with the official app from Playstore (no Magisk Module / modded app needed)

. Wi-Fi Max Speed (Mbps) : 150 (2.4 GHz) / 433 (5 GHz)
=> choose on your router : 802.11n only for 2.4 GHz / 802.11ac only for 5 GHz

Known issues :
- SELinux Permissive
- DT2W partially implemented (use the separate .zip enabler/disabler)
- FOD doesn't work when the option "hide notch" is enabled... please disable it if you want to use the fingerprint !
- others : you tell me ...


INSTRUCTIONS


!!! IT'S NOT MY PROBLEM, IF YOU DON'T READ AND FOLLOW MY INSTRUCTION CAREFULLY, IF YOU DON'T HAVE TIME FOR THIS, OR IF YOU FLASH SOMETHING OR DO A MANIPULATION I DIDN'T MENTION HERE.
I'M NOT HERE TO DO THE TEACHER FOR ANYONE. USE GOOGLE AND READ A LOT.
KEEP THIS THREAD CLEAN : EXPOSE YOUR BUG WITH LOGCAT AND I WILL DO THE MAXIMUM TO SOLVE IT.
DON'T SPAM THE THREAD WITH YOUR DRAMA TEXT, OR I WILL LAUGH AT YOU !!!

TROLLS & NOOBS, THIS THREAD IS NOT MEANT FOR YOU ... STAY AWAY PLEASE !!!


First Install

Coming from the official MIUI/xiaomi.eu or LineageOS 17.x ? Android 10 looks ugly/buggy for you or an unfinished/experimental OS ? or Other ROMs/Kernels don't support Widevine L1 ?

Don't worry, i felt the same before, that's why this ROM is meant for !

Now, go to download this fastboot firmware (MIUI 10/Pie) for the Mi 9 Lite and flash it before using LineageOS 16.0
[MiFlash : flash_all.bat only !]

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


TWRP part : (all steps are mandatory !)
Refer to my TWRP thread on how to flash : twrp + vbmeta + ftsab.zip + format data (type yes) + boot miui

(do format once after flashing TWRP the first time, or you will get errors on your backups)

[Don't use/ask me for any file not coming from me]


LineageOS part :
- Download the latest build from the link below, with the Custom Google Pack for LineageOS 16.0
- From MIUI : Reboot your system while you keep Vol.+ pressed until you see the TWRP splash

- Wipe Data, then, go to /data and delete everything except /media folder
(format must be done after flashing TWRP the first time, not mandatory here)

- Flash the build, then reboot again to TWRP : mount/unmount need to be reinitialized. (mandatory)
- Flash the Custom Google Pack (+ GCam)
- Boot now LineageOS and finish your setup +++
- Download and Install Google Playstore.apk (apkmirror)
- Extract and Install GmsCore.apk from the Google Package. Give it all permissions, in the app manager ! +++
- Enter your account and download now all google apps you need !

[- Reboot to TWRP and restore any LOS 16.0 /data backup
(only if you have done this before) ]

- Reboot again to TWRP and install Magisk to get your SafetyNet Pass : no fancy module / Google hide stuff needed => just push Magisk Hide ON !

[Never delete GmsCore.apk from "priv-app" !!! => needed to pass SafetyNet, and enable android Backup in Settings]


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 works : encryption is different from each software version. You must restart from scratch (clean install)

- From TWRP : install the latest build, then reboot again to TWRP (mandatory)
- Flash the Custom Google Pack (+ GCam)
- Wipe /dalvik & cache
- Reboot again to TWRP : flash now Magisk and boot LineageOS !

=> if you are going to restore a /data backup "in this condition : dirty install", you do that and reboot again to TWRP and flash again Magisk !

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


DOWNLOADS :
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 : Here

ROM OS version : 9.x Pie
ROM Kernel : Linux 4.9.x


Version Information
Status : Stable
Stable Release Date : 2020-01-19

Created : 2019-11-05
Latest Update : 2020-01-19
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20200122-120000_Lawnchair_Home.jpg
Views:	486
Size:	101.7 KB
ID:	4933049   Click image for larger version

Name:	Screenshot_20200122-120000_Lawnchair_Apps.jpg
Views:	494
Size:	146.0 KB
ID:	4933051   Click image for larger version

Name:	Screenshot_20200122-120000_Settings_1.png
Views:	476
Size:	163.4 KB
ID:	4933053   Click image for larger version

Name:	Screenshot_20200122-120000_Settings_2.png
Views:	470
Size:	149.7 KB
ID:	4933055   Click image for larger version

Name:	Screenshot_20200122-120000_Settings_WiFi_1.png
Views:	460
Size:	162.7 KB
ID:	4933057   Click image for larger version

Name:	Screenshot_20200122-120000_Settings_WiFi_2.png
Views:	456
Size:	162.4 KB
ID:	4933059   Click image for larger version

Name:	Screenshot_20200122-120000_Settings_Fingerprint_1.png
Views:	440
Size:	59.2 KB
ID:	4933061   Click image for larger version

Name:	Screenshot_20200122-120000_Settings_Fingerprint_2.png
Views:	426
Size:	95.3 KB
ID:	4933063   Click image for larger version

Name:	Screenshot_20200122-120000_Settings_Fingerprint_3.png
Views:	414
Size:	120.8 KB
ID:	4933065   Click image for larger version

Name:	Screenshot_20200122-120000_FM_Radio.png
Views:	412
Size:	55.3 KB
ID:	4933067   Click image for larger version

Name:	Screenshot_20200122-120000_Magisk_Manager.png
Views:	410
Size:	146.1 KB
ID:	4933069   Click image for larger version

Name:	Screenshot_20200122-120000_Google_Play_Store_1.png
Views:	396
Size:	142.1 KB
ID:	4933071   Click image for larger version

Name:	Screenshot_20200122-120000_Google_Play_Store_2.jpg
Views:	396
Size:	146.8 KB
ID:	4933075   Click image for larger version

Name:	Screenshot_20200122-120000_Trebuchet_Netflix.jpg
Views:	420
Size:	95.8 KB
ID:	4933077  
The Following 41 Users Say Thank You to gringo80 For This Useful Post: [ View ] Gift gringo80 Ad-Free
5th November 2019, 09:48 PM |#2  
OP Account currently disabled
Thanks Meter: 307
 
More
Reserved for "Changelog"


Update : (2020-01-19) Highly Recommended !
- mediacodecs : fix VP9 /AVC secure
- DRM L1 re-implemented from stock MIUI : Full support for Netflix from Playstore => Full HD working and tested !
(the first and only custom ROM on Earth ! )
- BT : improve HiFi Playback with aptX™ HD codec (check your headphone compatibility)
- FOD : fix conflict with screen protectors (tested with CRXOOX 9H : very thick !)
- Reduce ROM size a lot (to save space in your /system_root partition)

Update : (2020-01-15)
- Remove : Busybox, Addon SU (RIP and Thank you for all these beautiful years !) => Busybox still available in a separate .zip
- Unified thermal-engine.conf
- BT Fix
- Official fingerprint from the stock firmware to pass SafetyNet :

. no module / Google hide stuff needed (just push Magisk Hide ON !)
. Netflix available in Playstore again
. GPay available in selected countries (check yours !) => needs more testing please from users (still unavailable in my country)

=> Instruction :
. After updating your build as usual (dirty install only), please reinstall Google Services + Playstore + all previous apps (by Google LLC), as normal apps .
. Delete all data for Playstore + Remove your Google account (account manager in Settings) and reboot !
(Don't delete your apps ... to keep your settings)
. Resign in again to your Google account

This is the last time that this thing will happen and sorry for the inconvenience !

Update : (2020-01-07)
- Patches merged : AOD, Security Platform Level (from December 2019)
- Fix : Sound & Notification
- Update : Kernel & Vendor from the latest MIUI v11.3.4.0 => Proximity Sensor broken in this vendor. Revert back to Kernel & Vendor from MIUI 10.3.6.0 (stable)

Update : (2019-12-31)
- Update : New OTG Patch
- Build : cleaned => remove unused : code, classes, resources ... etc

Update : (2019-12-21)
- PowerHAL : overheating fix, improve battery life
- Audio Engine : improve HiFi playback
- Google Package Update : GoogleCalendarSyncAdapter / GoogleContactsSyncAdapter
- Extra Custom Packages : Lawnchair, Pixel Blue Accent

Update : (2019-12-14)
- Previous patches merged : WiFi 2.4 Fix, Roaming, ...etc
- Update : NFC (libs/framework/permissions/selinux), vendor overlay
- Build : improve stability, performance and battery life
- Google Package Update : Keyboard Gesture, GoogleCalendarSyncAdapter
- Extra Custom Packages : Google Contacts, YouTube & Compass

Update : (2019-12-07)
- Previous patches merged : Dirac Sound, FM Recorder, ...etc
- Camera Improvement
- Introduce DT2W (separate .zip)
- System Update : sync with upstream, ueventd.rc reworked from scratch (system_root/vendor)

Update : (2019-11-30)
- All previous patches merged : Tethering, Sound Fix, mediacodecs, ...etc
- Fix : DeskClock, DRM for Netflix
- Camera Improvement : add & fix some QUALCOMM blob/lib
- Google Package Update : custom hosts file removed (you have now to deal with YouTube ads, or use the one in the old package)
- addon.su remover added : you can now install Magisk, ... but i don't support any bug with any module !

Update : (2019-11-23)
- All previous patches merged : low brightness, bluetooth playback, etc ...
- FM Radio : successfully implemented !
- Add : Video Call over 4G / Call over WiFi
- Rebuild from scratch : All system_root/vendor permissions, init & overlay (a lot of time and work!)
- Add : Xiaomi Bluetooth blobs (choose the right codec for your paired devices or keep as default)
- Fix : Call recording conflict with Bluetooth
- DeskClock : truly themed to fit the default theme
- Camera Driver : major improvement
- Build : more stable
- Google Package Update : fix permissions and conflicts

Update : (2019-11-18)
- Screen Low brightness fixed
- Charger Offline fixed
- Manual Network Selection fixed
- LTE+ added
- Switch to "Material" Calendar
- FOD improvement : much more faster
- Camera improvement : better light managment
- QUALCOMM library added : system much more optimized

Update : (2019-11-11)
- Full mi 9 lite overlay (reverted from miui) : autobrightness, true power_profile,true notch hide (better look than miui )
- True sound fix : the workaround is no longer needed, so AudioFX is working now !
- Dirac Sound enabled !!!
- Audio in-call fix !!!
- Bring back default LineageOS fonts, to keep the rom clean (you can still download my Google fonts)
- Signature Verification fully disabled, so you can install your modded apps.
- Big Ramdisk Update (root system & vendor) : reworked from scratch ... improve touch responsiveness, battery, performance, audio
- Stock camera blobs fully injected. For better result in photography, use my GCam MOD or Footej !
- Video recorder with default app is still nice with fast autofocus. (GCam => 4k30fps & 1080p60fps enabled)

Use developers options to hide the notch ! (last line in animations option)
The Following 13 Users Say Thank You to gringo80 For This Useful Post: [ View ] Gift gringo80 Ad-Free
5th November 2019, 09:53 PM |#3  
OP Account currently disabled
Thanks Meter: 307
 
More
Reserved for "Attachments"

DISCLAIMER :

- For Photography : choose "Google" in Default AWB (to avoid the yellow tint)
- For Video Recording/Timelapse : switch to "System" in Default AWB (to avoid the blue tint)

Always restart the GCam app after switching +++

You will find here always the latest build, broken/old ones are removed.



GCam : (2020-01-19) Here

- derived from BSG port : version 6.2.030
- only for LineageOS 16.0 : don't try on MIUI or any other thing
- Video : 4k/30fps ; 1080p/60fps
- Slowmotion : 1080p/120fps ; 720p/960fps
- Fastmotion
- Recommended settings :

+ Remove AF data from the screen (On)
+ From Advanced Parameters :
. Quality HDR+ enhanced (+5)
. Quality Night Sight (+2)
. Final jpg quality (100% not Google)
. Default AWB : Google in photography / System in Video & Timelapse
. Amplify denoise (Off)

How to :
- Install the LineageOS 16.0 build, reboot again to TWRP
- Install the Custom Google Pack (mandatory or GCam will FC)
- install GCam + Buffer Fix by Wyroczen to avoid lag in a big series of shots
- wipe : /dalvik & cache
- reboot

Stay tuned !
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20191112-194402_Camera.png
Views:	1662
Size:	154.0 KB
ID:	4874267  
The Following 5 Users Say Thank You to gringo80 For This Useful Post: [ View ] Gift gringo80 Ad-Free
5th November 2019, 10:42 PM |#4  
jcabad's Avatar
Senior Member
Flag MADRID
Thanks Meter: 47
 
More
Thank you for the first ROM for Mi 9 lite (as far as I know).
I'll try to install it when I get mi bootloader unlocked.
Would be very nice to get the autobrightness issue fixed, because I think it is mandatory for usibg the phone.
The Following User Says Thank You to jcabad For This Useful Post: [ View ] Gift jcabad Ad-Free
5th November 2019, 10:45 PM |#5  
DAVI FELICIANO's Avatar
Senior Member
Thanks Meter: 34
 
More
Wow you made it fast man thank you so much for your work
The Following User Says Thank You to DAVI FELICIANO For This Useful Post: [ View ] Gift DAVI FELICIANO Ad-Free
5th November 2019, 11:03 PM |#6  
OP Account currently disabled
Thanks Meter: 307
 
More
About Performance
The ROM is very smooth (better than MIUI and Pixel Experience) ... You will not believe your eyes !
Battery friendly : deep sleep inside, better core management.
The Following User Says Thank You to gringo80 For This Useful Post: [ View ] Gift gringo80 Ad-Free
5th November 2019, 11:03 PM |#7  
Member
Flag Belém
Thanks Meter: 6
 
More
Link isn't working here, only open MediaFire home

Sent from my MI 9 Lite using Tapatalk
The Following User Says Thank You to tiagorodrigueez For This Useful Post: [ View ] Gift tiagorodrigueez Ad-Free
5th November 2019, 11:15 PM |#8  
Senior Member
Flag Croatia, Djakovo
Thanks Meter: 89
 
More
Can someone post screenshot from camera 2 probe, I would like to know is it full or level 3 api2 . Thank you
The Following User Says Thank You to NeoDJW For This Useful Post: [ View ] Gift NeoDJW Ad-Free
6th November 2019, 02:42 AM |#9  
Member
Flag Belém
Thanks Meter: 6
 
More
@gringo80 upload still loading? Link are not working yet

Sent from my MI 9 Lite using Tapatalk
6th November 2019, 07:08 AM |#10  
Junior Member
Thanks Meter: 1
 
More
Hi, the mediafire download link isn't working.
6th November 2019, 07:51 AM |#11  
hanbin81j32's Avatar
Member
Flag Suwon
Thanks Meter: 63
 
Donate to Me
More
Link is still not working
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes