yashsingh1/xdaforums huggingface dataset:
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] ThE_MarD:
Heyyo [MENTION=8738749]kalehrl[/MENTION], thanks man. I'll push them to LOS gerrit for meow for review. :good:

[MENTION=10413955]Gytrrfy[/MENTION], you shouldn't need the migration script anymore tbh but if you want to play it safe you can use it to upgrade from unofficial to official builds.

[MENTION=6280455]MustangBR[/MENTION], you can give it a try but there's a chance it won't work or could cause serious issues like losing your IMEI's... so before even trying anything? Please make sure you do a QCN backup (there's guides on Google on how to do that) and also back up your firmware via TWRP and save those off of your phone on a PC or USB drive or something before attempting to unlock bands.

For example, I have an x829 (North American variant of the LeEco Le Max 2) that doesn't have LTE Band 20 like other x2's... I cannot unlock it. It is hardware locked since smartphones sold in North America cannot use that band as it is reserved for GPS systems or something like that.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] Spunkination:
Can you kindly share the link?

Thanks
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] qra69:
https://mirrorbits.lineageos.org/full/s2/20191227/lineage-16.0-20191227-nightly-s2-signed.zip
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] adisa:
It's better to do a wipe when switching across versions.

TB has been fully compatible with 9.0 for some time now so you can safely get your apps and settings backup restored after completing the upgrade.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] Spunkination:
Thanks
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] Lineague:
Can i dirty flash LOS 16 from 15.1 with twrp? I can see los 16 on update app but it doesnt let me download it.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] qra69:
Yes, you can with twrp, i've done dirty and it's ok:good:
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] adisa:
No you shouldn't. Do a clean flash instead.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] Lineague:
So little update:

I have dirty flashed the lineage 16 and it worked i guess - the rom booted and it gave me "pixel os launcher stopped working" and there was nothing i could do with that back then, at least thats what i thought. As a result i made clean install of the rom and same thing happend sadly :(. The fix is to choose Trebuchet launcher instead of pixel os and everything works great.

To sum up i think that you can dirty flash los 16 but if the same thing happens to you (which i mentioned above) you just have to use trebuchet launcher.

!!!Make sure to install new gapps if you install los 16 update!!!+ probably you have to flash magisk once again but not sure about that.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] qra69:
Yes, gapps + magisk again
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] ITFrost:
camera

the camera closes with an error :( (clean install), same problem with Google Photos app, and what Gapps recomended for install? i used Stock package
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] qra69:
I'm using Procam X, good program
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] T-Jay:
Hey everyone, I have been following this thread and the process of LOS 16 becoming official for quite some time now. Since this is my first post here, at the very beginning I'd like to say thank you to [MENTION=6235294]ThE_MarD[/MENTION], [MENTION=8738749]kalehrl[/MENTION], [MENTION=10121505]tImI breakdown[/MENTION] [MENTION=9686869]CptFlash[/MENTION], [MENTION=7985055]Rk585[/MENTION], @codeworkx and all the other contributers! You guys are awesome!

I think the stock package causes issues, because it replaces the aosp version of the camera app by default. I use OpenGapps pico package and GCam mod version 6.2.030-Le2-V3.2 by nullbytepl and it works perfectly fine! Maybe that would solve the problems in your case aswell
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] ThE_MarD:
Heyyo [MENTION=10418841]T-Jay[/MENTION], you're welcome bud! I'm glad you enjoy the fruits of our labours hehe :good:

Good call on the OpenGapps gcam issue. It definitely screws up the xml files for the gcam app same as on x2 as well and the OpenGapps team doesn't seem interested in fixing it tbh... Better off with OpenGapps nano or pico and then install a gcam mod by nullbytepl as his works great on s2 and I even made sure it has selinux policies for use on LineageOS 16.0. So [MENTION=9642282]ITFrost[/MENTION] I recommend you follow what he said. :)
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] BlueSea29:
Thank a lot to all the contributor !! This rom is very good.

i have just one question : How can i adjust the volume of the Speaker in this rom?The volume button do nothing. the sound is too aggressive.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] kalehrl:
I use it on the lowest setting but for me too it's too loud.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] hubo123:
brightness

Thanks for the great job! It is possible to correct brightness? I have to turn up the brightness to 70% . You need to set the brightness level almost to the maximum to see something on the screen.

The previous 15.1 distribution did not have this problem
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] ThE_MarD:
Heyyo [MENTION=9971705]BlueSea29[/MENTION] and [MENTION=8738749]kalehrl[/MENTION], if there's a volume curve issue? That would probably involve modifying the audio_policy_volumes.xml found in s2's vendor/etc/ folder. I'm not sure what values would be good on s2 since that file doesn't exist on EUI ROM for s2... So that might be more of a trial and error thing to tweak...

[MENTION=10421051]hubo123[/MENTION] the way automatic brightness works on pie is very different than the old method used in Oreo and previous Android versions.. So the automatic brightness curve for s2 would need to be rewritten from scratch in order to make it better for s2 on pie.

If someone's interested in making a table for me of Lux value and the associated brightness value? This is what I would need.

use photometer app from the play store to get current Lux value

manually set the brightness slider to the desired brightness

Open up a terminal app

cat /sys/class/leds/lcd-backlight/brightness

Make a table of Lux value = brightness value

The more entries means the more accurate we can make a new automatic brightness curve, especially in dark and dimly lit areas. Please ensure your chosen manual brightness level is ok to read text and also watch videos.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] hubo123:
brightness level

Thanks for the quick reply (ThE_MarD)

I mean the brightness curve set manually. I don't use automatic.

Maybe you could set the brightness level just like in the Le Pro 3

It seems to me that the brightness level in Le 2 is incorrectly calibrated is too dark

At 70% (16.0) it is like before at 40% (15.1 )

Is it possible to copy the brightness level settings from Le 3 Pro?

It works perfectly in Le 3 Pro.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] Luensche:
I have problems with the fingerprint sensor. The phone vibrates once and afterwards the fingerprint is not recognised. Does anybody else has the same problems? How can I find the error in logs?

Edit: After some restarts the sensor started working.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] ThE_MarD:
Heyyo [MENTION=10421051]hubo123[/MENTION], yeah the reason why it is so good on Le Pro3 is because I changed the automatic brightness curve hehe. :good:

https://github.com/LineageOS/android_device_leeco_msm8996-common/commit/e8deeee87cede3af079460cea90e4058ccbd34b9

But for manual brightness settings? That should not be affected as far as I know since it operates independently from automatic brightness...
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] hubo123:
brightness level

Works great on Le PRo 3

well done (ThE_MarD):good:

Can't you copy this working code to Le 2?:p
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] ThE_MarD:
Heyyo [MENTION=10421051]hubo123[/MENTION]. you asked, and here it is to try out hehe. :good:

A new test build is going up! It will be done uploading within 30 minutes of this post. lineage-16.0-20191231-UNOFFICIAL-s2-autobrightness-from-LeEco-msm8996 contains the automatic brightness curve and a few other minor brightness tweaks from LeEco msm8996. No idea if they're any good or not for s2 since they may or may not use similar backlight and light sensor values so this definitely needs extensive testing. It also contains the echo-reference tweaks from the audio-tweaks-test2 build as well.

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

Also, time to nag [MENTION=7985055]Rk585[/MENTION] again to update this thread's title to OFFICIAL :silly:
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] BMWM5V8:
[MENTION=6235294]ThE_MarD[/MENTION] i just tested the new build. the manual brightness values seem to be the same. To put it in perspective: let's say I manually set my brightness to 50% ...

The amount of light coming from the screen when the bar is halfway, is close to what would (should) ideally be minimum brightness. So taking the upper half of the brightness slider, and making linear divisions from 0-100 along the entire bar using only the brightness values from the upper half would make the manual brightness bar more realistically adjustable, more like the stock rom and most other phones. say for argument's sake, that (current) 50% emits X lux -- setting the 1% value of brightness to emit the same X lux, and setting 50% to emit half of the max possible lux, setting 75% to emit 3/4 of the max lux, and setting 100% to full brightness would in theory make the brightness slider work better.

Edit: oh should i try making the table that you suggested earlier?

---------- Post added at 07:28 AM ---------- Previous post was at 07:16 AM ----------

in order to use pixel launcher in lineage, install quickswitch magisk module, restart, select pixel launcher as the recents provier (in quickswitch app), and then the device will restart and you can use pixel launcher.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] xen2001:
Yes, that would be nice.:good:

Thank you very much for your excellent work on this project!

Many kudos.

BTW, on a different note, I have noticed that OTA (Over The Air) updates barf at installation of the downloaded version.

HW: X526

TWRP ver: 3.3.1-0

Message: Error installing zip file '@/cache/recovery/block.map

Done processing script file

MTP enabled.

Display is then in an initial state (with Install, Wipe, Backup Restore..... buttons shown) and nothing gets done.

Pls, see PM. Thx.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] ThE_MarD:
Heyyo [MENTION=8793323]xen2001[/MENTION], can you please elaborate which filesystem formats you are using?
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] Richard Langlois:
Hi xen2001

It worked on my side. Same TWRP. I have not enabled encrypting yet. Have you? Otherwise from which version were you updating? On my side I updated from Dec 29 cut to Dec 30 cut

I wanted to encrypt soon but if it breaks OTA I ll wait
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] ThE_MarD:
Heyyo [MENTION=1242988]Richard Langlois[/MENTION], if you want to encrypt? That's ok, just please don't use the OTA app. There's a known issue with TWRP and doing OTA installs via the Lineage Updater app when your device is encrypted which breaks the Google Services Framework and causes it to constantly crash and any apps that rely on it (like the Play Store).

Manually flashing updates by downloading the ROM from https://download.lineageos.org/s2 and then reboot to recovery and then flash via TWRP and then rebooting to system is fine though.

This bug happens on my x2 which is a-only and full-disk encryption just like s2... and it also happens on nash (Moto Z2 Force) which has a/b partition and file-based encryption, so it seems to be an encryption in general bug with TWRP... that's why on nash they only recommend the official Lineage Recovery to avoid this issue altogether.

For LineageOS 17.0? One of the new requirements will be the device MUST work with Lineage Recovery... It's mainly due to how a/b partitioned devices work, but maybe the TWRP for OTA updates also acting up is a reason.

Tbh, Lineage Recovery doesn't seem to want to work on x2 yet lol oops, so I really should look into this. :silly:
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] xen2001:
Good for you.

No encryption.

From 20191227 ->20191230.

---------- Post added at 10:50 AM ---------- Previous post was at 10:48 AM ----------

ext4.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] kalehrl:
This happens when you turn on the phone but don't wait long enough for the system to start.

You can feel the vibration when you touch the sensor but the keypad for PIN doesn't appear.

The screen remains blank. I don't think this happened with 15.1.

With this build the screen is even darker and I don't think auto brightness works at all.

I had to go back to audio tweaks2 build.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] Spunkination:
For almost 4 months now my Le2 x526 screen flickers (screen glitching) whenever the brightness is above 75% and whenever the phone is under direct sunlight and also, whenever the phone is hot (charging and using the phone at the same time).

I have turned of Adaptability Brightness... I have disabled Show surface updates... I have also enabled Disable HW overlays.

I have changed too many CUSTOM ROM trying to fix this issue but to no avail. I even switched back to Stock EUI that came with the phone (TWRP) but to no avail.

The screen is even flickering or glitch in Safe Mode.

It's so annoying.. I can use my phone at maximum brightness under the sun...

Please does anyone have any solution?

Thanks a lot in advance
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] kalehrl:
It sounds like a hardware issue.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] Spunkination:
Ok... Thanks

Which particular hardware?

Any idea?
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] :
bluetooth and lte range

Hi, thank you for all the work on Le 2.

I have found some problems not referenced here yet.

I have been using LOS 15.1 for a year in my Le 2 model 526. I upgraded to official 16.0 with clean install. The bluettoth worked for multimedia but not for phone calls, at least in my car.

On the other hand, range signal for calls and data is very low.

After a downgrade to 15.1 the bluetooth calls and signal range worked well again.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] sparrow1:
I also upgraded clean week ago. BT is working fine for me in phone calls. (I have Sony DSX-A400BT receiver).
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] :
Thank you for the info. Then, it could be just my old BT system in the car. :(

I guess your network range is also good, as for 15.1? :confused:
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] ThE_MarD:
Heyyo [MENTION=8738749]kalehrl[/MENTION], thanks for the report. I took down that auto brightness build.

I'm not sure where the difference in manual brightness might be for s2 to be so different between 15.1 and 16.0...
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] T-Jay:
I flashed LOS 15.1 on 3 different s2 devices and installed GAppps micro package. After updating the devices to LOS 16 by dirty flashing and installing the newest version of OpenGApps micro package, the pixel launcher crashes just like on Lineague's device. [MENTION=6988009]BMWM5V8[/MENTION] is it a problem specifically related to LOS 16? Is there any way to replace a GApps package by a smaller one without having to flash the ROM all over again?

wifi

another issue (which was already present when on LOS 15.1) is that after flashing the LOS ROM all devices now have the same MAC adress, so they can't be used at the same time in the same wifi network :mad: Is it possible to change the mac adress without root?

I'd be thankful for any advice :)
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] ThE_MarD:
Heyyo, experimental build of LineageOS Recovery is going up! lineage-recovery-s2-test1 should work for adb sideload, wiping stuff and installing OTA's via the official lineage updated when encrypted and unencrypted. :good:

This is mainly to test OTA's via the LineageOS updater when encrypted.

https://osdn.net/projects/lineageos-for-s2/releases/72139
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] xen2001:
Marc, my apologies, I am a moran like that barista below in pic. :D

Thanks for your help!
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] Lineague:
Im not sure but i think when you flash gapps the old gapps are being deleted if they are installed. Did you figure out how to change the launcher to trebuchet? If so you can install quck switch via magisk modules and run pixel launcher from that app. It was mentioned by someone a few posts earlier and it works 100% :).
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] Richard Langlois:
Thanks a lot for the information ThE_MarD. I will do as you suggest however I tried encrypting and when I try it just reboot without encrypting anything. No error message. I could not find any obvious explanation on line. Does I need to wipe my data partition before formatting it?
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] goazte:
Encryption works. I use it. But because old recovery didn't format data partition correctly? / wrong header? / wrong length? you need to format, not only wipe, data partition with newer/fixed recovery. Of course that will remove everything.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] kalehrl:
Hi [MENTION=6235294]ThE_MarD[/MENTION]

I installed the recovery via TWRP, install img and the LineageOS recovery installed fine and I was able to boot into it.

When I tried to go back to TWRP, I wasn't able to because of the error:

Writing 'recovery' FAILED (remote: 'Partition flashing is not allowed')

The full log is here:

Microsoft Windows [Version 10.0.18363.535]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\Users\kaleh>cd C:\Users\kaleh\adb-fastboot\platform-tools

C:\Users\kaleh\adb-fastboot\platform-tools>adb devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached
74e2b1b0 device

C:\Users\kaleh\adb-fastboot\platform-tools>adb reboot bootloader

C:\Users\kaleh\adb-fastboot\platform-tools>fastboot devices
74e2b1b0 fastboot

C:\Users\kaleh\adb-fastboot\platform-tools>fastboot flash recovery twrp-3.3.1-0-s2.img
Sending 'recovery' (24618 KB) OKAY [ 0.810s]
Writing 'recovery' FAILED (remote: 'Partition flashing is not allowed')
fastboot: error: Command failed

C:\Users\kaleh\adb-fastboot\platform-tools>

I didn't relock the bootloader.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] ThE_MarD:
[MENTION=1242988]Richard Langlois[/MENTION], please follow the advice of [MENTION=10429911]goazte[/MENTION] as an older test build of TWRP during Oreo bring up sometimes broke the encryption footer which results in lockscreen crashes or encryption failing.

I made a guide thread here which will restore your encryption footer so encryption will work again.

https://xdaforums.com/le-2/how-to/guide-to-fixing-s2-lockscreen-crash-t3919590

[MENTION=8738749]kalehrl[/MENTION], bro please don't quote and mention in the same post, otherwise I get notifications for both on the same post hehe. :silly:

Hmm, what about fastboot boot TWRP.img and then flashing recovery image from there?
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] kalehrl:
[MENTION=6235294]ThE_MarD[/MENTION]

Mystery solved.

The LineageOS recovery relocks the bootloader:

Microsoft Windows [Version 10.0.18363.535]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\Users\kaleh>cd C:\Users\kaleh\adb-fastboot\platform-tools

C:\Users\kaleh\adb-fastboot\platform-tools>fastboot devices
74e2b1b0 fastboot

C:\Users\kaleh\adb-fastboot\platform-tools>fastboot boot twrp-3.3.1-0-s2.img
Sending 'boot.img' (24618 KB) OKAY [ 0.766s]
Booting FAILED (remote: 'unlock device to use this command')
fastboot: error: Command failed

C:\Users\kaleh\adb-fastboot\platform-tools>fastboot oem unlock-go
OKAY [ 0.047s]
Finished. Total time: 0.063s

C:\Users\kaleh\adb-fastboot\platform-tools>fastboot flash recovery twrp-3.3.1-0-s2.img
Sending 'recovery' (24618 KB) OKAY [ 0.824s]
Writing 'recovery' OKAY [ 0.172s]
Finished. Total time: 1.074s

C:\Users\kaleh\adb-fastboot\platform-tools>

So, if you want to go back to TWRP, you need to unlock the bootloader first and then flash TWRP.

EDIT: And don't forget to delete /data/system/locksettings.db via TWRP because your PIN or fingerprint will no longer unlock your device :D

So much hassle this LineageOS recovery :D
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] T-Jay:
edit

For some reason one of the devices kept its unique mac adress, while on the others they were replaced by the same default one. Did I do anything wrong in the flashing process? Is it possible to somehow restore the unique mac adress, for example by going back to stock rom and doing somehting different in flashing LOS 16?
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] Pierdyk:
https://xdaforums.com/le-2/help/how-to-permanent-spoof-wifi-mac-address-t3898439
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] BMWM5V8:
the android 9 pixel launcher will always crash if it's not the default recents provider.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] kalehrl:
Edit WCNSS_qcom_cfg.ini in /system/vendor/firmware/wlan/prima

You can use Total Commander from the store.

Edit the line Intf0MacAddress=000AF58989FF

You need to be rooted.

After editing, reboot the phone and check the MAC address.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] Blackcrown:
Nice to hear that encryption works. On LOS 15.1 Oreo, I was able to encrypt my S2 only to recognize afterwards, that the camera app (stock as well as Gcam) stopped working. Other users reported the same on XDA. Can you confirm that it works now on LOS 16 official after encrypting the device?
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] shinobusensui:
now not crash bluetooth or camera?
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] temptemp123:
I encrypted before los16 turned official, but I believe everything works. Default (lineageos) camera app works. "Google Camera 6.2.030 port for Le2" works. Camera in apps e.g. Google Duo or Whatsapp works. Bluetooth works. I use no root, no magisk. Just this rom with pico gapps and pattern lock.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] iamsuperuser:
Can anyone please confirm whether team viewer remote control is working on this rom ??

By remote control I mean touch and keyboard control on le 2 from another android phone.

Because on stock rom only screen sharing is available on team viewer.

Or if there is any other rom out there that can give me touch and keyboard controls on le 2 from another android phone please let me know.

Thanks in advance.
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] kalehrl:
[MENTION=6235294]ThE_MarD[/MENTION]

It seems LineageOS commit reviewers are extra slow when it comes to s2 development.

It's been 2 weeks since you submitted echo-reference but still no confirmation. :(
[LeEco Le 2 ROMs, Kernels, Recoveries, & Other Deve] lambha48:
Why in overload pie kernel there is no CPU hotplug options,in kernel auditor