[E 2015 Android Development] facuarmo:
This is SomeFeaK kernel, based on Squid2's kernel for device codename "surnia".

This is the first time I build a kernel, also, the first time I post something in DevDB. Hope you like this kernel and please expect many releases.

The kernel should work in stock and custom ROMs, with any variant. Tested and working in XT1601 (LATAM).

Disclamier:

[COLOR="red"]* Include <std_disclaimer.h>
* Your warranty is now void.
* I am 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 it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*[/COLOR]

Features:

From squid2's r19 build:

Moderately undervolted

Updated to Linux 3.10.104

Synced with latest CodeAurora changes

Improved memory management

Improved memory caching backported from Linux 3.15

Improved storage performance

Optimized ARM crypto routines

Updated f2fs and WiFi drivers

FIOPS and BFQ I/O schedulers

Lionfish CPU governor

IntelliPlug CPU hotplug (by faux123)

KCAL MDP5 colour control (by savoca)

Improved zRAM backported from Linux 4.9

Vibration intensity control

Compiled with Linaro GCC 6.2 and optimized for Cortex A53

Stripped down and optimized configuration

Added by me:

Governors: impulse and elementalX, yankactive, zzmoove, darkness and bioshock.

Double tap to wake (DT2W).

Permanently fixed screen flickering: SELinux works fine in permissive or enforcing mode.

Enabled advanced TCP congestion managers: veno, westwood, vegas, illinois, and more.

Drastically improved CPU thermal control: should react approximately from 40°C and end if lower than 35°C are reached. Otherwise it'll keep trying to cool the device, protecting, mainly, the battery.

Automatic thermal throttling and CPU cooling driver added and enabled.

Enabled CPU current throttling driver.

Use the hidden LED as a notification light.

Enabled forced consistency checks for F2FS (/data).

Multi-Cluster Power Management (less CPU battery drain).

KSM (Kernel Samepage Merging).

Advanced Power Management (emulated).

SMT (Simultaneous Multi-Threading).

Fixed temperature handling.

Release history:

4.53 (stable): June 16, 2017:
Kernel changes:
- fs: fsync will now be enabled by default (prevents data loss if a kernel panic occurs).
- cpu/hotplug: removed broken lazyplug hotplug driver, better handling for hardware hotplugging.
- cpufreq: added intellidemand, smartmax, wheatley, smartmax_eps, pegasusq, authority.
- input/touchscreen: updated DT2W driver, still not stable, more responsive and stable touchscreen.
- sched: fixed zen, fixed and added sio.
Other changes: first build for osprey coming soon.
4.30 (stable): June 14, 2017:
Kernel changes:
- hotplug: added lazyplug (broken, don't use).
- input/touchscreen: fixing DT2W.
- sched: added sio.
Other changes: none.
4.25 (stable): June 13, 2017:
Kernel changes:
- ksm: updated code and better management, enabled checking before swapping pages, reduce cpu
- swap: updated code, got better management by adding some compression drivers.
- input/soc: added powersuspend driver, this will help DT2W work better.
- random: added frandom support, decrease CPU load for entropy generation.
- mem: enabled memory changes tracking.
- sched: added tripndroid, vr, zen.
- usb: enabled fast charge by default.
Other changes: no tool required to setup anymore, default setup won't overheat your device nor damage it; due to recently added support for surnia, every new release will be respectively named with a suffix like '-harpia' or '-surnia'; new project logo (for DevDB), thanks to @lecron89 .
4.18 (stable): June 12, 2017
- cpu: rolled back extreme overclock, new max clock: 1593 MHz.
- gpu: rolled back extreme overclock, new max clock: 465 MHz.
- cpufreq: fix build for 'darkness' governor.
- cpufreq: added new CPU governors: yankactive, zzmoove, darkness and bioshock.
4.00 (stable): June 9, 2017
- cpu: undervolted and overclocked, max freq. 1785 MHz (recommended: 1593Mhz).
- gpu: overcloked, max freq. 650 MHz.
- flashing: fixed bug where the touchscreen would become unresponsive after any kernel update.
3.90 (stable): June 8, 2017
- usb: use your device as an USB gadget, including keyboard and mouse.
- general: updated defconfig for harpia at source to match new features.
3.81 (stable): June 7, 2017
- wlan: updated drivers, solved remaining crashes and battery drain.
- prima: updated drivers.
- usb: added support for xpad joysticks (XBOX).
- cpu: fixed hotplugging driver "thunderplug", used to crash the device while allowing the user to pick "octa-core mode" when it's a quad-core device.
- cpu: hotplugging driver "alucard", default minimum of 1 (one) cpu online.
- general: performance improvements for touchscreen, GPU and variables definition.
3.61 (stable): June 4, 2017
- Added S2S (Sweep to Sleep): swipe from the navbar from right to left or from left to right to make the device go to sleep.
3.60 (stable): June 4, 2017
- In the stock ROM, the audio won't skip anymore (tested).
- The wlan driver shouldn't crash again (updated with Heliox sources).
- Re-added missing Adreno Idler driver.
3.52 (stable): June 1, 2017
- Hotfix: DT2W won't freeze the screen anymore.
3.51 (stable): May 31, 2017
- Hotfix: re-added missing hotplug driver (thunderplug).
3.5 (stable): May 31, 2017
- Reverted patches for sdcardfs (they broke the media scanner).
- USB fast charge.
- FauxSound gain control.
3.11 (stable): May 29, 2017
- Patches for sdcardfs.
- Patches for wlan.
- Patches for less power consumption.
- Re-added missing features: KSM (Kernel Samepage Merging) and TCP congestion control algorithms (veno, illinois, westwood and vegas).
3.0 (stable): May 29, 2017
- Added governors: impulse and elementalX.
- DT2W (Double tap to wake).
- Adreno Idler (reduce GPU frequency and resources if inactive).
- Added hotplug drivers: allucard and thunderplug CPU.
2.1 (stable): Februrary 8, 2017
- Rolled back to default SELinux setup.
- Switched default GPU governor from "msm-adreno-tz" to "simple_ondemand" for better battery and performance balancing.
- Fixed screen flickering bug by disabling debugging in graphics card. (SELinux socket overflow).
- Fixed noisy output if using audio MODs by disabling aggressive debugging for sound card. (SELinux socket overflow).
2.0 (stable): February 5, 2017
- Permanently fixed the screen flickering: you won't see any flickers while running SELinux in permissive or enforcing mode. This is going to work even if you build the kernel from source.
1.3 (stable): January 31, 2017
- Enabled advanced TCP congestion managers: veno, westwood, vegas, illinois, and more.
- Set default TCP congestion manager to "veno" for lesser lags while heavily loading the networking area.
1.2 (beta): January 29, 2017
- Fixed SELinux: permissive mode works again.
- Decreased SELinux activity (even more).
1.1 (beta): January 29, 2017
- Restored previous setup for audio amplifier DAC: switched input gain from 4 to 5. Reason: the output felt like if it is cropping some frequencies.
- Modified CPU cooling driver to get more sensitivity as when to react and how far the temperatures should reach. (experimental, please report if horribly lags)
1.0 (beta): January 27, 2017
- Automatic thermal throttling and CPU cooling driver added and enabled.
- Enabled CPU current throttling driver.
- Decreased audio amplifier DAC input gain to 4 from 5 (solves distorted output while using audio mods like [B]Dolby Atmos[/B])
0.3 (experimental): January 26, 2017
- Added available triggers for LED to: show cpu usage by core, blink like heartbeat, blink with interval and full on.
- Disabled swap pages caching (frontswap).
0.2 (experimental): January 25, 2017
- Enabled swap pages compression.
- Enabled swap pages caching (frontswap): better RAM management.
- Enabled cleancache for faster swap handling.
- Decreased SELinux activity and removed almost every security check.
- Enabled F2FS forced consistency checks.
- Enabled Multi-cluster power management (even better power management and less temperature).
0.1 (experimental): January 24, 2017
- Initial release.

Downloads:

Click here or go to Downloads tab at the top of the thread.

NEW! Now, if something goes wrong with the XDA download server or you simply want to download from somewhere else, I've been approved as developer at AFH. All downloads will also be posted here.

NEW! Ask for features, report bugs, get help with installation, usage and everything else. Join us at Telegram: t.me/somefeak

Bugs:

SELinux avc is not working as expected, coming from squid2 sources.* Fixed

Screen might flicker sometimes in harpia LATAM variant, this is also a SELinux related problem.* Fixed

Advanced Power Management might let the device reach higher temperatures sometimes, it isn't on me and must be fixed in mainstream.

Bugs marked with a "*" will be fixed in the next release.

Testing: (by users and me)

Lineage OS (latest build): No bugs found.

crDroid: working flawlessly, little lags due to UI bugs.

OCT-OS: No bugs found.

AOSPExtended: No bugs found.

Mokee OS: long boot times, no lags so far. UI might feel unresponsive sometimes if too many tasks at same time (wrongly set build.prop?). Screen flickers sometimes

Resurrection Remix (by @jasonmerc): No bugs found.

XDA:DevDB Information

SomeFeaK Kernel for Moto E 2015, Kernel for the Moto E 2015

Contributors

facuarmo, chijure, Dark98, squid2, TeamMex

Source Code: https://github.com/FacuM/android_kernel_motorola_msm8916

Kernel Special Features: The kernel features: everything from r19 Squid2's build, KSM (Kernel Samepage Merging), SMT (Simultaneous Multi-Threading), Advanced Power Management (emulated), advanced LED contro, DT2W and impulse and elementalX governors.

Version Information

Status: Stable

Created 2017-06-12

Last Updated 2017-06-16