[ROM][Q/R] Unofficial, optimized LineageOS 18.1 (Feb. 27th) & LineageOS 17.1 (Feb. 6th)

Tomoms

Senior Member
Feb 15, 2014
2,414
5,763
203
Trieste
In this thread I'll share with you my personal builds of LineageOS 18.1 and 17.1 (older builds of 16 and 15.1 are still downloadable). This project is inspired by idprophecy's LineageOS builds, to which I want to add my favorite features and, possibly, even more optimizations and improvements.

MAIN FEATURES
LineageOS 18.1 features:
  • support for MicroG (signature spoofing) - read the 2nd post!
  • improved & updated libraries: sqlite, zlib
  • Android RunTime (ART) updates and improvements
  • SBC Dual channel bluetooth audio codec
  • support for OTA updates
  • several minor tweaks and improvements
  • my custom kernel (features listed below)

LineageOS 17.1 features (stable and reliable):
  • all C/C++ components are build with -O3/-g0 flags (maximum optimization, minimum useless debug info)
  • support for signature spoofing (= MicroG supported) - read the 2nd post!
  • F-Droid Privileged Extension in-built
  • native support for WakeBlock by @GioBozza, for more info: WakeBlock on XDA
  • several updates & improvements to internal components: skia & libjpeg-turbo (temporarily reverted), art, bionic, libpng, sqlite, zlib
  • custom Screenshot QS tiles
  • deGoogling tweaks: non-Google captive portal server & SUPL server
  • support for OTA updates
  • minor miscellaneous tweaks
  • my custom kernel (features listed below)
Kernel features:
  • built with GCC 10
  • CPU underclocking (268 MHz) & max freq. limited to 1,9 GHz by default
  • several f2fs updates
  • power-efficient workqueues
  • cpu_input_boost by Sultanxda
  • bricked hotplug replaces mpdecision
  • CPU undervolting
  • maple I/O scheduler
  • userspace LMKD replaces the old in-kernel Low Memory Killer driver
  • DDR bandwidth boost on screen wake
  • minor adjustments and tweaks
  • several code updates and security/bug fixes
BUGS
Also present in official LineageOS 17.1:
  • kernel panic when changing USB mode to "File transfer" - fixed in the 20200811 build & later official nightlies
  • notification/charging LED not working - fixed in the 20200811 build & later official nightlies
  • low in-call microphone if speakerphone is enabled - fixed in the 20200811 build
  • charging hiccups when using certain 3rd-party chargers/cables - fixed in the 20200912 build
  • AUX audio output not working - fixed in all builds (unofficial & official) newer than 20200826
  • wrong time on boot until connected to a network - fixed in the 20201110 build, and in official nightlies starting from 20201224
  • the Music app is quite messed up (bug is already reported on Gitlab) - fixed by the LineageOS team as of January 2021.
  • flaky GPS - fixed (or at least improved) in the 20201213 build
  • manual mobile network scan not working - fixed in the 17.1 2021-01-23 build, will soon be fixed in 18.1 & official as well
  • 5 GHz hotspot is broken - but there's a workaround here
  • weird noises while playing flac files if AudioFX's Bass option is enabled
Bugs that are specific to my builds:
  • encryption of f2fs-formatted /data partition is broken - fixed in the 20201028 build
  • corrupted thumbnails and weird visual artifacts in the system's color picker - fixed in the 20201028 build
  • libjpeg crashes in certain apps (NewPipe, Files, and others) - fixed in the 20201017 build
  • Telegram's (and, possibly, other apps') in-built camera not working - apparently fixed in the 20200811 build
Changelog for LineageOS 17.1:
February 6th:​
  • February's security patches

Changelog for older LineageOS 17.1 builds:
February 2nd:​
  • in-built F-Droid Privileged Extension
  • Dynamic processing audio library
  • Dual-channel SBC codec for bluetooth headphones/speakers (untested, must be set in Developer Options)
  • some kernel updates & fixes
  • synced with LineageOS
January 22nd:​
  • synced with LineageOS
  • manual mobile network search is fixed
January 12th:​
  • synced with LineageOS
  • full January security patchset (2 commits were missing in the previous build)
  • some kernel fixes & improvements
January 8th:​
  • synced with LineageOS (including January's security patches)
January 3rd:​
  • synced with LineageOS
  • several kernel updates (including power-efficient workqueues)
  • Screenshot QuickSettings tile
  • less Google-dependant: custom captive portal & SUPL servers
December 13th:​
  • synced with LineageOS
  • December's security patches
  • many GPS updates (it works much better now)
December 3rd:​
  • synced with LineageOS
  • TimeKeep support
  • malloc switched to low memory configuration
  • minor power saving tweak for the eMMC chip

Changelog for LineageOS 18.1:
February 27th:​
  • synced with LineageOS
  • minor kernel updates

Changelog for older LineageOS 18.1 builds:
February 9th:​
  • synced with LineageOS (with February's security patches)
  • some kernel fixes & updates
  • fix for the Gallery showing the previous photo instead of the new one, immediately after taking one
Ferbuary 3rd:​
  • bootloop fix

February 2nd:​
  • synced with LineageOS
  • WiFi hotspot fixed
  • Dynamic processing audio library
  • in-built F-Droid Privileged Extension
  • Dual-channel SBC codec for bluetooth headphones/speakers (untested, must be set in Developer Options)
  • minor tweaks to reduce memory usage (with negligible impacts on performance and/or graphic quality)
  • my custom kernel has been implemented
January 21st:​
  • synced with LineageOS
  • updated & improved sqlite library (huge performance boost)
  • optimized zlib library
  • improvements for ART's memory usage
  • support for OTA updates
January 6th:​
  • synced with LineageOS (January's security patches)
January 3rd:​
  • synced with LineageOS
  • lockscreen PIN possibly fixed? Please confirm
December 26th:​
  • fixed signature spoofing
  • synced with LineageOS
December 21st:​
  • added support for signature spoofing (MicroG) and UnifiedNLP
December 14th:​
  • initial build

DOWNLOADS
Unified download link for both 17.1 and 18.1: SourceForge
Unofficial OpenGapps for Android 11 & arm (suitable for bacon, thanks to AdrianDC): Mega
Newer, unofficial MindTheGapps, by the LineageOS team: here
BitGapps, also suitable for bacon: BitGapps download (not yet available)
Older 18.1 build is available here: AFH
Previous 17.1 builds are available either on AFH or on MEGA (17.1) / on MEGA (18.1).
 
Last edited:

Tomoms

Senior Member
Feb 15, 2014
2,414
5,763
203
Trieste
POST-INSTALLATION SUGGESTIONS

GAPPS COMPATIBILITY

No matter how hard I tried to reduce the ROM's size, OpenGapps Nano have never worked properly due to extremely low free system space. So either use Pico, or repartition your phone.

SETTING UP MICROG
Signature spoofing is supported but not enabled out of the box. There's no switch to enable it in Settings, you must grant its permission to each app that needs it. In particular, if you install MicroG (either via the apks or via MinMicroG), you must run these commands in a root shell:
Code:
pm grant com.google.android.gms android.permission.FAKE_PACKAGE_SIGNATURE
pm grant com.android.vending android.permission.FAKE_PACKAGE_SIGNATURE
then make sure all the checkboxes in MicroG's status screen are ticked and reboot.

SETTING UP VIPER4ANDROID
If you follow these steps carefully, you'll manage to install Viper4Android while keeping Enforcing SELinux, and it will survive across ROM updates too :)

GRABBING LOGS
If you have faced an issue, please provide logs when reporting it.
If the issue involved a random reboot of the device -> let the phone boot up again and immediately grab a copy of /proc/last_kmsg (important: don't turn off or reboot the phone a second time, otherwise it'll be useless).
If the issue did not involve a random reboot of the device, but instead some "softer" crash (e.g. an app crashing, a SystemUI restart...) -> grab a logcat using any app such as Logcat Reader or plug the phone to a computer and pull it using the adb logcat > logfile.txt command.
 
Last edited:

kunalshgkr

Senior Member
Apr 23, 2016
84
30
23
Pune
Perfect combination Sultans camera and idprophecy ROM.
question- can charging rate be varied using kernel auditor mod app?
Because whenever I'm installing a ROM having sultan customisation included my OPO charges very slowly(180mA).
 

Tomoms

Senior Member
Feb 15, 2014
2,414
5,763
203
Trieste
Perfect combination Sultans camera and idprophecy ROM.
question- can charging rate be varied using kernel auditor mod app?
Because whenever I'm installing a ROM having sultan customisation included my OPO charges very slowly(180mA).
I don't know if KA mod has that feature. However it's possible to change the maximum charging current intensity with any text editor, check the second post of Neon kernel's thread: I've explained how to do it. However is the problem occurs only on sultanized ROMs, it might also be that the different battery driver thinks that your cable is faulty, and so it reduces the charging speed. I've had a similar issue when using the Linux 3.10 kernel on my phone.
 

kunalshgkr

Senior Member
Apr 23, 2016
84
30
23
Pune
I don't know if KA mod has that feature. However it's possible to change the maximum charging current intensity with any text editor, check the second post of Neon kernel's thread: I've explained how to do it. However is the problem occurs only on sultanized ROMs, it might also be that the different battery driver thinks that your cable is faulty, and so it reduces the charging speed. I've had a similar issue when using the Linux 3.10 kernel on my phone.
Thanks for the reply. On your ROM my OPO is charging normally. Actually I was asking can the charging rate be varied in your kernel because in most of the kernel it is disabled. By the way I just installed this ROM awesome ROM but I'm experiencing slight lag in UI.
 
W

Wa.Sobchack

Guest
I've tested v10 of your kernel last weekend. I also had lags while scrolling. Did you remove cpu and touch boost? Couldn't find settings in cpu section of adiutor mod. Or are they managed in governor settings?
 

secretkloud

Senior Member
Oct 7, 2013
124
49
28
@Tomoms

Nice of you to share your work. I was just crying about for a ROM (Sultan base + OMS) and a good person linked me here. As it's relatively new I'm very optimistic

I have a couple of questions:

Have you tried your ROM with Xposed? (I just switched to Nougat (ViperOS) and the SOT is terrible. I'm trying to see what the cause is)
Is this version of your ROM based on Sultan's Oct 22 release?

I have only one phone at the moment and can't risk it with testings. My choices are reliant on your answers and the Epic XDA Community. Thanks in advance...
 

Tomoms

Senior Member
Feb 15, 2014
2,414
5,763
203
Trieste
I've tested v10 of your kernel last weekend. I also had lags while scrolling. Did you remove cpu and touch boost? Couldn't find settings in cpu section of adiutor mod. Or are they managed in governor settings?
CPU boosting is present but KA doesn't support it, so it looks like it's missing but it's actually working in the background.

@Tomoms

Nice of you to share your work. I was just crying about for a ROM (Sultan base + OMS) and a good person linked me here. As it's relatively new I'm very optimistic

I have a couple of questions:

Have you tried your ROM with Xposed? (I just switched to Nougat (ViperOS) and the SOT is terrible. I'm trying to see what the cause is)
Is this version of your ROM based on Sultan's Oct 22 release?

I have only one phone at the moment and can't risk it with testings. My choices are reliant on your answers and the Epic XDA Community. Thanks in advance...
Nope, I don't use Xposed nor have I tried it.
The release doesn't include all the changes brought by Sultan in the 22nd October build (it includes one out of two of them), however this is not a problem, because the change I left out is a small reversion related to in-call volume that was made by him only because "users were not amused" by the improvement. So the only thing this build doesn't include is not a fix for a bug, just a small volume adjustment decrease that was made because nobody noticed the increase that was brought in the Spetember 30th build, so there's nothing to be worried about. This build is just as good as Sultan's last one.
 
Last edited:

JJohnson1988

Senior Member
Dec 10, 2013
304
151
73
33
California
I'm so excited that my two favorite bacon ROMs have been merged together! Thanks for the effort.

Two things I have noticed for now:
- Camera appears to crash when snapping an HDR photo (similar to LineageOS camera's behavior)
- Quick unlock for four-digit PINs doesn't seem to work