• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[ROM] [UNOFFICIAL] [9.0] [pyxis] LineageOS 16.0 - Treble

Search This thread

gringo80

Senior Member
Jun 8, 2018
578
554
LineageOS Logo.png


PHP:
/*
* 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.
- others : you tell me ... !


INSTRUCTIONS


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


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
 

Attachments

  • Screenshot_20200122-120000_Lawnchair_Apps.jpg
    Screenshot_20200122-120000_Lawnchair_Apps.jpg
    146 KB · Views: 4,954
  • Screenshot_20200122-120000_Settings_2.png
    Screenshot_20200122-120000_Settings_2.png
    149.7 KB · Views: 4,698
  • Screenshot_20200122-120000_Settings_1.png
    Screenshot_20200122-120000_Settings_1.png
    163.4 KB · Views: 4,783
  • Screenshot_20200122-120000_Lawnchair_Home.jpg
    Screenshot_20200122-120000_Lawnchair_Home.jpg
    101.7 KB · Views: 4,859
  • Screenshot_20200122-120000_Settings_WiFi_1.png
    Screenshot_20200122-120000_Settings_WiFi_1.png
    162.7 KB · Views: 4,536
  • Screenshot_20200122-120000_Settings_WiFi_2.png
    Screenshot_20200122-120000_Settings_WiFi_2.png
    162.4 KB · Views: 4,476
  • Screenshot_20200122-120000_Settings_Fingerprint_1.png
    Screenshot_20200122-120000_Settings_Fingerprint_1.png
    59.2 KB · Views: 4,289
  • Screenshot_20200122-120000_Settings_Fingerprint_2.png
    Screenshot_20200122-120000_Settings_Fingerprint_2.png
    95.3 KB · Views: 4,109
  • Screenshot_20200122-120000_Settings_Fingerprint_3.png
    Screenshot_20200122-120000_Settings_Fingerprint_3.png
    120.8 KB · Views: 4,024
  • Screenshot_20200122-120000_FM_Radio.png
    Screenshot_20200122-120000_FM_Radio.png
    55.3 KB · Views: 4,021
  • Screenshot_20200122-120000_Magisk_Manager.png
    Screenshot_20200122-120000_Magisk_Manager.png
    146.1 KB · Views: 3,968
  • Screenshot_20200122-120000_Google_Play_Store_1.png
    Screenshot_20200122-120000_Google_Play_Store_1.png
    142.1 KB · Views: 3,872
  • Screenshot_20200122-120000_Google_Play_Store_2.jpg
    Screenshot_20200122-120000_Google_Play_Store_2.jpg
    146.8 KB · Views: 3,785
  • Screenshot_20200122-120000_Trebuchet_Netflix.jpg
    Screenshot_20200122-120000_Trebuchet_Netflix.jpg
    95.8 KB · Views: 3,867
Last edited:

gringo80

Senior Member
Jun 8, 2018
578
554
Reserved for "Changelog"

Update : (2020-12-12) Highly Recommended !
- Chromium Webview : update to version 87.0.4280.106
- vendor : update audio blobs & configs
- framework : new linear brightness overlay

Update : (2020-12-01)
- arm64 instructions update
- persist : small path fix
- system : update camera proprietary files
- vendor : update mixer_paths files
- Standalone Packages : New MiuiCamera (48mp, portrait mode, ...etc), small fix for GoogleDialer

Update : (2020-11-22)
- Chromium Webview : update to version 87.0.4280.67
- Update : audio & camera configs

Update : (2020-11-16)
- Audio Engine : SmartPA added
- System : update proprietary-files (spkcal)

Update : (2020-11-11)
- Audio Engine : fix compatibility with some old emulators (MAME, N64, SNES, ... etc)
- ramdisk update +++

Update : (2020-11-05)
- Chromium Webview : update to version 86.0.4240.181
- improve performance & stability

Update : (2020-10-24)
- LiveDisplay Fix : keep custom user values after reboot !

Update : (2020-10-20)
- Chromium Webview : update to version 86.0.4240.99
- LiveDisplay : Picture Adjustment module fully implemented +++
- Audio Engine : small update and clean up
- ramdisk : disable cpu_boost (touch responsiveness improved) & schedtune update

Update : (2020-10-10)
- Sync with the latest LOS upstream
- SystemUI : adjust status bar padding
- Keyguard (lockscreen manager) : use the new default padding
- Ramdisk (system/vendor) : update schedtune strategy (improve performance & battery life)
- Qualcomm RILs : update blobs
- system/vendor : update all manifests
- Camera : improve LineageOS Snap package & update all media_profiles

Update : (2020-10-01)
- add : some audio permissions in ueventd (tas_calib, tas2562, ...)
=> this is only for kernel log and has nothing to do with speaker loudness ... if you want to copy it ! (LOL)
- fix : in-call speaker issue (hand-free) => switch from fluencepro to fluence in QUALCOMM Audio
- fix : (proprietary mediadrm) low volume playback for all DRM contents (Netflix, Spotify, YouTube ...) => Enjoy !
- update : camera media_profiles, soundfx blobs & thermal-engine

- TWRP Recovery :
+ fast new decryption script
+ update fstab : allow flashing extracted images for some forbidden partitions (cache, dtbo, miscellenaous & vbmeta)

Update : (2020-09-16)
- Chromium Webview : update to version 85.0.4183.110
- Audio Engine (vendor) : rework from scratch all .conf & .xml
- System : import some useful blobs from Stock MIUI (ims, location, ril, sensor calibration, sound libs)
- Qualcomm Audio : switch to fluencepro (build.prop, vendor permission ...)
- Modem : reduce power consumption in deep-sleep (build.prop - cherrypicks from sdm660 +++)
- Google Essential Package : update some permissions for Google Camera
- Google Camera : improve sharpness and focus precision (Package & build.prop)

Update : (2020-09-09)
- Chromium Webview : update to version 85.0.4183.94
- keylayout : add patch for volume buttons on wired headset
- Audio Engine (system) : improve speaker output (import tinyalsa.so from stock)
- Bluetooth (system) : import some stock proprietary blobs
- soundfx (system/vendor) : update audio_effects.conf & blobs
- ramdisk : update init.qcom.power.rc

Update : (2020-08-30)
- Audio Engine : Big Update (config, blob, mixer_paths) +++
=> improve HD Voice Call, Playback, Recording, AudioFX, Hi-Res compatibility

Update : (2020-08-25)
- ramdisk/vendor : rework from scratch init.qcom.sh, init.qcom.post-boot.sh & perf configs +++
- Overheating fix : SoC mismatch introduced by mistake (typing error) in the last build (2020.08.23)
- framework overlay : update disabledComponents
- mixer_path : boost "Speaker" gain
- SELinux : small fix

Update : (2020-08-23)
- Sync with the latest LOS upstream
- Chromium Webview : update to version 84.0.4147.132
- Lights : add some permissions
- ramdisk/vendor update : improve performance and battery life (SOT)
- Display : update configs
- Audio Engine : force Dirac post-processing
- Audio Output : Optimal volumes for Headphones & Bluetooth

Update : (2020-08-14)
- ART Optimization : update instruction set variant on both arm & arm64
- Read the note for more informations +++

Update : (2020-08-12)
- Settings : fix SD Card icon not shown in Storage
- Fix cpuset for mediaextractor => fast photo & video loading in Gallery / fast web browsing +++ :D
- prop.default : add path for cache directory
- mixer_paths : decrease loudness on wired headphones (for ear safety)
- fstab.qcom : small fix for Internal Storage path
- Compass & Lawnchair : available as standalone apps again !

Update : (2020-08-08)
- Sync with the latest LOS upstream
- Chromium Webview : update to version 84.0.4147.121
- framework overlay : Jelly Browser Fix => Slider Glitche in Options
- fix Wi-Fi hotspot ID after reset or new build install
- Google Essential Package, Google Contacts & Dialer : updated

Update : (2020-08-05)
- Chromium Webview : update to version 84.0.4147.119
- update : MediaExtractor
- improve : speaker playback

Update : (2020-08-04)
- Chromium Webview : update to version 84.0.4147.113
- SELinux : add stock property_contexts
- Vendor update : fix IMEI not shown in Settings
- LightsService : remove unused stock (.jar)
- Audio Recording (handset/headset) : improve quality again
- framework overlay : disable some new Google wakelock components from GmsCore & Vending
- Google Essential Package : new update +++

Update : (2020-07-30)
- Sync with the latest LOS upstream
- Chromium Webview : update to version 84.0.4147.106
- AudioFX : add a bluetooth permission in the package/platform
- Messaging : use the true package name allowed in power-save
- QUALCOMM interfaces : add missing permissions for some framework (zoom fixed in Wi-Fi video-call ++++)
- Google Camera : new update

Update : (2020-07-28)
- New ART Optimizations (read the note +++)
- Fix the conflict/lag between the keyguard & the FOD after reboot : re-enable again the strong authentification on Reboot (framework overlay)
- Vendor Update : Camera & Display configs
- Audio Engine : increase dynamics & update speaker/headphone impulses (HiFi quality :good: )
- Google Essential Package : new update
- Optional : AdBlocker (custom hosts) in a separate .Zip

Update : (2020-07-19)
- restore & improve msm_irqbalance : fix definitely the overheating with a great performance +++
- framework overlay : implement "Color Temperature Adjustment"
- Chromium Webview : update to 84.0.4147.95
- SElinux : small "su" fixes and cleanup

Update : (2020-07-17)
- Sync with the latest LOS upstream
- improve Light-HAL
- prop.default : change some ART config for better performance
- ramdisk : update schedutil config
- Google Essential Pack : GoogleRestore added

Update : (2020-07-13)
- dex2oat updated : faster app launching (don't forget wiping dalvik/cache & delete /data/system/package_cache to take full advantage of the new optimization)
- Audio Engine : improve audio playback again
- SafetyNet ... fixed ! :D (don't forget deleting data for the Play Store to make the device certified again)

Update : (2020-07-11)
- dalvik/ART optimizations
- PowerManager : improve deep-sleep control & less overheating
- Touchscreen improved
- Sound : set audio-hal 4.0 as only master
- Roaming : Manual Network Selection definitely fixed !
- Telephony : slight icon lifting
- Camera : fix focus effect (GCam)
- Google Essential Pack : update Play Store 20.9.10 (self auto-update disabled)

Update : (2020-07-07)
- Sync with the latest LOS upstream +++
- framework : improve UI
- vendor /init : improve FOD
- Ramdisk : restore default kernel display config
- Camera : improve Smartburst (GCam) in "Portrait" mode (rear/front)
- Google Essential Pack : new update

Update : (2020-07-02)
- Sync with the latest LOS upstream +++
- NFC : update components (gsma, nxp)
- Chromium Webview 83.0.4103.119
- system : update Camera & Display drivers
- vendor : update all QUALCOMM proprietary files +++
- Google Essential Pack : update Calendar Sync & Contacts Sync +++, GmsCore & Play Store

Update : (2020-06-25)
- Framework : remove the "signature spoofing" in services.jar and services.odex to fix the UI lag !
- Google Essential Package :
+ add "WellBeing" as app core in the LineageOS Settings
+ "GoogleContactsSyncAdapter" definitely fixed and fully working now (thanks to Tomek0000 for insisting on that !)
- Build : extra smooth (pixel device like) and time proof ! :good:

Update : (2020-06-24)
- Sync with the latest LOS upstream
- Fix compatibility with Open GApps and re-installing Google apps is no longer needed after dirty update !!!
- Fix Bluetooth device_name : use "Xiaomi MiCC9" as default
- Resign in SHA-256
- Google Essential Package : Big update +++
- Build : stable with more battery optimization

Update : (2020-06-20)
- Qualcomm : update proprietary files (framework & permissions)
- /init (vendor) update
- mixer : improve stereo recording

Update : (2020-06-18)
- Sync withe the leatest LOS upstream
- ramdisk optimizations : improve display auto_suspend, memory autosleep, surfaceflinger cpuset, fs and kernel rcu
- framework overlay update : doze, powerdecouple, tcp_buffers, NetworkAttributes, power_profile ...
- set GSM/WCDMA/LTE as default network instead of Global

Update : (2020-06-14)
- June SPL
- Sync with the latest LOS upstream
- Update : Power Manager
- Settings : fix SIM parameters
- TeleService : fix Wi-Fi Call

Update : (2020-04-20)
- ART optimizations
- Ramdisk : improve Deep-Sleep, Battery Life & Performance

Update : (2020-03-31)
- Vendor : remove msm irqbalance
- Schedutil governor : update config

Update : (2020-03-12)
- Fix : SurfaceFlinger

Update : (2020-03-10)
- March SPL
- Sync with the latest LOS upstream

Update : (2020-03-04)
- SD Card : fix conflict with kernel schedtune

Update : (2020-03-03)
- Sync with the latest LOS upstream
- Ramdisk : optimize power & performance management
- Kernel : re-enable "power_efficient" in workqueue (command line)
- Fix screen distortion on some apps (Play Store, ...etc)

Update : (2020-02-20)
- Ramdisk & framework : improve battery life (SOT, deep-sleep)
- Vendor : update overlay & fix some Camera config

Update : (2020-02-13)
- SELinux : fix the conflict between Magisk Hide daemon and the Play Store

Update : (2020-02-11)
- February SPL
- Sync with the latest LOS upstream
- SELinux : fix VPN conflict with MAC permission
- Qualcomm : update library (battery life and FOD improved)

Update : (2020-01-31)
- January SPL
- Sync with the latest LOS upstream
- SELinux : clean & fix some Qualcomm permissions
- Vendor : rebuild from scratch all camera configs
- Build : reduce ROM size

Update : (2020-01-27)
- Ramdisk & init : redefine "cpuset" (performance & battery life drastically improved)
- MediaCodec : improve VP9/AVC streaming (Netflix), fix HEVC (GCam support added)
- Audio Engine : update config (increase speaker loudness without output noise)
- Camera : update (config) + add missing libs => major improvement in picture quality (GCam)
- hosts file : fixed (was broken)

Update : (2020-01-19)
- mediacodecs : fix VP9 /AVC secure
- DRM L1 re-implemented from stock MIUI : Full support for Netflix from the Play Store => Full HD working and tested !
(the first and only custom ROM on Earth ! :D)
- 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 the Play Store again
. GPay available in selected countries (check yours !) => needs more testing please from users (still unavailable in my country)

Update : (2020-01-07)
- December SPL
- Sync withe the latest LOS upstream
- Patches merged : AOD
- 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) :good:

Update : (2019-12-31)
- Update : New OTG Patch

Update : (2019-12-21)
- PowerHAL : overheating fix, improve battery life
- Audio Engine : improve HiFi playback
- Google Package Update : GoogleCalendarSyncAdapter / GoogleContactsSyncAdapter

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

Update : (2019-12-07)
- Sync with the latest LOS upstream
- Previous patches merged : Dirac Sound, FM Recorder, ...etc
- Camera Improvement
- Introduce DT2W (separate .zip)
- System : 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 :D

Update : (2019-11-23)
- All previous patches merged : low brightness, bluetooth playback, etc ...
- FM Radio : successfully implemented ! :cool:
- 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

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

Update : (2019-11-11)
- Full Mi 9 Lite overlay (reverted from miui) : autobrightness, power_profile, notch hide ... etc
- True sound fix : the workaround is no longer needed, so AudioFX is working now !
- Dirac Sound enabled !!!
- Audio in-call fix !!!
- 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 !

Use developers options to hide the notch ! (last line in animations option)
 
Last edited:

gringo80

Senior Member
Jun 8, 2018
578
554
Reserved for "Attachments"

DISCLAIMER :

=> In the main screen UI (center) :

- For Photography : choose "G" AWB (to avoid the yellow tint)
- For Video Recording/Timelapse : switch to "auto" AWB (to avoid the blue tint)

- Night Mode can be used in daylight !

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



GCam :

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)
 

Attachments

  • Screenshot_20191112-194402_Camera.png
    Screenshot_20191112-194402_Camera.png
    154 KB · Views: 2,292
Last edited:

jcabad

Senior Member
Jan 19, 2010
134
46
MADRID
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.
 
  • Like
Reactions: gringo80

gringo80

Senior Member
Jun 8, 2018
578
554
Camera 2 api , level3 or full?

Next time, use a polite question please ... For all noobs and impolite users too, i'm not your employee !


DISCLAIMER !!!
If you don't know how to talk, you are free to create your own thread and speak as you want ...
Be sure i will never participate to your talkshow !


This is the last time i answer for such question, next time you will be ignored.

If you are happy with MIUI, if you don't know what is lineageOS, if you didn't fully read the OP or understand it, please don't come here and spam the thread !

With respect, Cheers :good:
 

Attachments

  • Screenshot_20151201-120000_Camera2_Probe.png
    Screenshot_20151201-120000_Camera2_Probe.png
    197.4 KB · Views: 748
Last edited:
  • Like
Reactions: janhammer504

gringo80

Senior Member
Jun 8, 2018
578
554
Does Google pay work on this rom? Also does the camera zoom work as it does in miui? Thanks! I appreciate your work.

Read OP about Camera !

About Google Pay : I will look into that, because i'm a poor guy living in a poor country. So here, people never heard
about it ! :eek:

(The phone i have was a gift for my birthday !)
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 45
    LineageOS Logo.png


    PHP:
    /*
    * 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.
    - others : you tell me ... !


    INSTRUCTIONS


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


    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
    15
    Reserved for "Changelog"

    Update : (2020-12-12) Highly Recommended !
    - Chromium Webview : update to version 87.0.4280.106
    - vendor : update audio blobs & configs
    - framework : new linear brightness overlay

    Update : (2020-12-01)
    - arm64 instructions update
    - persist : small path fix
    - system : update camera proprietary files
    - vendor : update mixer_paths files
    - Standalone Packages : New MiuiCamera (48mp, portrait mode, ...etc), small fix for GoogleDialer

    Update : (2020-11-22)
    - Chromium Webview : update to version 87.0.4280.67
    - Update : audio & camera configs

    Update : (2020-11-16)
    - Audio Engine : SmartPA added
    - System : update proprietary-files (spkcal)

    Update : (2020-11-11)
    - Audio Engine : fix compatibility with some old emulators (MAME, N64, SNES, ... etc)
    - ramdisk update +++

    Update : (2020-11-05)
    - Chromium Webview : update to version 86.0.4240.181
    - improve performance & stability

    Update : (2020-10-24)
    - LiveDisplay Fix : keep custom user values after reboot !

    Update : (2020-10-20)
    - Chromium Webview : update to version 86.0.4240.99
    - LiveDisplay : Picture Adjustment module fully implemented +++
    - Audio Engine : small update and clean up
    - ramdisk : disable cpu_boost (touch responsiveness improved) & schedtune update

    Update : (2020-10-10)
    - Sync with the latest LOS upstream
    - SystemUI : adjust status bar padding
    - Keyguard (lockscreen manager) : use the new default padding
    - Ramdisk (system/vendor) : update schedtune strategy (improve performance & battery life)
    - Qualcomm RILs : update blobs
    - system/vendor : update all manifests
    - Camera : improve LineageOS Snap package & update all media_profiles

    Update : (2020-10-01)
    - add : some audio permissions in ueventd (tas_calib, tas2562, ...)
    => this is only for kernel log and has nothing to do with speaker loudness ... if you want to copy it ! (LOL)
    - fix : in-call speaker issue (hand-free) => switch from fluencepro to fluence in QUALCOMM Audio
    - fix : (proprietary mediadrm) low volume playback for all DRM contents (Netflix, Spotify, YouTube ...) => Enjoy !
    - update : camera media_profiles, soundfx blobs & thermal-engine

    - TWRP Recovery :
    + fast new decryption script
    + update fstab : allow flashing extracted images for some forbidden partitions (cache, dtbo, miscellenaous & vbmeta)

    Update : (2020-09-16)
    - Chromium Webview : update to version 85.0.4183.110
    - Audio Engine (vendor) : rework from scratch all .conf & .xml
    - System : import some useful blobs from Stock MIUI (ims, location, ril, sensor calibration, sound libs)
    - Qualcomm Audio : switch to fluencepro (build.prop, vendor permission ...)
    - Modem : reduce power consumption in deep-sleep (build.prop - cherrypicks from sdm660 +++)
    - Google Essential Package : update some permissions for Google Camera
    - Google Camera : improve sharpness and focus precision (Package & build.prop)

    Update : (2020-09-09)
    - Chromium Webview : update to version 85.0.4183.94
    - keylayout : add patch for volume buttons on wired headset
    - Audio Engine (system) : improve speaker output (import tinyalsa.so from stock)
    - Bluetooth (system) : import some stock proprietary blobs
    - soundfx (system/vendor) : update audio_effects.conf & blobs
    - ramdisk : update init.qcom.power.rc

    Update : (2020-08-30)
    - Audio Engine : Big Update (config, blob, mixer_paths) +++
    => improve HD Voice Call, Playback, Recording, AudioFX, Hi-Res compatibility

    Update : (2020-08-25)
    - ramdisk/vendor : rework from scratch init.qcom.sh, init.qcom.post-boot.sh & perf configs +++
    - Overheating fix : SoC mismatch introduced by mistake (typing error) in the last build (2020.08.23)
    - framework overlay : update disabledComponents
    - mixer_path : boost "Speaker" gain
    - SELinux : small fix

    Update : (2020-08-23)
    - Sync with the latest LOS upstream
    - Chromium Webview : update to version 84.0.4147.132
    - Lights : add some permissions
    - ramdisk/vendor update : improve performance and battery life (SOT)
    - Display : update configs
    - Audio Engine : force Dirac post-processing
    - Audio Output : Optimal volumes for Headphones & Bluetooth

    Update : (2020-08-14)
    - ART Optimization : update instruction set variant on both arm & arm64
    - Read the note for more informations +++

    Update : (2020-08-12)
    - Settings : fix SD Card icon not shown in Storage
    - Fix cpuset for mediaextractor => fast photo & video loading in Gallery / fast web browsing +++ :D
    - prop.default : add path for cache directory
    - mixer_paths : decrease loudness on wired headphones (for ear safety)
    - fstab.qcom : small fix for Internal Storage path
    - Compass & Lawnchair : available as standalone apps again !

    Update : (2020-08-08)
    - Sync with the latest LOS upstream
    - Chromium Webview : update to version 84.0.4147.121
    - framework overlay : Jelly Browser Fix => Slider Glitche in Options
    - fix Wi-Fi hotspot ID after reset or new build install
    - Google Essential Package, Google Contacts & Dialer : updated

    Update : (2020-08-05)
    - Chromium Webview : update to version 84.0.4147.119
    - update : MediaExtractor
    - improve : speaker playback

    Update : (2020-08-04)
    - Chromium Webview : update to version 84.0.4147.113
    - SELinux : add stock property_contexts
    - Vendor update : fix IMEI not shown in Settings
    - LightsService : remove unused stock (.jar)
    - Audio Recording (handset/headset) : improve quality again
    - framework overlay : disable some new Google wakelock components from GmsCore & Vending
    - Google Essential Package : new update +++

    Update : (2020-07-30)
    - Sync with the latest LOS upstream
    - Chromium Webview : update to version 84.0.4147.106
    - AudioFX : add a bluetooth permission in the package/platform
    - Messaging : use the true package name allowed in power-save
    - QUALCOMM interfaces : add missing permissions for some framework (zoom fixed in Wi-Fi video-call ++++)
    - Google Camera : new update

    Update : (2020-07-28)
    - New ART Optimizations (read the note +++)
    - Fix the conflict/lag between the keyguard & the FOD after reboot : re-enable again the strong authentification on Reboot (framework overlay)
    - Vendor Update : Camera & Display configs
    - Audio Engine : increase dynamics & update speaker/headphone impulses (HiFi quality :good: )
    - Google Essential Package : new update
    - Optional : AdBlocker (custom hosts) in a separate .Zip

    Update : (2020-07-19)
    - restore & improve msm_irqbalance : fix definitely the overheating with a great performance +++
    - framework overlay : implement "Color Temperature Adjustment"
    - Chromium Webview : update to 84.0.4147.95
    - SElinux : small "su" fixes and cleanup

    Update : (2020-07-17)
    - Sync with the latest LOS upstream
    - improve Light-HAL
    - prop.default : change some ART config for better performance
    - ramdisk : update schedutil config
    - Google Essential Pack : GoogleRestore added

    Update : (2020-07-13)
    - dex2oat updated : faster app launching (don't forget wiping dalvik/cache & delete /data/system/package_cache to take full advantage of the new optimization)
    - Audio Engine : improve audio playback again
    - SafetyNet ... fixed ! :D (don't forget deleting data for the Play Store to make the device certified again)

    Update : (2020-07-11)
    - dalvik/ART optimizations
    - PowerManager : improve deep-sleep control & less overheating
    - Touchscreen improved
    - Sound : set audio-hal 4.0 as only master
    - Roaming : Manual Network Selection definitely fixed !
    - Telephony : slight icon lifting
    - Camera : fix focus effect (GCam)
    - Google Essential Pack : update Play Store 20.9.10 (self auto-update disabled)

    Update : (2020-07-07)
    - Sync with the latest LOS upstream +++
    - framework : improve UI
    - vendor /init : improve FOD
    - Ramdisk : restore default kernel display config
    - Camera : improve Smartburst (GCam) in "Portrait" mode (rear/front)
    - Google Essential Pack : new update

    Update : (2020-07-02)
    - Sync with the latest LOS upstream +++
    - NFC : update components (gsma, nxp)
    - Chromium Webview 83.0.4103.119
    - system : update Camera & Display drivers
    - vendor : update all QUALCOMM proprietary files +++
    - Google Essential Pack : update Calendar Sync & Contacts Sync +++, GmsCore & Play Store

    Update : (2020-06-25)
    - Framework : remove the "signature spoofing" in services.jar and services.odex to fix the UI lag !
    - Google Essential Package :
    + add "WellBeing" as app core in the LineageOS Settings
    + "GoogleContactsSyncAdapter" definitely fixed and fully working now (thanks to Tomek0000 for insisting on that !)
    - Build : extra smooth (pixel device like) and time proof ! :good:

    Update : (2020-06-24)
    - Sync with the latest LOS upstream
    - Fix compatibility with Open GApps and re-installing Google apps is no longer needed after dirty update !!!
    - Fix Bluetooth device_name : use "Xiaomi MiCC9" as default
    - Resign in SHA-256
    - Google Essential Package : Big update +++
    - Build : stable with more battery optimization

    Update : (2020-06-20)
    - Qualcomm : update proprietary files (framework & permissions)
    - /init (vendor) update
    - mixer : improve stereo recording

    Update : (2020-06-18)
    - Sync withe the leatest LOS upstream
    - ramdisk optimizations : improve display auto_suspend, memory autosleep, surfaceflinger cpuset, fs and kernel rcu
    - framework overlay update : doze, powerdecouple, tcp_buffers, NetworkAttributes, power_profile ...
    - set GSM/WCDMA/LTE as default network instead of Global

    Update : (2020-06-14)
    - June SPL
    - Sync with the latest LOS upstream
    - Update : Power Manager
    - Settings : fix SIM parameters
    - TeleService : fix Wi-Fi Call

    Update : (2020-04-20)
    - ART optimizations
    - Ramdisk : improve Deep-Sleep, Battery Life & Performance

    Update : (2020-03-31)
    - Vendor : remove msm irqbalance
    - Schedutil governor : update config

    Update : (2020-03-12)
    - Fix : SurfaceFlinger

    Update : (2020-03-10)
    - March SPL
    - Sync with the latest LOS upstream

    Update : (2020-03-04)
    - SD Card : fix conflict with kernel schedtune

    Update : (2020-03-03)
    - Sync with the latest LOS upstream
    - Ramdisk : optimize power & performance management
    - Kernel : re-enable "power_efficient" in workqueue (command line)
    - Fix screen distortion on some apps (Play Store, ...etc)

    Update : (2020-02-20)
    - Ramdisk & framework : improve battery life (SOT, deep-sleep)
    - Vendor : update overlay & fix some Camera config

    Update : (2020-02-13)
    - SELinux : fix the conflict between Magisk Hide daemon and the Play Store

    Update : (2020-02-11)
    - February SPL
    - Sync with the latest LOS upstream
    - SELinux : fix VPN conflict with MAC permission
    - Qualcomm : update library (battery life and FOD improved)

    Update : (2020-01-31)
    - January SPL
    - Sync with the latest LOS upstream
    - SELinux : clean & fix some Qualcomm permissions
    - Vendor : rebuild from scratch all camera configs
    - Build : reduce ROM size

    Update : (2020-01-27)
    - Ramdisk & init : redefine "cpuset" (performance & battery life drastically improved)
    - MediaCodec : improve VP9/AVC streaming (Netflix), fix HEVC (GCam support added)
    - Audio Engine : update config (increase speaker loudness without output noise)
    - Camera : update (config) + add missing libs => major improvement in picture quality (GCam)
    - hosts file : fixed (was broken)

    Update : (2020-01-19)
    - mediacodecs : fix VP9 /AVC secure
    - DRM L1 re-implemented from stock MIUI : Full support for Netflix from the Play Store => Full HD working and tested !
    (the first and only custom ROM on Earth ! :D)
    - 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 the Play Store again
    . GPay available in selected countries (check yours !) => needs more testing please from users (still unavailable in my country)

    Update : (2020-01-07)
    - December SPL
    - Sync withe the latest LOS upstream
    - Patches merged : AOD
    - 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) :good:

    Update : (2019-12-31)
    - Update : New OTG Patch

    Update : (2019-12-21)
    - PowerHAL : overheating fix, improve battery life
    - Audio Engine : improve HiFi playback
    - Google Package Update : GoogleCalendarSyncAdapter / GoogleContactsSyncAdapter

    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

    Update : (2019-12-07)
    - Sync with the latest LOS upstream
    - Previous patches merged : Dirac Sound, FM Recorder, ...etc
    - Camera Improvement
    - Introduce DT2W (separate .zip)
    - System : 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 :D

    Update : (2019-11-23)
    - All previous patches merged : low brightness, bluetooth playback, etc ...
    - FM Radio : successfully implemented ! :cool:
    - 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

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

    Update : (2019-11-11)
    - Full Mi 9 Lite overlay (reverted from miui) : autobrightness, power_profile, notch hide ... etc
    - True sound fix : the workaround is no longer needed, so AudioFX is working now !
    - Dirac Sound enabled !!!
    - Audio in-call fix !!!
    - 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 !

    Use developers options to hide the notch ! (last line in animations option)
    9
    New Build (20191214)

    Please, read the OP !

    I think i'm done with LineageOS 16.0, ... Maybe Pixel Experience in the future if i have enough time.
    Feel free to post your bugreport with logcat (no extra-feature, or safetynet stuff please)

    Thank you all for your support !
    :good:
    9
    Patch (2019-11-27)

    Hi there,

    - This will be the last fix for all the sound issues. Everything now is working perfectly.
    - A lot of changes for the audio in this patch : routing, samplerate, effects settings, etc ... see the files for the curious ones !
    - AudioFX is working flawlessly with all audio players supporting an Equalizer/MusicFX : tested on PowerAMP 2 & 3, Phonograph and of course Eleven (the default music player)
    - AudioFX can now be active on YouTube, MX Player, ... and all video players !

    ... Will be merged of course ! (Please don't use the old one)

    Update #2 :
    - Fix Incoming call issue
    - media_codecs optimizations (encoding/decoding)

    Enjoy
    :good:
    7
    New Build (20191207)

    Read OP