[Galaxy S 4 Mini Android Development] TheBootloader:
brisK Kernel​

brisK is a KitKat kernel for stock-based ROMs for the Samsung Galaxy S4 mini LTE (GT-I9195).

It aims to be faster and more a bit more battery-friendly than the stock kernel, while retaining its stability.

To prevent bloat I will only apply useful features like BLN. Adding 10 random governors and schedulers is not useful in my eyes, and is also not the goal of this kernel.

Goals

Stability: The original Samsung kernel is stable, so let's not go too far away from it. This kernel doesn't need bleeding edge code - it just works(TM). ;)

Efficiency: Less power consumption by faster computation.

Battery: A battery drain patch is included, which is not in Samsungs original code.

Speed: Minor changes, for example: Trade some screen smoothness for less kernel overhead. Should not be noticeable, though. Also lowers power consumption slightly.

Changelog

v6 (brisk_kk-stock_2015-07-28_15-07-08_64d9234.zip)

Removed more KNOX stuff (--> This fixed some random reboots!)

Finally upgraded to new toolchain: Linaro GCC 4.9.4-2015.06 (Cortex-A15)

Thanks [MENTION=3452123]impactor[/MENTION] and [MENTION=4344511]SilviuMik[/MENTION] for providing help! :)

v5

Revert default IO scheduler back to CFQ

Apply changes from new released kernel source (GT-I9195_EUR_KK_Opensource.zip - I9195XXUCOA2)

Apply changes from new released kernel source (GT-I9195_EUR_KK_Opensource.zip - I9195XXUCOE4)

Older versions

v4

Fixed USB-to-PC problems by re-enabling some debugging code

v3

Users reported: USB-to-PC (MTP) doesn't work? (Logfiles appreciated)

Apply changes from Samsungs GT-I9195_EUR_KK_Opensource_Update1.zip

Replace stock Wlan module with kk_2.7_rb1.43

Various kernel config changes:

Disable various unused and debugging features

Re-enable heap randomization

Enable "Optimize very unlikely/likely branches"

Set default IO scheduler to noop

Reduce preemption from "Low-latency desktop" to "Desktop"

Disable Samsungs Rooting Restriction

Added init.d support

v2

Added OTG support (UNTESTED) - Edit: NOT WORKING YET

Removed TIMA

Change to XZ compression

Add BLN support (UNTESTED) - Edit: NOT WORKING YET

v1

Added battery drain patches

Optimize kernel for speed, not size

Preparation for init.d support

Permissive SELinux

Future plans

Add proper Prima WLAN driver - Done!

Add a few more optimizations - Done!

Add init.d - Done!

JellyBean Kernel

The old JellyBean kernel is no longer maintained, but it is stable and its uptime was above 2000 hours on my device. I published it here too, in case someone is happy with their JellyBean ROM and wants this.

Features: BLN, Battery drain patches, kernel config optimized, most debugging code deactivated

Source: https://github.com/TheBootloader/android_kernel_samsung_msm8930-common/tree/jb-stock

Awesome people

[MENTION=4344511]SilviuMik[/MENTION] for helping me getting started and providing useful tips - You rock! :D

[MENTION=4825437]Christopher83[/MENTION] for his toolchains

[MENTION=3261191]F4k[/MENTION] for providing source code where I can snoop around

[MENTION=4111741]junkyde[/MENTION] for his kernel and his OTG and BLN patches

[MENTION=3044346]arco68[/MENTION] for being another great resource

Downloads & Sources

Source code is on my GitHub.

Releases are at the bottom of this post and on GitHub.

See 2nd post if you need checksums.

PLEASE MAKE FULL BACKUP (/system TOO!) BEFORE FLASHING ANYTHING. The strangest things can happen if you don't have a backup - even if it *should* work. :)

Downloads are ordered from oldest to newest, so the newest release is at the bottom.