yashsingh1/xdaforums huggingface dataset:
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo [MENTION=9228262]MikeF12[/MENTION] , for IR Remote? Please search this thread for the LeRemote mod. There isn't official IR remote support for LineageOS right now since there isn't a 100% working open source solution that doesn't require LeRemote and the UEI Quickset SDK which "phones home" with who knows what information... So it isn't something we can officially support.

For PokemonGo? That would require Magisk and Magisk Hide and potentially other tweaks. I'd recommend checking the PokemonGo subreddit as there is guides on there I think?

For change log? Please go to the official LineageOS downloads for X2 and click the link for "recent changes"

https://download.lineageos.org/x2

There hasn't been a lot of changes for X2 on 15.1 as I never received any feedback on the last unofficial build... So for now I'm working with ph03n!x and kridster for their capacitive buttons issue
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] kridster:
Also no luck for me. /proc/touchpanel/capacitive_keys_enable is there but 0.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] dRumMzZ:
Hey [MENTION=6235294]ThE_MarD[/MENTION] !

Sorry to bring this back but I am a little confused and wanted some more clarification on it.

I have the same issue (with a banking app) but I also have an issue with an enterprise app (saying "device is rooted" when it is not).

From what I read, there is a possibility to bypass this with some changes on the kernel. But when you say "it is against the LineageOS device compatibility charter to tamper with SafetyNet or checks like the kernel greenlight hax", does that mean there is no possibility to use a modified kernel to bypass this (because of the guidelines) ?

If so, isn't there any other way I can overcome this issue (without rooting / magisk) ?

[MENTION=9228262]MikeF12[/MENTION] , are you rooted / using Magisk? I do not have root nor am I using Magisk and I can play the game no problem (as of yesterday, at least).
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] marvelljones:
Any changes to the kernel for these particular issues will have to be done by you, not the developer, or this will cease being an official LineageOS build. It's possible to do using other more time consuming methods, but Magisk offers the path of least resistance to accomplish what you're asking for.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ph03n!x:
Just tried with setenforce 0, results are the same.. The hardware keys get disabled when I echo 1 to capacitive keys enable, but no visual keys. And no settings to enable it either...

I had tried the latest unofficial build and didn't have any issues. The ROM was as smooth as it has been in recent builds, battery life was about the same too. I didn't do a clean install to check of either of these have improved. For my setup, even if it's same implies it's better! Please let me know of there is anything you would like me to check and report though, thanks!
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Hmm, if echoing it to 1 works? That is a good sign. It could be very well we just need to fix device tree stuff! :good:

Tbh? Gonna maybe release a build of LineageOS 16.0 test that includes this plus some device tree fixes we need and if they work? I'll also cherry-pick it to 15.1 as I know at least two users with the same issue that use my test builds of LineageOS 16.0
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] cisi:
Hello all. Thanx to Developer for this great rom.

No problem except wifi. It seems, compareing to other device simultaneously, to be slower. It seems that if i switch off and then on wifi, it become faster. After few slower again. Thanx for any advice.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo [MENTION=3339433]ph03n!x[/MENTION] and [MENTION=7512086]marvelljones[/MENTION] can you please post the result of this?

ls -la /proc/touchpanel/capacitive_keys_enable
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] kridster:
le_x2:/ # ls -la /proc/touchpanel/capacitive_keys_enable

lrwxrwxrwx 1 root root 52 2019-01-10 21:55 /proc/touchpanel/capacitive_keys_enable -> /sys/devices/soc/75ba000.i2c/i2c-12/12-004a/keys_off
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo Kirdster! Thanks man! It is indeed Atmel MXT letv that some users have as Ahamad Faraz has also confirmed to me earlier for that exact same node. I'll finish the fixes on 16.0 and then I'll cherry-pick them to 15.1 and release a test build :good:
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] okarnie:
Problem with banking and weather apps

Since an update for camera function I have not been able to make mobile check deposits from my LeEco Max 2 x820 for Achieva Credit Union App and the WeatherBug app is not functioning correctly. I have the latest apps from the app store. Both these app work with my wife's Samsung Galaxy S8.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo, new test build going up! lineage-15.1-20190112-UNOFFICIAL-x2 contains all the atmel mxt letv fixes from LineageOS 16.0 that work with selinux enforcing. :)
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ph03n!x:
[MENTION=6235294]ThE_MarD[/MENTION] - thanks for doing this! But I couldn't find the test build in Sourceforge or GDrive, is it uploaded already?
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] kridster:
Yes, for me it was available on Google Drive and it works as well! Great!

Now, I have a big issue with the camera. It doesn't focus at all. The camera fix under settings doesn't seem to change anything. Sometimes I hear a weird noise coming from the camera, but that's it. I haven't had the chance to test an original build to see if the error occurs there as well.

I've read the second post explaining the issue and possible solutions. Some statements in this thread mention a hardware related issue. How can I find out the actual camera module my phone has? Would that be a replaceable at all?

Another issue I have: During a call the screen stays on all the time. Normally I would hold the phone to my ear and the screen turns off. But the sensor doesn't seem to work. Even putting my thumb on the top over the screen doesn't work.

Thanks and keep up the good work :o:svetius:
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo [MENTION=4519977]kridster[/MENTION] thanks for verification! The atmel mxt letv changes are merged to official LineageOS 15.1 and also LineageOS 16.0 (whenever that goes official I guess heh, for meow? at least it's on my unofficial test builds). :good:

As for your focus issue? Yikes! That sounds a lot like a hardware issue at this point... You could try backing up your device via TWRP and then testing with EUI ROM just to see if it focuses there... if not? your camera's actuator might be defective. :(

I have heard of users using a coin magnet placed underneath the camera's flash as a method to haxx the camera actuator, albeit you'll probably loose OIS as it uses magnets too...
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] okarnie:
Problem with banking and weather apps

Is this in response to banking apps problem? I do not understand your tech speak. Is the daily updates addressing the issues listed on this forum?
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] MikeF12:
Hey. How did u put remote to work? Thanks :)
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo [MENTION=3339433]ph03n!x[/MENTION] , please do not quote and mention the same post of mine, otherwise as you will see that you get a notification for both a mention and a quote for that same post. :p

Unofficial Google Drive link is in my first post as always.

It has been confirmed as working on both LineageOS 16.0 and 15.1 so those changes are merged. :)
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo okarnie, for banking apps? That depends on the bank... some banks check for unlocked bootloader, some check for SafetyNet, and some don't care about any of that stuff. For example, In Canada I use RBC, and I can even register my fringerprint to unlock my RBC app even with my bootloader unlocked, selinux permissive and SafetyNet failing.

You will probably need to install Magisk and use Magisk Hide on your banking app to try and spoof it into thinking your device does not run a custom ROM.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] fernseher:
Has anybody installed viper4android on lineage? I couldn't get it to work. Driver will not install. My device is rooted with lineage root.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] origin_de:
Update: with the latest 15.1-20190112 this problem is gone.

Means I now can just plug the power supply while running the phone and it charges.

It could likely be that this has been fixed in some earlier versions already, but while I was reading changelogs without finding any documentation for changes in the past, I did not change my behavior of rebooting to charge.

Big thank you to all the devs working the x820 and especially TheMarD for his continuous hard work.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] Sharpi12:
I've installed Viper4Android with Magisk and it works fine.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] fernseher:
Thanks - anybody with Lineage root?
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] marvelljones:
Did you get an error message? If so, what is it?

The last time I attempted installing an audio mod "manually" it was a pain. There's quite a few things that could cause it not to work. Missing dependencies, not having an "adequate" version of BusyBox, or some other weird reason. You might even have to uninstall AudioFX first to get it to work.

Disclaimer: I haven't used LineageSU or whatever it's called for quite a while. I need Magisk's hiding function when I'm rooted, so I use it for everything else too.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo, **removed... I messed up the selinux policies sorry about that**

will contain LeEco's offline charging animation with the appropriate selinux enforcing policies! Please test it and let me know if it does work properly for you (including LED changes colors from red to yellow when going from critical battery level to middle, plus of course the animation and percentages change too).

Offline charging is compatible to Quick Charging as well, so if you're so inclined? You can even test it super fast.

Also, I did a fresh repo sync with LOS 15.1 sources, so it should contain all recent merges :good:
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] kanschelskes:
incorrect link

no file under that link bro :/
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ph03n!x:
Hehe.. Roger that mate! I was looking for the second post you'd quoted over a beer until I realized what you said!

I must have missed the unofficial, but I updated to the latest official and sure enough, the virtual keys and related settings are back! Thanks a bunch! N

Also have your improvements from the earlier unofficial builds been pulled in to the official?
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] monleylord:
Sorry but I can see only the 01.12.2019 unofficial one
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo, sorry [MENTION=6166344]kanschelskes[/MENTION] and [MENTION=6950590]monleylord[/MENTION] as mentioned in my quoted posts that I took the build down since 15.1 has a bunch of different selinux denials, plus I did mess it up a bit compared to 16.0... so I need to handle it differently for 15.1 I guess... I'll try and figure out a method that will be 15.1 compatible.

[MENTION=3339433]ph03n!x[/MENTION] , right meow official 15.1 does not contain all the other changes I've done to unofficial. I might try to rebase it on the changes of 16.0 later again since a few things have changed anyways. I'll make a new 15.1 unofficial build that better mirrors the changes on 16.0 at a later date. :good:
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] kridster:
I was trying to test an EUI based ROM and made a backup via TWRP. Unfortunately the EUI based ROM didn't boot properly so I decided to go back to my backup. I wiped everything except the internal storage, flashed a firmware and the same build I was on before and then restored, just to make sure.

Now the phone boots and my settings etc were restored (same background image, some app activity visible) . I'm asked for my PIN, but it is recognized as wrong. WTF???

The PIN is definitely right because it is only 4 digits long and I also use it on another device...

Restoring to an older backup gives me the same issue. What is going on?
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo, I'm unsure why, but TWRP backups fail to recover the PIN... Please follow this guide

https://www.howtogeek.com/240657/how-to-fix-pin-errors-after-restoring-from-twrp-android-backups/
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] kridster:
Yesss! Thanks. That worked. Although I didn't have those gatekeeper files, deleting the lockscreen files was sufficient.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] lil.masoud:
Hey guys,I've flash the ROM and its okay absolutely,but FP scanner is kinda slow,and one thing I wanna know ,this phone not support OTG,right?
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] surfersea:
wrong, it does.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo, so I was able to replicate the pink tint Gcam mod issue...

I originally had "MGC_6.1.021_BSG_Arnova-based_v.1.3d_TlnNeun.apk" installed with Manav's config loaded and it worked fine...

Then? I installed "MGC_6.1.021_MI8_V2b_plus3.apk" as recommended by CBG and it worked ok, but after taking night sight photos and switching back to regular camera? Tap to focus would sometimes mess up and then fail to take a photo...

So then I switched back to "MGC_6.1.021_BSG_Arnova-based_v.1.3d_TlnNeun.apk" and... Pink tint occured. With or without Manav's config loaded... Same if I even cleared data and cache on the app.

So then I switched to "MGC_6.1.021_BSG_Arnova-based_v.1.3d_TlnNeun_2.apk" and no more pink tint.

The change log for Arnova Gcam mod notes he changed a file name due to a conflict... So that could be why toylan009 messes up if you switch Gcam mods? Maybe toylan009 needs the same fix?

https://www.celsoazevedo.com/files/android/google-camera/f/changelog324/

Either way, I recommend either not switching from toylan009 Gcam mod, or follow the steps I took if you have pink tint issues, or just switch back to Gcam 5 since they work perfectly.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] mjoach:
I'll throw in that there are two seemingly unrelated pink tint issues and that creates a lot of confusion. The one you mention is when people get literally pink, unusable photos with GCam 6 and is a matter of GCam settings/version. The whole picture is pink in result. The second pink tint issue is much more subtle visually and relates to camera blobs being used. Users have normal photos most of the time, but in sunlight, the white balance is off and the image has a slight pink tint. The result does not depend on the camera app. However, the level of pink tint in the second issue is nowhere close to the ruined pics of misconfigured GCam6 from the first issue.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] lil.masoud:
But mine didnt recognize otg when i connect ,do i have to activate it ? Or change the otg cable?
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] surfersea:
odd...

I just plugged in the otg cable and used it, no activation needed or settings of any kind. Definitely could it be the cable imho
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] lil.masoud:
Hey guys,I'm on this ROM and for some reasons wanna back to my stock ROM,how do I do that?I've download the stock zip file but in twrp show error 7,,pls help
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] peace30:
Use proper twrp for stock rom dear. You have to use 3.2.1-0 version of twrp. After rebooting to this twrp you have to factory reset your device. You will loose everything even internal storage too. So please take a backup before.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] monleylord:
Blackscreen kernel 6.3 works flawlessly with Los 15.1 and 16
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo, new unofficial test build going up!

lineage-15.1-20190131-UNOFFICIAL-x2 has a lot of miscellaneous of device and vendor blob clean-up of depreciated stuff, reorganized stuff and proper camera vendor hex edits.

There's a also a bunch of power tweaks that we have on LinageOS 16.0, so maybe it'll help on 15.1 too? I also upgraded the audio blobs from Gemini (so we can drop mm audio on LOS 15.1 too).

Anywho, please test everything you can, especially CDLA and camera. Please also let me know if performance is still ok and maybe even screen on time might be a little better. :)

Things to still try and do:

port the LeEco offline charging animation, and make it work with selinux enforcing

port the binderized open source ConsumerIR HAL and bridge, and make it work with selinux enforcing

Port some of the minor kernel updates

Update kernel CAF tag

I'll try in the future to keep LineageOS 15.1 more up to date with the LineageOS 16.0 changes that can be back-ported. This should really catch up 15.1 with a lot of the overhauling has done on 16.0. :good:

If you want to check commit history? It's everything on January 29, 2019 onwards

msm8996-common device tree:

https://github.com/lineage-x2-devs/android_device_leeco_msm8996-common/commits/lineage-15.1

x2 device tree:

https://github.com/lineage-x2-devs/android_device_leeco_x2/commits/lineage-15.1

kernel:

https://github.com/lineage-x2-devs/android_kernel_leeco_msm8996/commits/lineage-15.1

vendor blobs:

https://github.com/lineage-x2-devs/proprietary_vendor_leeco/commits/lineage-15.1

UPDATE:

Hmm... I figured out a way to do the offline charger and have it pass selinux enforcing and have no neverallow denials... And it still doesn't want to work... I'm super confused.... Even in selinux permissive it shows the charger service starts but it doesn't render...

I'll try to redo the LeEco offline charger commit from scratch, just in case I did break it... But this isn't a good sign... If I can't fix it on my next try? It'll probably end up staying a 16.0 exclusive feature I guess... :(
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ph03n!x:
Thanks a ton! I'm running it for about 5 hours now. Camera works, haven't gotten to check CDLA. I'll let it run for a couple of days and talk about battery life, n CDLA of course.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] origin_de:
Heyo ThE_MarD, thanks a lot for the build. Currently w/ official I'm close to 4 hours SOT. Let's see what's happening with this new build.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] shhnedo:
[MENTION=6235294]ThE_MarD[/MENTION] Currently using the latest official 15.1. Amazingly stable rom, awesome battery life, very reliable. I've got only one problem. I prefer installing opengapps stock package as it removes the AOSP versions of the apps. The problem is that flashing stock opengapps package seems to break the camera. No matter what camera app I install - "camera app name" has stopped working.

Is there a way to have stock opengapps package work and still be able to install other camera apps without breaking camera functionality? Packages like pico/nano/micro work fine, but they don't remove the old aosp apps.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] origin_de:
Heyo,

I'm on latest unofficial right now. Even before I figured since a couple of official updates that SOT has come down from 4:30 to ~4:00. This has not changed with the unofficial.

In general the interesting observation is that once fully charged I loose about 10% within 20min. Whereas when I'm reaching 3% it easily lasts for 45min although the display says in 9min it will be empty.

Any idea why that is?
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] marvelljones:
Unless someone has a better idea, I think your simplest fix is to use OpenGapps aroma, choose the apps that match stock EXCEPT for the camera. Install the Google Camera of your choice alongside the LOS stock camera. If you use the OpenGapps option: Google Camera (replaces stock/AOSP Camera) it will break camera functionality.

In my experience there's not a simpler way to achieve what you're trying to do.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] LR-user:
https://xdaforums.com/showpost.php?p=78810934&postcount=321

Versuch macht kluch . . . :laugh:
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo, glad to hear you like LineageOS 15.1 for x2. :)

The issue you are facing is OpenGapps stock installs some XML files that are incompatible to our camera. Please see "App crashing just after being opened" fix 5 and mount system and vendor in twrp and delete those files:

https://www.celsoazevedo.com/files/android/google-camera/troubleshooting/#help4

Hmm, so no improvement to battery life? Well, I have no idea then what we can do to improve it...
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] origin_de:
Thx - did calibration already - actually read a lot about this topic and there a even more myths around this subject.

The only calibration approach that seems to have common sense is the one of fully discharging the phone etc.

The approach of deleting battery stats file is a myth.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] shhnedo:
I'll be trying this stuff out on Thursday when I get back home. The connection i got here in my dorm can drive one out of his mind in no time. Thanks for the suggestions.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] LR-user:
So just try . . .

and read some more:

https://tipps.computerbild.de/mobil/android/android-akku-kalibrieren-so-schnell-gehts-493387.html

https://www.giga.de/extra/android-spezials/tipps/android-akku-kalibrieren-so-geht-s/

https://www.talu.de/android-akku-kalibrieren/

http://www.smartphone-tipp.de/technik/akku-kalibrieren/
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] v1r00z1986:
storage

Hello guys Im new here, so sorry if I will do something wrong.

I was fighting with my le max 2 for a week. I had many roms, indian, chinese, remix resurection, bricked my device few times etc ;)

Now I have lineage 15.1 but I dont know what firmware I have. I already installed all apps, deleted this stupid aprill fools joke, I fixed focus problem, and made many changes in setup so I really dont want to flash this rom again.

My problem is that I have 6/64GB version but I only have 6GB free of 9,71GB available space :/ Please help.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo, can you please get me a logcat? I don't own a Bluetooth headset but my Bluetooth speaker with WiFi works fine.

Was any settings modified? Which Bluetooth audio codec are you testing with?

Yes I bumped it up in my test build. I can upload it later.

I'd recommend backing up everything important to a PC and then going into TWRP and go wipe > format data > type yes > ok.

That will free up a lot of space. EUI ROM has quite a bit of bloatware that gobbles up the data partition. After format data you will have the full data partition. :)
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] v1r00z1986:
Thanks, it helps!! :D

I only had to rearange my apps and once again fix april fools, but now I have 50GB space ;) Thanks again!
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] Rolophi:
Thank you. Not very important. Dont do it just for me (upload), I will wait next update.

Very good work without any BT or crash...

Very very very nice ROM with new update ?
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] kszthly_f:
After i flash the focus fix kernel, my all data is encrypted. I need a password. :(
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] kanagawaben:
I have had three or four random reboots today. Doesn't seem to be any particular behaviour that triggers them. Is it just me? If so I will try a fresh clean install tomorrow and see if that fixes it.