[OFFICIAL][X82X][9.x][TREBLE] LineageOS 16.0 (pie) for LeEco Le Max 2

Search This thread

ThE_MarD

Senior Member
  • Dec 10, 2014
    2,848
    3,367
    Grande Prairie
    https%3A%2F%2Fimg.xda-cdn.com%2F_qciZ_MtPTGjDb-adIt4fAUOirk%3D%2Fhttps%253A%252F%252Fimg.xda-cdn.com%252Fy-LtXHGCDBH0KxFw9MxWAPF3guk%253D%252Fhttp%25253A%25252F%25252Fi.imgur.com%25252F2okPze5.png
    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 restores 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 our Gerrit Code Review.

    Code:
    #include 
    /*
     * Your warranty is now void.
     *
     * I am not responsible for bricked devices, dead SD cards,
     * thermonuclear war, or you getting fired because the alarm app failed. Please
     * do some research if you have any concerns about features included in this ROM
     * 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.
     */


    SUPPORTED DEVICES
    - LEX820 (X2_CN)
    - LEX821 (X2_WW)
    - LEX822 (X2_CN)
    - LEX829 (X2_NA)
    - LEX910 (MAX_PLUS. Currently only supported on unofficial test builds)

    HOW TO INSTALL LINEAGEOS WITH LINEAGE RECOVERY
    - Make sure your phone is running firmware from at least 19S for x2 and 13s for max_plus. If not? Please download either the minimum recommended version below (or optional updated versions) and install it via TWRP. It can be flashed before or after the ROM
    Please follow the official LineageOS Wiki instructions for our device.
    https://wiki.lineageos.org/devices/x2/install

    HOW TO INSTALL LINEAGEOS WITH TWRP
    - Make sure your phone is running firmware from at least 19S for x2 and 13s for max_plus. If not? Please download either the minimum recommended version below (or optional updated versions) and install it via TWRP. It can be flashed before or after the ROM
    - Unlock bootloader and install TWRP 3.3.0-1 (designed for Pie and treble) or higher. TWRP instructions are here.
    - Download the LineageOS and firmware zips. (see Downloads)
    - Boot into TWRP.
    - Copy the downloaded zip files to internal sdcard.
    - Perform a backup of your current ROM. (Optional)
    - RECOMMENDED: Do a factory reset (clean wipe)! No support if you didn't! (Wipe Dalvik, system, cache and data)
    - Flash firmware and LineageOS zips.
    - Optional: Install the Google Apps addon package. (see Downloads)
    - Reboot to system.


    HOW TO UPDATE LINEAGEOS WHEN ENCRYPTED VIA TWRP
    - NOTE! Please avoid doing OTA via Lineage Updater when your device is encrypted because TWRP screws up and causes Google Services Framework to crash like crazy. Only Lineage Recovery properly supports OTA via Lineage Updater.
    - Download the LineageOS zip(s). (see Downloads)
    - Copy the LineageOS zip to internal sdcard.
    - Reboot to TWRP.
    - Flash LineageOS. (Wiping Dalvik and Cache is optional, but recommended)
    - Reboot to system.


    MAIN DOWNLOADS
    TWRP for x2: Official https://twrp.me/leeco/leecolemax2.html
    TWRP for max_plus: Official https://twrp.me/leeco/leecolemaxpro.html

    Lineage Recovery:
    - Official: https://download.lineageos.org/x2
    - Unofficial: https://osdn.net/projects/lineageos-for-x2/releases/p16551

    LineageOS:
    - Official: https://download.lineageos.org/x2
    - Unofficial: https://osdn.net/projects/lineageos-for-x2/releases/

    Discontinued unofficial mirrors:
    - Unofficial: https://sourceforge.net/projects/lineageos-for-x2/files/16.0 Unofficial Releases/
    - Unofficial Google Drive mirror: https://drive.google.com/open?id=1uOrZzcer8SYe-BcYZuaSJTPOehQ68EBc

    SU-Addon: (not available yet for LineageOS 16.0)

    Migration-Tools: https://androidfilehost.com/?w=files&flid=254680 (Unofficial->Official, Official->Unofficial)

    GOOGLE APPS (GAPPS) DOWNLOADS
    - MindTheGapps: (RECOMMENDED!)
    Official: http://downloads.codefi.re/jdcteam/javelinanddart/gapps
    Mirror: https://androidfilehost.com/?w=files&flid=170282

    - OpenGapps:
    Official:
    https://opengapps.org

    GOOGLE CAMERA (GCAM) DOWNLOADS
    Google Camera: (Recommend Tolyan009 builds as Arnova8G2 builds are not always compatible with Pie x2 ROMs)
    celsoazevedo.com/files/android/google-camera/dev-tolyan009/

    Current recommended gcam6 build for LineageOS 16.0 on x2
    https://f.celsoazevedo.com/file/gcamera/MGC_6.1.021_BSG_Arnova-based_v.1.4a_TlnNeun.apk

    If you have pink tint?
    More > Settings > "advanced" under Quick Settings section > Fix > Fix old WB gains

    If you have green selfie camera?
    Set front camera model to Nexus 6P

    If that doesn't work?
    More > Settings > "advanced" under Quick Settings section > Fix > Fix front camera

    Here's also a good gcam config by @Prashant69 that also helps remove the tint issues if the above fixes don't work
    https://sourceforge.net/projects/lineageos-for-x2/files/Mods and Tweaks/

    Here's how to load configs
    https://www.celsoazevedo.com/files/android/google-camera/f/settings09/

    MISC DOWNLOADS
    ThE_MarD's LineageOS for x2 Sourceforge, directory: (also contains some mods and tweaks) https://sourceforge.net/projects/lineageos-for-x2/

    FIRMWARE DOWNLOADS
    Minimum required versions:
    - LEX820 (X2_CN) 20s
    - LEX821 (X2_WW) 19s
    - LEX829 (X2_NA) 20s
    - LEX910 (MAX_PLUS) 13s

    Optional newer versions:
    - LEX820 (X2_CN) 30s
    - LEX820 (X2_CN) 466D

    Link for x2 firmware: https://sourceforge.net/projects/lineageos-for-x2/files/Firmware Updates/
    Link for max_plus firmware: https://sourceforge.net/projects/lineageos-for-max-plus/files/firmware/


    DEVELOPER RESOURCES
    https://github.com/lineage-x2-devs
    https://github.com/LineageOsMaxPlus/
    https://github.com/lineageos/android_device_leeco_msm8996-common
    https://github.com/lineageos/android_device_leeco_x2
    https://github.com/lineageos/android_kernel_leeco_msm8996


    HOW TO CONTRIBUTE?
    Send your patches up for review: https://review.lineageos.org/
    Read the guides on the LineageOS Wiki: https://wiki.lineageos.org/

    XDA:DevDB Information
    [OFFICIAL][X82X][9.x][TREBLE] LineageOS 16.0 (pie) for LeEco Le Max 2, ROM for the LeEco Le Max 2

    Contributors
    ThE_MarD, codeworkx, mosimchah,moto999999,1nfrag,shivatejapeddi,KuranKaname,GalaticStryder,andr68rus,Tortel1210,visionary
    Source Code: https://github.com/LineageOS

    ROM OS Version: 9.x Pie
    ROM Kernel: Linux 3.x
    ROM Firmware Required: x821 19s. X820 and x829 20s. x910 13s. Higher is optional.
    Based On: AOSP

    Version Information
    Status: Nightly

    Created 2018-10-05
    Last Updated 2020-01-12
     

    ThE_MarD

    Senior Member
  • Dec 10, 2014
    2,848
    3,367
    Grande Prairie
    Frequently Asked Questions

    • I've been asked to provide logcat, how do I do that?
      You can either root and use an app like MatLog, or if boot logcat is required? You will need adb logcat from a PC. Here's a simple guide from the LineageOS Wiki https://wiki.lineageos.org/logcat.html
    • My lockscreen crashes after reboot, what should I do to fix it?
      https://forum.xda-developers.com/le-max-2/how-to/guide-to-fixing-x2-lockscreen-crash-t3918911
    • I don't see an option for call recording, what's going on?
      Only the stock dialer app supports it. If you install a Gapps package that overwrites the stock dialer app? It won't have call recording as well. Only the included dialer app of LineageOS is compatible to call recording since it needs to be a ROM implementation and I haven't seen a Play store app that adds support for custom ROM call recording. Please also note that call recording is blocked for countries and carriers that have laws against any form of call recording.
    • What is Power-off Alarm?
      This feature allows you to set an alarm clock with the stock clock app included with LineageOS and then turn off the phone, and it will boot up a minute before the designated alarm time and then properly alarm. It works with the device either powered off and also offline charging. :)
      Using a clock app from OpenGapps Stock or from the Play store is not compatible to custom ROM implementations of power-off alarm... So consider this your heads up if you didn't know that already... As I am not responsible for anyone being late for their wedding/work/school/vacation if you tried a non-stock clock app with your LeEco msm8996 device powered off. :silly:
    • What apps are recommended with the Open Source ConsumerIR?
      (WIP! I try to include it only on unofficial builds until selinux neverallow policy compatibility is fixed... Which tbh is beyond my current skill)
      Zaza Remote and Mi Remote work great. Smart Remote for Sharp TV also works. I'd recommend avoiding Peel Universal Smart Remote as it hijacks the lockscreen with ads...
    • Pls sir, I can't connect to my network or IMS/VoLTE doesn't work! What can I try?
      Please look below at the "APNS Update from Google" section and try that. I can't offer much else for help sorry as I have zero experience with IMS/VoLTE as Canada blacklists BYOD from that feature... Otherwise if you need extra help? Hopefully someone else in the x2 community can give you advice.
    • What is the difference between the official LineageOS builds and unofficial?
      Unofficial test builds are builds I put out to test changes before I push them to the Official builds... So please stick with Official builds if you want to play it safe... But if you wish to help test and provide feedback on changes before they go official? Unofficial test builds are the best way to do so.
    • Where is the QuickCharge toggle?
      Settings > System > Advanced > LeEco Settings
    • The rear facing camera won't focus, what should I try?
      Please go into Settings > System > Advanced > LeEco Settings, and then enable the focus fix. You may need to restart any open camera app or potentially reboot the system in order for the focus fix values to work.... If that doesn't resolve it? Please try EUI ROM... If it still won't focus? I'm sorry, but your hardware camera actuator is defective and you either need to try the Le Max 2 rear camera magnet trick (please Google it) or replace the rear camera hardware.
    • Why is our widevine level only L3?
      Unfortunately Widevine L1 failed to work correctly on X2 and zl1/0... It would report we have L1 hardware support but vp9.secure and avc.secure codecs were failing to render, thus apps that used L1 like Amazon Prime would error out and revert to L3 and worst case scenario apps like Vudu would crash.
      I haven't seen any fixes for those codec issues, so I gave up on it as L3 works fine.
      Also, Netflix HD will never work on LeEco devices as they never got them "Netflix certified" which sounds like a money-grab move since L1 is all they should need. For example, Asus Zenfone 5z is L1 certified but not "Netflix certified" just like us and they don't get the option to stream in HD.
      This explains it a lot better
      https://androidpcreview.com/netflix-hd-android-tv-box/
    • My device doesn't show any apps in the Play Store what should I do?
      https://lineageos.org/Google-Play-Certification/
    • exfat does not work on LineageOS, what is up with that?
      LeEco Le Max 2 does not ship with exfat licensing so we are not allowed to incorporate it in LineageOS Le Max 2 builds. This was tested by both CrisBalGreece and I. If by chance there is an OFFICIAL EUI ROM build that includes exfat? Please let me know so I can test it as well... Here is the LineageOS device charter requirements on exfat
      https://github.com/LineageOS/charter/blob/master/device-support-requirements.md#exfat-support

    KNOWN BUGS for x2 and max_plus
    • Updating using the built in LineageOS updater when encrypted causes Google Play Services to crash repeatedly (updating works fine if you have Lineage Recovery installed though. Manually installing newer builds of LineageOS via TWRP also works.)
    • Microphone and button on 3.5mm headsets using the 3.5mm to Type-C adaptor only works with reversed orientation (IE, official LeEco adaptor with the logo facing downwards)
    • Dual-role USB does not work (our Type-C port can't detect if it should offer the option to host data transfer, charge the other device, or charge while using Aux out).
    • Taking a photo during 4K UHD video recording produces a photo with green static instead of a photo. This bug only happens in Snap camera... Google Camera Mod and Open Camera (with Camera API v2 enabled) produces pictures without issue.
    • Screen on Time is usually only around four to five hours (VERY hard to diagnose battery drain issues... Any logcat with references to battery drain or kernel wakelocks will help resolve this)
    • CDLA cell calling has crackling/popping sounds
    • Infinity focus not working (for panoramas, AR and some QR code scanners. Infinity focus also doesn't work in EUI ROM hmm... oddly enough some imx230_lg modules infinity focus can work if you dont need focus fix... so I blame LeEco for the messed up camera haxxs they did since s2 and zl1 have the same issues.)

    KNOWN BUGS for max_plus
    • ES9018 Hi-Fi Audio DAC for 3.5mm headsets to Type-C adaptors does not work (this is the bug that is preventing official unified builds of LineageOS of x2 and max_plus...)
    • Fingerprint does not work when device is asleep (this is due to the ancient device firmware on max_plus being officially stuck on 13s... there is a pseudo 466d modem firmware fix attempt I made but have not received feedback on yet)
    • Boot animation does not work (this is due to a fix for screen tearing... maybe one day I'll figure out a fix for boot animation to work with the screen tearing fix)
    • When launching a camera app, viewfinder goes green for a second and then works normally
    • After using USB port with Type-C headset or OTG with a flash drive, the device cannot charge until a reboot is performed (known bug even on EUI ROM)

    APNs Update from Google
    Latest update: 05-06-2019 (May 6, 2019)

    This is an optional update if the current APN settings from LineageOS might not be up to date for your carrier and you need newer ones. This is the official APNs list from Google.

    After flashing it? Please reboot to system and then go into Settings > Network & Internet > Mobile Internet > Advanced > Access Point Names > "..." menu button > reset to default.

    https://sourceforge.net/projects/lineageos-for-x2/files/Mods and Tweaks/APNs Update from Google/

    The official Google source git for this file can be found here:
    https://android.googlesource.com/device/sample/+/refs/heads/master/etc/apns-full-conf.xml

    Please note! This APNs list WILL get overwritten by the ROM on any ROM update and will need to be reinstalled.
     
    Last edited:

    ThE_MarD

    Senior Member
  • Dec 10, 2014
    2,848
    3,367
    Grande Prairie
    Special Thanks
    @codeworkx for his major contributions to the LeEco msm8996-common code and kernel and the awesome open source camera HAL
    @mosimchah for his contributions to the LeEco msm8996-common code and kernel
    @moto999999 for helping the x2 get LAOS 15.1 working. When others left LAOS he helped get the momentum started again.
    @infrag for his contributions to x2 such as the multiple audio fixes, LEDs and sorting out the open source camera HAL blobs and assisting with QS Torch
    @shivatejapeddi for his contributions to x2 such as finding the fix for QS Torch and the regularly requested VoLTE support XD
    @KuranKaname for his contributions to x2 such as helping get Dalvik VM and HWUI sorted out when 14.1 settings didn't work on 15.1, plus his never-ending mission to finding the most optimized code.
    @Tortel1210 for his contributions to x2 and helping out with gerrit.
    @andr68rus for everything he has contributed to x2. He may have moved to the Xiaomi Mi Mix 2 (sexy device!) but will be fondly remembered for everything he did for the x2 to make Nougat great. We will finish what you started.
    @GalaticStryder for his fix for truly display panel that is better than my fix and his other awesome kernel improvements.
    [MENTION]ViSi0Naryy[/MENTION] for his contributions to LeEco msm9996-common with testing and contributions with Gerrit
    @jabashque for helping fine-tune performance for LeEco msm8996-common devices! LeEco has never been so smooth! ;)
    @Lucchetto00 for converting Tortel's devicesettings into LeEco settings and adding QC toggle, plus his method of detecting if a setting exists and whether to display it or not.
    cristiansilaghi (no idea if he has XDA as he communicates with me on Telegram) for helping diagnose the battery percentage issues and finding some extra commits to help make it as accurate as possible and an selinux fix for offline charging animation.

    ...and finally the community. This is for the community, by the community. Give yourselves a pat on the back.

    If I missed anyone? Please let me know and I can add them.

    Donations
    @popeye13 for helping cover my replacement motherboard costs
    @Bollex for also helping cover my replacement motherboard costs
    @kurtn for also also helping cover my replacement motherboard costs
    @xlcashlx for also also also helping cover my replacement motherboard costs
    @rberg (Robin Vd Berg since I'm unsure on username) for also also also also helping cover my replacement motherboard costs

    (If I got your XDA forum usernames wrong please let me know)


    Please donate to anyone mentioned above. Note that I do NOT accept donations (only exception to that was to help cover my replacement motherboard costs). I do alright with my full-time job and am financially stable for my family and I do this as a hobby, and receiving donations for my hobby would feel like I'm pressured to deliver more than I can with my limited spare time.
     
    Last edited:

    mrcesarmx

    Senior Member
    Dec 8, 2011
    81
    11
    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 restores 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 our Gerrit Code Review.




    SUPPORTED DEVICES
    - LEX820 (X2_CN)
    - LEX821 (X2_WW)
    - LEX822 (X2_CN)
    - LEX829 (X2_NA)


    HOW TO INSTALL LINEAGEOS
    - Make sure your phone is running firmware from at least 19S. If not? Please download either the minimum recommended version below (or optional updated versions) and install it via TWRP. It can be flashed before or after the ROM
    - Download the LineageOS zip(s). (see Downloads)
    - Copy the LineageOS zip to internal sdcard.
    - Unlock bootloader and install TWRP 3.2.3 (designed for Pie and treble) or higher.
    - Boot into TWRP.
    - Perform a backup of your current ROM. (Optional)
    - RECOMMENDED: Do a factory reset! No support if you didn't!
    - Flash LineageOS.
    - Optional: Install the Google Apps addon package. (see Downloads)
    - Reboot


    HOW TO UPDATE LINEAGEOS
    - Download the LineageOS zip(s). (see Downloads)
    - Copy the LineageOS zip to internal sdcard.
    - Flash LineageOS.
    - Reboot


    DOWNLOADS
    TWRP' (Official is not updated yet for Pie) Test builds: http://build.twrp.me/twrp-3.2.3-0-x2.img | https://androidfilehost.com/?w=files&flid=241113&sort_by=date&sort_dir=DESC (Google Drive Mirror: https://drive.google.com/open?id=1Fa-icWihAwcF0dzkbuSU3p5IKig9b6H_)

    Lineage 16.0: (Unofficial: https://www.androidfilehost.com/?w=files&flid=283371&sort_by=date&sort_dir=DESC Unofficial Google Drive mirror: https://drive.google.com/open?id=1uOrZzcer8SYe-BcYZuaSJTPOehQ68EBc)

    SU-Addon: (not available yet for LineageOS 16.0)

    Google Apps: MindTheGapps is currently unavailable for 9.0... so, for now, OpenGapps is the default solution.

    OpenGapps (ARM64 Pico or Micro recommended. Mini and higher can cause issues as OpenGapps 9.0 is beta quality for the moment) http://opengapps.org/

    Google Camera: (Recommend Tolyan009 builds as Arnova8G2 builds are not always compatible with Pie x2 ROMs) https://www.celsoazevedo.com/files/android/google-camera/

    Focus fix: (LineageOS 16.0 will incorporate the build.prop method to toggle focus fix. Just need to flash the appropriate TWRP zip file to toggle it) https://www.androidfilehost.com/?w=files&flid=283410


    FIRMWARE DOWNLOADS
    Minimum required versions:
    - LEX820 (X2_CN) 20s
    - LEX821 (X2_WW) 19s
    - LEX829 (X2_NA) 20s

    https://www.androidfilehost.com/?w=files&flid=261087

    Optional newer versions:

    - LEX820 (X2_CN) 30s

    https://www.androidfilehost.com/?fid=674106145207490413

    - LEX820 (X2_CN) 466D

    https://mega.nz/#!JUkH3IhI!QUZnqVAzf1Zy6dZnjMSPHll93FZgeBqy15Zi9-5vC54


    DEVELOPER RESOURCES
    https://github.com/LineageOS/android_device_leeco_msm8996-common
    https://github.com/LineageOS/android_device_leeco_x2
    https://github.com/LineageOS/android_kernel_leeco_msm8996


    HOW TO CONTRIBUTE?
    Send your patches up for review: https://review.lineageos.org/

    XDA:DevDB Information
    [X82X][9.x][TREBLE] LineageOS 16.0 (pie) for LeEco Le Max 2, ROM for the LeEco Le Max 2

    Contributors
    ThE_MarD, codeworkx, mosimchah,moto999999,1nfrag,shivatejapeddi,KuranKaname,GalaticStryder,andr68rus,Tortel1210,visionary
    Source Code:https://github.com/LineageOS

    ROM OS Version: 9.x Pie
    ROM Kernel: Linux 3.x
    ROM Firmware Required: x821 19s. X820 and x829 20s. Higher is optional.
    Based On: AOSP

    Version Information
    Status: Beta

    Created 2018-10-06
    Last Updated 2018-10-05
    Thanks. Every body wait this work
     

    ThE_MarD

    Senior Member
  • Dec 10, 2014
    2,848
    3,367
    Grande Prairie
    Heyyo, so for the lineage-16.0-20181005-UNOFFICIAL-x2 build? Noteworthy changes:
    • Kernel is rebased on CAF Pie and has reworked Quick Charge code (no more QC bugs) and audio (no more Type-C to 3.5mm headphones orientation bug) from @GalaticStryder and his awesome kernel (we don't have a lot of optimizations on top as we are keeping our kernel as simple as possible, so if you want a fine-tuned kernel? I'd recommend checking out GS's thread)
    • Audio is kanged from gemini (Xiaomi Mi5) and brings with it a lot of changes which should improve audio quality a little
    • Autofocus fix will now be a build.prop implementation. Just need to use the focus fix zips in TWRP for an automatic method, or edit /vendor/build.prop and change/add persist.camera.focus_fix=1 (this change will hopefully be coming to 15.1 as well as I cherry-picked it for Oreo as well)
    • msm_irqbalance to help with the smoothness of the ROM (Google recommends it and even uses it on the Pixel as noted in their
      Identifying Jitter-Related Jank
      article.
    • thermal-engine config from pure marlin (we have had too many complaints about heat, so we will be dropping from the current thermal-engine.conf which allowed the CPU to go up to 79°c at around 75% CPU clock speeds, but now with pure marlin it will cap out around 72°c at 50% clock speeds)
    • CNE, DPM and GPS are rebased on pie blobs (unfortunately, IMS, RIL and QMI are not as we haven't found a pie device with CAP pie blobs that have a compatible modem x12 device stack for us... we may be stuck waiting on OnePlus3 or Mi5 or Zuk2 because Google reworked how IMS/VoLTE works on Pie and that is causing issues for us...)
     
    Last edited:

    p.tanu

    Member
    Sep 15, 2011
    7
    1
    bkk
    Heyyo, so for the lineage-16.0-20181005-UNOFFICIAL-x2 build? Noteworthy changes:
    Kernel is rebased on CAF Pie and has reworked Quick Charge code (no more QC bugs) and audio (no more Type-C to 3.5mm headphones orientation bug) from @GalaticStryder and his awesome kernel (we don't have a lot of optimizations on top as we are keeping our kernel as simple as possible, so if you want a fine-tuned kernel? I'd recommend checking out GS's thread)
    Audio is kanged from gemini (Xiaomi Mi5) and brings with it a lot of changes which should improve audio quality a little
    Autofocus fix will now be a build.prop implementation. Just need to use the focus fix zips in TWRP for an automatic method, or edit /vendor/build.prop and change/add persist.camera.focus_fix=1 (this change will hopefully be coming to 15.1 as well as I cherry-picked it for Oreo as well)
    msm_irqbalance to help with the smoothness of the ROM (Google recommends it and even uses it on the Pixel as noted in their
    Identifying Jitter-Related Jank article.
    thermal-engine config from pure marlin (we have had too many complaints about heat, so we will be dropping from the current thermal-engine.conf which allowed the CPU to go up to 79°c at around 75% CPU clock speeds, but now with pure marlin it will cap out around 72°c at 50% clock speeds)
    CNE, DPM and GPS are rebased on pie blobs (unfortunately, IMS, RIL and QMI are not as we haven't found a pie device with CAP pie blobs that have a compatible modem x12 device stack for us... we may be stuck waiting on OnePlus3 or Mi5 or Zuk2 because Google reworked how IMS/VoLTE works on Pie and that is causing issues for us...)
    Thanks for developed it.
     

    pinhead231

    Senior Member
    Apr 2, 2018
    62
    13
    Testing rom now. Ok for daily driver so far. High cpu usage apps may cause heat though so can just avoid using those for now. Thanks for all your hard work!
     

    mjoach

    Senior Member
    Dec 9, 2012
    464
    164
    Kyoto
    Awesome, can't wait to try it! Thanks to Marc and everyone who worked on it and even more so for providing details on what and how has been done, much appreciated!
     
    • Like
    Reactions: ThE_MarD

    xlcashlx

    Senior Member
    Nov 28, 2016
    79
    55
    The VoLTE fix worked on first install.

    After reboot I don't get the message to select preferred sim as I did on the first install, and VoLTE isn't working. Is there a way to trigger this manually? I tried playing around with the apns and had no luck.

    EDIT:
    Manually editing /data/system/users/0/settings_global.xml as per gerrit fixes VoLTE, but system behaves poorly. Mine was value=2 so SED wasn't working.

    Will this cover both possibilities?
    Code:
    if [ -f /data/system/users/0/settings_global.xml ]; then
        sed -i 's/"multi_sim_data_call" value="1"/"multi_sim_data_call" value="-1"/g' /data/system/users/0/settings_global.xml
        sed -i 's/"multi_sim_data_call" value="2"/"multi_sim_data_call" value="-1"/g' /data/system/users/0/settings_global.xml
        restorecon /data/system/users/0/settings_global.xml
    fi
     
    Last edited:
    • Like
    Reactions: ThE_MarD

    kenciroz

    Member
    Jan 19, 2017
    37
    6
    Cagliari
    Hi, after flashing this rom I can't restore any other, older, backup. I tried with many differents backups (lineage, arrowos, revengeos) but I didn't succeded, and after restoring the backup, the phone goes on bootloop.

    I have installed the new, unofficial, twrp, but the problem was already present before.

    Someone have some idea of what could be the cause?

    thanks
     

    antony82

    Senior Member
    Sep 30, 2017
    307
    100
    napoli
    Hi, after flashing this rom I can't restore any other, older, backup. I tried with many differents backups (lineage, arrowos, revengeos) but I didn't succeded, and after restoring the backup, the phone goes on bootloop.

    I have installed the new, unofficial, twrp, but the problem was already present before.

    Someone have some idea of what could be the cause?

    thanks

    you have to use no treble recovery 3.2..1 format everything eccept internal storage, and restore the backup, should work...of course if the backup it's not treble..
     
    Last edited:
    • Like
    Reactions: kenciroz

    kenciroz

    Member
    Jan 19, 2017
    37
    6
    Cagliari
    I just solved the problem. The backup that I wanted to restore was a trebleized one. So I restored the backup, than I re-trebleized the partitions from twrp, wiped cache and delvik and reflashed the rom.


    Before returning to lineage os I want to recover some important data from my previous backup

    Anyway thank you.. ciao guagliò
     
    Last edited:

    ThE_MarD

    Senior Member
  • Dec 10, 2014
    2,848
    3,367
    Grande Prairie
    There isn't mirroring to TV listed in the known bugs. Is it working in this ROM ?

    Thanks.
    Heyyo, tbh I haven't tested it so it is unknown if it works or not... I can't test it as I have a "dumb" TV so.... if anyone wants to test and report? That would be nice heh.

    The VoLTE fix worked on first install.

    After reboot I don't get the message to select preferred sim as I did on the first install, and VoLTE isn't working. Is there a way to trigger this manually? I tried playing around with the apns and had no luck.

    EDIT:
    Manually editing /data/system/users/0/settings_global.xml as per gerrit fixes VoLTE, but system behaves poorly. Mine was value=2 so SED wasn't working.

    Will this cover both possibilities?
    Code:
    if [ -f /data/system/users/0/settings_global.xml ]; then
        sed -i 's/"multi_sim_data_call" value="1"/"multi_sim_data_call" value="-1"/g' /data/system/users/0/settings_global.xml
        sed -i 's/"multi_sim_data_call" value="2"/"multi_sim_data_call" value="-1"/g' /data/system/users/0/settings_global.xml
        restorecon /data/system/users/0/settings_global.xml
    fi
    I got the script overhauled after you mentioned it, thanks! Meow the script will look if it's not set properly to -1 and will replace the value no matter what it is :good:
     
    • Like
    Reactions: xlcashlx

    Top Liked Posts

    • There are no posts matching your filters.
    • 36
      https%3A%2F%2Fimg.xda-cdn.com%2F_qciZ_MtPTGjDb-adIt4fAUOirk%3D%2Fhttps%253A%252F%252Fimg.xda-cdn.com%252Fy-LtXHGCDBH0KxFw9MxWAPF3guk%253D%252Fhttp%25253A%25252F%25252Fi.imgur.com%25252F2okPze5.png
      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 restores 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 our Gerrit Code Review.

      Code:
      #include 
      /*
       * Your warranty is now void.
       *
       * I am not responsible for bricked devices, dead SD cards,
       * thermonuclear war, or you getting fired because the alarm app failed. Please
       * do some research if you have any concerns about features included in this ROM
       * 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.
       */


      SUPPORTED DEVICES
      - LEX820 (X2_CN)
      - LEX821 (X2_WW)
      - LEX822 (X2_CN)
      - LEX829 (X2_NA)
      - LEX910 (MAX_PLUS. Currently only supported on unofficial test builds)

      HOW TO INSTALL LINEAGEOS WITH LINEAGE RECOVERY
      - Make sure your phone is running firmware from at least 19S for x2 and 13s for max_plus. If not? Please download either the minimum recommended version below (or optional updated versions) and install it via TWRP. It can be flashed before or after the ROM
      Please follow the official LineageOS Wiki instructions for our device.
      https://wiki.lineageos.org/devices/x2/install

      HOW TO INSTALL LINEAGEOS WITH TWRP
      - Make sure your phone is running firmware from at least 19S for x2 and 13s for max_plus. If not? Please download either the minimum recommended version below (or optional updated versions) and install it via TWRP. It can be flashed before or after the ROM
      - Unlock bootloader and install TWRP 3.3.0-1 (designed for Pie and treble) or higher. TWRP instructions are here.
      - Download the LineageOS and firmware zips. (see Downloads)
      - Boot into TWRP.
      - Copy the downloaded zip files to internal sdcard.
      - Perform a backup of your current ROM. (Optional)
      - RECOMMENDED: Do a factory reset (clean wipe)! No support if you didn't! (Wipe Dalvik, system, cache and data)
      - Flash firmware and LineageOS zips.
      - Optional: Install the Google Apps addon package. (see Downloads)
      - Reboot to system.


      HOW TO UPDATE LINEAGEOS WHEN ENCRYPTED VIA TWRP
      - NOTE! Please avoid doing OTA via Lineage Updater when your device is encrypted because TWRP screws up and causes Google Services Framework to crash like crazy. Only Lineage Recovery properly supports OTA via Lineage Updater.
      - Download the LineageOS zip(s). (see Downloads)
      - Copy the LineageOS zip to internal sdcard.
      - Reboot to TWRP.
      - Flash LineageOS. (Wiping Dalvik and Cache is optional, but recommended)
      - Reboot to system.


      MAIN DOWNLOADS
      TWRP for x2: Official https://twrp.me/leeco/leecolemax2.html
      TWRP for max_plus: Official https://twrp.me/leeco/leecolemaxpro.html

      Lineage Recovery:
      - Official: https://download.lineageos.org/x2
      - Unofficial: https://osdn.net/projects/lineageos-for-x2/releases/p16551

      LineageOS:
      - Official: https://download.lineageos.org/x2
      - Unofficial: https://osdn.net/projects/lineageos-for-x2/releases/

      Discontinued unofficial mirrors:
      - Unofficial: https://sourceforge.net/projects/lineageos-for-x2/files/16.0 Unofficial Releases/
      - Unofficial Google Drive mirror: https://drive.google.com/open?id=1uOrZzcer8SYe-BcYZuaSJTPOehQ68EBc

      SU-Addon: (not available yet for LineageOS 16.0)

      Migration-Tools: https://androidfilehost.com/?w=files&flid=254680 (Unofficial->Official, Official->Unofficial)

      GOOGLE APPS (GAPPS) DOWNLOADS
      - MindTheGapps: (RECOMMENDED!)
      Official: http://downloads.codefi.re/jdcteam/javelinanddart/gapps
      Mirror: https://androidfilehost.com/?w=files&flid=170282

      - OpenGapps:
      Official:
      https://opengapps.org

      GOOGLE CAMERA (GCAM) DOWNLOADS
      Google Camera: (Recommend Tolyan009 builds as Arnova8G2 builds are not always compatible with Pie x2 ROMs)
      celsoazevedo.com/files/android/google-camera/dev-tolyan009/

      Current recommended gcam6 build for LineageOS 16.0 on x2
      https://f.celsoazevedo.com/file/gcamera/MGC_6.1.021_BSG_Arnova-based_v.1.4a_TlnNeun.apk

      If you have pink tint?
      More > Settings > "advanced" under Quick Settings section > Fix > Fix old WB gains

      If you have green selfie camera?
      Set front camera model to Nexus 6P

      If that doesn't work?
      More > Settings > "advanced" under Quick Settings section > Fix > Fix front camera

      Here's also a good gcam config by @Prashant69 that also helps remove the tint issues if the above fixes don't work
      https://sourceforge.net/projects/lineageos-for-x2/files/Mods and Tweaks/

      Here's how to load configs
      https://www.celsoazevedo.com/files/android/google-camera/f/settings09/

      MISC DOWNLOADS
      ThE_MarD's LineageOS for x2 Sourceforge, directory: (also contains some mods and tweaks) https://sourceforge.net/projects/lineageos-for-x2/

      FIRMWARE DOWNLOADS
      Minimum required versions:
      - LEX820 (X2_CN) 20s
      - LEX821 (X2_WW) 19s
      - LEX829 (X2_NA) 20s
      - LEX910 (MAX_PLUS) 13s

      Optional newer versions:
      - LEX820 (X2_CN) 30s
      - LEX820 (X2_CN) 466D

      Link for x2 firmware: https://sourceforge.net/projects/lineageos-for-x2/files/Firmware Updates/
      Link for max_plus firmware: https://sourceforge.net/projects/lineageos-for-max-plus/files/firmware/


      DEVELOPER RESOURCES
      https://github.com/lineage-x2-devs
      https://github.com/LineageOsMaxPlus/
      https://github.com/lineageos/android_device_leeco_msm8996-common
      https://github.com/lineageos/android_device_leeco_x2
      https://github.com/lineageos/android_kernel_leeco_msm8996


      HOW TO CONTRIBUTE?
      Send your patches up for review: https://review.lineageos.org/
      Read the guides on the LineageOS Wiki: https://wiki.lineageos.org/

      XDA:DevDB Information
      [OFFICIAL][X82X][9.x][TREBLE] LineageOS 16.0 (pie) for LeEco Le Max 2, ROM for the LeEco Le Max 2

      Contributors
      ThE_MarD, codeworkx, mosimchah,moto999999,1nfrag,shivatejapeddi,KuranKaname,GalaticStryder,andr68rus,Tortel1210,visionary
      Source Code: https://github.com/LineageOS

      ROM OS Version: 9.x Pie
      ROM Kernel: Linux 3.x
      ROM Firmware Required: x821 19s. X820 and x829 20s. x910 13s. Higher is optional.
      Based On: AOSP

      Version Information
      Status: Nightly

      Created 2018-10-05
      Last Updated 2020-01-12
      19
      Heyyo, new build is going up! lineage-16.0-20181218-UNOFFICIAL-x2 will have A LOT of under the hood changes for selinux policy fixes (very important steps for us to get official status) plus we are switching back to qseecom daemon from OnePlus3 as OnePlus5 Widevine L1 solution did work... Sadly vp9.secure and avc.secure codecs are broken and I haven't seen a way to fix them and no one else seems interested in helping diagnose the issue... But it turns out that the OnePlus5 DRM stuff was also causing that super random issue where lockscreen crashes sometimes on reboot to system and reboot from twrp... So yay for that!

      There's also updated sensor blobs from OnePlus3 to also get rid of an selinux denial instead of limping along with the old one and having to create extra selinux policies... Sweet. :good:

      Hopefully the next build will include the updated CNE, DPM, QMI and RIL stacks that codeworkx is working on! But I'm unsure when that will be, as I will be on vacation starting December 20th until January 2nd. My wife and my son and I will be spending Christmas, my son's first birthday and new years with my mom (his grandma hehe)

      So just in case life gets too busy for me for the next few weeks? Merry Christmas and a happy new years to you all!!!!!
      18
      UPDATE: I've decided I need a break from XDA. I do this as a hobby and I feel that XDA is causing me stress and is distracting me from trying to improve LineageOS for X2 when I have time to work on it... I'll eventually come back, but please don't expect a reply for the time being from me.

      I'll still be posting updates for unofficial builds and pushing commits to Gerrit for review for official updates... I just need a break from XDA. Sorry if this news upsets anyone.
      12
      Heyyo, just a heads up! Lineage 16.0 official builds start tomorrow and we are part of the initial official device list! Since the builds are alphabetical? Ours will be one of the last 16.0 builds to go up, so hang tight! It's coming! :good:

      https://lineageos.org/Changelog-22/
      12
      Heyyo, new build going up! lineage-16.0-20181114-UNOFFICIAL-x2!

      * reworked init/ramdisk. Please test! Lots of changes so hopefully it runs smoothly (maybe if we are lucky even sap power less, but no guarantees... Still need to tweak GPU idle and maybe input touch boost)
      * Includes the thermal engine and config fixes by @andr68rus
      * Updated LineageOS sources (includes November sercuity update)
      * Included a bunch of repopic topics for things still in testing (display styles, PrivacyGuard, etc)
      * Reworked automatic brightness at the low range (too many complaints it was dark, so it will start out quite a bit brighter than before)
      * Includes audio boosts in volumes for earpiece and mics
      * Includes the Frankenstein imx230_lg blobs commit from 15.1 and it fixes green tint isssue once and for all

      * I know I said that I'd work on selinux policies... But yeah, people also said LineageOS is laggy and I noticed our init/ramdisk still needed work.. so yeah I'll try to go back to selinux policies, but some of that is also our init scripts need to be updated for Pie... And my first tests I failed miserably haha so I'll be attempting it again
    Our Apps
    Get our official app!
    The best way to access XDA on your phone
    Nav Gestures
    Add swipe gestures to any Android
    One Handed Mode
    Eases uses one hand with your phone