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

[OFFICIAL][X82X][10.x][TREBLE] LineageOS 17.1 (Android 10) for LeEco Le Max 2

Search This thread

ThE_MarD

Senior Member
Dec 10, 2014
3,081
3,574
Grande Prairie
LeEco Le Max 2
Moto X4
Heyyo @RussianNeuroMancer, the main difference being this is build specifically for our device, so all parts will work as intended.

With GSI's, they are built more for universal compatibility, so they will lack some of the optimization and sometimes certain features might not work since on ROMs built specifically for our device we include system blobs we need that won't be available on a GSI.

Device firmware gets flashed to firmware specific partitions for Bluetooth, modem, keymaster and a few other partitions. They are completely separate from the ROM.
 

RussianNeuroMancer

New member
Dec 6, 2014
4
0
Device firmware gets flashed to firmware specific partitions for Bluetooth, modem, keymaster and a few other partitions. They are completely separate from the ROM.
I see, thank you for answer.

on ROMs built specifically for our device we include system blobs we need that won't be available on a GSI
Okay, so shorty that mean that x2 treble compatibility is incomplete because it was manufactured without treble support in mind, right?
 

ThE_MarD

Senior Member
Dec 10, 2014
3,081
3,574
Grande Prairie
LeEco Le Max 2
Moto X4
@RussianNeuroMancer, what it means was treble was not finished. Android 10 finally further separated system blobs from vendor by introducing a product partition, but we don't have another spare partition to use as product partition so we are stuck using it as a folder under system.

Only devices that officially released with Android 10 will have a product partition, and even so, some of them have a very small product partition which isn't ideal for custom ROMs... So maybe by the time devices release with Android 12, maybe then we might see a complete treble implementation?
 

ThE_MarD

Senior Member
Dec 10, 2014
3,081
3,574
Grande Prairie
LeEco Le Max 2
Moto X4
Heyyo @origin_de, unfortunately I still haven't had time on my days off... I had to rebuild my eavestrough (gutters) and also fix some fascia on my house because the strong winds damaged it... Really hoping one of these days off isn't super busy lol, I work harder at home than I do at my job lol oof...

Since no spare time at home? I haven't even made progress on Z01R official LOS either...

I also ended up getting gifted a Payton (Motorola X4) from SyberHexen to help assist with their TWRP and LineageOS, some easy fixes there as most was from my work I did on Nash (Motorola Z2 Force) that I could just cherry-pick to payton
 

Xandaogomes

New member
Nov 21, 2017
1
0
Is there any possibility of the SBC HD bluetooth feature in Lineage 16 returning in the next builds?
I really like this feature, it improves audio quality a lot on different devices
 
Last edited:

Xandaogomes

New member
Nov 21, 2017
1
0
Ok Sir!
This feature is present in the RR of CrisBal and in the official CrDroid of the X2, so I thought this feature was possible in Lineage 17.1. The phone works more stable among all Android 10 Roms I tested.

Thanks for reply!
 

alveox

Senior Member
Aug 8, 2010
154
23
Bandung
Hi all, I've just installed latest update last night. Now my banking apps is not working, it say can't run on rooted phone. i did have magisk and add that app to magisk hide, even i tried to remove magisk, but that app still detect a root.. any way i can solve this? is a downgrade possible on lineage?

Update: Cant wait, because thats app is soo important to me. I finally clean wipe my LOS to the latest, no root, then straight installing bank app from playstore. And its confirm, the app still detecting root on the OS..

Update: This is frustrating, it seem my bank apps is upgraded its detection thingy.. i try couple custom rom and all got same problem.
 
Last edited:

ThE_MarD

Senior Member
Dec 10, 2014
3,081
3,574
Grande Prairie
LeEco Le Max 2
Moto X4
Heyyo @alveox, some apps give crypitc messages... Sometimes detecting root is simply detecting bootloader unlocked or TWRP files are detected. Your best bet for a banking app like that is Magisk and Magisk Hide (unless a newer solution is available? No idea tbh haven't tried looking for one in a long time).

If I remember correctly? It's the same thing Nintendo apps used to (or maybe still do?) For detecting if TWRP, root or unlocked bootloader.

I've tried testing locked bootloader for x2 on LineageOS and unfortunately our bootloader doesn't seem to want to re-lock on custom ROMs...
 
Last edited:

alveox

Senior Member
Aug 8, 2010
154
23
Bandung
Hi, after trying lots of rom, magisk version, etc..
finally i found the only rom that work for my bank apps, its the latest aosipq (no root). if i install magisk, that apps stop working again even i put it in the magisk hide list.

i wish it can work on LOS.. ?
 

pssyz

Senior Member
Oct 11, 2011
106
36
Hi, after trying lots of rom, magisk version, etc..
finally i found the only rom that work for my bank apps, its the latest aosipq (no root). if i install magisk, that apps stop working again even i put it in the magisk hide list.

i wish it can work on LOS.. ?

have you try magiskhide ? hide your bank app in magisk
 

ThE_MarD

Senior Member
Dec 10, 2014
3,081
3,574
Grande Prairie
LeEco Le Max 2
Moto X4
Heyyo @alveox, LineageOS does not do any safetynet exploits. Other ROMs as I'm guessing AOSiP from your post is fine with exploits.

Most apps that detect root either detect libraries created by Magisk or bootloader unlocked status or even the presence of TWRP.

Newer versions of hardware even have hardware-based attestation to check the ROM versus the build fingerprint.

I'm guessing your banking app checks for a lot more than just root, so it probably detects the presence of Magisk as well.

Your only options at that point is to use the website instead, or stick with stock ROM or switch banks. :(
 

ThE_MarD

Senior Member
Dec 10, 2014
3,081
3,574
Grande Prairie
LeEco Le Max 2
Moto X4
Heyyo, hmm odd, a post of mine I think was lost in the forum transition... anywho, in that post I mentioned on payton I learned more about the persist sehash issues and I ported those fixes to LeEco msm8996, so meow there should be ZERO chances of persist having messed up sehashes when doing QFIL and returning to LineageOS 17.1 or even downgrading to EUI ROM and coming back to LineageOS 17.1. (y)

My first build of LineageOS 18.0 for x2 for some reason didn't boot... so I'm trying to sort through that. With my x2 freshly QFIL'ed and such from testing sehash? I'll be doing an eng build to grab logs to see if there's a reason it's not booting for me. Tortel said there isn't any repopicks I need for x2 to work too... so odd...
 

leo1004

New member
Apr 29, 2020
2
1
Hi ThE_MarD,

this is leo1004 using your LineageOS 17.1-20201204-NIGHTLY-x2. I encountered a problem with incoming calls for some weeks. The dialer does not pop up when a call comes in. I hear it ringing but no way to accept the call. I have to wait until the caller hangs up. Then I call back. This happens independent of the display being active or not.

But: it does not happen every time. Maybe in half of the incoming calls.

Just a week ago I updated the firmware with the latest version 466d. (I was not sure which version was the original. My phone is younger than the 466d.) But the issue remained...

Do you have an idea?

Thanks
Leo
 

ThE_MarD

Senior Member
Dec 10, 2014
3,081
3,574
Grande Prairie
LeEco Le Max 2
Moto X4
Heyyo @leo1004 , Please check your settings under apps and ensure you have a default dialer selected. Some GApps packages that replace the stock LOS dialer fail to set a new default dialer app.

So just an update on LineageOS 18.1? I have it booting with selinux enforcing on x2 with major thanks from Moshe, Tortel and CBG, but there's a few RIL things we are changing and want to confirm it works... once it does? I'll include my unofficial unified max_plus commits and then I'll release a test build. ;)
 

leo1004

New member
Apr 29, 2020
2
1
@ThE_MarD,

thanks for your reply. I regulary update the rom and have currently the latest nighly update. Once the 18.1 is available I will go with it.

I checked the default apps. Currently the Telefon App is the Simpler app. I installed it some weeks ago, after the problems happened. But since I have sent you my first message (10 days ago) the problem did not occur anymore and every thing works fine. Maybe the issue is gone...

Thanks
Leo
 
  • Like
Reactions: alqi

BSoD38

Member
Mar 22, 2011
24
3
Heyo, I've recently installed the ROM on my friend's phone (a fully clean install), but the fingerprint sensor doesn't work. When trying to add one, it asks to press your finger against the sensor, but nothing happens when you do. It worked fine on EUI. Any ideas ? I used build 20210115, and I've also tried flashing the 466D firmware and 30S firmware to no avail.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Heyyo @Drollach Gûntar

    I recommend using LineageOS 18.1 as it has more fixes and security updates as this hasn't been updated since 2020.

    I archived the last official build here:

    Soon enough hopefully I'll have time to get LineageOS 19.0 booting too
  • 24
    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 466d for x2 and pseudo 466d for max_plus. If not? Please either the minimum recommended version below (or optional updated versions) and install it via Lineage Recovery. 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 466d for x2 and pseudo 466d for max_plus. If not? Please 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.5.0-0 (designed for Pie and above and for 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 UPGRADE LINEAGEOS FROM 16.0
    Please follow the official LineageOS Wiki instructions for our device. You can use either TWRP or Lineage Recovery.
    https://wiki.lineageos.org/devices/x2/upgrade

    HOW TO UPDATE LINEAGEOS WITH LINEAGE RECOVERY
    Please follow the official LineageOS Wiki instructions for our device
    https://wiki.lineageos.org/devices/x2/upgrade

    HOW TO UPDATE LINEAGEOS WITH TWRP
    - 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
    Lineage Recovery for x2:
    - Official https://download.lineageos.org/x2
    - Unofficial https://osdn.net/projects/lineageos-for-x2/releases/p16588

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

    Lineage:
    - Official: https://download.lineageos.org/x2
    - Unofficial 17.1: https://osdn.net/projects/lineageos-for-x2/releases/p16562
    - Unofficial 17.0: https://osdn.net/projects/lineageos-for-x2/releases/p16488


    GOOGLE APPS (GAPPS) DOWNLOADS
    - Open GApps:
    Please note! Open GApps ARM64 Pico and Nano are the only recommended ones.
    Official: https://opengapps.org/


    GOOGLE CAMERA (GCAM) DOWNLOADS
    Google Camera:
    https://www.celsoazevedo.com/files/android/google-camera/f/changelog1075/
    Enable "Fix tint on front camera" and set it to "Fix green tint." Found inside Settings > Advanced > Experimental settings.


    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) 466D
    - LEX821 (X2_WW) 466D
    - LEX829 (X2_NA) 466D
    - LEX910 (MAX_PLUS) 13s

    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][10.x][TREBLE] LineageOS 17.1 (Android 10) for LeEco Le Max 2, ROM for the LeEco Le Max 2

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

    ROM OS Version: Android 10
    ROM Kernel: Linux 3.x
    ROM Firmware Required: X820, X821, X822 and x829 466d. x910 13s.
    Based On: AOSP

    Version Information
    Status:
    Nightly

    Created 2019-11-16
    Last Updated 2020-09-15
    14
    Heyyo, thanks for the kind wishes my friends! The first day unfortunately we missed our flight to the Philippines since it was delayed by over two hours due to mechanical issues with the airplane we were supposed to use, so we had to wait for another one to free up... So we spent the night in hotel and then went to a conservatory in Vancouver to pass the time and see some neat vegetation and birds heh.

    Things went better for Philippines Airlines though! They overbooked the flight and luckily my family and I were selected for free upgrades from economy class to business class! So they kept offering us wine but my wife and I only took the first glass since we had our son and didn't want to get drunk hehe and the food was also really good and a complete three course meal of appetizers, main and dessert too and an optional plate of assorted cheeses too which was neat. Definitely different meal offerings than economy class hehe.
    @kayyappan , seems like you are right and Bluetooth audio is broken for calls in general as I've also had a time or two where it didn't work for UMTS calls (for us plebs who don't get fancy VoLTE in Canada on BYOD and are stuck on 3G for calls) albeit sometimes it works which is odd... Still seems to be a2dp/offload/compress related...

    VoLTE is the same as VoIP yes, the only difference is it uses mobile data instead of non-mobile data like home or business WiFi and the likes. Luckily, just like UMTS doesn't go against your mobile data caps that VoLTE doesn't ruin your mobile data caps too.

    Arguably yes @alancai , our phones are expendable... But they are still expensive lol so I'd rather nothing happen to my x2. The earpiece speaker seems to be going bad on mine too, probably from messing around with that pseudo-stereo speaker mod... So I highly recommend everyone avoid that since our earpiece isn't hardware amplified, so cranking the volume on that can definitely damage it... My battery also sucks as I only tend to average three hours of SoT even in battery saving mode sigh and my camera doesn't work unless I use the focus value from x2's kernel source code release (the default focus value we use on custom ROMs is from zl1's kernel source code)... But at least functionality wise? Everything on my x2 does work which is good.

    I did bring the Motorola Z2 Force that was donated to my by the LineageOS team that they received from a community member who upgraded to something newer as I finished the repairs on it... But the double-sided adhesive tape I have must have expired as it isn't sticky enough to keep the phone sealed and it lifts on all sides sighs... So I'll get it fixed properly here in the Philippines for cheap I guess heh. I definitely do plan on hopping between my x2 and nash even once it is fully repaired as I can do more good on x2 as Nash has Erfan and npjohnson where it seems I'm more useful there contributing to selinux policies hehe.

    After December 10 I'll be back in Canada, but not sure what my work schedule looks like yet but I'll try to keep you guys up to date on when I can start working on x2 again. I saw that Tortel was helping diagnose and work on audio HAL for x2 (and I guess msm8996 in general) so things are looking good for maybe the Bluetooth audio issues being fixed maybe by the time I get back? I'm guessing the problem is ROM-side since the five things I've tried device-side didn't work...
    11
    @redbeard1083, yeah the battery life was very mediocre when it came out for sure lol... I think I had 4.5 hours of screen on time at the best of times and only achieved 5 hours of screen on time using greenify with root and every option I could enabled and one of those kernel managers with everything turned down. :silly:

    My x2's battery is three years old and really beaten up with all the flashing and testing I do... I can only achieve about 3 hours of screen on time with my daily usage of VNC, web browsing, Telegram and YouTube. AccuBattery shows my battery health at 66% remaining... So I'm missing a third of my battery's capacity. :silly:

    So, on a somewhat related note? After taking over maintaining LineageOS and TWRP for the past two years? I have finally decided to post a PayPal donation link on my XDA profile. I could use a new battery and rear camera (before the actuator on mine completely fails) and also a replacement screen just in case mine does break while swapping the two aforementioned internal parts.

    I know in the past during LineageOS 16.0 bring up I did temporarily post a PayPal link to help fund my replacement motherboard after mine fried and I am still very thankful for everyone who donated to help me get back up and running. :)

    I would like to ask that anyone who donates to me to either provide their XDA or Telegram username so that I can maintain a special thanks list to those who donated. If you wish to stay anonymous when donating? That is fine too.

    Thanks again to everyone who helped me test all these builds! I definitely cannot test all scenarios myself and I might have missed some serious bugs like how some Bluetooth headsets fail during calls and I had to borrow a Bluetooth headset so I could also diagnose it and fix it since the first one I had worked fine.

    Special thanks as well to my max_plus testers as I definitely can't test anything there as I don't own an LeEco Le Max Pro. Maybe one day I will find a proper display fix for you guys plus also get that 3.5mm headset jack working. :)
    11
    Heyyo! So I passed my knowledge test and road test! So I got my class 1 commercial vehicle driver's license! w00t!

    So meow I'll be on vacation to the Philippines with my family since it literally starts the day after my training (which is today lol so our first flight is in a few hours) so I won't be able to work on LineageOS 17.0 for x2 for a bit... December 10 is when I'm back in Canada as I work the next day lol so we shall see after that when I can get time to try and solve these darn Bluetooth audio VoIP issues and so on. I've tried five different things so far to solve it and no go. :silly:
    10
    Heyyo, an update on the parts! Meow my screen and rear camera have come in too! So meow I just need the earpiece and the rear camera glass and then I can rip into my x2 and make it as good as almost new! :)

    Tbh? I've been thinking about doing a thermal mod on my x2 to add a thermal pad or some non-conductive thermal paste just so I can also see how much better x2 can have sustained performance with lower temperatures with slightly better cooling... but I'm leaning more towards not doing it though, as any future thermal issues that x2 could have in future versions of Android I wouldn't be able to test as I'd have modified cooling... so yeah, I think I will probably leave my cooling hardware on my x2 stock so I can maintain my x2 if thermal-engine for some reason changes in the future... even though I know for a fact that x2 would be a heck of a lot better of a device with some extra thermal solution applied. :silly:

    For LeEco on LineageOS related news? I think I finally found a really good echo-reference/noise-cancelling fix for s2! I'm unsure how many of you fellow x2 users know this, but I, of course, help out with max_plus (as I'm the only one who even tried to get them onto custom ROMs with all the improvements we have on x2) and zl1 and also s2. I've helped fix up s2's libinit because it was broken and out of date, I also helped them with selinux enforcing so they could have LineageOS 16.0 builds (at that point in time, rk585 was already losing interest in s2 as he has his X01BD, the Asus Zenfone Max Pro M2). I also helped them properly update a bunch of their device tree just so they could have a lot better organization in their device tree too.

    The super interesting part about the echo-reference/noise-cancelling fix? Is how I was able to port Motorola's method of using audio echo-reference instead of LeEco's inferior voice external echo-reference... I'm hoping I can port it as well to msm8996. If so? Then max_plus, x2 and zl1/0 can benefit from even better echo-reference than stock EUI ROM which struggles with VoIP echo-reference just like we do a bit on custom ROMs. Telegram I know for a fact has terrible echo at times... so using audio echo-reference could really fix that once and for all. It might even make our loudspeaker work good with those automated call systems that lots of companies use since currently ours might sometimes pick up some of the audio and result in a chirping sound at times which throws off those automated call systems.

    Also, tbh? I'm not really sure what else I can really improve on LeEco msm8996... we have VNDK current, we have a permanent fix for green tint on all camera apps, we have Open-Source ConsumerIR HAL + Bridge that is selinux neverallow policy compliant and works better than ever before (MAJOR thanks to Manong for that! I only did a few assists), and I've updated as much of our blobs as I can... 4.4 kernel might be beyond my skill as I don't know C or CPP, same with fixing max_plus's specific bugs and same with the other minor bugs... so really, at this point? It'll be more about maintenance as msm8996 is legacy from this point on... updating blobs our major changes to try and keep up with AOSP on our device tree and vendor blobs and even kernel might cause more issues than anything and vendor blobs especially we won't have a reliable place to kang blobs from as 3.18 kernel devices are pretty much all discontinued and using blobs from a device with a newer kernel version once again might cause more issues than anything... still, we can make future versions of Android run good on our device. As a prime example, the OnePlus One with that legacy msm8974 still runs LineageOS 16.0 (and I'm guessing 17.1) great and that device launched with KitKat! That's cm-11.0! That's a heck of a long time ago!

    Side-note here, I'm starting to think I won't be receiving that Redmi Note 8 as I haven't heard back from the guy who was going to ship it for a tracking number and it has been a month in shipping and a nash for parts I could use to make a functioning nash with my broken one is still probably not coming my way anytime soon... oh well lol, I'll still get by just fine with my x2.

    Anywho? That's the happenings right meow for me and AOSP!