FORUMS
Remove All Ads from XDA

[JDCTeam][BuffCore][8.1]🌴Optimized LineageOS 15.1🌴 [Version4]🌞🌊[10 Aug]🌊🌞

2,696 posts
Thanks Meter: 11,627
 
By side, Recognized Developer / Contributor on 22nd November 2017, 09:25 AM
Post Reply Email Thread
Announcement from side: Release 4 of OptLos15.1! Get it while it's hot. Install it, report bugs, include logs. Or no pie for you.....


Optimized LineageOS 15.1 for the Samsung Galaxy S4 (Qualcomm variants)
Brought to you by the Jflte DevConnection Team

Code:
* Your warranty is now void.

* We are 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! YOU are choosing to make these modifications and if
* you point the finger at us for messing up your device, we will laugh at you.
FEATURES
  • Based on LineageOS 15.1 - Android 8.1 Oreo r_43
  • August 2018 security updates integrated
  • F2FS support
  • Improved speed, stability, RAM usage & battery drain
  • LEDify by JDCTeam - choose your favorite notification LED pattern at device's boot!
  • Toolbox by JDCTeam - the all-in-one device manager
  • OMS integrated / Substratum supported plus LOS themeing
  • Spectrum profile manager supported
  • Powered by BUFFcore kernel:
Code:
BUFFcore 2.13:
fully optimized toolchain flags;
reduced sleep timeout;
dynamic file syncing - early_suspend and dyn_fsync by default;
boeffla wakelock blocker; 
print to dmesg log when a suspend gets broken;
sdfat enabled; 
fastcharge implemented (up to 1900 ac / 1600 usb); 
bcmhd wakelocks for rx and tx halved; 
libmemcopy and libstring sped up; 
io readahead to 1024k; 
lower min cpu governor frequency (270); 
power efficient work queues; 
voltage tweaking user interface; 
faster vmstat; 
autosmp hotplugging replacement; 
mmc crc disabled; 
allow for lower cpu voltage; 
reduce swapiness; 
optimize divide / multiply by power of 2;
added tcp optimization options; 
set westwood default; 
force doze screen off helper; 
optimize cbfillrect function; 
reduce wifi wakelock times; 
nohz: reduce overhead under high-freq idling patterns.
  • Many, many more - install and see for yourself!

SUPPORTED DEVICES
All Galaxy S4 variants with Qualcomm Snapdragon 600 are supported:
  • GT-I9505
  • GT-I9505G (to be verified by users with version 4)
  • GT-I9507 (to be verified by users with version 4)
  • GT-I9508
  • SCH-I545
  • SCH-R970
  • SGH-I337
  • SGH-M919
  • SPH-L720
  • SGH-S970G
  • SM-S975L

All Variants with a locked bootloader are currently unavailable until the unified tree is further updated.
AT&T USERS: since your bootloader is locked, you must be on the UCUAMDB or UCUAMDL bootloader.
VERIZON USERS: since your bootloader is locked, you must be on the VRUAMDK bootloader.
Do 'getprop ro.bootloader' in Terminal Emulator or through ADB shell to find out which bootloader you have.

UNSUPPORTED DEVICES
GT-I9515 is not supported (slightly different hardware)
GT-I9500 is not supported (completely different hardware)

DOWNLOAD
Optimized-LineageOS-15.1 at AndroidFileHost: HERE
Unofficial JDC TWRP Recovery v3.1.0-0 for Oreo jfltexx: HERE

INSTALL
  • Move any files you want to keep to PC - or you will lose them !
  • Make sure you are using the unofficial JDC version of TWRP above. Earlier versions will give Updater process ended with ERROR: 7. Later versions will not work with Aroma. You have been warned!
  • Download the Optimized LineageOS rom , root solution and a Gapps 8.1 package (nano / pico or larger) for arm
  • Move the Optimized LineageOS rom, root solution and Gapps package to external storage
  • Boot into recovery mode (hold volume UP, HOME, and POWER button for 1 second after vibrate)
  • Wipe > advanced wipe > select (enable / tick) for Dalvik / Art Cache, System, Data, Internal Storage, Cache
  • Swipe to wipe at bottom of screen
  • Back to main start screen
  • Wipe > format data
  • Type ‘yes’ and press blue checkmark at the bottom-right corner
  • Back to main start screen and select Install to install rom, root solution and Gapps
  • DO NOT wipe cache / dalvik / art after flashing as this rom is pre-deodexed
  • Reboot System! Enjoy!
  • Once first boot is completed you can safely move your files back to Internal Storage
NOTICE:
First boot after an install / update takes a while, wait at least 5 - 10 minutes for it to boot.

Phone will be hot / slow after first boot as dex optimisation of your apps occurs and media catalog is built of your audio / video files.
If the LED stops flashing and goes solid with any color then SuperSU did not correctly trigger the reboot. You can either pull the battery -OR- hold down the power button for 15 seconds till the led / screen goes blank, then let go of the power button. Then after another 4 seconds it will automatically boot and vibrate and everything is 100% normal. It only happens that one time on a new Rom install with SuperSU.
-----------------------------------------------------------------------------------------------------------------------------------------------

SOURCECODE
Available on:JDCTeam GitHub
CREDITS
  • Side - Lead developer / da boss.
  • Buff99 - Minor developer / major meddler
  • JDCTeam
  • LineageOS
  • OpenGapps
SPECIAL THANKS
  • Donators
  • OptLos test team / Slack testers
  • AndroidFileHost
  • Sausages
  • All of you!

JDCTeam

You are welcome to join the official OptLos chat / test group in Slack optlosoreo

XDA:DevDB Information
[JDCTeam][BuffCore][8.1]Optimized LineageOS 15.1 builds [Version4][10 Aug], ROM for the Samsung Galaxy S4

Contributors
side, buff99
Source Code: https://github.com/JDCTeam

ROM OS Version: 8.x Oreo
ROM Kernel: Linux 3.4.x
Based On: LineageOS

Version Information
Status: Snapshot

Created 2017-11-22
Last Updated 2018-08-12
The Following 118 Users Say Thank You to side For This Useful Post: [ View ]
 
 
22nd November 2017, 09:25 AM |#2  
side's Avatar
OP Recognized Developer / Contributor
Flag Thessaloniki
Thanks Meter: 11,627
 
Donate to Me
More
Reserved
Current issues

Version 3



  • BT calling from headsets or cars MAY not work now. Stay tuned.
  • Wifi uses the region set in your phone sim, if you don't have a sim your region may get incorrectly set. See here


Since ROM supports all (SuperSU,native root,magisk) JDCToolbox is coming as a flashable depending on your root method.Download the one that fits you
Attached Files
File Type: zip JDCToolbox-NonMagisk.zip - [Click for QR Code] (1.30 MB, 348 views)
File Type: zip JDCToolbox-Magisk.zip - [Click for QR Code] (1.30 MB, 552 views)
The Following 6 Users Say Thank You to side For This Useful Post: [ View ]
22nd November 2017, 09:25 AM |#3  
side's Avatar
OP Recognized Developer / Contributor
Flag Thessaloniki
Thanks Meter: 11,627
 
Donate to Me
More
please join the public group at Slack:
https://join.slack.com/t/optlosoreo/...DExMGFjNzQ3Zjk

Things you can find at this channel ->
  • -Direct messages with users and me
  • -Todo list for next version
  • -current changelog
  • -Requests
  • -Fast messages and bug reports
  • -Fast support

Rules:
  • -No "BEST ROM FOR S4?"
  • -No "this doesnt work" without a log



Some notes from me:
  • Use opengapps 8.x and ARM ..not ARM64

Ledify custom pattern
Some notes about ledify. In case u need some "hardcore" edits or even create your own ledify patterns
here is a small tutorial:

at /system/bin/ledify the script exists.
as you can see at line 236 , the default pattern is the 'heartbeatblue'.
your options are:
  • disabled)
  • heartbeatblue)
  • heartbeatgreen)
  • heartbeatred)
  • jdcdefault)
  • nexus)
  • nexusreverse)
  • police)
  • secdefault)
if u want to create a new one do this :

go to line 70 and add a function with the name u want.lets say OPTCM

Code:
OPTCM() {
//write your routine here as the others.
}
now go to RUN() and add
Code:
optcm) OPTCM;;
finally go to final lines where it says
Code:
# Default
PATTERN=heartbeatblue
and change it to
Code:
# Default
PATTERN=optcm
save the file and u r ready.

For better results u better go to twrp,mount the system partition,take the ledify file to your pc,edit it and push it again back to it's location.
The Following 37 Users Say Thank You to side For This Useful Post: [ View ]
22nd November 2017, 09:26 AM |#4  
side's Avatar
OP Recognized Developer / Contributor
Flag Thessaloniki
Thanks Meter: 11,627
 
Donate to Me
More
Changelog:

Date:11-August-2018
Version 4

md5:43162b6499c24a55558fc7f006f98d4d
  • FULLY rework the camera and go to the closed source solution
  • Fix our hardware sources ( fixed my fault on branches tracking )
  • USE_CUSTOM_AUDIO_POLICY and USE_LEGACY_AUDIO_POLICY
  • BuffCore updated including Doze improvements
  • GPS edits
  • 9507 is now supported (?)
  • General source clean
    • Clean my build script (-Doesnt affect the rom)
    • Clean device tree. (-Doesnt affect the rom)
    • Clean double directories (-Doesnt affect the rom)
    • Clean blobs (-Doesnt affect the rom)
    • Clean vendor/jdc (-Doesnt affect the rom)
    • Rename the rom after build complete (-Doesnt affect the rom)
    • Create script to create remotes in one shot (-Doesnt affect the rom)
  • Add more permissions from framework ,affecting camera
  • Some fun at settings/vendor security date
  • Fix google play edition installation (?)
  • system_prop:Set dexopt.boot to verify.
  • jf:Add seccomp policy for media stack
  • system_prop: Dalvik:Use 4 threads when needed
  • Force enable aptx for bt
  • Update our wallpaper
  • Enable doze with a better way
  • Fix recents icon lines
  • Revert wifi when kernel is ready
  • Tweak the boot up process to improve speed
  • Edit WiFi driver and downgrade the hidl version - Seems stabler
  • Make recents blocks,circle
  • Upstream until 10 august
  • Reduce minimum CPU clock (We may gain some juice from here)
  • Enable multisensors HAL - a better overall experience
  • Cleanout the doze/display sources. (possibly better sleeping and on-screen drains)
  • Aptx is now fully working - YOU HAVE TO UNPAIR AND PAIR AGAIN YOUR DEVICE - Thank that guy -> @Buff99
  • update to _r43
  • Add August security patches
  • Build date is now in english
  • Add Reading mode at QS Tiles
  • Update libwvdrmengine.so for O
  • Youtube playback edits on 720p-60fps/1080p - still kinda broken i guess
  • Do not use sdclang
  • Add ldac support
  • emmc_trim now works on boot
  • Add some camera,wifi and nfc permissions just in case

Old changelogs:


Date:30-July-2018
Version 3

md5:dfab4dcaa370d848d281254b615d1e8b
  • jf:Remove a double-declared cache partition size
  • build.sh:Some edits here and there.not affects the flashable zip
  • Τweak the GPS
  • Binary permission fixes
  • Enable SDclang
  • BlueTooth:Revive optcm14.1 code
  • BlueTooth:Fix prepatch dir
  • jf-common:Vendorize permissions
  • jf-common:Vendorize bt prepatch
  • init.power:Rewrite it from scratch
  • prop:Set LCD density to 420
  • Add vidc firmware
  • Add missing props
  • Declare Radio Access family
  • Add vendor props and fingerprint
  • prop: Declare the security patch level
  • Fix alarm's/clock's visual bug
  • Tweak thermald's sampling time (We may have better temperature?)
  • Now building both ROM and kernel with Linaro,specially tweaked for our jf
  • add classifier (https://source.android.com/devices/t...textclassifier)
  • Clean out the ledify script execution
  • Fix proximity reset on first boot
  • wifi: wait for kernel driver to get ready
  • Set default 'Never turn off wifi on sleeping'
  • overlay:Set wake gestures off
  • Replace recents icon when no app
  • Show USB mode dialog when USB is inserted
  • Back to stable Webview
  • Speed up the installation process by 2 seconds (Remove 2 sleep commands)
  • Ship FlipFlap-A common Lid/Flip Cover app for AOSP, focused on rooted devices and specially designed for the LineageOS Project.
  • Tweak the input boost
  • Use Samsung fonts
  • Add call recording feature
  • Add 3-finger-screenshot gesture
  • Reset camera when media service restarts too
  • base:Allow screenshot secured apps
  • Disable kernel checks ( we may gain some juice from here)
  • prop: Calls: Do not delay at all
  • props: Disable power collapse on RIL
  • prop:Remove unused props
  • props:Enable stagefright smoothness
  • props:Enable HW accelaration on video playback
  • Update our wallpaper
  • Replace jelly with Bromite browser
  • Fix mixplorer initial crash
  • Upstream until 30 july
  • aapt: enforce 0 compression
  • core: use 0 compression when creating the target_files package
  • Create 0 compression ratio jar files
  • Scroll: modified velocitytracker
  • Frequently used OpenGL ES methods whitelisted for fast JNI path
  • Use -O3 on our ART
  • Updated buff kernel
  • Use -O3 on dalvik executables
  • Add clock position option
  • JDCTOOLBOX IS NOT INCLUDED IN ROM.DOWNLOAD IT FROM POST 2

BUFFcore 2.09b - 2.12 changes
  • fully optimized toolchain flags;
  • reduced sleep timeout;
  • fastcharge properly functioning now - AC forced on highest you can attain and USB now working higher than 460mA
  • dynamic file syncing - early_suspend and dyn_fsync by default;
  • boeffla wakelock blocker;
  • print to dmesg log when a suspend gets broken;

Printing broken suspends to dmesg.log - you can check the dmesg.log file to see what is waking your device from suspend. Using SYSLOG, grep the dmesg for "active wakeup source" to see if you get any reports. Alarmtimer here is OK, other WLs are worth checking, then possibly adding to the blocked WL list if deemed safe.

Wakelock blocker : the following WLs are blocked by default -
Code:
qcom_rx_wakelock; wlan; wlan_wow_wl; wlan_extscan_wl; netmgr_wl; 
NETLINK; IPA_WS; [timerfd]; wlan_ipa; wlan_pno_wl; wcnss_filter_lock; 
_rx_wake; wlan_ctrl_wake; wlan_wake; qbt_wake_source
you can also ADD more yourself if needed to the following user file in ROOT
/sys/class/misc/boeffla_wakelock_blocker/wakelock_blocker
This will be a list delimited by ; semicolon and no-spaces. WLs should be exact case you find them.
So an example addon file would be
Code:
mmc2_detect;PowerManagerServiceWakelocks;msm_hsic_host
The wakelock blocker may give absolutely no difference to your battery life in suspend - It will only help if your issues are wakelock based. Monitor the log file for any broken suspends for a few nights, look them up in google to see what they are (some wakelocks are not safe to remove) then try adding any identified wakelocks to the user file.


Date: 11-July-2018
Version 2

md5:bfd7a3a93641e2d3d3f3415c0a4a30aa
  • Update to r36
  • Update july security patch
  • Tide up the policies
  • Revert:jf:Allow adjust the lights
  • Update media profiles
  • Enable memcg at kernel
  • overlay:Remove burnin protection
  • overlay: Allow display HWC hardware accelerated transformations
  • manifest:Add graphics.composer
  • manifest:graphics.allocator:Move to hwbinder
  • jf:Make device debuggable
  • Fix a thermald path(fixes battery drain?)
  • Fix the toast icon and expose it to themers
  • Disable bt by default
  • Enable advanced reboot by default
  • Fix spinners' lag
  • overlay:Set default theme's color to a custom one
  • SystemUI:Enable alarm info to QS
  • Change ledify pattern
  • Revive System UI Tuner
  • Trim partitions on every boot
  • Correct ledify contexts
  • Refresh proximity sensor on every boot
  • Change rom name display at settings
  • Fix toolbox working with magisk
  • Always use the latest webview even its beta (we trust Coocle)
  • Add turbo app (Contains Pixel wallpapers)
  • Add Mixplorer

Date: 5-July-2018
Version 1

md5:80b8eb2e629030ee7889e9308330650c

Changes:
  • Update to r30
  • Replace "clear all" with a button like previous opt lineage series
  • Smooth out BT and wifi
  • Fix some background denials ( affects the battery while sleeping )
  • Switch to buffcore kernel as main kernel
  • Update our wallpaper
  • Upstream merge until 5-July-2018
  • Fully fix camera ( video and photos are working for both rear and back camera )
  • GPS edits
  • Enable SDfat
  • Enable 64bit binder
  • Use pure-native Oreo build.Not GO configuration
  • Network Traffic to status bar
  • Introduce the Boost framework under the hood
  • Speed up the damn animations
  • Speed up the whole core while compiling
  • Use -Ofast flag for our bionic
  • Refresh the mediaserver sources ( mismerges happened and now its fixed )
  • Completely remove STweaks ( Bye Bye alucard .....for now (?) )
  • Smooth out the screen's flickerings and such
  • Speed up our dex like older optlos series
  • many more i dont remember.
The Following 36 Users Say Thank You to side For This Useful Post: [ View ]
22nd November 2017, 09:30 AM |#5  
smstiv's Avatar
Senior Member
Flag Amp
Thanks Meter: 425
 
More
Good job mate
The Following 2 Users Say Thank You to smstiv For This Useful Post: [ View ] Gift smstiv Ad-Free
22nd November 2017, 10:32 AM |#6  
hougga's Avatar
Member
Flag Tunis
Thanks Meter: 54
 
More
Yeah here it is! Big thanks for all the good stuff you spread out
The Following User Says Thank You to hougga For This Useful Post: [ View ] Gift hougga Ad-Free
22nd November 2017, 10:58 AM |#7  
lekiaM's Avatar
Senior Member
Flag Amsterdam (Hoorn-NH)
Thanks Meter: 391
 
More
@side congrats mate! Running smooth on my OP5! 😜😁
22nd November 2017, 11:00 AM |#8  
side's Avatar
OP Recognized Developer / Contributor
Flag Thessaloniki
Thanks Meter: 11,627
 
Donate to Me
More
Quote:
Originally Posted by lekiaM

@side congrats mate! Running smooth on my OP5!

hahahahha.thats true.
The Following 7 Users Say Thank You to side For This Useful Post: [ View ]
22nd November 2017, 11:37 AM |#9  
xell75's Avatar
Senior Member
Flag Berlin
Thanks Meter: 530
 
More
I try later. Maybe camera works with the Camu app.
22nd November 2017, 11:45 AM |#10  
dimuthu7's Avatar
Senior Member
Flag negombo
Thanks Meter: 95
 
More
I am going to flash this as my secondary rom(dual boot to test alpha builds).hope it will work
The Following User Says Thank You to dimuthu7 For This Useful Post: [ View ] Gift dimuthu7 Ad-Free
22nd November 2017, 12:26 PM |#11  
Member
Thanks Meter: 21
 
More
Thanks for your work, it's a great rom.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes