[Galaxy S 5 Android Development (Exynos)] duki994:
duki994 Kernel for Stock TouchWiz MM ROMs​

Development stopped. I don't have device anymore​

This is for MM only!!! For LP go to duki994 LP kernel thread

LP kernel thread

It's based on official Samsung CPE6 sources for Marshmallow firmware.

Important note:

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

Features:

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

* Charge control by me ([MENTION=3441913]duki994[/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])

* LED fading control (thanks to [MENTION=4167023]AndreiLux[/MENTION])

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

* 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

* OF code updated --> better/faster reading of DTS and faster operation

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

* Enabled NEON mode in kernel with full VFPV4 support

* Added new SHA256 , SHA512, SHA1, ASH2 and AES NEON accelerated algortihms - now blazing fast

* WiFi fixes

* NET updates

* LMK updated and added new feature: Adaptive LMK --> better multitasking

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

* Wakelock disabler: You can disable some common Samsung wakelocks in Synapse "Misc" tab if some of them are draining your battery

* Fully configurable in Synapse application (download from Google Play)

For kernel configuration use Synapse

Download from Google Play.

Google Play link for lazy people:

https://play.google.com/store/apps/details?id=com.af.synapse

/* Important note to other devs */

You cannot include this kernel in 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, as so people would know where to ask if kernel problem arises. I will do the same for you :)

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 that can't handle low voltage.

If someone happens to have bug with WiFi saved password being lost every reboot, here is fix:

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 forget password each reboot. 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.

GitHub sources:

Kernel:

https://github.com/duki994/g900h_mm_kernel

Ramdisk:

https://github.com/duki994/g900h_mm_ramdisk

SuperSU problem fix:

After each kernel installation you'll need to reinstall SuperSU from Play Store or from apk.

I'm trying to solve this problem currently.

Root and busybox work as intended. Problem is only with SuperSU app.

Downloads folder:

https://www.androidfilehost.com/?w=files&flid=91231

Downlads mirror:

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

Always make backup of boot partition in case something goes wrong!!! You have been warned

Stock CPE6 flashable kernel:

It's found in downloads folder and in downloads mirror.

Changelog:

Version 1.9 BETA

* MM updates

* IRQ and ARM GIC (Generic Interrupt Controller) updates

* CPUFREQ critical performance and battery saving updates for big.LITTLE architecture

* ARM arch specific updates and workaround for various bugs from Linaro LSK 3.10.x tree and ARM devs

* EXT4 and FS updates for better performance and less CPU usage. Also some code cleanups.

* NET updates

* Silenced mDNIe dmesg hooks. Not needed now as mDNIe control is working as it should.

* RCU NOCB ALL for better softirq workings in kernel (should provide boost to moderate usage)

Version 1.8

* Added mDNIe control (display color interface like KCAL for Qualcomm) (thanks to [MENTION=4167023]AndreiLux[/MENTION])

* Interactive governor updated (will stay on min freq and not ramp up when load is <5%)

Older versions changelog:

Version 1.7

* Further LMK updates. Ported LMK driver from arter97's S6 repository (much faster code with less task searching and choosing loops)

* MM updates needed for new LMK

* Added several protected apps within code

Version 1.6

* Reverted some LMK changes and fully implemented ADJ_RBTREE in Samsung's OOM LMK code (this should fix some performace issues (like small lags) while freeing RAM)

* Added several system processes in LMK protected apps (LMK won't kill them unless your system RAM is highly overloaded and on verge of collapse)

Version 1.5

* Interactive governor optimizations and tunings from other Exynos kernels and other devs + me (mostly from S6 kernels)

* Interactive governor screen off power save

* MM updates

* MemInfo updated so Android OS can have better memory stats and thus better memory management

* Hardcoded some props like securestorage support and TIMA so that they are false/0/off.

* Power management code updated

Version 1.4

* Workaround headset outbound call BUG (thanks to [MENTION=4489833]ponkz[/MENTION] for reporting this nasty bug)

* Clean up some code and correct several descriptions in Synapse.

Version 1.3

* Made "Main speaker gain" control for new Clearwater based Arizona-class sound control

Version 1.2.1

* Correctly calibrated equalizer frequencies in sound control (thanks to AndreiLux for tip)

* Updated interactive governor

Version 1.2

* Added IPA thermal trigger temp control

* Removed some battery saving features that were actually DRAINING BATTERY

----> HMP little packing, PE workqueues removed

* Removed Wakelock Control because it causes SoD's when user disables important wakelock!

* Added new 8-band EQ Sound control made for S6 that work awesome (god bless [MENTION=4167023]AndreiLux[/MENTION])

----> it has even per channel 8-band EQ's

* Made some compatibility improvements

Version 1.1

* Added GPU voltage control

* Fixed some ramdisk scripts

* Optimized compiler flags for GPU code

* ro.secure=0 and ro.adb.secure=0 so ADB is now like unchained beast for those who like to play with ROMs and system files and have bootloops :)

XDA:DevDB Information

G900H MM Kernel, Kernel for the Samsung Galaxy S5

Contributors

duki994

Source Code: https://github.com/duki994/g900h_mm_kernel

Kernel Special Features: Voltage control, Sound control, Charge control, Freq control, LED control

Version Information

Status: Stable

Current Stable Version: 1.8

Stable Release Date: 2016-08-16

Current Beta Version: 1.9

Beta Release Date: 2016-08-21

Created 2016-07-27

Last Updated 2016-11-10