[KERNEL][TW & AOSP] PRIME-Kernel v2.1.2 - Samsung Galaxy S7 (Exynos) ROMs, Kernels, Recoveri

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
​
List of Supported
Variants
SM-G930S/K/L/F/FD/W8
SM-G935S/K/L/F/FD/W8
ROMs
TouchWiz N base all ROMs (Stock, S8 port ROMs, Note 7/8 port ROMs)
AOSP 7.1.2 & 8.x base all ROMs (Lineage, RR, crDroid & AICP & more...)
Main Features
OSRC's latest Note-FE & S7 source code base.
Using the AnyKernel2(Flashing Tool).
Synapse support.
SELinux Permissive / Enforcing switchable (+ Fake Enforcing Mode).
Linux-stable 3.18.y upstream.
Compile with UBERTC 6.4.1 toolchain.
F2FS support (/data, /cache only).
Optimized for Exynos8890 using the Exynos-M1 flag for compile options.
Gametuner-Mod
Game Booster Mode
intelligent performance enhancement mode in conjunction with Samsung-Gametuner.
Fake KNOX.
chacha20 to random (entropy).
Linaro LSK-v3.18-Energy-Aware Scheduler (EAS) port.
EAS simplifies power and performance management through scheduler-driven tuning to manage more efficiently.
Linux-v3.18 already has EAS installed, but with the LSK-v3.18-EAS, the existing EAS has been further improved and the user can choose between tuning power efficiency and performance.
Linaro v3.18/topic/OPPv2 branch merge.
Lazytime mount options
improved storage performance and longevity.
Similar to DynamicFsync, but operates at the file system level and has no risk of data loss.
CPU/GPU UC & OC.
Limit the maximum overclock range according to the device's ASV value (device yield) to prevent excessive overclocking.
CPU/GPU/BUS voltage control.
GPU Performance Tuning.
Performance/balance/battery separated DVFS user settings.
Thunder Hotplug driver port.
HMP tuning Interface.
Detail charging circuit control allows faster charging.
Added I/O Scheduler 'bfq, fifo, fiops, row, sio, maple, tripndroid, zen'.
Enable Westwood tcp/ip congestion control (not default).
LED FADE control.
PWM Flicker free.
boeffla's generic wakelock blocker driver.
Qualcomm interactive (renamed cafactive) cpu governor porting.
Added battery-friendly 'relaxed' governors, and more.
Provides an add-on that keep kernel settings on unrooted devices.
Synapse: System Tweak add-on available.
Synapse: Provides configuration profile separated by performance/battery/stability.
Many other optimization applications.
How many users are there in this kernel and what is it with custom ROM?
* Go to User Statistics.
With this kernel, the following information is sent once to the developer's server at boot time.
variant, android serial number(not device serial), name of current firmware(ROM), country code, kernel version
* This information is Android apps can see without any special permissions.
* If you suspect other information transfer, open the '/res/synapse/actions/addon' file.
Description for AOSP ROMs
If you are using another developer's custom kernel, or if using ramdisk is corrupted kernel, you may encounter a bootloop or an unknown problem.
If you have a bootloop problem, flash the PRIME kernel after first flashing the builtin kernel in your ROM. (Or flash the ROM again)
This kernel is flashed AnyKernel method, for all kinds of AOSP ROM support.
Download
Latest Version | Older Version
Community
Telegram Group: https://t.me/primekernel
Naver Cafe (for Korean): http://cafe.naver.com/primeusers
How do I enable donation-only add-on features?​
Credit (Thanks. to)
@AndreiLux - Perseus8890 kernel.
@tkkg1994 - refer to some Commits.
@arter97 - cafactive & more.
@osm0sis - AnyKernel2.
@jesec - AOSP kernel source.
@Wootever - PWM Flicker Free.
All members of the PRIME-Kernel NaverCafe.
And all of commited in sources & all of xda developers.
XDA:DevDB Information
PRIME-Kernel, Kernel for the Samsung Galaxy S7
Contributors
Hyunwoo AHN
Source Code: https://github.com/dwander/Linaro-base/tree/herolte
Kernel Special Features: Linaro-LSK-3.18-EAS Port, Gametuner-MOD, Intelli-Performance
Version Information
Status: Stable
Current Stable Version: 2.1.2
Stable Release Date: 2017-12-17
Created 2017-09-23
Last Updated 2017-12-17

How do enable donation-only add-on features?
I only receive donations from your heart.
Do not donate if you intend to unlock synapses.
If you are unable to make a donation of 5.0 USD or more due to economic reasons, please do not donate and request me to unlock Synapse. Then you can use all the functions of synapse without donation.
How to request synapse unlock
Please tell [email protected] the following:
- A matter that is difficult for you to donate(eg economically difficult countries, students without money or credit card).
- The first five letters or screenshots of the KeyCode on the Synapse's first screen.

Change Log
v2.1.2
fixed bluetooth issue in AOSP 8.1
Linux upstream to v3.18.88
v2.1.1
Linux upstream to 3.18.87
Add Android O (8.x) support
Add new commit for AOSP support
Changed AOSP build to TouchWiz base (Integrated AOSP and TW kernel source code)
Fixed WiFi-Hotspot issue for N8 porting ROM
Fixed an issue where the charge state switching notification did not work
Note-FE GPU driver (r15p0) build droped
r12p1 GPU driver is built back into the package
Minor bug fixes
v2.0.1
Reuse AutoASV
Over clock limit relaxed
Removing the State Notifier Driver & Using the FB Driver
Fixed a bug where two big cores could not be used (v2.0)
Corrected the overclock value to actually apply when boosting the big core
Synapse: Memory: Z-Swap compression algorithm selection option removed
Synapse: Labs: gms drain patch removed
v2.0.0
base: Re-based on Note-FE source code
linux: upstream to v3.18.83
f2fs: Updated latest from f2fs-stable branch
init: Fixed video playback delay issues reported by some N8 porting users
tcp: Change the TCP congestion control algorithm default to Westwood (stock: bic)
Synapse: Fixed the problem that the Intelli-Performance setting is released after rebooting
GPU: Remove unnecessary ipa update code
exynos: Separate AutoASV in 5 steps
exynos: Changed AutoASV not to participate in overclock value(only used for big Core boosting)
mm: Change Z-Swap compression algorithm default to lzo(stock value)
Synapse: Memory: Added Z-Swap compression algorithm selection option
Synapse: Add Labs tab
Synapse: Storage: Resolve compatibility issues with DualSIM models
installer-zip: Include a RAMdisk for TouchWiz for all supported models in package(no need for stock kernel flashing)
installer-zip: After the kernel flashing is complete, it automatically flashes when Magisk or SuperSU files are found.
v1.9.3
Upstream to Linux 3.18.80
Synapse->Utility: Added Android ID management function
Synapse->Advanced: Added option to switch to Enforcing mode after booting
Synapse Add-on Updated to v6.4.2
selinux, Improved fake Enforcing
Use new random driver functions
Removing Gametuner-MOD from AOSP build
Minor bug fix
v1.9.0
Supported Note 8 Porting ROMs
Backported random(entropy) driver from Linux v4.14.rc7
Updated AnyKernel2 (bug fix)
Updated mptcp(Multipath TCP) driver (0.90.0 → 0.90.3)
installer, Prevent Magisk from being deleted when merging ramdisk
Reduced screen brightness during boot
r12p0/r15p0 GPU driver to separate build, packaged in one
! Please read the 'Attention to the GPU driver' part on the first page.
v1.8.2
Linux upstream to v3.18.78
Merge G935F DQJ1 firmware sources
Merge Note-FE AQI4 firmware sources
Fix SafetyNet bypass issue.
f2fs: fix potential panic during fstrim
selinux: Apply Fake-Enforcing mode
In Enforcing mode, it actually works in Permissive mode.
Thanks to @jesec
Synapse: minor bug fix
v1.8.0
• Linux 3.18.76 upstream.
• fully merged Note-FE AQH3 firmware sources.
- There are very very many improvements(bad sammy!)
- Not applicable for AOSP binaries​• Added boeffla's generic wakelock block driver. by @andip71
• Synapse > wakelock: Add generic wakelock.
• Synapse: Some English translation.
v1.7.0
• Linux 3.18.75 upstream
• Added IPA update for cafactive, ironactive, impulse governors.
• Added relaxed CPU governor
- Conservative based battery-friendly governer, with performance degradation.​• ironactive, impulse governor removal.
• Synapse: Added EAS-Tune tab.
- Boost support separated by global, top-app, background, and foreground items.​
v1.6.0
Linux 3.18.73 upstream.
Selinux: permissive/enforce mode switching support.
Synapse: Improved to work in Enforce mode.
Synapse: Improved the SynapseLoader add-on to work in Enforce mode.
Synapse: Added SELinux Enforce option.
- More complete SafetyNet bypass & KakaoBank compatible.​Synapse: Updated addon (v6.4.0)
Install-zip: Prevent Magisk from reverting kernel init files before.
Install-zip: Added init binary hexpatch to support f2fs conversion of cache partition.
v1.5.2
aosp: Reduce the haptic feedback strength default by 50%.
synapse: misc: Added haptic feedback intensity control to AOSP.
v1.5.1
Enable cgroup_schedtune.
- EAS Schedule tuning (energy or performance) automation support options.
- CFS boost setting is removed accordingly.​install-zip: Fixed some bugs in the flashing process.
v1.5.0
Linux 3.18.72 upstream.
G935F-DQIC firmware kernel source merged.
Support AOSP 7.1.2 based custom ROMs.
- Tested: LineageOS, crDroid, RR​Changed to AnyKernel method.
Updating the f2fs file system on the f2fs-stable branch.
workqueue improvement.
Apply ADJ_RBTREE to LMK.
Using ARM64 logic on SHA256 / 512.
PWM Flicker Free - Thank's to [email protected]
- information: https://forum.xda-developers.com/s7-edge/development/amoled-pwm-s7-edge-t3517739​Synapse - Added WakeLock control.
- Some are not supported in MTweaks, I recommend using Synapse.​Synapse: Added CPU Voltage margin setting.
There are many more minor changes.
v1.4.0
EAS: Adding a missing commit.
- Fixed temperature rise problem in some high-end games.​GPU: DVFS tuning.
Synapse: Correct default settings when selecting maple IO scheduler.
init: cfs_boost Adjust the default value to 0.
zip-installer: Mali-R12P0 & R15P0 Include the GPU driver in the package.
v1.3.2
Linux 3.18.71 upstream.
changed the source code base to G935FXXU1DQH8.
improved crypto.
fs: updated to the latest in the f2fs-stable branch.
f2fs: support for lazytime mounts.
fstab: support f2fs mount (/system not allowed).
ext4: fix fencepost error in lazytime optimization.
ramdisk: unified with G935FXXU1DQHY base without any 'flat/edge/kor/eur'.
v1.3.0
Disable Exynos-Swap, use ZSwap.
- ZSwap's efficiency is better.​Enable zswap_writeback.
Changed the toolchain to gcc-6.4.1 (UBERTC 6.4.1).
Remove the 'perfect C-state residency' related commits.
Back to r12p0 gpu driver.
- Battery efficiency issue of r15p0.​Fix synaps FC issue.
- In the case of genuine firmware, FC occurs at the first execution.​Optimized & bug fixes for old scripts in synapse.
Ramdisk divided build, global model and Korean model.
- Several issues related to global models.​
v1.2.0
Updated with DQH8 firmware source code.
Linux 3.18.15 ~ 70 upstream rework.
NIVIDIA CPU Relax Patch removal.
- In some games, FC or loading loop issue.​XPAD Joystick driver update (from Google AOSP 3.18 kernel)
ZRAM, KSM off
- ZRAM is duplicates with VNSWAP
KSM is inefficient​Synapse: English translation (90%)
Details(Korean): http://enfree.com/prime/?page=changelog&device=G930

New kernel , i'm going to test now

Tried both with my S8 ROM port.
Boots very slow
When devices i booted it takes some seconds till phone freezes and than reboots!

DirkStorck said:
Tried both with my S8 ROM port.
Boots very slow
When devices i booted it takes some seconds till phone freezes and than reboots!
Click to expand...
Click to collapse
Tell me the name of your custom ROM and the name of your device model.

Hyunwoo AHN said:
Tell me the name of your custom ROM and the name of your device model.
Click to expand...
Click to collapse
My device is SM-G930F and I am using BatMan-Rom V1.3.0
After flashing the kernel I have flashed Magsik 13.6
Thanks

DirkStorck said:
My device is SM-G930F and I am using BatMan-Rom V1.3.0
After flashing the kernel I have flashed Magsik 13.6
Thanks
Click to expand...
Click to collapse
Sorry, can you try again with v1.3.0?

Hyunwoo AHN said:
Sorry, can you try again with v1.3.0?
Click to expand...
Click to collapse
Sorry, my fault. MTweaks was still running what interfered.
Flashed v1.4 with stock GPU drivers. running fine so far but boot time is still longer than with other kernels.
Could you add a global slider to under volt CPU and GPU by a certain value?
EDIT:
In Synapse at "Game Tuner MOD" and "Utility" tab the last few settings are not in englisch

DirkStorck said:
Sorry, my fault. MTweaks was still running what interfered.
Flashed v1.4 with stock GPU drivers. running fine so far but boot time is still longer than with other kernels.
Could you add a global slider to under volt CPU and GPU by a certain value?
Will try this kernel now and report back.
EDIT:
In Synapse at "Game Tuner MOD" and "Utility" tab the last few settings are not in englisch
Click to expand...
Click to collapse
The global slider is hard to implement, because of the UI structure of Synapse.
If you are not comfortable with the Voltage setting, you can get the desired result by returning to Synapse after setting in MTweaks. If you do not know what I mean, try it.
What if it takes a long time to boot? If it is a symptom that only takes longer in the first Bootanimation, it will not be a problem from the second since it recreates the dalvik (ART) cache for some reason.
If it takes a long time to boot each time, it may be because used the G935F ramdisk in this kernel. I tried BatmanROM, but I did not have the problem you said.
In the next version, i will separate ramdisks by variant like v1.3.0.
Korean in the Gametuner-MOD and utility tabs are donation-only functions.
I will translate English donors if they say inconveniences.

Hyunwoo AHN said:
The global slider is hard to implement, because of the UI structure of Synapse.
If you are not comfortable with the Voltage setting, you can get the desired result by returning to Synapse after setting in MTweaks. If you do not know what I mean, try it.
What if it takes a long time to boot? If it is a symptom that only takes longer in the first Bootanimation, it will not be a problem from the second since it recreates the dalvik (ART) cache for some reason.
If it takes a long time to boot each time, it may be because used the G935F ramdisk in this kernel. I tried BatmanROM, but I did not have the problem you said.
In the next version, i will separate ramdisks by variant like v1.3.0.
Korean in the Gametuner-MOD and utility tabs are donation-only functions.
I will translate English donors if they say inconveniences.
Click to expand...
Click to collapse
Ok, tried that with MTweaks and noticed that it was already under volted by my previous settings.
Noticed that there is no tab to disable wakelocks. Do you plan to add this?
EDIT: for now I back to my previous kernel...sorry....
Thanks!

DirkStorck said:
Ok, tried that with MTweaks and noticed that it was already under volted by my previous settings.
Noticed that there is no tab to disable wakelocks. Do you plan to add this?
EDIT: for now I back to my previous kernel...sorry....
Thanks!
Click to expand...
Click to collapse
Kernel-level wakelocks work when requested by an Android system or app.
It is not desirable to force such requests to be ignored.
My Note4 kernel has a wakelock tab. However, it was added because of the deep-sleep problem in some variants of Note4.
If there is a deep sleep (wakelock) problem in our S7, I will add a wake-lock tab.
Again briefly, the wakelock control should not be abused. So, if there are no related problems, I will not add them.

update to v1.5.0

Thanks for supporting AOSP! ?

After flashing 1.5.0 I'm still at 1.4.0 :/

MK73DS said:
After flashing 1.5.0 I'm still at 1.4.0 :/
Click to expand...
Click to collapse
If flashing was completed and there were no errors, it is not possible.
If you rooted or unrooted the kernel after flashing, the old kernel would have been restored.
If you do not know, Flash the kernel after rooting.

Hyunwoo AHN said:
If flashing was completed and there were no errors, it is not possible.
If you rooted or unrooted the kernel after flashing, the old kernel would have been restored.
If you do not know, Flash the kernel after rooting.
Click to expand...
Click to collapse
Indeed, I rooted after flashing the kernel, thank you ^-^

you do a fantastic job with all the feature you added in your kernel(thunderplug,eas, pwm flicker free, etc...). v15 is very recommended

Hey man, thanks for this kernel! I tried it on AOSP for RR which boots but I noticed that flashing this kernel, disabled the option to adjust vibrate intensity. The option in Sound is there but Settings Force Closes when clicking on it. The reason I need to adjust it, is the vibration is back to really strong vibration when touching a key. Hope this details helps. On latest Prime 1.5.0

Andrw0830 said:
Hey man, thanks for this kernel! I tried it on AOSP for RR which boots but I noticed that flashing this kernel, disabled the option to adjust vibrate intensity. The option in Sound is there but Settings Force Closes when clicking on it. The reason I need to adjust it, is the vibration is back to really strong vibration when touching a key. Hope this details helps. On latest Prime 1.5.0
Click to expand...
Click to collapse
issue was raised on edge thread.
https://forum.xda-developers.com/s7-edge/development/kernel-prime-kernel-v1-4-0-t3678159/page5

Related

[MM 6.0.1 OOS/H2OS 3.5.x Kernel 3.18.57][22 JUN] Dorimanx 1.1 PWR CORE

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
​ Dorimanx OP3T Kernel for STOCK 6.0.1 OOS/H2OS 3.5.x​
No Oxygen 4.x.x or CM/LineAge SUPPORT!!! GO AWAY NOW!​
My PM box, is for Emergency ONLY! do not send me PM's just because you cant post! that is lame, post something useful and post in thread.​
​
My kernel was based on OP3T Stock Kernel 3.5.4.​
Kernel Tree is 3.18.57, + OP3T and CAF updates + my tweaks and lots of tuning!​
Global Credits!
Flar2 for many kernel mods
Cyanogen/LineAge/Code Aurora for many kernel mods
Andip71
Franciscofranco
SultanXDA
OP3 Devs for Stock kernel base!
To all my sources in GITHUB!
Linus Torvalds for Linux source!​
WHAT INSIDE:
Kernel support OOS/H2OS 3.5.x
Kernel compiled with GCC 6.3.0 64Bit adapted for OP3T
Kernel includes all new security patches.
Kernel updated up to 3.18.57 build.
Kernel includes all original last 6.0.1 changes by OP3T Devs.
Kernel operate in 300HZ + all needed fixes to do that.
Kernel has DASH charge and USB Fast Charge (USB mode up to 900mA with MTP on)
Kernel has swipe to wake features by @FLAR2 (up,down,right,left,and dual tap).
Kernel include Sweep2Sleep allows sweeping from right to left and backwards!
on soft buttons to turn off the screen. by @FLAR2
Kernel has support for screen color change app. (KCAL Interface).
Kernel has support for touch keys light delay, default 6sec. by @andip71
Kernel include KGSL fixes and reworked GPU driver (use 133MHz min freq to save juice, goes to idle @ 100MHz)
Kernel include all latest patches from Code Aurora source for 3.18.y
Kernel include Enhanced TCP methods
Kernel include IPA/TIMERFD/WIFI/NETLINK wakelocks removal code by @franciscofranco
Kernel include open source QUALCOMM Wi-Fi driver updated to max without debugs.
Kernel include advanced binder driver from main line 4.10.y kernel.
Kernel include CDROM emulation on mass_storage (compatible with DriveDroid 0.10.18+)
Kernel include latest F2FS driver for 3.18.y with fixes for speed and stability.
Kernel include ZEN,NOOP,BFQ,DEADLINE,CFQ,FIOPS,SIO I/O govs tuned for SSD.
Kernel includes Elementalx, Blu_active, Interactive, Conservative, Ondemand, Performance CPU GOVS.
Kernel support FSYNC mode for FS. (Off by default)
Kernel includes ARM enhanced performance and battery patches
Kernel support Backlight Dimmer feature.
Kernel supports CPU OverClock/UnderClock for both clusters.
Kernel support thermal driver tuning, max heat for cores, default 70c.
Kernel includes advanced crypto drivers and latest qseecom decryption driver.
Kernel includes updated EXFAT and FUSE + NTFS drivers.
Kernel support for not forcing encryption.
Kernel includes support for CIFS driver.
Kernel includes fast finger print sensor mod when screen is off.
Kernel includes support for Haptic Feedback (vibrate) tuning (more/less)
Kernel includes massive code update for sound driver, and @FLAR2 sound/mic gain control interface.
Kernel include boost to I/O by mounting partitions with optimized flags, and updated MMC driver.
Kernel includes updated BT and NET/PPP/VPN/DATA drivers.
Kernel include mode to ignore home and touch keys when finger is pressed against the screen.
Kernel includes Aroma Installer for easy install with few simple changes that can be selected.
Kernel includes many patches to camera, GPU, and screen drivers.
Kernel has OTG enabled by default internally.
Kernel has Notification LED Control driver by @andip71
Kernel include usage of power efficient workqueues in many drivers by @franciscofranco
Added Support For INIT.D Scripts, from kernel 0.5
Kernel will switch to NOOP I/O Sched during screen Off time to save power. by @SultanXDA
Kernel will boost CPU frequency when screen wakeup to improve user experience, by @SultanXDA
Known BUGS!
Post reports, i will fix.
Standard disclaimer:
By installing this kernel YOU will take full responsibility for any damage to your device!
Hardware or software! no one forcing you to install it.
So please do not blame me if you read wrong! or didn't read at all the instructions that i have written for YOU.
But you can feel SAFE to use it, as I test every release on my phone!
Before I publish it for download.
Your warranty will be void by installing custom kernel as my.
Kernel Sources:
KERNEL GITHUB
TO DOWNLOAD GO DOWN!!! YES MORE DOWN...(do i need to repeat?)
How To Install:
You will need to have device with Latest Recovery installed! Please install the 3.0.4.1 BUILD!
>>>Here is the Recovery you need!<<<
Old recovery can corrupt your DATA partition as my kernel using latest F2FS driver. new recovery has updated driver.
YOU MUST UNLOCK OEM BOOTLOADER!!! OR YOU WILL BE STUCK ON BOOT!
Refer to other threads for recovery install process and for oem bootloader unlock.
Download kernel, upload it to your SDCARD, anywhere.
Always have STOCK Kernel for your ROM!
Reboot to Recovery.
THINK AGAIN! did you made backup? NO!!!!??? DO IT NOW!
If you had any other Custom kernel, Install STOCK kernel or dirty flash your ROM,
to clean any trace from other kernel. then install ROOT if you wish! then install my kernel.
Do not clean any cache or dalvik (needed for ROM only!).
Reboot!
If you wish to UNINSTALL my kernel, there is a uninstaller ZIP for you.
it's will remove all ramdisk changes, and install last 3.5.4 stock kernel, preserving ROOT if was installed!
Have Fun and report.
Donation Board:
ME donated 140+ hours to update stock to now.
Krija = Dorimanx App updates! (Serious Donation!).
VanderLo
Mirror #1 by willflint
Mirror #2 by GITHUB!
Info for Web Hackers,
in my mirrors, there is nothing to take!
My work is public and for the people!
Please let my mirrors work in peace.
Thanks.
​
Mirror #1
Mirror #2
More Usefull Links:
Few Apps that you can use.
STOCK Kernel 3.5.4 last OTA
Uninstall Script + Stock Kernel
​
Change logs:
22/06/17
Kernel 1.1 Final Build for MM 3.5.x
*Updated with 3.18.57 critical patch
*Merged fix for infinite loop in wake boost code.
13/06/17
Kernel 1.0
*Merged security update to prevent hackers using memory access exploits.
*Merged patches 3.18.55 + 3.18.56, changes in:
CHAR,NET,OF,PCI,USB,MM,KERNEL CORE,SECURITY,FS
*Compiled new GCC 7.1.0 kernel toolchain,
and used it to fix many kernel bugs during kernel compile.
*Merged cleanups to unused code for CPU cortex-a53.
*Disabled some TRACING code.
*Merged changed to reduce log spam.
*Merged updates/fixes for FS,SOUND,QCOM,RTC,CPUFREQ,NET,WAKEUP,MDSS,DEVFREQ.
24/05/17
Kernel 0.9
*Merged latest F2FS driver updates, great read/write I/O performance, 20% more speed.
Also better power usage during suspend. Discard and GC threads now sleep too.
*Merged many updates from LOS tree (CM14.1 - 7.1.1) including MMC,SOUND,CORE,TRACE,VIDEO,CAMERA,
MDSS(screen panel),SOC,IPA,KGSL(GPU),ASHMEM,CRYPTO,BINDER,QCOM MODEM,QCOM SUBSYSTEM,
*Merged patch 3.18.54 including NET,USB,TTY,FS,BT,CORE,PADATA updates.
*Merged security fix for SU thread, now hackers will have hard time exploiting ROOT
with apps that didnt asked for ROOT. it's very big step in security with ROOT!
*Merged updates to boost I/O performance and CORE RT tasks.
*Merged better HACK for SafetyNet checks. (if you have ROOT, SafetyNet will not pass the check!).
15/05/17
Kernel 0.8 STABLE
*Changed setting sleep I/O gov to wait 5sec before activating.
*Merged main line kernel patches 3.18.52 + 3.18.53,
included RAM(MM),ARM64,NET,FS,CORE,USB,POWER,LIB,SOUND.
*Merged updates to UFS controller (storage driver)
*Merged new driver that will boost cpu freq when screen wakeup for 5sec.
*Merged updates to cpufreq + cpustats drivers, bugs + ram leaks fixes.
*Merged update to Arm64 code to reduce delay on RAM allocations.
*Merged Memory code updates.
*Merged GPU ION driver security fixes.
04/05/17
Kernel 0.7 STABLE
*Merged new driver that will set NOOP as I/O sched on all mounts when screen goes off.
and restore other I/O gov when screen is ON after 10sec. this will help to reduce power usage
while in suspend, and speedup the wakeup.
*Merged bug fixes for touchscreen driver.
*Merged big patch 3.18.51 from main line kernel.
*Merged few fixes for EXT4 driver.
*Merged fix for L2PC and GPU driver detected by Franco.
25/04/17
Kernel 0.6 STABLE
Kernel 0.5 BETA (deleted, bug in NET code)
*Reverted changes in NET code that triggered kernel crash!
*Merged new updates to FS,Qseecom,MDSS,Camera,USB,KGLS,RCU,SOUND
*Merged new updates to Power,SPMI,SOC,Security,Thermal,MMC,MODEM
*Merged update for CPUIDLE code should help to gain even more power during suspend.
-->>0.5<<--
*Merged updates to WIFI Driver + fixes for non original code changes.
*Tuned touch boost freqs on boot. (1.2ghz + 1.4ghz big cluster)
*Merged MASSIVE code updates for Screen,USB,NET,MODEM,CRYPTO and camera drivers from CM14.1 kernel.
many RAM leaks fixed and few possible critical bugs are gone!
*Merged few updates to Interactive gov.
*Merged Sound Driver updates.
*Merged MMC driver updates.
*Merged QseeCom driver updates.
*Merged update that increase KGSL memory store for GPU.
*Merged new GCC 6.3.0 Kernel compiler with latest Binary updates and tuning.
*Merged MASSIVE update 3.18.49 from main line source.
*Merged MASSIVE update 3.18.50 from main line source.
*Fixed PSTORE not writing logs on boot/crash.
*Added INIT.D support as requested. put your scripts in /data/init.d folder!
it's will be auto added on boot if you select to have INIT.D support in AROMA Installer.
29/03/17
Kernel 0.4 STABLE
*Merged fix for FS code for file permissions.
*Removed timer stats that no one need.
*Fixed wakelock blocker code. now device will deep sleep at last. flat line in battery graph.
*Merged many bug fixes for screen driver (mdss)
*Merged bug fixes for camera, sound, and leds drivers.
*Merged bug fixes for BT, hwmon, qpnp, NET, HID drivers.
26/03/17
Kernel 0.3 BETA.
*Updated BLuActive CPU GOV from dev source.
*Merged change that fools apps and show kernel is in green state (stock)
*Updated Interactive CPU gov, allowed to set max timer rate on screen off,
For now I have set it to 40K default screen on is 20K.
*Fixed timekeeping code bug in suspend.
*Merged many code changes that fix kernel memory leaks in many drivers! Thanks to @sultanxda
*Merged update to kill wakelocks code by @franciscofranco + some improvements in screen on/off code.
*Merged many changes in kernel to silince useless debug mess.
*Merged update for WIFI regional DB.
*Changed F2FS driver to use noinline_dentry by default to support older twrp.
I am STRONGLY advice to install TWRP 3.0.4.1 as it’s including new F2FS driver that don’t mess DATA partition!
*Merged updates to GPU freq driver.
*Merged bug fix for USB code.
*Merged improved CRYPTO optimization for our CPU.
*Enable JUMP_LABEL code to optimize some functions in kernel if possible.
*Added user configuration in AROMA installer for TouchKeys LED delay. And for Wakelocks ON/OFF
Already set as I think best, but you can do whatever you like.
To be able to disable touch keys leds, unselect the touch keys override option.
Please create DATA backup before booting just in case.
Best to use TWRP 3.0.4.1 with this kernel and any other!
15/03/17
Kernel 0.2 STABLE.
*Merged update to Blu_Active CPU GOV from dev @ENGstk
*Merged ability to disable some NET/TIMER wakelocks to save power during suspend by @franciscofranco
I have set to disable the: wlan,timerfd,wlan_extscan_wl,qcom_rx_wakelock,ipa.
*Merged update to binder code.
*Changed kernel to 300HZ timer from 100HZ + corrected critical drivers to use msec to jiffers for there needs.
*Merged updates to vibrate driver, less delay on wakeup using fingerprint unlock. still can be tuned for min/max vibrate force.
*Merged updates to touch boost driver.
*Merged updates to PCI code, will reduce power usage.
*Merged changes by @franciscofranco to many kernel drivers that now will use power efficient workqueue function.
*Merged changes to NET and Kernel Performance drivers that will allow to save more power.
*Merged changes by @franciscofranco to enable screen panel power save functions.
*Merged updates to Interactive CPU GOV, will save more power during screen off.
*Merged updates to scheduling Deadline code.
*Merged many updates to F2FS driver from 3.18.y F2FS stable git, preserving all OP3T needed code + some battery saving changes.
F2FS is now updated up to 4.11.rc1 kernel source.
*Merged change to improve back light curve to max brightness at high sun light. by @franciscofranco
*Changed the default touch keys led time out to 5sec from 6sec.
05/3/17
Kernel 0.1 STABLE.
Initial build Mega Bomb. see what inside list.
XDA:DevDB Information
[MM 6.0.1 OOS/H2OS 3.5.x Kernel 3.18.57][22 JUN] Dorimanx 1.1 PWR CORE, Kernel for the OnePlus 3T
Contributors
dorimanx
Source Code: https://github.com/dorimanx/DORIMANX-OP3T-KERNEL/commits/master
Kernel Special Features:
Version Information
Status: Stable
Current Stable Version: 1.1
Stable Release Date: 2017-06-22
Created 2017-03-05
Last Updated 2017-06-28
Saved For me!
*Kernel can be tuned with Kernel Auditor App.
*Screen Color can be modded with app in my APPS folder. Color-Control-v1.1.apk
*Kernel support Flar2 Kernel app, same for Francisco Franco.
*In time i will add my simple control app for FREE
You can find TWRP recovery in my mirror and supersu.zip + exposed if needed.
Enjoy
Saved For me! #2
First thanks!!!
glad to see you here!! why a MM kernel?
cristianvaz81993 said:
glad to see you here!! why a MM kernel?
Click to expand...
Click to collapse
As he stated in the op
"When there will be EXPOSED for 7.x.x I will build kernel for 4.x.x STOCK"
With the biggest possible font. How did you miss that :laugh:
cristianvaz81993 said:
glad to see you here!! why a MM kernel?
Click to expand...
Click to collapse
I need exposed. and 4.x.x is still bugged. in beta state. i will move to it after some time, it's the only way
But for now i enjoy this monster device with super stable ROM. why to search for problems?
Many think as me. and not all moved to 7.x you will see
I am just flashing stock 3.5.4 because of your kernel <3 thanks for bringing it here .
Really happy to see you here with your awesome work. My g2 is still running your Kernel like a champ.
Welcome
Sent from my OnePlus 3T using XDA Labs
the good old days with the g2....
glad to see you here
thanks and good luck.
also with MM 3.5.3 as i need xposed.
Sent from my ONEPLUS A3010 using XDA-Developers Legacy app
The hero is here.
Welcome master, glad to see long awaited punch, thanks for supporting 3t :fingers-crossed:
Can I flash it over stock 3.5.3?
Sev_07 said:
Can I flash it over stock 3.5.3?
Click to expand...
Click to collapse
Yes, should work fine. But if you decided to stay for now with mm. Update to last build, its very stable.
Sent from my OnePlus 3T
Appreciate the MM support!!!!
Also follow the master from G2 to 3T
Just downgrade my 3t from nougat for xposed and this kernel jumped out!
Thanks master Dori for this great kernel, everything runs very well for now.
only thing I noticed is that button led can't turn off now?
The most stable 0.1 version I've seen
btw can I format cache to F2FS with this kernel? or does that make any sense?
Thanks again.
Been very pleased with your kernel in G2 days, I'm sure this one also live up to expectation... Unfortunately I'm using N now, so I'll keep on watching until Xposed for N is released... Keep up the good work! :good:
Here we are......
Woow! I've used your kernel on my G2 days. Gonna try this out on the weekend. thanks dori!
I noticed that button led can't turn off now also.

[KERNEL][TW][SM-G930F/FD/W8/S/L/K] Primal Kernel v2.3.4 [DQH8][S7 + Ports]

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Welcome to the official thread for Primal Kernel project for the Exynos Galaxy S7 (SM-G930F/FD/W8/S/L/K) running TouchWiz based ROMs (Nougat only currently).
The aim of this project is to provide a rock solid, ready to use tweaked kernel, without useless features.​
Introduction:
Primal Kernel, formerly known as The Outsider Kernel, is the first S7 kernel for TouchWiz based ROMs sporting the AnyKernel2 installation approach.
The most widespread method consists of flashing a complete prebuilt boot image (this means that it will be flashed straight away without any modification).
This is the most practical method for providing a working kernel, but it has disadvantages too:
1) the installation package will be bigger.
2) the developer must keep the ramdisk updated with the newest from stock kernels. This requires rebasing the patches and keeping up with the newest firmwares sometimes with frequent releases.
3) it makes the compatibility with older ROMs a little more complicated as a newer ramdisk could add modifications not supported by the older ROM.
4) for the ported ROMs the developer has to manually patch the ramdisk with the required changes from the ported device's one. So you have to create a different boot.img for every ported device for every S7 variant.
But we have an alternative...
AnyKernel2 is a different approach to the installation of the kernel: the package only contains the prebuilt zImage (the actual kernel), the dtb (basic hardware instructions like reserved memory and so on) and the patches for the stock ramdisk. AnyKernel while installing unpacks the previous kernel and replaces zImage, dtb and, after patching it, the new ramdisk.
This implies various benefits:
1) smaller installation package.
2) you can always have the most updated ramdisk without the need of waiting an update from the developer.
3) better compatibility as you can flash it on top of any stock (or close to) boot image.
4) it makes life a lot easier for the developer with many ready to use patching functions.
5) with some efforts from me, the package can adapt the stock S7 ramdisk to work on any S8 or Note FE ported ROM, making it even more adaptable.
All this sounds great (and it is great) but introduces a problem: you can't flash it on top of another custom kernel. This because custom kernels almost always have scripts and other modifications to the ramdisk, which might not be compatible with my kernel.
Installation instructions:
If you correctly follow these instructions you'll be able to run Primal on any ROM (as above).
If it doesn't work, read twice and try installing again before asking for help.
● Instructions for BatMan ROM (S8 port) users:
1) install the ROM (you can dirty flash if you already have it installed) make sure to choose stock kernel (so it doesn't install the new GPU libs, which aren't supported by Primal).
3) after the ROM flashing process has been completed flash the Primal kernel zip for your device.
4) flash your preferred root method.
5) reboot and be patient as first boot might take a little more time.
● Instructions for any other ROM (any other S8 and Note FE ported ROM and, obviously, any S7 ROM) running a custom kernel:
1) make sure you have the stock S7 kernel zip (or any stock boot.img from any S7 Odin package or ROM zip containing the stock kernel) and Primal Kernel zip.
2) if you have a boot.img flash it to the boot partition using Flashify or TWRP itself.
3) if you have the flashable stock kernel zip and Primal Kernel zip reboot to recovery and flash in this order: stock kernel zip, Primal Kernel zip and then your preferred root method.
● Instructions for any S7 ROM running stock kernel:
1) reboot to recovery and flash in this order Primal Kernel and your root method of choice.
If you get into a bootloop...
● if you're running a port make sure it says dream2lte (if an S8 port) or gracerlte (if a Note FE port) in the build.prop; if there isn't any add a line at the bottom, "primal=dream2lte" for S8 or "primal=gracerlte" for Note FE.
● make sure your ROM doesn't come with the new GPU libs installed, if it does restore the old libs somehow (flashable zip coming soon!).
Thanks and Credits:
● Samsung OSRC for the kernel source code
● @Tkkg1994 and @jesec for their clear and vast source code and scripts
● @flar2, @UpInTheAir, @franciscofranco, @eng.stk, @osm0sis, @andip71 and others for their great contributions to the community and Android
Features:
● based on the latest Samsung kernel source code G935FXXU1DQH8 merged with G935SKSU1DQG1
● always have the latest ramdisk for your specific model and variant, thanks to AnyKernel2
● ported ROMs are supported (like S8 and Note FE based ROMs)
● compiled with custom built Uber Toolchain 6.4.1 (20170826) and optimization flags
● custom scripts with tweaks applied at boot, optimizations and wakelock fixes
● init.d support
● added a few tested and updated CPU governors (blu_active, conservative, ondemand, powersave, interactive, performance).
default: interactive
● added a few tested and updated I/O schedulers (noop, deadline, row, cfq, bfq, zen)
default: cfq with custom parameters
● added a few TCP congestion algorithms (westwood, reno, bic, cubic, htcp, lia, olia, wvegas)
default: westwood
● full f2fs support from jaegeuk's f2fs-stable plus OnePlus improvements
● fstab mount tweaks for both ext4 and f2fs
● fixed various bugs in the Linux code like improved cyptography algorithms, filesystems, network...
● architecture specific fixes
● cpuidle improvements
● random (entropy) generation improvements
● power managemnet, schedulers, governor and memory management improvements
● unlocked lower CPU frequencies with correct voltages and set recommended defaults (312MHz big - 338MHz LITTLE)
● schedule workqueues on awake CPUs enabled
● improved hotplug and idle with interactive governor
● added 112MHz minimum GPU frequency and clock control
● voltage control for GPU
● LED control with fading option
● voltage control for big and LITTLE clusters
● preset I/O scheduler tunables
● disabled SWAP and ZSWAP for best performance
● preset VM tunables
● SELinux permissive
● Knox 0x0, Samsung security checks and SafetyNet spoofed to pass
● Fsync switch added
● Software CRC control switch added
● and many other changes (too many to be listed here)...
Notes:
● If you want root, you need to flash the root zip after flashing this kernel (Magisk is recommended to pass SafetyNet).
● If you want to access the advanced kernel controls MTweaks by @morogoku is the only app which supports all the features (download it here).
Everything has always been stable, and almost bug free, so no notes on that side at the moment :laugh:
Latest stable version is 2.3.4.
If you want to flash an older version see Archive in the download links below.
Source > GitHub
Commits (kind of a changelog) > GitHub
Download:
herolte (S7 SM-G930) > Android File Host
Support:
If you want to receive support, find and share settings, report bugs and try Beta versions, join our Telegram group:
TouchWiz Projects by kylothow | Official Group
You're welcome
XDA:DevDB Information
Primal Kernel, Kernel for the Samsung Galaxy S7
Contributors
kylothow
Source Code: https://github.com/kylothow/universal8890-NN-G935
Kernel Special Features: Stable f2fs porting, tweaked with recommended settings, a few but working governors, schedulers and patches are just some of the awesome features.
Version Information
Status: Stable
Current Stable Version: 2.3.4
Stable Release Date: 2017-09-13
Created 2017-04-26
Last Updated 2017-09-14
Changelogs:
From version 2.3.3 to 2.3.4:
Code:
● added fstrim on boot
● added Knox and other security check props spoofing inside the kernel
● added Google Play services drains fix
● added custom init.rc with tweaks (cfq with tunables preset, read ahead 128 and 256 for external, rised base CPU frequency a little (you can lower it if you want)
● recent patch to cpufreq added
● updated AnyKernel2 with the latest goodies from osm0sis
While searching the Internet you might also find versions which aren't listed here: these are Beta versions and their changelog isn't available (but included in the one of the next stable version, so you don't miss anything).
All the changes I made are listed on GitHub.
Old changelogs (for The Outsider):
Version 2.2.1
Code:
- added cleaning scripts at boot (automatic trim, sqlite optimization, cache and leftovers cleaning
- updated ramdisk and mcregistry to DQE7
- updated with latest Samsung changes (DQE7/DQEF)
- disabled swap and zsmalloc
- added row I/O scheduler
- increased default maximum frequency to 2.6GHz
- updated to Linux 3.18.55
- switched to custom built Uber Toolchain 6.3.1 (20170528)
- switched to a whole new overclock/voltage management method based on ASV
- changed frequency policy especially regarding touch boost (for better battery)
- allow to enable Exynos swap
- add unstable power detection and charging/battery controls
- added notifiers for the future addition of CPU governors and removed old/broken implementations
- a few f2fs and other minor fixes to defconfig, schedulers, cpufreq
Version 2.1.6
Code:
- switched to GCC 6.3.1
- various build flags to optimize building
- enabled a few compression algorithms (GZIP, LZ4, LZMA...)
- enabled cryptographic drivers optimized for 64 bits
- defconfig tunings to reduce debug logging
- updated mcRegistry and ramdisk to DQD9 (for S8Port only the init file)
- drastically changed kernel default tweks/settings
Version 2.1.5
Code:
- fixes regarding stability and speed
- ext4 and fuse fixes
- crypto and drivers built uncompressed
- random numbers generation changes
Version 2.1.4
Code:
- the kernel has been redone from scratch; the features are in pair/more than the previous 1.x.x versions, and gives you an overall way better experience.
Version 1.4.1
Code:
- various bug fixes
- performance/reliability improvements for network, ext4, f2fs and cryptography
- enabled a few kernel modules for ipv6 and a few other optimizations
- trying out higher kernel timings
- set default governor to blu_active
Version 1.4.0
Code:
- first release for xda
How to set up your phone with f2fs:
1) First you have to install a compatible recovery. Recent TWRP releases can format and mount f2fs, but they don't handle a few installation scripts correcty. I recommend TWRP 3.1.1.0 by @lyapota which has the correct patches. You can find it here.
2) Then you have to backup all your data (internal storage will be wiped too, so make sure to copy ALL your files in the INTERNAL storage). So, any TWRP backup should be taken on external SD card.
3) After this, reboot into TWRP. From Wipe / Advanced Wipe check only /data, then select Change Filesystem and check f2fs. Do the same for /cache. At the moment I don't think there are ROMs that support f2fs on /system too (All the TouchWiz based ROMs force ext4 and format despite settings).
4) Reboot into recovery once again, so we're sure that it can mount everything.
5) At this point you're done. Flash your ROM of choice, this kernel and whatever you want.
Reboot and profit!
ROMs supporting f2fs formatted /system will be listed here when available.
Dishonored reference?
Sent from my Galaxy S7 using XDA Labs
XDevOS said:
Dishonored reference?
Sent from my Galaxy S7 using XDA Labs
Click to expand...
Click to collapse
Definitely [emoji6]
Sent from my SM-G935F using Tapatalk
kylothow said:
Definitely [emoji6]
Click to expand...
Click to collapse
Love that game :good: Will stay with this kernel as long as I can xD <3
Sent from my Galaxy S7 using XDA Labs
busy man
thanx boss
testing. ..
hotplug?
what Rom you running @kylothow
Calvin.manneson said:
busy man
thanx boss
testing. ..
hotplug?
what Rom you running @kylothow
Click to expand...
Click to collapse
At the moment only the stock hotplug. Further developments will need a specific app like Synapse or maybe a custom Kernel Adiutor -- which is the next step in the development.
I'm running latest Helios, the only thing that is preventing me to do my own custom ROM (basically it perfectly fits my needs).
Default settings are the best even for you?
I wanna try your work but don't have enough time for playing games with custom settings.
Thx a lot for you anyway
ig_df said:
Default settings are the best even for you?
I wanna try your work but don't have enough time for playing games with custom settings.
Thx a lot for you anyway
Click to expand...
Click to collapse
The point of this is to provide a great experience out of the box -- there is a few others helping me to decide which are the best settings, and I update them quite often because it's a continue pursuit of the best everyday settings profile.
The script applies at boot before anything else so you can change them in case you don't like.
The inexperienced user can update the kernel and enjoy always updated settings without even installing a kernel control app or rooting.
Sent from my SM-G935F using Tapatalk
+good kernal antutu 15xxxx
https://www.mx7.com/i/140/F2Pnl9.png
-battery unstable
rom s.....
Calvin.manneson said:
busy man
thanx boss
testing. ..
hotplug?
what Rom you running @kylothow
Click to expand...
Click to collapse
Those scores are with OC ? GPU and CPU?
Seems smooth even with PowerSaving mode(1.4.1)
Update: Battery is unstable <=60-50%
nalas said:
Those scores are with OC ? GPU and CPU?
Click to expand...
Click to collapse
yup,speed up everything for high score
New base D2/3 all score high.
with stock kernel and default settings score 140k.
May give it a try out at some point ATM I'm on superman ROM but curious as if it will break superman control app as I know a version of super kernel broken that app
Sent from my SM-G930F using Tapatalk
king118 said:
Seems smooth even with PowerSaving mode(1.4.1)
Update: Battery is unstable <=60-50%
Click to expand...
Click to collapse
hi
what is battery unstable you mean? it's less time than other kernel? please guide
tranphungan said:
hi
what is battery unstable you mean? it's less time than other kernel? please guide
Click to expand...
Click to collapse
The old 1.x.x version can have every problem imaginable (the only confirmed one is stutters for some users) but no one ever complained about battery.
Users just say things without proof, stats or logs, they don't even mention the settings they're using or which ROM are they on... Definitely not useful.
Sent from my SM-G935F using Tapatalk
kylothow said:
The old 1.x.x version can have every problem imaginable (the only confirmed one is stutters for some users) but no one ever complained about battery.
Users just say things without proof, stats or logs, they don't even mention the settings they're using or which ROM are they on... Definitely not useful.
Sent from my SM-G935F using Tapatalk
Click to expand...
Click to collapse
Thank you.
In my opinion. I can see this kernel make my rom Super Man is smoother than superstock or tgpkernel or superkernel. Absolutely smoothly and not effect to battery much (still not recognize..). I push up all cpu frequency to max. Hehe
New update is available for download. It has been tested and reported to be stable and worth the upgrade from the great 2.1.6.
Here's the changelog:
Version 2.2.1
Code:
- added cleaning scripts at boot (automatic trim, sqlite optimization, cache and leftovers cleaning
- updated ramdisk and mcregistry to DQE7
- updated with latest Samsung changes (DQE7/DQEF)
- disabled swap and zsmalloc
- added row I/O scheduler
- increased default maximum frequency to 2.6GHz
- updated to Linux 3.18.55
- switched to custom built Uber Toolchain 6.3.1 (20170528)
- switched to a whole new overclock/voltage management method based on ASV
- changed frequency policy especially regarding touch boost (for better battery)
- allow to enable Exynos swap
- add unstable power detection and charging/battery controls
- added notifiers for the future addition of CPU governors and removed old/broken implementations
- a few f2fs and other minor fixes to defconfig, schedulers, cpufreq
> https://www.androidfilehost.com/?w=files&flid=171297
thanx for updating dev.
definitely the fastest custom kernel for me...
anyone know why ux score is 'red' in antutu?

[KERNEL][LOS][v3.18.87] The Soda Kernel [15 DECEMBER] + firmware flashables

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Introduction
Buying Mi 5 gave me opportunity to spread wings and maintain a (hopefully) better version of Linux kernel for this device.
The idea is to provide two levels of modification, one - the most up-to-date kernel upstreamed with official Linux changes (also Android) repo to provide bug-free and stable experience, second - tweaks and additional features placed in top of upstreamed version to give blazing efficiency and battery friendly experience.
I came with the idea while looking onto linux repo - there are so many fixes and optimizations done to the code which gonna never come up to any Android device. So why not to try and pick some of these changes?
Android device is one of many for which Linux kernel is developed. Adding hardware specific changes will give extra performance and battery backup as it's going to use the phone architecture better instead of generic implementation.
Click to expand...
Click to collapse
Compatibility
It is LOS forked repo so any LOS-based ROM should be compatible (not MIUI compatible).
Do not use it with any custom ROM or additional modifications as I'm not supporting them (and will not).
Of course, you can try flashing, if it works - enjoy.
Downloads
You can use 'Download' tab in the top or download from AFH .
Installation:
- download kernel zip and necessarily check MD5!
- boot into recovery
- flash the zip (always flash on clean ROM!!)
- (optionally you can wipe cache/dalvik)
- reboot to the system and taste the madnesss
Soda-Upstream - stock kernel upstreamed with official repos as much as it is possible.
Features of Soda-Upstream:
- Almost fully updated to v3.18.87
- Compiled with fresh Google's prebuild GCC 4.9
- A lot of official fixes and optimizations
- Updated crypto parts
- Updated lib parts (lots of performance improvements)
- Updated cpuidle
- Updated devfreq
- Updated Android drivers
- Updated pseudo file systems & JBD2
- Updated fs (up to 10% faster I/o)
- Updated arm64 deps
- Updated parts in net
- Miscellaneous scrpits update
- Stock frequency on 32gb model
- Own fix for mitigation task not initialized (testing)
- Other minor updates
Soda Kernel - upstreamed kernel compiled with fresh GCC, arch dependent flags, awesome tweaks and without any useless crap!
Features of Soda:
- All from Soda-Upstream
- Compiled with UBER TC 5.x (can't go higher due to s***ty drivers)
- Added arch optimization flags
- Changes in config
- Enabled by default net governor Westwood
- New IO scheds: ZEN, FIFO, FIOPS, Maple
- New CPU govs: ElementalX, ZZmove, Blu_Active
- Adreno Idler
- Adreno boost
- Disabled CRC
- Mi5 Lite has standard CPU frequency
- Added Frandom
- Backlight Dimmer
- Kcal v2
- Compiled with -O2
- Passing SafetyNet: GREEN
- Optimized functions
- Charge Control
- Boeffla Wakelock Blocker with predefined stuff
- Disabled FG wakelocks: update_sram, update_temp, memaccess, soc_work
- Default noatime mount flag
- Sound Control
- FingerPrint boost (it's not taking a lot of battery, but makes a difference at screen wakeup)
- Higher Slimbus frequencies to provide better sound quality (and truly it's working)
- Gentle Fair Sleepers, Arch Capacity interface
- Dynamic Sync Control 2.0
- USB OTG
- Alucard Hotplug
- IntelliThermal
- PowerSuspend
- Updated CPU boost
- Memory Compaction mechanism
Before you exit:
Don't get dishearten because of 'poor' features list. Main advantage of this kernel is upstream of many parts. Changes in Soda are chosen wisely, I implement thinks that are supposed to benefit. You don't need XYZ, you need Soda
Known issues:
Upstream:
None
Soda:
- Battery idle drain (investigation in progress)
- Speaker gain is broken
FAQ:
Could you add XYZ feature?
I will not add features I personally think are useless or unneeded. I can only promise I'll take it into consideration. If you're so single-minded about that just fork repo and pull request - I'll pick it gladly.
Could you upstream XYZ?
Ok, upstreaming is nice unless you fall into conflicts or totally new code structure. Don't expect me to update the kernel up to 4.13, haha! I'll keep in mind what you're asking me for, but if you're so desperate about this I'm waiting for pull request .
Why should I choose yours upstreamed version?
Don't expect it to change your Mi 5 into S7 edge =)
Think about like that - some time ago Google forked Linux kernel at version 3.18.31 and added their changes, then Qualcomm forked it and added their changes, then Xiaomi forked and added their changes. There are a lot of bugs, memory leaks and other bad stuff in here and probably nobody will take care about it... Oooch, except me! My aim is to keep the code as most up-to-date as possible - so without rewriting a half of proprietary drivers.
Does it make any sense?
In my opinion - yes.
Our phone will be more stable, not vulnerable to newest 0-days and hopefully a bit faster and battery friendlier. The key is bug-free optimized code; magical tweaks do not always take the first place in making a kernel better. As of my experience using upstreamed version gives more battery and smoothness!
"My phone freezees help meeee!!!!!!!11oneoneone..."
Description, logcat, kmesg or GTFO.
Could your changes damage my device?
I don't take any responsibility for broken devices, firing from work or nuclear wars. It's a hobby project maintained in my free time. I carefully pick up changes not to mess up anything and add features that are checked and provided to work correctly. There is a small range of cases when you can loose your phone completely, typically it will just freeze and reboot.
Where is version for MIUI and EAS?
MIUI won't be supported because Xiaomi haven't updated their repo for a long time. Building for MIUI would bring more problems than advantages.
EAS is in testing stage and will be released soon.
Remember to hit like button if you like my work as it motivates me a lot!
Play with it and post your experience please
Firmware:
Now I'm also providing updated firmware flashables.
You can easily download firmware packages from AFH .
Happy flashing!
Telegram:
I created Telegram Group where we talk about everything concerned with Android and kernels. Everyone is welcome!
--- Invite Link ---
Nightlies:
If you want to taste unreleased versions of Soda make sure to join my --- Telegram Channel --- where I post release candidates.
Donation:
I have spent lots of hours on debugging and feature adding. I'm developing this project in my free time but I put my heart and soul into it. I'll be glad to see you appreciate my work!
Buy me a coffee
Thanks to:
All LineageOS team @Lord Boeffla (aka andip71) @ZaneZam @bgcngm @frap129 #engstk @arter97 @jollaman999 @franciscofranco @TheCrazyLex
Special thanks to:
@mlira1 @SkiesOfAzel
XDA:DevDB Information
The Soda Kernel, Kernel for the Xiaomi Mi 5
Contributors
xNombre
Source Code: https://github.com/xNombre/android_kernel_xiaomi_msm8996
Kernel Special Features:
Version Information
Status: Stable
Created 2017-08-20
Last Updated 2017-12-15
The Soda-Upstream Kernel Changelog:
Code:
beta 1.0:
- initial release!
- upstreamed to v3.18.60
- upstreamed crypto section
version 1.1 (no beta anymore):
- upstreamed lib section (it includes a lot of optimizations done to the code)
- minor init fixes
- few block fixes
- updated ZRAM driver (with new LZ4 it's way much faster)
version 1.2:
- updated GCC from google's repo
- updated to linux 3.18.70
- updated cpuidle
- updated a bit in cpufreq
- updated devfreq
- [STRIKE]updated pseudofilesystems (like sysfs, proc etc.)[/STRIKE]
- updated Android drivers (a lot of changes)
- useless Adaptive LMK is removed
- updated sdcardfs
- merged LOS branch
version 1.2.1:
- BIG filesystems update (mainly pseudofilesystems)
version 1.2.2: --IT'S A HOTFIX---
- reverted a lot of crap
- fixed zram issues (need to be updated more carefully)
- minor updates in video, gpu
- minor updates in amba
- merged LOS tree
version 1.3:
- upstreamed to v3.18.84
- upstreamed with base
- updated android drivers (this time it's truly better)
- updated arm64 section
- own fix for broken mitigation task
- now you have stock freqs on 32gb model :)
- updated fs (up to 10% performance spike based on benchmarks)
- updated Linux scripts
- updates in net section (incomplete)
- kernel is now named soda :D
- updated GCC
- minor changes
version 1.3.1:
- fixed problems with F2FS
- fixed problem with kernel name unavailable
version 1.3.2:
- upstreamed with base (fixes potential touchscreen issues)
- upstreamed linux to 3.18.87
- updated AnyKernel2 (smaller package size)
The Soda Kernel Changelog:
Code:
beta 1.0:
- initial release!
- changes in config
- disabled CPU Boost
- disabled useless things
beta 1.1:
- added backlight dimmer
- added Kcal
- added Adreno Idler
- hard disabled CRC
- added frandom
- stock freqs on Mi5 Lite
- added blu active
- deleted LZO
- config changes
- based on newest Soda Upstream
beta 1.2:
- improved square root algo
- added FP boost
- SafetyNet: green
- improved imageblit func
- added parameter to change QC Fast Charge current
- added parameter to change charging current (900mA mod)
- added wakelock blocker
- added Sound Control
- added BL limits parameter
- default to noatime flag
- added Adreno Boost
- merged latest soda-upstream (with LOS changes)
- temporary fix for backlight dimmer (need more investigation)
- passing new flags to compiler
- updated toolchain
- disabled useless stuff in config
- less debugging more power
- higher freqs on slimbus
beta 1.2.1:
- FIXED high ram usage
- enabled bfq and cfq due to requests
- disabled useless wakelocks from FG
- updated blu_active
beta 1.3 (not released yet):
- rebased on top of upstream
added:
- Memory Compaction Mechanism
- Sound control ported to Xiaomi devices
- PowerSuspend
- Alucard Hotplug
- IntelliThermal
- Dynamic Sync Control
- updated and reenabled CPU boost
- removed log spamming
- changes in config (disabled useless things, added OTG support, enabled ondemand, wakelocks garbaging)
- fixed not working AudioFX!!
- tweaks to provide better battery life
- enabled arch capacity
- added knob to manipulate Gentle Fair Sleepers and Arch Capacity
- changed GPU initial power level
- fixed problems with temperature sensor
- introducing own Charging Control module
- minor changes
beta 1.3.1: (not released yet)
- fixed problems with battery drain (finally)
- changed toolchain to ?Linaro? 7.x
- refreshed compiler flags
- updated BFQ to v8r12
- disabled crap from compiling
- frandom is now utilized
- overall random api performance improvement
- c-state aware scheduler
- CFQ and BFQ compiled with hierarchical scheduling
- more silence
Reserved
How to tweak my kernel:
1. Charge control:
Path of all tunables is
Code:
/sys/kernel/fast_charge
You have 3 tunables as follows:
maximum_qc_current (DEFAULT: 2800) - it's very important one, its value controls QC3.0 charging current. Recently there are commons problems with screens and the assumption is that too high current causes that problem. Lowering the value would also make your battery's life longer!
force_fast_charge (DEFAULT: 0) - it's common known knob to force 900mA charging on unknown sources. I tweaked it a bit and now, if it's possible, driver will choose higher values depending on the source.
charge_limit (DEFAULT: 100) - it's very interesting one, its value controls maximum percentage of which your battery will be charged. After given limit charging will be stopped. Lowering this value could benefit in prolonged battery life as capacity wouldn't decrease that fast. Scientific researches recommend charging your battery to 80%.
3.Sound control:
You can tweak it using Kernel Adiutor.
4.Sched features:
I would like to resolve doubts connected with Arch Power. On kernel v3.18 there isn't such a feature. Cherry-picking old interface doesn't change anything in fair scheduler, the only thing you see is magic switch which does... nothing. Our kernel has feature named Arch Capacity which is *let's say* correspondent to previous one so I created two tunables - arch_capacity and arch_power. These are mirrored values so now you can enable/disable it in KA as known Arch Power but please remember that you're changing arch_capacity in fact.
My recommendation is to disable Gentle Fair Sleepers because you can save battery a bit.
You can also tweak it using Kernel Adiutor.
miui support please...
Aosp support ?
Did you add somes cpu governor ? And for you which its the best to have a better battery
Envoyé de mon MI 5 en utilisant Tapatalk
Aleluya! Not much kernel variety on our mi 5, pretty thanks I will test it early dev
cheers
Download link (I've found it, but it would be better in the description)? Governors? SOT?
Great news Sir,
I hope soon we could have good costum kernel with great stability and compability with newer rom.
I wish you could support AOSP based rom too
radnou974 said:
Did you add somes cpu governor ? And for you which its the best to have a better battery
Envoyé de mon MI 5 en utilisant Tapatalk
Click to expand...
Click to collapse
I just started Soda developing so you have to wait sometime for custom tweaks.
According to governors I think the most important thing is to configure it nicely, sth like AKT or GovTuner does. Stock interactive is good.
hans william said:
Great news Sir,
I hope soon we could have good costum kernel with great stability and compability with newer rom.
I wish you could support AOSP based rom too
Click to expand...
Click to collapse
AFAIK AOSP is based on LOS sources, it should work correctly
But some time it doesn't work properly on AOSP based rom, I used DragonXia as default kernel on every rom I flashed, but lately with latest release rom it's doesn't stable.
I hope you could made manually setting on/off the CPU core for better battery life, as hotplugging not save much battery life.
Overclocking was great too
I will test yours beta kernel right now Sir
CPU 0 and CPU 1 are stuck at 1593MHz.
Edit:
It seems like a restart solved it.
Edit2:
setting io scheduler to noop causes freeze.
abyssq said:
Edit2:
setting io scheduler to noop causes freeze.
Click to expand...
Click to collapse
On my phone everything works correctly.
Try typing in terminal/adb:
su
echo noop > /sys/block/sda/queue/scheduler
cat /sys/block/sda/queue/scheduler
If it says noop it's working...
xNombre said:
On my phone everything works correctly.
Try typing in terminal/adb:
su
echo noop > /sys/block/sda/queue/scheduler
cat /sys/block/sda/queue/scheduler
If it says noop it's working...
Click to expand...
Click to collapse
Yes it's working now. The test-iosched scheduler caused the problem.
will you add miui 9 support? miui lack of custom kernel support. thanks for dev gemini kernel.
which features does it have? quick charge? eas ?
"disabled CPU Boost" this is real great, i guess you know what i want. waitinng for a more stable realese and then give it a try
I pushed a first beta of Soda kernel. I added a few useful features, but battery usage reduction should be significant. Try it on your own
Thanks for your work! I will try and report back when possible.
Poor scores

[KERNEL][J7 6][8.0+] Oxygen Kernel v5.0.138

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Introduction
Oxygen Kernel is based on stock Samsung source code taken from Samsung Opensource Release Center with sole aim to provide better performance, stablity and battery backup than stock kernel. A kernel tells the hardware in your Android device how to behave, kind of like your mommy tells you how to behave. You can modify how fast your processor runs by over or under clocking it or optimize your system for battery life.
Oxygen Kernel is always up-to-date with latest patches from kernel.org
Known for maximum stability and smooth performance
All the Source Code is available on github
Kernel Info
LINUX: 3.18.138
SAFETYNET: Green
SELINUX: Permissive
TOOLCHAIN: Google's GCC 4.9
Compatible ROMS
All AOSP 8.1 and 9 ROMs
All OneUI Pie based ROMs
All Touchwiz 8.0 and 8.1 ROMs
Features
Here are the major features of the kernel (feel free to explore Github)
Up to date with the latest stable Linux version
Full -Ofast build with graphite optimisations
Removed a lot of useless debug and logging options
Disabled TIMA, KNOX, DM-VERITY,etc
Awesome battery life and smooth performance
ARM enhanced performance patches
Overclock CPU up-to 1.7GHz and GPU up-to 1146MHz
GPU Voltage Control
CPU Governors: conservative, interactive, ondemand, performance, powersave, userspace (default: interactive)
I/O Schedulers: bfq, cfq, deadline, maple, noop (default: maple)
Powersuspend and State Notifier drivers
Dynamic FSync, FS fsync toggle on/off
Frandom driver for 10-50x faster random number generation
Spectrum Support (a simple, profile based kernel manager || now integrated into Oxygen Control)
Disabled CRCs by default for 30% performance boost
CDROM emulation on mass_storage (compatible with DriveDroid)
Wireguard support
Boeffla Wakelock Blocker
Oxygen Control App Features
Full CPU and GPU Control
Boeffla Wakelock Blocker
Spectrum Support
Samsung Hotplug
CRC Control
And many more!
These features are only available through Oxygen Control App
Download Oxygen Control from Github Releases
Warning: If you come from some other custom kernel or have any issues, you should dirty flash your ROM before flashing Oxygen Kernel to avoid problems.
Reflash ROM -> Flash Oxygen Kernel --> Flash Magisk if you want to root
If you are upgrading between Oxygen Kernel versions, just flash the kernel zip. Also uninstall or clean data of any kernel control app you're using.
Going back to stock: You can backup your boot.img with TWRP before flashing Oxygen Kernel and restore the backup whenever you want to revert.
1] This kernel removes forced encryption, if you face "encryption process failed" error upon reboot then you need to format /data. This is generally needed if you are installing this kernel on stock tw rom.
2] In OneUI Pie ROMs you may get a warning at boot saying "There's an internal problem with your device". You can safely ignore this warning and causes no harm. It's due to some mismatching KNOX/mobicore stuff. I'll fix it soon.
Downloads
Kernel
Download
Oxygen Control
Download
Telegram Group
Join Oxygen Kernel Community group on Telegram here
Join Oxygen Kernel Channel on Telegram here
If you like my work donations are always welcome
Google Pay UPI ID: [email protected]
Paypal: https://paypal.me/SiddhantNaik
Don't forget to hit the thanks button, it's free.
Credits
Samsung Open Source Center for the Source code
@Oves786 and @SolarX_dev for numerous help and support
@osm0sis for AnyKernel2
@jesec for Fingerprint Fix
@morogoku for MTweaks
Everyone others from whom i have picked commits (credited on Github)
XDA:DevDB Information
Oxygen Kernel J7 2016, Kernel for the Samsung Galaxy J7
Contributors
DarkLord1731
Source Code: https://github.com/DarkLord1731/j7xelte
Kernel Special Features:
Version Information
Status: No Longer Updated
Current Stable Version: 5.0.138
Stable Release Date: 2019-04-27
Created 2017-10-30
Last Updated 2019-08-11
Changelogs:
Oxygen Kernel v5.0.138
Updated to Linux 3.18.138
Added support for OneUI Pie based ROMs
Disabled useless FIVE trustonic driver
Updated xpad drivers to support more controllers/joysticks
Heavily updated cpufreq driver for faster and better performance
Decreased time taken to enter sleep/idle mode
Some bluetooth tty driver updates
Disabled Gentre Fair Sleepers for better system responsiveness (You can enable it back using OC)
Enabled some TCP algorithms
Tuneup westwood and set it as default TCP protocol
Updated conservative governor
Optimised some other drivers like shed, cpuidle, devfreq, rcu, etc.
Disabled add_random and IO stats for better IO performance
Oxygen Kernel v4.0.131
Linux 3.18.131
Fixed kernel not booting on some TW oreo ROMs
Enabled back Input Booster for a better responsive user experience
Updated to latest J710FXXU5CRJ7 kernel source
Removed some useless CPU governors (Only the best ones are kept)
Removed unwanted IO Schedulers (Only the best ones are kept)
Updated the kernel to better support AOSP ROMs
Switched to Google's GCC 4.9 toolchain
Removed a lot of useless debug and logging options
Disabled TIMA, KNOX, DM-VERITY,etc
Added bluelight filter/night light for compatible TW ROMs
Check github source for more changes
I can't list all of the changes because i've rebased the source code completely. But believe me, this is a major update.
Previous Changelogs
V 3.0
Linux 3.18.109
Backported random driver from linux 4.2
Added Frandom
Added cpuquite driver
Added TCP congestion control
Updated statenotifier driver
Updates to cpufreq drivers
Updates to LZ4 compression
Added quickwakeup driver
Optimised many arm64 specific stuff
Optimisations to crypto drivers
Updates to memory handling
Updates to cfq ioscheduler
Hell lot of changes for performance and overall system stability
Check github source for more changes
V 2.0
Complete rebase of source code
Updated to J710FXXU1BRA1 kernel sources
Linux 3.18.106
Upgraded and disabled some bad governors
Added wireguard VPN support (Google for more details)
Fixed Big Cluster tunables getting lost when turned off
Updated some cpufreq governing policy
Disabled broken Boeffla Wakelock Blocker(AOSP only)
Various other patches to overall system stability and performance
Hell lots of others changes (check source code)
I can't list all of the changes because i've rebased the source code completely. But this is a major update.
Read the whole thread once before asking anything.
If you like my work donations are always welcome
Google Pay UPI ID: [email protected]
Paypal: https://paypal.me/SiddhantNaik
Don't forget to hit the thanks button, it's free.
Nice work buddy
Oves786 said:
Nice work buddy
Click to expand...
Click to collapse
Thanks Bro
We're gonna have the best kernel for J7. Great work ^^
mohitmallick17 said:
We're gonna have the best kernel for J7. Great work ^^
Click to expand...
Click to collapse
Thanks :laugh: These things keep me motivated.
Great kernel, i love the aroma configuration.
Thanks for the hard work.
It really feels faster, thanks!
(gTranslate)
Whats the optimal configs for this kernel?
WinterR said:
Great kernel, i love the aroma configuration.
Click to expand...
Click to collapse
Credits to @djb77 for aroma
prbs1982 said:
Thanks for the hard work.
Click to expand...
Click to collapse
TinoSantos said:
It really feels faster, thanks!
(gTranslate)
Click to expand...
Click to collapse
Glad you like it
prbs1982 said:
Whats the optimal configs for this kernel?
Click to expand...
Click to collapse
You can use Spectrum battery or balanced profiles for auto setting optimal configs.
Can u make Always on Display work with your kernel? I love this.
Does it work on cook roms revolution 5.0.1?
testnhe said:
Does it work on cook roms revolution 5.0.1?
Click to expand...
Click to collapse
Yes I installed it on my j7Fn with revolution rom, no bugs.
can anybody tell me about J7 2016 stock nought rom rooting process plz
DarkLord1731 an excellent work, I have been testing it for several days and there are many improvements that for the moment and perceived.
But I have a small bug ... I have an unlock pattern configured that when I am connected to the Wi-Fi network, I do not ask for it every time I lock and unlock the screen, when I turn off Wi-Fi if you ask me every time ... someone more with this problem? (G translate)
Rom RevolutionOS 5.0.1
I might have found a bug, or maybe it is just silicon lottery. When i set my gpu to max freq 1146, it stops working completely it says 0 Mhz and fps drops immediately.

[KERNEL] [9/8.1/7.0-EOL] LoonyKernel - 31 Jul 2019

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
IMPORTANT:
Always make necessary backups before flashing anything. In this case backup your stock boot in recovery before proceeding.
I will only consider issues that includes clear steps to reproduce the bug, a logcat or a console ramoops (in case of random reboots) or a dmesg (for other issues), because it provides more info than just saying something doesn't work.
Features:
Latest linux upstream version 3.10.108
Up to date as per AOSP/kernel-common and CAF
Unlocked frequency steps for CPU and GPU
Advanced color (kcal) control
Fingerprint sensor as power or home button by flar2
Sound control by flar2
Sweep2sleep by flar2
Boeffla wakelock blocker driver
Backlight dimmer
Spectrum app support
Flashing Instructions for custom roms:
Download TWRP recovery from here.
First backup boot in TWRP then flash the latest LoonyKernel zip. Reboot to system.
For magisk users, if you have already flashed magisk once, there's no need to re-flash it again after flashing the kernel. Magisk root will be retained.
Subsequent releases can be flashed over the same kernel's older version.
Flashing Instructions for stock rom:
Use only official TWRP for flashing on stock nougat or oreo rom. If you are using elementalx kernel then first restore the stock boot image or kernel then flash this kernel to avoid any potential issues with module(s).
Download official TWRP.
Backup boot in TWRP.
Flash latest LoonyKernel zip and reboot the device to system.
Subsequent releases can be flashed over the same kernel's older version.
Download Links:
Stock rom: 8.1.0 (mirror) || 7.0-EOL (mirror)
For my 64-bit AOSiP 9.0 builds: Sourceforge || AFH
Other pie/oreo custom roms: 64-bit (mirror) || 32-bit (mirror)
Credits: flar2, om0sis, Nathan and many other devs for their work.
XDA:DevDB Information
LoonyKernel, Kernel for the Moto G4 Plus
Contributors
lCrD512
Source Code: https://github.com/loonycrd/kernel_motorola_msm8952
Kernel Special Features: All mentioned above
Version Information
Status: Stable
Current Stable Version: r17
Stable Release Date: 2019-07-31
Current Beta Version: --
Created 2017-12-28
Last Updated 2019-08-10
Changelogs
May 02, Stock 8.1.0 - Release 2
Add digital tv module (isdbt)
Update wifi driver to latest CAF oreo tag 'LA.UM.6.6.r1-11000-89xx.0'
Disable various debugging for release builds
Exclude debug symbols from release builds (reduced kernel size)
Few updates to interactive governor
Update spectrum profiles
R.I.P sched boost feature
Various other fixes for cpufreq, crypto, memory etc.
Old releases
March 20, stock 8.1.0 Release-1 initial release
Changes over stock sources
Upstream linux kernel version.
Upstream sdcardfs.
Fix 0 bytes fize size while copying or moving.
Upstream interactive governor.
Add all LK features from nougat. Touch-boost and Fsync toggle have been removed.
Drop deprecated GCC 4.8/4.9 and switch to 7.3.0 for code improvements. All relevant code warnings were fixed.
Other misc. but relevant fixes/patches (can be seen on github).
Feb 8, 9/8.1 Release-12 for ARM64
NOTE: Those who are using my AOSiP or PixelExperience builds should flash the kernel update from the attachment in release post HERE
Android binder and sdcardfs updates.
Drop deprecated GCC 4.9 and switch to 7.3.0 for code improvements. All relevant code warnings were fixed.
Drop kernel size optimization flag as per AOSPs recommendation. Associated code warnings fixed.
Fixed some minor memory leaks. These were not detected earlier when size optimization flag was enabled.
Bring back 160mhz level for idle state GPU.
Squash some relevant upstream patches for xpad driver.
Merged sdFAT updates.
Disabled cpu hotplugging at lower battery levels.
Slight improvements in i/o operations.
Updates to cpusets and cgroup.
Remove sweep2sleep defaults as it conflicts with pie's swipe up gesture.
Fix a minor derp in zram initialization.
Jan 14, 9/8.1 Release-11 for ARM64
Regular android sdcardfs updates.
Upstream CFQ i/o scheduler.
Fixed some more memory leaks and slight memory management improvements.
Upstream patches to kernel scheduler, perf, rcu and cpu hot-plugging.
Updates to Wireguard.
Updates to LZ4 algorithm.
Fixed minor derps with fsync (on/off) toggle functionality.
Upstreamed and performance improvements to Interactive governor.
Replaced powersave governor with conservative for spectrum battery mode. Powersave governor has performance regressions.
CVEs addressed for EXT4 file system, bluetooth and crypto drivers.
Fixed various instances of uninitialized variables, false positives have been ignored. We are using CONFIG_CC_OPTIMIZE_FOR_SIZE which suppresses the compiler warning of uninitialized variables which can sometimes lead to undefined behavior e.g. memory corruption and panic.
Dec 02, 9/8.x Release-10
Switched to non-debug wifi/wlan driver.
Binder updated and inline with AOSP/google.
Regular sdcardfs upstream, some relevant backports from higher version (3.18+).
Few updates and fixes to interactive governor updates.
Merged some CVE patches from Lineage (CVE-2016-8399/2017-2647/2017-6951/2017-13080-upstream...)
Fixed memory leak in video device driver.
Added ARM64 CRC32 hw accelerated module
Few security updates to crypto driver.
Fix deadlock in sound-core driver due to duplicate ioctl_lock.
Disabled DEVPORT - it is not used as shown by previous SELinux policy changes to blacklist it. It is being unset to reduce the kernel attack surface.
Nov 11, 8.1.0 Release-9
Note: Non-dts builds are discontinued from this release. If dts builds doesn't boot then consider updating your rom. Should work on 9.0 as well. We are now up to date as per CAF, Linux-stable as well as Google/AOSP's kernel updates
Merged latest CAF tag LA.BR.1.3.7-05010-8976.0 (rb1.11)
Merged updates from Google/AOSP kernel-common.
Removed input-boost in favour of touchboost and interactive boost.
Removed power optimizer push-pop (popp) restrictions from gpu for potential performance improvements.
Updated and switched to CFQ i/o scheduler
Misc. power/performance optimizations.
Nov 11, 7.0 Release-4:
Removed input-boost in favour of touchboost and interactive boost.
Updated and switched to CFQ i/o scheduler
Misc. power/performance optimizations.
Oct 30, 7.0 Release-3:
Enabled usb tethering.
Removed power optimizer push-pop (popp) restrictions from gpu for potential performance improvements.
Updated spectrum profiles w.r.t qcom-post-boot service on stock rom.
Sep 10, 8.1 Release-8 for custom roms:
NOTE: Balanced profile viz. default is now using performance governor for GPU only to improve ux to some extent. Once the performance gets stable/consistent on oreo roms I'll switch it back to msm-adreno-tz. Users can switch to msm-adreno-tz if they want through kernel managers.
Merged relevant updates from NPJS25.93-14-18.
Allow mounting cdrom using apps like drivedroid etc.
Slight performance improvements.
Sep 08, 7.0 Release-2:
Rebased over latest 7.0 CAF tag.
Merged NPJS25.93-14-18 sources from Motorola.
Allow mounting cdrom using apps like drivedroid etc.
Slight performance improvements.
August 02, Release 7:
Oreo custom roms:
Rebased kernel source over CAF tag LA.BR.1.3.6-05410-8976.0 (7.1.2) and NPJS25.93-14-15 by Motorola
Merged relevant updates from CAF tag LA.BR.1.3.7-05010-8976.0 (8.1.0) and kernel-common
Properly up-streamed up to Linux stable 3.10.108
Merged recent kernel side updates to Wireguard
Removed some not so important i/o schedulers (cfq, maple and noop are more than enough)
Removed useless debug options to for cleaner and smaller kernel
Removed ondemand and conservative cpu governors (not suitable for big.LITTLE)
Reworked CPU oc/uc support to 403/499mhz levels (anything more lower shall yield no real benefit)
Updated spectrum profiles
7.0 Stock Release 1:
Some kernels have different workarounds for modules, therefore, it is recommended to flash 7.0 kernel only over your stock rom kernel. Don't flash over any other custom kernels. This is to avoid any issues with important modules such as wlan (wifi). Subsequent releases can be flashed over the same kernel's older version.
Based on NPJS25.93-14-15 sources by Motorola
Properly up-streamed up to Linux stable 3.10.108
Updated wifi/wlan drivers from latest 7.0 sources from CAF
Added all features mentioned in 1st post. (list updated in op)
Applicable updates from r7 oreo changelog were also merged.
June 14, v6.2:
Fixed mobile hotspot for both 32/64 bit
Removed conservative cpu governor
Switched too GCC 4.9 (Higher GCC versions are causing issues with data, wifi and hotspot as witnessed by some users)
Final update to katnap governor
NOTE: Since v6, I recommend using default kernel settings for CPU, GPU, clock speeds and governor profiles rest you can change. Why? read the explanation below properly...
v6 release came with spectrum app support which allows to switch between various user modes which are - Gaming, Battery, Balanced (default) and Performance. Thanks to frap129 a.k.a Joe Maples for spectrum. You can use the spectrum app to switch between various modes as per your needs with just a single tap.
For e.g. before starting a game just switch to "Gaming" mode from spectrum app to improve the game-play. After game-play is over don't forget to switch back to "Balanced" mode which is also the default. You can also choose "Battery" mode when you keep your device idle for maximum savings. If you prefer smooth user experience without worrying about battery then "Performance" mode is for you.
Both "Performance" and "Gaming" modes are battery hungry but will improve the user and gaming experience respectively so use them accordingly. Similarly don't expect great performance or smooth user experience from "Battery" mode.
"Balanced" mode is self-explanatory.
No support from my side if you're using some kind of mods that might conflict with above mentioned kernel settings. Fair enough! don't need any false reports where the problem might be because of any such mod.
Might be bitter but had to say this, don't bother reporting problems if you can't do it properly. Haven't seen a single post reporting wlan issues with logs and surprisingly I'am not a god who can guess issues from nothing. XDA is a community where users shall also contribute to make things better. Just coming here and searching for download links then complaining about stuff not working... it doesn't work this way. We don't expect much from users, we only want that if we're putting some efforts then users should also take at least some effort to give proper bug reports and feedback. For someone who doesn't know how to take logs etc. try google, you'll find tons of guides over internet and here at XDA itself. Thank you.
-------------------------------------------------------------------------
June 10, Release v6.1:
Fixed hotspot for 32-bit
Replaced fsync toggle with automatic Dynamic fsync driver 2.1 by boeffla
Replaced fp-boost driver with generic wake boost interface
Renamed loony governor to katnap
Some performance improvements during and after boot
Merged moto specific wlan/prima changes
Added 2 more potential wakelocks to block list just in case
NOTE: Since v6 (previous) release I recommend using default kernel settings for CPU, GPU, clock speeds and governor profiles. Why? read the explanation below properly...
v6 release came with spectrum app support which allows to switch between various user modes which are - Gaming, Battery, Balanced (default) and Performance. Thanks to frap129 a.k.a Joe Maples for spectrum. You can use the spectrum app to switch between various modes as per your needs with just a single tap.
For e.g. before starting a game just switch to "Gaming" mode from spectrum app to improve the game-play. After game-play is over don't forget to switch back to "Balanced" mode which is also the default. You can also choose "Battery" mode when you keep your device idle for maximum savings. If you prefer smooth user experience without worrying about battery then "Performance" mode is for you.
Both "Performance" and "Gaming" modes are battery hungry but will improve the user and gaming experience respectively so use them accordingly. Similarly don't expect great performance or smooth user experience from "Battery" mode.
"Balanced" mode is self-explanatory.
----------------------------------------------
June 05, Release v6:
Switched to GCC 6.4-stable (only 64-bit)
Compiled with cortex-a53 tune flags
Introduced my own custom Loony governor based on interactive and franco kernel tweaks
Added spectrum app support and tuned profiles for various modes
Added 160mhz for gpu in "Battery" mode (using spectrum app)
Removed adreno idler and powersuspend (took me time to realise that these are not really necessary)
NOTE: From this release I recommend using default kernel settings for CPU, GPU, clock speeds and governor profiles. Why? read the explanation below properly...
v6 release comes with spectrum app support which allows to switch between various user modes which are - Gaming, Battery, Balanced (default) and Performance. Thanks to frap129 a.k.a Joe Maples for spectrum. You can use the spectrum app to switch between various modes as per your needs with just a single tap.
For e.g. before starting a game just switch to "Gaming" mode from spectrum app to improve the game-play. After game-play is over don't forget to switch back to "Balanced" mode which is also the default. You can also choose "Battery" mode when you keep your device idle for maximum savings. If you prefer smooth user experience without worrying about battery then "Performance" mode is for you.
Both "Performance" and "Gaming" modes are battery hungry but will improve the user and gaming experience respectively so use them accordingly. Similarly don't expect great performance or smooth user experience from "Battery" mode.
"Balanced" mode is self-explanatory.
----------------------------------------------
May 04, Release v5.1:
Note: Sources moved to github.
Merged updates from NPJS25.93-14-15 (Feb, 2018) moto kernel sources,
Merged updates for wlan prima driver to bring in-line with latest CAF tag LA.BR.1.3.7-05010-8976.0,
Switch back to single build for 64bits. Made compatible with all roms,
Few kernel-common updates.
April 28, Release v5:
32-bit support added!
Changes merged from CAF branch (1.3.6) and Google kernel-common
Removed CRC enable/disable toggle - We know we want CRC disabled by default to avoid ~30% performance cost. So, it doesn't make sense to have a toggle for it as users may unknowingly enable it which defeats the whole purpose of disabling it by default in the first place.
Enable 320k AAC encoding
Tuned CFQ i/o scheduler
Added touchboost which is disabled by default. Enabling it will significantly improve the performance at the cost of battery life. This feature can be enabled using kernel manager (EX kernel manager recommended)
Replaced wakeup boost with Fingerprint Boost driver.
Removed boot and boostpulse sysfs nodes from interactive governor. Neither we were using it nor it is needed, users can enable cpu-boost if needed.
Updates wlan prima (wifi) driver to latest CAF tag LA.BR.1.3.7-04410-8976.0
Using cpu_relaxed_read_long and defining relaxed version of some arm64 specific macros, and functions to improve power efficiency. (this one is only for arm64)
Some cpu-boost code clean-up. Removed migration related boost from cpu-boost. Handled by scheduler and governor now.
Added display state awareness to msm_adreno_tz gpu governor. This aids adreno_idler by reducing the overhead.
Backlight dimmer toggle (disabled, enabling this would allow to lower brightness even more)
Apr 05, Release v4.1:
Restore default gpu clocks
Sdcardfs space leak fixed,
Updates merged from google android kernel-common,
Enabled ARCH_POWER and added toggle to enable/disable the same through EX Kernel Manager,
Nuked gentle fair sleeper toggle and re-enabled gfs. Disabling it was causing cores getting stuck at max freq for most of the time,
Added wake-up boost to avoid or atleast minimise any potential wake-up delays. I've personally never faced this on Oreo but some people reported it recently,
Added some more potential wakelocks in Boeffla wakelock blocker driver,
Wlan driver updates merged from latest caf release LA.BR.1.3.7_rb1.11,
Some efforts towards improving memory management a bit.
03 March 2018, Release 4:
Added new boeffla wakelock block driver,
Added wireguard support,
Added adreno idler - ramp down GPU on idle,
Reverted stuff: zen-interactive, frandom, hid,
Added sweep2sleep feature by flar2
Enabled fp to sleep by default, can be used as home too,
Enabled kernel samepage merge,
Merged latest changes and fixes from upstream teambutter.
Release 3.1:
Jan 14, 2018:
reverted some pre-configurations to default settings
Jan 08, 2018:
fixed notification led on supported roms
added maple i/o scheduler
Release 3:
Jan 03, 2018:
implement zen-tune: kernel tuning for interactivity
re-added powersuspend driver
zram increased from 512mb->768mb
cpu boost pre-configured
enabled adaptive low memory killer by default
tweaked deadline and row scheduler
tweaked westwood tcp congestion avoidance algorithm
changed default i/o scheduler to zen
added crc check toggle (disabled by default)
added gentle fair sleepers toggle (disabled by default)
slight undervolt and other power efficient optimizations
disabled some debugging
enabled arch power
added suspend_again handler (update for quick wake-up driver)
added led blink support
implement fast idling of cpu on partial system load
optimized console frame buffer to improve performance
other misc. fixes
fixed simple_ondemand crash
Release 2:
Dec 29, 2017:
fixed audio
switched to default google toolchain
Dec 28, 2017:
fixed zram
enabled core control
enabled homebutton driver
added sound control
added gpu overclock/underclock support
power efficient workqueue patches
added fiops, sio and zen i/o scheduler
blocked wakelocks by default
enabled cpu boost
added wake-up boost
added /dev/frandom support
added quick wake-up driver
added hid patch
Release 1:
enabled advance color control
added cpu overclock/underclock support
Reserved
Can you do a version which uses fingerprint sensor to sleep?
vitor.cardoso180396 said:
Can you do a version which uses fingerprint sensor to sleep?
Click to expand...
Click to collapse
You can configure that using kernel manager.
Alternative option is to use button mapper app by flar2.
i have a lag after flash this kernel. but thank you
When I play a song or a video the sound is crashing, something like cutting, I give u a log and thanks for the effort
Turbo charger doesn't work for me charges very slowly and phone heats up quickly! Any work around with kernel auditor?
I'll flash version 2 and let you know if anything changes
kman46 said:
Turbo charger doesn't work for me charges very slowly and phone heats up quickly! Any work around with kernel auditor?
I'll flash version 2 and let you know if anything changes
Click to expand...
Click to collapse
If ur device is at a temp of 42+°c then the turbo charging won't work, let the device cool down and it will work
im already on r1 loony kernal
how to flash r2 ??
is dirty flashing okk????
i have done a dirty flash of r2 over r1 version but ii feel very laggy n i tried reboot couple of time still little laggy
now back to r1 version
im on XT1644 version with magisk 15.1
thanks dev for your hard work????
waiting for a stable release?
RobertMVazquez said:
When I play a song or a video the sound is crashing, something like cutting, I give u a log and thanks for the effort
Click to expand...
Click to collapse
Same problem here
Release 2 update
RobertMVazquez said:
When I play a song or a video the sound is crashing, something like cutting, I give u a log and thanks for the effort
Click to expand...
Click to collapse
Thanks for the logs
I've updated and re-uploaded the new release 2 zip with audio fixed. Links updated in the op.
Also don't forget to enable Mono audio under Settings->Accessibility
Wow 64 bit is getting real ❤❤❤❤
Thanks for the kernel, what is new in loony-r9.1 for nougat?
kevinarol said:
Thanks for the kernel, what is new in loony-r9.1 for nougat?
Click to expand...
Click to collapse
Not released use the attached zip for nougat it is stabler than 9.1 but not updated in the directory. Features are more or less same.
For xt1625 users after flashing updated loony my phone hangs at unlocked bootloader warning for minutes. All you need to do is power and volume down boot into fast or bootloader mode whatever you call it and choose start again loads fine after that.
To add HDR is probably not going to ever work with xt1625 that's were the devices are different the plus has a 16 mp camera and I got a 13 mp I've got the camera to work but no HDR option like on my nexus.
lCrD512 said:
Not released use the attached zip for nougat it is stabler than 9.1 but not updated in the directory. Features are more or less same.
Click to expand...
Click to collapse
Ok, but why recommend me v7 instead of 9.1 for nougat which is available in download section?
kevinarol said:
Ok, but why recommend me v7 instead of 9.1 for nougat which is available in download section?
Click to expand...
Click to collapse
That's not version 7, don't go by the name of zip. It is updated I was using it personally.
lCrD512 said:
That's not version 7, don't go by the name of zip. It is updated I was using it personally.
Click to expand...
Click to collapse
ahhh thank you ?? Happy New Year!
Update: Release 3
Happy New Year to Everyone!!
Release 3 is out. Download links in first post.
Changes:
Jan 03, 2018:
implement zen-tune: kernel tuning for interactivity
re-added powersuspend driver
zram increased from 512mb->768mb
cpu boost pre-configured
enabled adaptive low memory killer by default
tweaked deadline and row scheduler
tweaked westwood tcp congestion avoidance algorithm
changed default i/o scheduler to zen
added crc check toggle (disabled by default)
added gentle fair sleepers toggle (disabled by default)
slight undervolt and other power efficient optimizations
disabled some debugging
enabled arch power
added suspend_again handler (update for quick wake-up driver)
added led blink support
implement fast idling of cpu on partial system load
optimized console frame buffer to improve performance
other misc. fixes
fixed simple_ondemand crash
Reminders:
Do not reflash magisk if already flashed (root shall be retained). Just flash the kernel zip in twrp and reboot.
Lineage users shall enable mono audio under Settings->Accessibility for audio to work.

Categories

Resources