yashsingh1/xdaforums huggingface dataset:
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] Blackcrown:
Sound like your Phone's mic is damaged. I don't have those problems and I did not hear of other le2 users reporting those problems.

Gesendet von meinem SM-T813 mit Tapatalk
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] dodik4:
Hmm, but my voice recorder work perfectly
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] troytheboy:
Hi man,

Can you please guide me through the workaround to get playground running on leeco le 2?
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] elbiatcho1:
I use phones without arcore support howto:

https://www.celsoazevedo.com/files/android/google-camera/ar/
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] Calva1970:
Any experience yet?

May I use it with LeEco S3 X626?

Thx! :fingers-crossed:
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] kalehrl:
Unfortunately, no you can't.

Works fine on x52x.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] Calva1970:
Thx. Any chance of getting a working LineageOS 16 for X626?
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] bobdubrovsky:
No one
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] ThE_MarD:
Heyyo, so I'm the official maintainer for the LeEco Le Max 2 and I assist with the LeEco Le Pro3 on LineageOS. We were among the initial official LOS 16.0 devices... And tbh? I've been nagging [MENTION=7985055]Rk585[/MENTION] for many months to send me stuff so I can help him fix sepolicies so that selinux enforcing works lol... But I still haven't seen the files I need and he hasn't asked me for more advice for fixing that stuff...

So, someone here on the latest build of his? Please ensure root via adb is enabled in developer options and then via a PC execute these adb commands and then upload them in a zip on Google Drive or something and send me the download link. You can PM it or post here, I'll leave that up to you.

Oh, and please don't use Magisk or any mods... That stuff really breaks selinux policies and I won't be able to use the logs to help resolve the selinux denials.

adb root
adb pull /sys/fs/selinux/policy
adb logcat -b all -d > logcat.log
adb shell dmesg > dmesg.log
adb shell lshal --init-vintf > manifest.xml

Hopefully together we can resolve this. :good: I don't own an s2, so I can't get the files myself... But I can definitely help resolve selinux policies if someone sends me what I need.

It may take me a while to submit the stuff to rk585 later though, as my job and my family life takes up a lot of my spare time, so I really only get a few hours a night at most to work on Android things and that's on my days off... My work schedule is 15 days on, and six off... So please, no ETA for selinux enforcing (once someone sends me what I need), as this is definitely volunteer hobby work I do and I don't even post a donation link anywhere as I do this purely for fun. ;)
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] kalehrl:
Hi ThE_MarD

Thank you for your generous offer to help fix some stuff to make LineageOS 16.0 go official.

Here are the logs you requested.

I use Magisk but before running the commands, I uninstalled it and hopefully the logs are valid.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] troytheboy:
This worked great!! Thanks man!
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] ThE_MarD:
Heyyo [MENTION=8738749]kalehrl[/MENTION] , thanks for providing those logs! :)

Yours and CptFlush from Telegram are the ones I'm currently using to help correct the selinux policies.

Thanks to my friend Moshe for also checking what some of the policies look like throught audit2allow to also give me some basic guidance on where to start. :good:

So I've had a bit of downtime on location yesterday, so I decided to painfully go through this on my x2 hahaha since it takes a lot longer to accomplish things than the efficiency of a PC with a keyboard and mouse... But luckily? RK did resolve a bunch of stuff a few months ago... Albeit, he did stop short of completing it, even with my persistent offers of assistance and/or nagging. :silly:

So here's my start so far!

https://github.com/LeEcoDevs/android_device_leeco_s2/commits/lineage-16.0

There's a bunch of denials for CNE, DPM and QMI that s2 shouldn't be receiving... So I did ask [MENTION=7985055]Rk585[/MENTION] to Kang updates from Tissot blobs while referencing the stuff from the LOS kuntao device tree to ensure everything is properly updated too.

After that? We can try a new build and check how those changes improve/affect our sepolicies. ;)

PS, just to show the importance of selinux enforcing and why it is a good "last line of defense" for your device and privacy? I'd like to point out that in one of the logcats I've received? I've seen the Facebook app.

https://mobile.twitter.com/wongmjane/status/1167463054709334017

And as you can see, on s2 with selinux permissive? Facebook app is requesting sensitive information

https://del.dog/oqubesawaw.sh

So if security is a concern? Selinux enforcing is a must... Another time I've seen some bad selinux denials from apps? Tencent from my max_plus (LeEco Le Max Pro) tester... Crazy amount of denials on that.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] kalehrl:
No problem.

Please feel free to request logs whenever you need them. It's the least I can do. Yes, I use Facebook and we all know how much they value user privacy ?
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] ThE_MarD:
Heyyo, so a minor update to the stuff with Rk585 for s2... I did a bunch more cleaning up of the init scripts and the BoardConfig and also set up the proper pie mount points for dsp, firmware and persist with backwards compatibility to the previous mounpoints for s2 blobs that can't be updated. ANT+ HIDL is also giving errors, so switch it back to ANT+ VFS as msm8953 blobs we are using doesn't support ANT+ HIDL on pie anyways...

Oh, I've also implemented a few things like triple buffering support. Triple buffering is handy in the sense that if you're playing a 3D game and with VSYNC on and the framerate drops from 60fps? Instead of VSYNC going to 30fps, it'll add a step in between thanks to that extra framebuffer, so it'll drop and try and maintain something like 45fps VSYNC which will result in not so harsh of frametime variance changes when framerate takes a hit. (Frametime variance is the latency between rendered frames and the bigger the jump in that time measurement? The more noticeable the stuttering animations will be). So 3D games (especially emulators that have a harder time maintaining framerate stability) should feel a little more smooth when framerate drops hard.

https://github.com/LeEcoDevs/android_device_leeco_s2/commits/lineage-16.0

So that makes me happy to see s2's device tree a little cleaner too. With these changes? Tissot pie blobs that I requested [MENTION=7985055]Rk585[/MENTION] to Kang should work without a hitch. :good:

So meow? Rk585 just needs to do a build with my committed changes and confirm it boots, then next would be to Kang Tissot pie blobs and then if that boost? Do an selinux enforcing build and see what selinux denials we get and fix those up... Then? We are ready to submit for LineageOS 16.0 official. :)
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] kalehrl:
Thank you. I'm looking forward to testing the new build ? ?
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] falpome:
If possible please make it possible to use LetvRemoteControl on this rom in enforcing mode too.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] ThE_MarD:
Heyyo, well I asked [MENTION=7985055]Rk585[/MENTION] to release a new build and maybe his build PC is down or something as he hasn't made one in a few days... So here's a new one that I've decided to painfully VNC into my personal PC since I had a stand by day in the field using the location's slow wifi and my phone (took me three darn hours to rebase and fix up a few commits and rebase the vendor blobs properly... Ouch. Kept me awake during night shift I guess haha) but here is the new build!

lineage-16.0-20190910-UNOFFICIAL-s2 contains pretty much everything on that LeecoDevs link from the last page. So a bunch of good stuff that hopefully should make it easier for me to finish sepolicy.

For the sake of making the sepolicy as simple to work with as possible? I ask this to be a clean flash without gapps.

1. Make a TWRP backup of data, system, vendor

2. Wipe Dalvik, cache, system and data

3. Install only lineage-16.0-20190910-UNOFFICIAL-s2

4. Reboot to system

5. Enable developer options

6. Enable root for adb

7. Use a PC to run these commands...

adb root
adb pull /sys/fs/selinux/policy
adb logcat -b all -d > logcat.log
adb shell dmesg > dmesg.log
adb shell lshal --init-vintf > manifest.xml

8. Place those files in a zip and send it to me via pm or something

9. Once that's done? You can restore your TWRP backup and continue on.

The download link is here:

https://osdn.net/projects/lineageos-for-s2/

Hopefully most of the major issues are all solved so that we can test selinux enforcing next or be darn close to it. :good:

[MENTION=10114776]falpome[/MENTION] , sorry but I have zero interest in LeRemote. It data mines and sends data back to LeEco and I forget the name of the other Chinese company it sends data to, so it is not a safe app. If you wish to use it? Then you'll have to install a mod for it and selinux permissive since it isn't safe.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] kalehrl:
Hi [MENTION=6235294]ThE_MarD[/MENTION]

Please find the requested logs in the attachment.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] ThE_MarD:
Heyyo, thanks to kalehrl and CptFlush? Seems like we just needed a few last fixes for selinux enforcing. :)

So here's the moment of truth! an selinux enforcing build is going up on my OSDN page in about 30 minutes! lineage-16.0-20190912-UNOFFICIAL-s2! We should still follow the same path as before for installation just to ensure there isn't any leftover selinux denials that didn't pop up before.

For the sake of making the sepolicy as simple to work with as possible? I ask this to be a clean flash without gapps.

1. Make a TWRP backup of data, system, vendor

2. Wipe Dalvik, cache, system and data

3. Install only lineage-16.0-20190912-UNOFFICIAL-s2

4. Reboot to system

5. Enable developer options

6. Enable root for adb

7. Use a PC to run these commands...

adb root
adb pull /sys/fs/selinux/policy
adb logcat -b all -d > logcat.log
adb shell dmesg > dmesg.log
adb shell lshal --init-vintf > manifest.xml

8. Place those files in a zip and send it to me via pm or something

9. Once that's done? You can restore your TWRP backup and continue on.

The download link is here:

https://osdn.net/projects/lineageos-for-s2/
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] CptFlash:
[MENTION=560934]kae[/MENTION]hrl

Didn't faced your problem, are you sure you activated ADB root in developer options?
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] tImI breakdown:
I registered specifically to help as I can.

I did the logs according instructions without errors, but I do not see the file attachment button. Is it because I'm new or blind (links I can’t attach yet)?)
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] kalehrl:
I did exactly the same as with the previous 2 builds. I even fished it the second time but no change. The only difference is I updated to the latest adb tools from September. Maybe that's the problem.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] CptFlash:
Weird. I updated adb to 29.0.3 (was using 29.0.2 before) and still can pull/get all files. Seems not to depend on abd version though... Maybe someone else could check?

Anyway, as long as we get at least one set of files for ThE_MarD it should be fine :)
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] kalehrl:
Yeah. Weird. I also tried running adb shell followed by su but got an error as well. How exactly is root activated in developer options? I activated android debugging and debug over network. It was enough for the previous builds.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] CptFlash:
Developer options first section (one of the options before the debugging section) under 'Root access' select ADB only. On default it should be set to disabled.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] kalehrl:
Well, I don't have that option.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] ThE_MarD:
Heyyo, so here's another new build. This time it will be selinux permissive again as there was a few more denials still left over compared to what I thought there would be lol... So build lineageos-for-s2 lineage-16.0-20190913-UNOFFICIAL-s2 has a bunch for policy fixes and also 32bit libtime_genoff.so as rk noted it is required for the camera.

For the sake of making the sepolicy as simple to work with as possible? I ask this to be a clean flash without gapps.

1. Make a TWRP backup of data, system, vendor

2. Wipe Dalvik, cache, system and data

3. Install only lineage-16.0-20190913-UNOFFICIAL-s2

4. Reboot to system

5. Enable developer options

6. Enable root for adb

7. Use a PC to run these commands...

adb root
adb pull /sys/fs/selinux/policy
adb logcat -b all -d > logcat.log
adb shell dmesg > dmesg.log
adb shell lshal --init-vintf > manifest.xml

8. Place those files in a zip and send it to me via pm or something

9. Once that's done? You can restore your TWRP backup and continue on.

The download link is here:

https://osdn.net/projects/lineageos-for-s2/
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] kalehrl:
Hi [MENTION=6235294]ThE_MarD[/MENTION]

Please find the requested logs in the attachment.

You wrote about fixing the camera but in the latest build it is still not available.

Is this something to be worried about:

'closed /dev/adsprpc-smd c 222 0'

I see a lot of these in the log.

I found the root option in developer options :D

It isn't available in my everyday LineageOS 16.0 ROM probably because of Magisk but it is in the one without it.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] ThE_MarD:
Heyyo [MENTION=8738749]kalehrl[/MENTION] , yeah I meant to make that an selinux permissive build as it had a lot more denials still left over than I thought... I guess that's the problem with trying to do QCOM selinux legacy policy instead of current when using a lot of pie blobs...

Anyways, lineage-16.0-20190916-UNOFFICIAL-s2 will be going up on OSDN in about 30 minutes from meow with a few more selinux policy fixes and selinux permissive. Same logcat requests as before and same link as before. ;)
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] kalehrl:
Hi [MENTION=6235294]ThE_MarD[/MENTION]

The camera is available now :D

Please find the files in the attachment.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] ThE_MarD:
Heyyo, ok! Hopefully we are getting close again because that was a silly amount of denials we have had to fix so far lol...

Here's what it looks like meow hahaha

https://github.com/LeEcoDevs/android_device_leeco_s2/commits/lineage-16.0

lineage-16.0-20190917-UNOFFICIAL-s2 is going up in about 30 minutes from meow. :)

For the sake of making the sepolicy as simple to work with as possible? I ask this to be a clean flash without gapps.

1. Make a TWRP backup of data, system, vendor

2. Wipe Dalvik, cache, system and data

3. Install only lineage-16.0-20190912-UNOFFICIAL-s2

4. Reboot to system

5. Enable developer options

6. Enable root for adb

7. Use a PC to run these commands...

adb root
adb pull /sys/fs/selinux/policy
adb logcat -b all -d > logcat.log
adb shell dmesg > dmesg.log
adb shell lshal --init-vintf > manifest.xml

8. Place those files in a zip and send it to me via pm or something

9. Once that's done? You can restore your TWRP backup and continue on.

The download link is here:

https://osdn.net/projects/lineageos-for-s2/
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] tImI breakdown:
Download speed less than 100 KB. It will not work to download until the end of the work :(
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] kalehrl:
Hi [MENTION=6235294]ThE_MarD[/MENTION]

Logs as usual :D
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] ThE_MarD:
Heyyo, hmm well that is odd... that last build for some reason had the same denials I just addressed. I guess I need to do a clean build... so here's a redux of it I guess?

there's a new lineage-16.0-20190917-UNOFFICIAL-s2 going up. ;)

download link will be here in about 30 minutes:

https://osdn.net/projects/lineageos-for-s2/releases/71617

Just a heads up.... my days off end today and then I'm back out of town for work for 15 days... so... not sure if within those 15 days I'll be able to do much progress... hence these last six days we have made a lot. Albeit? We are definitely near the finish line! :good:
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] kalehrl:
I'm pretty sure I installed the latest build yesterday. I also often check the github page and I can see the commit number increasing but can't pinpoint the latest commits because they seem to be committed all at once. And when I click on a specific commit from say, 17 September, it says committed 6 days ago.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] kalehrl:
Hi [MENTION=6235294]ThE_MarD[/MENTION]

Logs in the attachment.

I don't think the number of 'denied' entries has been reduced. :(
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] ThE_MarD:
Heyyo, wow! Thanks to cptflush, kalehrl and tImI breakdown we are super crazy close to completion on sepolicy required for selinux enforcing :good:

The last build had only two things to fix (there was some logd stuff but tbh I'm not concerned with that as no one really uses it lol)... So maybe this will be the last confirmation permissive build before we go enforcing for good! Since it was a quick fix? I just did it remotely to my PC via VNC and whipped up a build.

lineage-16.0-20190918-UNOFFICIAL-s2 will be up in about 30 minutes.

https://osdn.net/projects/lineageos-for-s2/releases/71621
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] kalehrl:
Hi [MENTION=6235294]ThE_MarD[/MENTION]

As usual :)
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] ThE_MarD:
Heyyo, moment of truth! Looks like no new denials! So this should be the last selinux enforcing build I'll need tested! :good:

lineage-16.0-20190919-UNOFFICIAL-s2 is selinux enforcing and everything should work! Please let me know if something is broken and submit a logcat with the same commands as before.

Once again, thanks to cptflush, kalehrl and tImI breakdown for submitting logcat to help me fix all these selinux denials. This wouldn't have been possible without you guys. :)

Upload should be done in about 30 minutes.

https://osdn.net/projects/lineageos-for-s2/releases/71622
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] tImI breakdown:
Thank you very much for your efforts for our device :good::good:. Logs sent to personal. The flashlight did not work in previous versions, now it works. If I notice anything else - will write.

p. s.:

1. After the first inclusion, the first setup and sending logs, Wi-Fi did not turn on - the reboot helped.

2. Now there is only one notification from Trust - "This assembly is signed with public keys".

3. Google Camera (GCam-6.2.030-Le2-V3.2-build75.apk) does not work.

4. After trying to install OpenGApps (all wipes, install OpenGApps.zip), the device does not reach the Lineage boot screen saver (freezes).
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] kalehrl:
Yes, a massive thank you Mard for all the work you've done for our x52x model. I dirty flashed it and, as noted before, the le Google camera mod doesn't work. Also, I'm not able to set up the fingerprint authentication but maybe that's because of the dirty flash.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] kalehrl:
I dirty flashed the latest version and here are logcat and policy files.

Google camera gives this error:

--------- beginning of crash
09-19 16:54:31.764 4523 4523 F libc : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 4523 (id.GoogleCamera), pid 4523 (id.GoogleCamera)
09-19 16:54:31.805 4609 4609 D ActivityThread: Loading provider com.google.android.gm.sapi: com.google.android.gm.sapi.SapiUiProvider
09-19 16:54:31.923 4716 4716 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-19 16:54:31.924 4716 4716 F DEBUG : LineageOS Version: '16.0-20190919-UNOFFICIAL-s2'
09-19 16:54:31.924 4716 4716 F DEBUG : Build fingerprint: 'Letv/Le2_WW/le_s2_ww:6.0.1/IIXOSOP5801910121S/44:user/release-keys'
09-19 16:54:31.924 4716 4716 F DEBUG : Revision: '0'
09-19 16:54:31.924 4716 4716 F DEBUG : ABI: 'arm64'
09-19 16:54:31.924 4716 4716 F DEBUG : pid: 4523, tid: 4523, name: id.GoogleCamera >>> com.google.android.GoogleCamera <<<
09-19 16:54:31.924 4716 4716 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
09-19 16:54:31.924 4716 4716 F DEBUG : Abort message: 'thread.cc:2148] No pending exception expected: java.lang.UnsatisfiedLinkError: dlopen failed: couldn't map "/data/data/com.google.android.GoogleCamera/cache/libgcam_jni.so" segment 1: Permission denied'

I installed the penultimate build where selinux wasn't enforcing and the Google camera works fine. So the problem must be connected with selinux enforcing in the last build.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] ThE_MarD:
Heyyo, lol dang ok I guess there are newer denials to still fix hahaha so close :silly:

I am on my 2nd of 15 dayshifts in the field... Unfortunately, these denials will take time to fix and I seem to not have a reliable enough connection to VNC into my PC where I'm out of town working... So dunno when I'll be able to VNC and try and resolve them for another build... But I shall eventually get to them! ;)
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] ThE_MarD:
Heyyo, so I've been puttering away on my phone since wifi at camp seems to be working today which is nice heh. :)

lineage-16.0-20190922-UNOFFICIAL-s2 will be going up in about 30 minutes. This should solve all of our cpuset denials hopefully.

It is still a permissive build, so please test everything (WiFi toggle, gcam mods, etc) and then submit logcat and we shall see if there's any new denials we need to resolve before another enforcing build. ;)

1. Make a TWRP backup of data, system, vendor

2. Wipe Dalvik, cache, system and data

3. Install only lineage-16.0-20190922-UNOFFICIAL-s2

4. Reboot to system

5. Enable developer options

6. Enable root for adb

7. Use a PC to run these commands...

adb root
adb pull /sys/fs/selinux/policy
adb logcat -b all -d > logcat.log
adb shell dmesg > dmesg.log
adb shell lshal --init-vintf > manifest.xml

8. Place those files in a zip and send it to me via pm or something

9. Once that's done? You can restore your TWRP backup and continue on.

The download link is here:

https://osdn.net/projects/lineageos-for-s2/releases/71639
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] kalehrl:
Hi [MENTION=6235294]ThE_MarD[/MENTION]

Logs in the attachment.

I performed a clean flash.

I also installed the gapps pico and the phone booted just fine.

I read someone reported the phone not booting with gapps so I tested it.

Google camera Le port works fine.

Fingerprint reader works fine.

No problems with wi-fi either.

However, I wasn't able to use screencast to my Smart TV.

It just wouldn't find my TV.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] ThE_MarD:
Heyyo, ok looks like WiFi wpa socket was causing some issues and the qdisplay service too which is supposed to be a vndservice on msm8976... But post processing daemon wasn't converted to HAL class and graphics composer was passthrough... So I've corrected those things to try and fix it.

Please check that LiveDisplay and camera works properly.

I saw a few fingerprint related denials to fix, so I've also fixed those, thanks [MENTION=8738749]kalehrl[/MENTION] . :)

New build is going up. lineage-16.0-20190923-UNOFFICIAL-s2 is permissive just to see if qdisplay service is now properly a vndservice.

https://osdn.net/projects/lineageos-for-s2/releases/71647