[OFFICIAL][X82X&X910][TREBLE] LineageOS 18.1 (Android 11) for LeEco Le Max 2

Search This thread

Rolophi

Senior Member
Apr 3, 2018
63
4
Hello Community.

Hello Lineage Team 🙏

I use your products from 2015 ? for old Samsung note 3 maybe.

What job after all this time. RR is now second custom universal OS. Bravo Bravo for all.

-----> My Question :
- I use linageos ok on 2 devices.

But with this LeEco X821 SELINUX problem.
Qualcomm flash... "Brick phone".

Totally clean phone.

Install and follow official Lineage wiki (😎 guys).

Recovery.
LineageOS.
Last Gapps Official website (error 21 not sign zip). But you said ok you don't work with Gapps.
ANNNDDDDDD
I HAD TRY EVERYTHING...

I always back to "Trust problem" " your SELINUX is not applied".

I look many hours SELINUX web. Permissive... Why...

So I wanna know.

How to install official LineageOS without this problem of SELINUX?

I can't found official reply from Lineage Team like for Gapps "we don't work with Gapps zip can't be certificate".

Why with this x821 (or 820) I have always. This error SELINUX?

I have all my life in my phone. So I must understand what security risk I take.

Thank you very much for read and reply.

All the best 👍
 
Last edited:

ThE_MarD

Recognized Developer
Dec 10, 2014
3,406
3,875
Grande Prairie
LeEco Le Max 2
Moto X4
Heyyo @Rolophi , can you please provide logcat? I'm guessing the issue is your data partition is corrupt and that's what broke the selinux enforcing on it...

You said Qualcomm flash but can you please be more specific?

If you mean QFIL is this the guide you followed or something else?


Odds are we cannot fix selinux on your device unless we can successfully QFIL it
 
  • Like
Reactions: Rolophi

Rolophi

Senior Member
Apr 3, 2018
63
4
Hello my friend.

Thank you for your quality reply.

Yes I did a QFiL flash with down+up.
With success.
Few times with different official roms from web.

Same result.

Maybe I need to flash kernel?
Someone before mybe did viper...

I did few times full WIPE TWRP. Vendor... Few "brick" always same proces and result.
After phone was brick.

Try QFIL flash (or flashone 1.9/2.0).

Always this bug.

So we agree. Official LineageOS is always full safety trust. without root.

This selinux bug isn't norm ?

Regards 🙏
 
Last edited:

Rolophi

Senior Member
Apr 3, 2018
63
4
@Rolophi the selinux issue is definitely not ROM related as something is broken on your device...

Wiping in TWRP isn't formatting. Please try using Lineage Recovery and follow the LOS Wiki installation instructions

Ok than you to confirm this point.


I alredy installed few times with lineage os recovery too. I had use all ways.

Maybe flash origin kernel. I will try.
 

Rolophi

Senior Member
Apr 3, 2018
63
4
@Rolophi did you format data via Lineage Recovery?
Yep. I had try all kind. I trying again.

I just did full process in my first X820. Everything ok and fast. Super.

But with this X821 always this SELINUX Bug ! Device problem but why?...

EDIT DEVICE IS FIX :

I solve problem.
I must go to final installation with ROM after Flashone ! Not just flashone and LOS recovery.

But finish and do full install process of the offical ROM after Flashone fix my problem.

Thank you SO SO MUCH ! For job and support guys !

EDIT 2 : NO WAY BUG BACK.
 
Last edited:
  • Like
Reactions: ThE_MarD

Rolophi

Senior Member
Apr 3, 2018
63
4
Very Interesting:

=> My bank app is available in Google play store with the X820 ( device without this SELINUX bug).

Not avaible with same google account with the X821 who had this SELINIUX bug now "fix".


Edit : BUG NOT FIX ITS WHY.
 
Last edited:

Rolophi

Senior Member
Apr 3, 2018
63
4
EDIT :
Always SELINUX error on my X821.

I did QFil... Full wipe data. Partition... Impossible to fix this error.

I had try Everything!

If someone gave a idea. 👌
 
Last edited:
  • Like
Reactions: ThE_MarD

jean_htc

Member
Apr 8, 2009
36
7
Hello,

Do you know the date of end the support of our device with official LOS 18.1 ?
My Le Max 2 is my daily use device.
I want to clean flash my device and I hesitate to test LOS 20.0 or keep LOS 18.1 with OTA update.

@ThE_MarD and @CrisBalGreece, do you plan to continue to support this device ? With wich rom and how many time ?
 

ThE_MarD

Recognized Developer
Dec 10, 2014
3,406
3,875
Grande Prairie
LeEco Le Max 2
Moto X4
Heyyo @jean_htc , tbh I'm unsure how long LineageOS plans to keep official 18.1 builds going... But I was thinking of doing unofficial monthly builds for security updates at least or something worst case scenario if they do discontinue official ones.

I've made progress on AICP s12.1 though, but I want to fix FBE on it before I decide to actually do official builds there (well, if I can anyways) as it would be a heck of a lot safer than zero encryption at all which I do not like. All my other devices run FBE perfectly, so we shall see if LeEco can join them too (y)
 

Rolophi

Senior Member
Apr 3, 2018
63
4
Hello friends.

I'm back with my x821 SELinux error.

Again same way :
- Qfil, Flash one differents Official ROMs.
- Full wipe (I can't wipe Vendor partition).
- Lineage OS official Recovery or TWRP last official...

I always back in new installation with LineageOS : Selinux error.

How can I check Selinux statut with official ROM ?

I had try Magisk and TREBLE for LeMax2 (@ThE_MarD project if I remember).

How do full partitions flash ?
Boot.img flash ?
Partition.img flash ?
...

About all help !

This bug remove me lot of App for Google Play 🙄

Thx !
 

ThE_MarD

Recognized Developer
Dec 10, 2014
3,406
3,875
Grande Prairie
LeEco Le Max 2
Moto X4
Heyyo @Rolophi , tbh I've seen this too on Asus Zenfone 5z and I haven't seen a proper fix. If QFIL won't fix the partitions? Then I'm unsure what will. It's essentially a problem with the data partition not being able to properly setup selinux attributes.

You won't need to do the manual project treble stuff as LineageOS has an automatic treble setup. That isn't the issue anyways, it is the data partition.

LineageOS official is selinux enforcing. I haven't released an selinux permissive test build on x2 in years...

LineageOS does full image flashes for system and vendor partitions and that isn't the problem either. The problem isn't LineageOS, it's something with your device.

What was the last mod you performed on your x821 when selinux issues started?
 
  • Like
Reactions: Rolophi

ThE_MarD

Recognized Developer
Dec 10, 2014
3,406
3,875
Grande Prairie
LeEco Le Max 2
Moto X4
So an update... AICP definitely merged something and they broke Bluetooth for me as it keeps crashing so boot fails... I've been trying to figure out what the heck this is for the last month and so I think I'll just give up on their s12.1 branch and go to t13.0 and see if I can get that working as I'm hoping they don't have whatever gross Bluetooth haxxs on there... worst case Ontario? I just jump to a different ROM because this is getting frustrating...
 

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    So an update... AICP definitely merged something and they broke Bluetooth for me as it keeps crashing so boot fails... I've been trying to figure out what the heck this is for the last month and so I think I'll just give up on their s12.1 branch and go to t13.0 and see if I can get that working as I'm hoping they don't have whatever gross Bluetooth haxxs on there... worst case Ontario? I just jump to a different ROM because this is getting frustrating...
    1
    Heyyo @Rolophi , tbh I've seen this too on Asus Zenfone 5z and I haven't seen a proper fix. If QFIL won't fix the partitions? Then I'm unsure what will. It's essentially a problem with the data partition not being able to properly setup selinux attributes.

    You won't need to do the manual project treble stuff as LineageOS has an automatic treble setup. That isn't the issue anyways, it is the data partition.

    LineageOS official is selinux enforcing. I haven't released an selinux permissive test build on x2 in years...

    LineageOS does full image flashes for system and vendor partitions and that isn't the problem either. The problem isn't LineageOS, it's something with your device.

    What was the last mod you performed on your x821 when selinux issues started?
  • 11
    2okPze5.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






    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.7.0_9-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: If this is a fresh install? Do a format data (wipe > "format data" button > type "yes"). If this is an upgrade from the previous version then you can skip this step

    - Flash firmware and LineageOS zips.

    - Optional: Install the Google Apps addon package. (see Downloads)

    - Reboot to system.



    HOW TO UPGRADE LINEAGEOS FROM 17.1

    Please follow the official LineageOS Wiki instructions for our device. You can use either TWRP or Lineage Recovery.




    HOW TO UPDATE LINEAGEOS WITH LINEAGE RECOVERY

    Please follow the official LineageOS Wiki instructions for our device




    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/p17327


    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 18.1:
    https://osdn.net/projects/lineageos-for-x2/releases/p17328




    GOOGLE APPS (GAPPS) DOWNLOADS

    - MindTheGapps




    GOOGLE CAMERA (GCAM) DOWNLOADS

    Google Camera:


    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










    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 18.1 (Android 11) for LeEco Le Max 2, ROM for the LeEco Le Max 2



    Contributors

    ThE_MarD, mosimchah, Lucchetto00, CrisBalGreece,Tortel1210,codeworkx,moto999999,1nfrag,shivatejapeddi,KuranKaname,GalaticStryder,andr68rus,visionary,zhaoguomanong

    Source Code: https://github.com/LineageOS



    ROM OS Version: Android 11

    ROM Kernel: Linux 3.x

    ROM Firmware Required: X820, X821, X822 and x829 466d. x910 13s.

    Based On: AOSP


    DONATIONS

    8
    Heyyo my fellow x2 users,

    So an update on LineageOS 19.0 for x2... Tbh? It's not looking good. Android 12 requires Extended Berkeley Packet Filter (eBPF) support and it seems only 4.9 kernel is officially supported, but it seems it can be backported to potentially work on 4.4 kernels. The major issue there? We are on 3.18 kernel, so we're too old to support it... So there's a chance that LineageOS 19.0 might never go official for us... Plus we have stability issues where our screen doesn't always wake from sleep. Oof.

    So our options are? Someone (or I somehow without any proper kernel knowledge) get 4.4 kernel stable for us and we add support for the eBPF backports.

    Or, we leave x2 on LineageOS 18.1 official until LineageOS team drops support for it and I focus my efforts for x2 on a different ROM that allows disabling eBPF on our very legacy 3.18 kernel and just live with the intermittent black screen issues when waking the device... One annoying issue with this besides that screen wake bug is we wouldn't have any internet usage tracking, so you wouldn't know how much data you have used...

    Or, once LOS 18.1 official builds end? I can continue doing unofficial builds. Maybe do them once a month when security updates are backported? There are some legacy LOS branches that still get Android Security Bulletins when LOS team members backport them.

    So it is unfortunate for us... LeEco msm8996 has had a great run, but future support was never guaranteed on legacy devices, but I still plan on maintaining x2 in one form or another.
    5
    Heyyo, the official build for today was broken and I had it taken down. Sorry for anyone affected. I'll try to do a local build and check if it's our sources or if it was a build server issue
    4
    Reserved

    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 lock screen 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 with 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?
      Zaza Remote (only with selinux enforcing) and Mi Remote work great. Smart Remote for Sharp TV also works. I'd recommend avoiding Peel Universal Smart Remote as it hijacks the lock screen 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 we are 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 are 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
    • WiFi randomly disconnects when the device is asleep
    • Lockscreen may sometimes fail to unlock after a reboot (seems to mainly happen when the battery is low and power-saving mode is on. The workaround is to reboot again and it will unlock. Please note, this is NOT related to the lock screen crash bug where it always fails to unlock due to the encryption footer getting corrupted by an old beta build of TWRP. The fix for that is still in the lock screen crash fix thread I have linked up in the FAQ.)
    • Updating using the built-in LineageOS updater with TWRP as your recovery when encrypted causes Google Play Services to crash repeatedly (Lineage Recovery works without issue or updating manually via TWRP is fine though)
    • 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.
    • 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 don't 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 the 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 unless you tap the power button twice to turn the display off and on again (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 the 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

    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.
    4
    So an update... AICP definitely merged something and they broke Bluetooth for me as it keeps crashing so boot fails... I've been trying to figure out what the heck this is for the last month and so I think I'll just give up on their s12.1 branch and go to t13.0 and see if I can get that working as I'm hoping they don't have whatever gross Bluetooth haxxs on there... worst case Ontario? I just jump to a different ROM because this is getting frustrating...