[Samsung Galaxy Alpha] duki994:
duki994 Kernel for Stock TouchWiz LP ROMs​

A personal project that had good results and I wanted to share it with others :)

It's based on official Samsung sources for Lollipop firmware.

Important note:

This kernel should work on any custom ROM that is stock lollipop based

Features:

* Wolfson Audio control (thanks to [MENTION=4167023]AndreiLux[/MENTION])

* Battery charging control (thanks to [MENTION=4167023]AndreiLux[/MENTION])

* CPU voltage control for both A7 and A15 cluster (thanks to [MENTION=4167023]AndreiLux[/MENTION])

* Exposed all OPP voltage controls (thanks to [MENTION=4167023]AndreiLux[/MENTION])

* Powersuspend v1.7 by [MENTION=3332811]faux123[/MENTION] and [MENTION=2033478]Yank555[/MENTION]

* LMK, MM and FS powersuspend mods ported from [MENTION=2376110]dorimanx[/MENTION]'s LG G2 kernel

* SCHED code fixes

* SCHED: HMP thresholds changed and new patches implemented

* Many changes related to ARM instruction code and lowlevel ARM core management

* Enabled NEON mode in kernel with full VFPV4 support

* Added new SHA256 and SHA512 NEON accelerated algortihms - now blazing fast

* UKSM (Ultra Kernel Samepage Merging) - algorithm that's better optimized than standard KSM

* WiFi standby wakelocks (PNO wakelock) reduced

* WiFi userspace power mode/DTIM change (for advanced users ONLY)

* WiFi driver switched from deprecated earlysuspend to use newer powersuspend driver (this is to fix some of bugs that could lead device kernel crash)

* NET updates

* Enabled all TCP congestion protocols and set Westwood as default (best wireless performance)

* Disabled KNOX

* SELinux disabled in kernel

* Fully configurable in Synapse (download from Google Play)

/* Important note to other devs */

You cannot include this to your ROMs. I can't be responsible if anything goes wrong, I can't help with any issues without knowing kernel version and users should be routed to this thread if they want this kernel, or if you recommend it. I think that it's best to separately view custom ROM and custom Kernel, so each dev (ROM or Kernel one) can work on bugs/features and make it as compatible as it can.

However, you can add this thread link and mention me in your thread, so people would know where to ask if some kernel problem arises :)

Warranty void

By flashing this kernel you will void your warranty. I'm not responsible if you brick your device, or if someone starts nuclear war.

Note:

Don't change voltages on "Busses" tab if you don't know what you are doing. It can reboot your phone if your memory controllers, ISP or MMC controllers can't handle low voltage.

WiFi pasword resetting fix:

1. open your build.prop file
2. find line ro.securestorage.support
3. change it from true to false (if not already false)

This line being on true will make your WiFi not work good with this kernel. This is due to Samsung's rooting restriction and other Samsung specific workarounds to stop rooting and flashing. Any custom ROM probably has this line changed to false.

Changelogs:

Version 1.4 BETA

Billion critical updates from my G900H version:

* MM code

* new LMK driver

* Exynos interactive governor updated

* IRQ code revamped

* OF code revamped

* New 8-band EQ sound-control

* Numerous ALSA updates and fixes

* Numerous Wolfson DAC driver updates

* MemInfo code updates

etc. list is enormous

Version 1.3

*MM page allocation changes. and others. Now more than 50% faster page_alloc

*RCU and SRCU updates from S6 and upstream + CAF

*NET updates

*USB fixes and updates

*dma mapping ARM fix

Version 1.2.1

*Synapse

->added ROW scheduler to test (experimental)

*Several BLOCK code updates and typo fixes. Some serious bugs fixed.

*Fully updated ROW I/O sched added (experimental)

Version 1.2

* Synapse:

-> disabled min cpu freq control. not needed.

-> added new I/O schedulers

* Massive updates to BLOCK, SHCED, MM, WORKQUEUE critical code

* Added FIOPS and BFQ I/O schedulers

* EXT4 updates to fix possible kernel crashes

* ZSWAP now uses ultra fast and light on cpu LZ4 compression

* CPUFREQ optimizations

* Updated BFQ, FIOPS, DEALINE scheds with fixes and optimizations

Version 1.1

*Synapse:

* Added live cpu stats for all 8 cores (quad A7 and quad A15 cores)

* Added live CPU temperature monitoring

* Added live battery temperature and health status

* Disabled broken battery input current feature (shows 0mA for our PMIC chip)

* Added misc tab:

+ ability to take logcat,dmesg,last_kmsg

+ HMP Little packing switch ON/OFF and explanation

* Added optimized ARM RWSEM algorithm

* Fixed HMP so HMP little packing would work good with our implementation

* thermal IPA(Intelligent Power Aware) now updates power tables immediately when voltage changed from Synapse

* entropy depletion fixes

* Enabled FRANDOM random number generator module for more entropy and less lag

* Added NEON instruction accelerated SHA256/SHA224 algorithm. Now we have SHA384/SHA512, SHA256/SHA224 and SHA1 algorithms NEON accelerated - blazing fast

* HMP little packing switch for Synapse

Experimental option made by nvidia. It groups tasks so more of them would be scheduled across power saving cores (A7 cores in our CPU). It may or may not save battery depending on your usage.

Downloads:

Here it is :)

https://app.box.com/s/vt70dzo7fzgnlyik4mxkiaaj7xkhjaot

Special thanks:

[MENTION=4167023]AndreiLux[/MENTION] for his awesome Synapse app, audio control, charging control, sources and many features/updates and upgrades to Exynos kernel code

[MENTION=3511708]UpInTheAir[/MENTION] for his source that I looked when I had bugs, and for his fixes/workarounds

[MENTION=2376110]dorimanx[/MENTION] for inspiring me to start developing and his LMK and MM mods

[MENTION=242033]bonuzzz[/MENTION] for his custom KitKat kernel for Galaxy Alpha and his sources

[MENTION=5658634]apb_axel[/MENTION] for UKM and his scripts that helped me a lot in making custom Synapse config

XDA:DevDB Information

G850, Kernel for the Samsung Galaxy Alpha

Contributors

duki994

Source Code: https://github.com/duki994/SM-G850_Kernel_LP/

Kernel Special Features:

Version Information

Status: Beta

Current Beta Version: 1.0

Beta Release Date: 2016-08-12

Created 2015-11-02

Last Updated 2016-08-12