[KERNEL] [Q] Twisted Kernel V28 [Polaris] [30/06/2020] - Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe

This kernel supports ROMS based on Android 10 only.​
Main features:
- Upstreamed to Linux 4.9.228
- Spectrum profiles
- Compiled with Clang 11 + LLD + Polly
- Flash and forget
User features:
All these features can be used via EXKM app
- Vibration Control
- KCAL (Colour control)
- Sound Control
- Minimum Brightness Control
- USB Fast Charge
CPU features:
- CPU Governors: Schedutil
- Schedutil updated with patches from newer Linux versions
- Using PELT scheduler mechanism
- CPU idle improvements by kerneltoast
- CPU input boost
- RCU boost
File system & memory related features:
- NTFS and F2FS file systems supported
- f2fs Rapid GC
Network features:
- Westwood set as default TCP algorithm
- TTL
Other features:
- Xbox and Dualshock controllers supported with drivers updated to the latest
- Safetynet Flags Removed
- DTS Ultra
- Wireguard support
- VDSO for better performance in 32 bit apps
- Unused Drivers And Logging removed for a smaller image
Requirements:
Magisk for recommended kernel configuration to set
First Time Installation (clean flash):
1.) Download the Kernel from second post
2.) Have Stock kernel and ramdisk installed, if you are coming from another kernel, follow 'Restore stock boot partition guide' below
3.) Flash Magisk (optional)
3.) Flash the kernel in recovery
Upgrading the kernel:
1.) Download the kernel from the second post
2.) Dirty flash the kernel (this means flashing the kernel without wiping anything)
Restore stock boot partition guide:
This guide will show you how to restore your ROMS stock kernel and ramdisk without losing any data. It will also uninstall Magisk which can be flashed again. Follow this guide if coming from another custom kernel or if something is not working like spectrum or the config file in twisted kernel.
Method 1:
1) Dirty flash your current ROM. This means installing the ROM without wiping anything.
2) Flash Magisk if desired.
3) You are now ready to flash a custom kernel.
Method 2:
1) Extract boot.img from your currently installed ROMs zip file.
2) Go to the install page in TWRP > Flash image > Select the boot.img you extracted and flash it to the boot partition.
3) Reflash Magisk if desired.
4) You have now restored your stock kernel and ramdisk and can now flash a custom kernel.
Hit thanks or donate to support my work
Donators:
Hellboy4
Amnon Nir
Ricardo
Thomas Boll
Peter Goudschmidt
PM if you want your XDA profile linked on this list
XDA:DevDB Information
Twisted Kernel Q, Kernel for the Xiaomi Mi Mix 2S
Telegram https://t.me/twistedkernel
Contributors
Twisted Prime
YTG, Hellboy4, Rommco05, Dahake, Spyronos for testing
bgcngm, abhishek987 for maintaining LOS kernel
oipr for sched backports
Raphielscape for backports
osm0sis for anykernel installer
SultanXDA for Simple LMK, CPU input boost
kdrag0n for lots of stuff
flar2 for vibration control and sound control
Arter97 for f2fs enhancements
frap129 for Spectrum
Everyone whom I cherry-picked from
Source Code: https://github.com/TwistedKernel/Twisted-845
Version Information
Status: Stable
Created 2020-01-10
Last Updated 2020-03-04

Downloads:
Download

Notes:
USB Fastcharge
This feature increases the maximum charging current from a PC to 900 mA from the default value of 500 mA.

Hello, is there any command for Slow Charging via Wireless Charger?
At night I don't need fast charge/fast charging on my Mi Mix 2s, on Samsung Note9 I have option in Stock ROM (Slow Charging 1A) and after year battery charged by wireless charger is like new one.
Thanks!

Twisted Kernel 17.0 B1130 - Q:
- Linux 4.9.209
- Magisk is now preserved after installation so you don't need to reflash it
Download (https://drive.google.com/drive/folders/1k4VJxpE4VY5nNAe01DWNBcSHG0m59QlC?usp=sharing)

Twisted Kernel 18.0 B1142 - Q:
- Updated bluetooth and gpu changes from Xiaomi
- Clang 11
Download (https://drive.google.com/drive/folders/1k4VJxpE4VY5nNAe01DWNBcSHG0m59QlC?usp=sharing)

This will work with latest xiaomi.eu rom?

STiNG4443 said:
This will work with latest xiaomi.eu rom?
Click to expand...
Click to collapse
Actually running this Kernel with xiaomi.eu 11.0.1
Works without problems so far.

MainderX said:
Actually running this Kernel with xiaomi.eu 11.0.1
Works without problems so far.
Click to expand...
Click to collapse
The camera,too?

Seosam said:
The camera,too?
Click to expand...
Click to collapse
Glad you asked. Never tried so far
It's not working so I reflash stock kernel

Hi there. With the pixel3d rom and this kernel, android auto the bottom navigation is blanked out and chromecast doesnt work

Twisted Kernel 19.0 Q:
B1202 is for AOSP
B1204 is for MIUI
- Linux 4.9.211
- Upstreamed to CAF LA.UM.8.3.r1-07200-sdm845.0
- Removed dynamic fsync
- MI8 Pro support (thx SpyRoNoS for testing)
Download (https://drive.google.com/drive/folders/1k4VJxpE4VY5nNAe01DWNBcSHG0m59QlC?usp=sharing)

Twisted Kernel 20.0 Q:
B1389 is for AOSP with P camera blobs
B1391 is for MIUI / ROMs with Q camera blobs
- Linux 4.9.213
- Switched to Pixel 3's rate limits
- Improved memory management
- Added frame boost
- Enable it in /sys/module/drm/parameters/frame_boost or TKManagerV4/frameboost
- Added charge boost: Boosts CPU when phone is plugged in with the screen on
- Enable it in /sys/module/qpnp_fg_gen3/parameters/charge_boost_enabled or TKManagerV4/chargeboost
Download (https://drive.google.com/drive/folders/1k4VJxpE4VY5nNAe01DWNBcSHG0m59QlC?usp=sharing)

I install with Miui EU and I dont have any DATA SIM NETWORK connection..

Hi, this kernel fix low in-call volume?

caoscorp said:
I install with Miui EU and I dont have any DATA SIM NETWORK connection..
Click to expand...
Click to collapse
Everything works well, except network connection speed indicator. It would be fine if author fix this problem. Latest xiaomi.eu rom. Thank you.

Hello very thanks for the kernel miui

How to configure this kernel? I don't have TKManagerV4/twistedconfig.txt in internal storage.

Twisted Kernel 22 Q:
B1688 is for AOSP with P camera blobs
B1689 is for MIUI / ROMs with Q camera blobs
- Linux 4.9.214
- Scheduler and RCU updates
- Memory allocation improvements by kerneltoast
- Added back zram driver (off by default)
- Fixed GPU performance regression
Download (https://drive.google.com/drive/folders/1k4VJxpE4VY5nNAe01DWNBcSHG0m59QlC?usp=sharing)

- Linux 4.9.217
- Added maple IO scheduler
- Scheduler updates
- Updated SLMK
- UFS updates
- Optimised idle
- Fixed MIUI network monitor
- Dropped support for P blobs
- Added Auto CPU adjust: Underclocks the CPU max freq and tunes CPU input boost based on work load and battery level to save power and reduce heat.
Enable it in TKManagerV4/autocpuadjust/enable.txt
You can see what auto CPU adjust is doing in the log file: TKManagerV4/autocpuadjust/log.txt

Related

[KERNEL][AOSP/CM][01/01/17] Quanta - V21

Simple, Powerful, Stable. Here's Quanta for the Nexus 4 (Mako)
Disclaimer: Your warranty is now void, use at your own risk. Don't blame me for anything because YOU decided to make these changes.
Note: This kernel is made for Android 5.1 (Lollipop) up to Android 7.1. (Nougat) For earlier versions, please refer to Sabermod franco.Kernel on post 3.
Features:
- Based upon the official franco.Kernel source
- Compiled with the latest Cortex-A15 optimized UberTC 5.x with some kernel based optimizations + Graphite
- Linux 3.4.110 (Linux 3.4.0 for V9 onwards)
- AOSP/CM compatible
- F2FS compatible
- DT2W support (From Stratosk)
- Faux Sound support
- Exponential brightness driver from Statosk
- Optimized Ondemand governor from Stratosk (V15+)
- USB-OTG Support
- MultiRom Support
- Tweaked performances profiles from franco.Kernel
- Support for android-keyboard-gadget (You can use your device as a keyboard/mouse for your PC)
- Support for Xpad​
Download:
AOSP: AOSP Download Folder
CM: CM Download Folder
Mirror​
Installation:
1. Install using CWM/TWRP
2. Enjoy​
Sources:
Kernel Source (quanta-7.x)
Anykernel Source (mako-7.x)​
​
Changelog:
Code:
V21 (01/01/17):
- Support for Nougat (7.x)
- Updated to December's security patches
V20 (18/09/16)
- Merged security updates for September (Includes CVE-2016-2059 and CVE-2016-5340)
- Attempt to fix camera on CM
V19 (21/08/16)
- Merged security updates for August
- Patched Quadrooter exploit (CVE-2016-5340)
- Updated F2FS
V18 (16/07/16)
- Merged security updates for July
- Performance improvements (From Franco's release for Flo)
- Faster boot up time (From Franco's release for Flo)
V17 (11/06/16):
- Merged Flo's security patches (Important)
- Updated F2FS
V16 (15/05/16):
- Fixed blank display while using the camera
- Mako_hotplug should work fine with Interactive now
- Made Software CRC toggable
V15 (08/05/16):
- Reverted CPU-Boost to use mako_hotplug instead
- Used the optimized Ondemand governor from Semaphore
- Interactive should be more power-efficient when the display is off
- Updated F2FS
- Misc security fixes
V14 (24/03/16):
- Disabled the 3rd and 4th CPU core by default
- Compensate the performance loss of this by adapting the frequencies in Interactive
- Changed the default frequency back to 1512Mhz.
V13 (09/03/16):
- Reverted a timer related commit that was the cause of the panics
- Reintroduced Nvidia's power settings
- Updated F2FS
V12 (21/02/16):
- Reverted Nvidia's relaxed power settings
- Misc improvements/fixes
V11(18/02/16)
- Rebased from Flo V7 release
- Changed from mako_hotplug to cpu_boost
- Replaced Conservative by Interactive
- Updated F2FS
- Misc improvements (KSM, optimized LMK from Motorola, etc...)
V10(09/12/15)
- Synced with the 6.0.1 Google sources
- Added full FauxSpeaker support
V9(09/11/15)
- Rebased from Google 3.4.0 sources
- Compiled with Cortex-A15 optimized UberTC
V8(25/10/15)
Initial Android 6.0 (Marshmallow) release
Linux 3.4.110
Removed Franco sound tweaks
Updated the F2FS drivers
Updated the android-keyboard-gadget
V7(24/09/15)
Linux 3.4.109
Reverted the LMK optimization patch from Motorola
GPU drivers reverted to a 5.1.1 state (Fixes Chrome scrolling lag)
Updated the F2FS drivers
Enabled support for XPad and updated it for Xbox One controller support
Battery power saving optimizations from Nvidia
Misc optimizations/fixes
V6(24/05/15)
Synced commits from 5.1.1
Reverted a cpufreq commit that was causing some more watchdog issues
V5(10/05/15)
Reverted the mako_hotplug commits from Shamu (as an attempt to fix watchdog issues)
Added filesystem related optimizations
Added some LMK optimizations
Added ROW optimized values
V4(03/05/15)
Fixed CM PowerHal issue for good
Added Stratosk's DT2W Power Key Suspend
V3(19/04/15)
Linux 3.4.107
Added some stuff to ramdisk + fixes
Merged some mako_hotplug commits from Shamu
V2(17/04/15):
Replaced McKael's DT2W implementation by Stratosk's
Added Fast Charge
Tweaked the performance profiles (Power Saving CPU freq going from 1242 MHZ to 1026MHZ)
V1(16/04/15):
Updated F2FS drivers (with new mounting flags so you can feel a whole new beast)
Tweaked performance profiles (I found that they weren't as much optimised as I would like to)
Support for android-keyboard-gadget (you can now use your device as a keyboard/mouse for your computer)
Reverted the 192 MHZ CPU freq as it was causing more negative than positive results
Thanks:
@franciscofranco @TheMrcool212 @jolinnard @McKael @xcstacy @faux123 @stratosk @osm0sis @Tk-Glitch​
​
Quanta Tweaks
All your tweaks are now regrouped into the app I've developped. No more hassle in tweaking 10 files/5 different apps togheter. It also has a franco.Kernel shortcut so your tweaking experience won't be stopped when trying to reach it.
https://play.google.com/store/apps/details?id=com.zaclimon.quantatweaks
It includes various tools and a beautiful user interface to enhance your experience even further!
Request for new features
Listen, I want to keep this kernel as minimalistic as possible. For this reason, I won't add any GPU OC, CPU OC, S2W,S2S, etc... DON'T EVEN BOTHER TO ASK!!
Thank you.
Sabermod franco.Kernel information (For 4.4 up to 5.0, Deprecated)
- Note: r211 to r213.2 are Kitkat (4.4) builds, r215 to r216.2 are Lollipop (5.0) builds.
- Compiled with SaberMod GCC 4.9.3 with Ofast optmisations + Graphite + other optimisations
- Linux 3.4.106
- AOSP/CM compatible
- F2FS compatible
- DT2W support (From Mckael)
- Faux sound support
- Linux mainline random driver (4.4 Builds)
- Exponential brightness driver from Statosk
- USB-OTG Support
- MultiRom Support
- 192 Mhz CPU step available
Download:
AOSP: AOSP Download Folder
CM: CM Download Folder
Installation:
1. Install using CWM/TWRP
2. Profit
Sources:
Kernel Source (sm-5.0 and sm-5.0-cm)
Anykernel Source (mako-5.0)
Changelog:
Code:
r216.2 (22/02/15)
- Restore deep sleep frequency to 384 MHZ (Should fix DT2W not responding)
r216 (18/02/15)
- Synced from Franco (Conservative as default, msm_hsic_host, etc...)
- Linux 3.4.106
- Updated F2FS drivers from up to Jan. 11th 2015
- Ramdisk Tweaks
- Compiled with updated SM 4.9.3 toolchain
r215.2 (31/12/14)
- Linux 3.4.105
- USB-OTG fixed
- Otgcontrol script is now in /system/etc/otgcontrol.sh
- Minor ramdisk tweaks
r215 (14/12/14)
- Completely rebased off Franco's sources (With Android 5.0.1 sources)
- Compiled with the latest 4.9.3 SM toolchain
r213.2 (19/10/14)
- Linux 3.4.104
- Updated Faux Sound to 3.6
- Added an init.d script to enable/disable USB-OTG. (named 91otgcontrols)
- Updated F2FS with patches up to 10/10/14 (f2fs.fsck shouldn't have any issues up to this point + there should be some performance improvements)
r213 (11/09/14)
- Upstream patches from Franco (Hotplug fixes, Interactive governor improvements)
r212 (01/09/14)
- Upstream updates from Franco (Hotplug driver enhancements, fixes from r211)
- Added the 192 MHZ Freq
- Updated fauxsound version to 3.5
- Misc TRIM improvements
r211 (25/08/14)
- Upstream updates from franco
- Linux 3.4.103
A new thread for good kernel.. Thanks will try today.
Good to see this new thread. I hope you have merged updates from the new test 212 which fixes idle battery drain for many.
Nice!
Sent from my Nexus 4 using Tapatalk
Just got real.
Tested on latest BETA3 of ParanoidAndroid and is working good.
Is there a possiblity to see mods concerning brightness? Minimum stock brightness is too high for me, but I love Franco kernel and I don't want to change to (for example) AK Kernel that support lower brightness levels.
Is this SaberMod Franco kernel better than stock Franco kernel? Sorry if its a noob q lol
BassBlaster said:
Is this SaberMod Franco kernel better than stock Franco kernel? Sorry if its a noob q lol
Click to expand...
Click to collapse
yes
marcof93 said:
Tested on latest BETA3 of ParanoidAndroid and is working good.
Is there a possiblity to see mods concerning brightness? Minimum stock brightness is too high for me, but I love Franco kernel and I don't want to change to (for example) AK Kernel that support lower brightness levels.
Click to expand...
Click to collapse
I ported the experimental brightness driver from stratosk which supports even lower minimum brightness. You can use the stratosk app to enable/disable it.
hey buddy nice that you has your own thread now i got a question this one is based on the official 211 or the new 211 test build franco posted i think yesterday ? ty for the builds an as always great job mate
zaclimon said:
I ported the experimental brightness driver from stratosk which supports even lower minimum brightness. You can use the stratosk app to enable/disable it.
Click to expand...
Click to collapse
Ok, I did it with Semaphore Manager, I think you should add this to the first post, it's a good feature thanks, you're great
Maibol said:
hey buddy nice that you has your own thread now i got a question this one is based on the official 211 or the new 211 test build franco posted i think yesterday ? ty for the builds an as always great job mate
Click to expand...
Click to collapse
It is based on the official r211 but I just saw that he made some changes which is, I suppose, the test version Franco released tomorrow.
I'll try to make an update today in order to reflect those change.
No UCI Support in Synapse :crying:
snacs said:
No UCI Support in Synapse :crying:
Click to expand...
Click to collapse
Flash ukm, flash kernel. Reboot. Install synapse. Should work
Sent from my Nexus 4 using Tapatalk 2
jmtjr278 said:
Flash ukm, flash kernel. Reboot. Install synapse. Should work
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
Thanks for reply. I try a clean install later.
Could you please include 192mhz frequency?And also latest fix from franco if you wouldnt mind!=p
Thanks for this kernel, I flashed it and everything works fine
Just one question, which hotplug this kernel use ? On Synapse, MPdecision is unchecked and no other hotplug is showing.
jmtjr278 said:
Flash ukm, flash kernel. Reboot. Install synapse. Should work
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
Didn't work for me. Clean install step by step

[EOL][KERNEL][7.X][i9300] Koffee

Koffee is the first kernel which has fixes and backports, allowing Magisk running properly.
Only for Nougat(Android 7.x) ROM's!
Based on latest Boeffla, tweaked and extended by patches & backports.
Main idea of kernel is stability, extra features and compatibility with recent apps.
Configurable via Boeffla Config V2, Synapse or Kernel Adiutor
Recomended to use Magisk with this kernel, but other SU implementations also compatible.
This kernel is good choice for ResurrectionRemix N.
Code:
/* #include <xda/disclaimer.h>
*
* Your phone's warranty is now void.
* This is a custom kernel developed by me, A$teroid
* You are flashing this on your S3 at your own peril.
* I am not responsible for hard bricks, damages to SD Cards, thermonuclear war,
* or you getting fired because the alarm app failed.
* I would definitely help you out if you are stuck somewhere, provided that you give
* me clear details of the mishap.
* Don't ask for ETA's cause there is a thing called "LIFE" outside XDA.
*/
Please check for few times that your trouble caused by Koffee and nothing else.
I do NOT accept ANY bugreports if you're:
1. do overclock or undervolt
2. use non-default kernel settings
3. doesn't provide me kernel / system logs if it crashed
4. doesn't provide me info about installed ROM, mods, root-utilizing apps
5. have installed Xposed
6. have installed tweaks
Features:
Boeffla Kernel features
Backported Mount Namespace from 3.8, allows hiding root via Magisk and pass SafetyNet
Fix (v3) for sleep issues when Magisk installed
SDCardFS
@forkbomb444's HWC out-of-the-box
Allowed much lower display brightness(with addon)
Compatibility with experimental LineageOS
Doze Helper - turn on Doze immediatelly after screen off
Pyramid - new cpufreq and hotplug governor
zCache
FRandom - fast pseudorandom number generator
FQ_Codel network packet scheduler backported from 3.5
TCP Fast Open (client-side, ported from Linux 3.6), enabled by default
TTL mangling support
SECCOMP - Secure computation for untrusted bytecode (used, ex., by mediaserver, Google Chrome)
Support for I/O accounting (for iotop)
Sparse Memory model
Enabled ThumbEE CPU extension
----
Read also:
Tweaked page-writeback for better responsiveness. You cannot change vm.dirty{ratio/bytes} values.
zRam configuration is disabled for stability reasons but zRam is present
/system is write protected! Use system-rw-access.zip Magisk module to disable protection if you really need this!
More additional fixes which not exist in other kernels
Various kernel tweaks, config changes & internal improvements
Reduced wakelocks
Reduced debugging code
Boeffla Sound enabled by default
----
Pyramid
tunables:
mc_pseudocluster, mc_pseudocluster_freq:
allow to work on max frequency up to 2 cores and limit it to mc_pseudocluster_freq value when > 2 cores online
Enabled by default.
mc_eco_auto, mc_auto_factor:
when enabled and pseudocluster are disabled, relative maximal frequency will be calculated usind number online cores and mc_auto_factor.
Greater factor values will reduce max frequency.
Disabled by default.
mc_eco_step{1-3}:
when pseudocluster and eco_auto is disabled, old pyramid's behavior will be enabled.
Using this three tunables you can define frecuency at each next cpu core.
screenoff_limit, screenoff_freq, screenoff_max_cpus_online:
when screenoff_limit is enabled, maximal frequency will be reduced to screenoff_freq value and maximal allowed cpu cores will be limited to screenoff_max_cpus_online.
Disabled by default.
min_cpus_online:
you can set minimum of cpu cores allowed to be enabled when screen is on
max_cpus_online:
you can set maximum of cpu cores allowed to be enabled
----
TCP Fast Open
you can use TFO in Chrome browser, just turn it on via chrome://flags. Also Chrome can be used as system WebView provider via Developer settings.
----
Addons:
1. Svelte(low-ram, Magisk)
Enables Project Svelte to increase performance on low ram devices. Also tweaked for responsiveness.
2. Lower Brightness - use, if you prefer darker screen or want to save battery (Magisk) Only for Koffee 78+!
3. SDCardFS (Magisk) - use sdcardfs instead of slower fuse emulating. Reduces overhead on internal and external storage access
4. I9300XXUGOK1 modem (zip for TWRP)
5. I9300XXUGPE1 bootloader (for Odin)
6. System Read-Write access. Install this if you really need write access to the /system.
Credits:
@Lord Boeffla (Boeffla Kernel)
@arter97 (Intelli-Plug)
@forkbomb444 (experimental HWC)
@rINanDO (SECCOMP)
@NoN1979 (for low ram tweaks)
@pascua28 (compatibility with Experimental LOS, updates fron N7100)
@Oebbler1 (for lower brightness values)
@curiousrom (for i9300XXUGPE1 bootloader)
Homepage(in russian): https://4pda.ru/forum/index.php?s=&showtopic=403183&view=findpost&p=64299445
Latest build & addons: https://drive.google.com/open?id=1myPyzPtJ2gBNMwLolGcumEADrLfRnIUP
Beta previews and discussion for i9300 and n7100 users: https://t.me/koffeebetatest
XDA:DevDB Information
Koffee, Kernel for the Samsung Galaxy S III I9300
Contributors
A$teroid
Source Code: [url]https://github.com/acroreiser/Koffee[/URL]
Version Information
Koffee 104 "Ultramarine" [FINAL]
for i9300 and n7100
Changelog:
1. Added "min_cpus_online" tunable to Pyramid.
When screen is on, these number of cpus will always be online.
Tested with two cpus online and screen off limiting to two cores - better responsivity with well battery saving when device idle.
2. Fixed random reboots due to invoked OOM killer
3. Some fixes in scripts
----
My device now broken. I cannot continue work on Koffee.
Final builds for i9300 and n7100 now on my Google Drive.
Good luck!
----
Status: End of life
Created 2017-08-22
Last Updated 2018-09-05
How i can update this kernel?
RΞ:D¥ said:
How i can update this kernel?
Click to expand...
Click to collapse
just download latest zip & flash via twrp
Nice, will give it a go, the only downside about my giving this a try is that I'm using SuperSU. Otherwise I am on RR N
Thanks
Spectre
Does Spectre need to be mitigated by the kernel or the ROM?
can I dirty flash it over the elite-boeffla-kernel-6.0.0.2 or do I have to install RR N again and then flash Koffee-kernel?
ThommyIV said:
can I dirty flash it over the elite-boeffla-kernel-6.0.0.2 or do I have to install RR N again and then flash Koffee-kernel?
Click to expand...
Click to collapse
Just flash latest zip
Koffee build 34 (06.01.2018)
Changelog:
LCD: allow much lower display brightness
mm: refix for shmem_swp_set crash
mm: (U)KSM removed due to conflict with camera driver
xappre said:
Does Spectre need to be mitigated by the kernel or the ROM?
Click to expand...
Click to collapse
According to this table, our cortex-a9 cores is variant 3 and unaffected
https://developer.arm.com/support/security-update
Kind of a long shot but will this kernel work with the experimental lineage nougat ROM for i9300??
anarchist1017 said:
Kind of a long shot but will this kernel work with the experimental lineage nougat ROM for i9300??
Click to expand...
Click to collapse
No: kernel based on boeffla and on old smdk4412 base.
Kernel in experimental lineage 14.1 based on n7100 kernel sources and has experimental HWC implementation. I'll rebase Koffee to the new codebase in future, but now this code is not enough stable.
And all other custom kernels is NOT suitable with experimental Lineage.
A$teroid said:
No: kernel based on boeffla and on old smdk4412 base.
Kernel in experimental lineage 14.1 based on n7100 kernel sources and has experimental HWC implementation. I'll rebase Koffee to the new codebase in future, but now this code is not enough stable.
And all other custom kernels is NOT suitable with experimental Lineage.
Click to expand...
Click to collapse
You're right. I have random reboots here and there in experimental build.
Sent from my S III using XDA Labs
Spectre
A$teroid said:
According to this table, our cortex-a9 cores is variant 3 and unaffected
Click to expand...
Click to collapse
Attack variants are different to processor variants.
The A9 is vulnerable to Spectre (attack variants 1 and 2) but not to Meltdown (attack variant 3).
A$teroid said:
No: kernel based on boeffla and on old smdk4412 base.
Kernel in experimental lineage 14.1 based on n7100 kernel sources and has experimental HWC implementation. I'll rebase Koffee to the new codebase in future, but now this code is not enough stable.
And all other custom kernels is NOT suitable with experimental Lineage.
Click to expand...
Click to collapse
Thank you for the reply!!:good:
Can you build for note 2 plz
Saliver_Sky said:
Can you build for note 2 plz
Click to expand...
Click to collapse
No. I hasn't this device for test & debug kernel
Any good config for this kernel vía boeffla config whith good batery life and perfomance?
The best kernel out there! Thank you so much! Now I can pass safetynet!
Best regards!
Hey brother @A$teroid I wanted to ask that what if i wanted to use superSU with this kernel ??
Look , First I have installed Resurrection Remix
then , I have uninstalled magisk and installed superSU.zip
So , Can I install your kernel now ??
I wanted to use your kernel as well as superSU !
Help
mrpascal said:
Hey brother @A$teroid I wanted to ask that what if i wanted to use superSU with this kernel ??
Look , First I have installed Resurrection Remix
then , I have uninstalled magisk and installed superSU.zip
So , Can I install your kernel now ??
I wanted to use your kernel as well as superSU !
Help
Click to expand...
Click to collapse
You can use Koffee with any Nougat ROM and with (or without) any SU implementation.
I use Koffee with RR + Magisk.

[KERNEL][Z017/Z012][TREBLE][P5] Advanced Kernel for Custom ROMs

Code:
#include
/*
* I am not responsible for bricked devices, dead SD cards, thermonuclear
* war, or the current economic crisis caused by you following these
* directions. YOU are choosing to make these modificiations, and
* if you point your finger at me for messing up your device, I will
* laugh at you.
*/
This kernel should be compatible to all up to date Pie/Oreo custom ROMs. Its goal is to further improve battery life and to offer as many features as possible while maintaining perfect stability. All battery tweaks are toggleable so you can decide whether you prefer performance or battery life.
Every release will be tested with the latest LineageOS 16.0 build before release.
Compatibility to other custom ROMs is very likely but cannot be guaranteed.
Advanced Kernel for Oreo is now discontinued. The non-treble Pie version should work fine with Oreo ROMs.
Features
Built with bleeding edge GCC 10.0.0 toolchain, optimized for Cortex-A53
Linux 3.18.140, CAF Tag LA.UM.7.6.r1-05500-89xx.0
Treble ROM support.
Spectrum
WireGuard VPN
KCAL v2 color control
Sound control
Intellithermal v3
USB keyboard support
Arch power
Adreno idler
Adreno boost
Slimbus OC
Fingerprint boost
State notifier
Boeffla wakelock blocker
CPU wake boost
Vibration intensity control
Force fast charge to enforce maximum charging speed on any charger. (Use at your own risk! Disabled by default.)
Qnovo driver for better charging temperatures
Powersuspend
Toggleable touchboost
Powersaving work queue by default
Tuned interactive governor
Additional lower frequencies: 307MHz and 480MHz
Additional overclocking frequencies: 2208MHz and 2150MHz - Only selectable in OC version.
Disabled CRC check for up to 30% faster I/O, toggleable
Fsync switch
Improved zram with lz4 compression
Native CIFS and BTRFS filesystem support
Support for SMB2 and SMB3
SdFat for FAT and exFAT support
Support for rtl8812au and rtl8814au usb wifi adapters.
CPU governors: relaxed, chill, electron, elementalx, impulse, zzmoove, alucard, darkness, nightmare, yankactive, intelliactive, blu_active, interactive, conservative, ondemand, powersave, performance, userspace
Hotplug governors: alucard_hotplug, thunderplug, blu_plug, msm_hotplug, intelli_plug, lazyplug, autosmp, AiO_hotplug (Pie only)
I/O schedulers: noop, deadline, cfq, bfq, sio, fiops, zen, maple
TCP congestion algorithms: westwood, reno, bic, cubic, highspeed, htcp, vegas, veno, scalable, lp, yeah, illinois
Countless additional improvements
Overclocking
With every version of Advanced Kernel two files are released: One with overclocking support and one without. Be aware that overclocking may physically damage your phone! If you still want to use it, download and install the kernel zip from the "Overclocking" subfolder. The default zip from the main folder doesn't allow overclocking and is "safe".
The overclocked kernel will first boot with 2.2GHz, then the maximum frequency is lowered by the active spectrum profile. To enable overclocking after booting you have to use a kernel manager app to select a higher maximum cpu frequency. The tradeoff is that higher frequencies also come with higher CPU-voltages so your battery level will drop faster while OC frequencies are in use.
Force fast charge:
Available on the OC and non-OC kernel. This feature overrides the detected charging current with the maximum possible current for the Zenfone 3 (1910ma) so that every charger is fully utilized. Please be especially careful when using this feature as possible safety measures are disabled! It's disabled by default and can be enabled by enabling "USB fastcharge" at KernelAdiutor's "Battery" section or in EX Kernel Manager under "Miscellaneous".
Installation
Simply flash the provided zip file via TWRP over your custom ROM installation. No need to wipe anything!
Before flashing you may want to backup the "Boot" partition. Restore it to revert any changes.
Flashing a ROM will overwrite this kernel: You'll have to flash the kernel zip again after updating your ROM.
In order to use all of the features you'll need some additional apps and root:
Spectrum: Offers some easily selectable profiles. These are still WIP and in no way comprehensive!
A kernel manager like EX Kernel Manager (paid) or Kernel Adiutor (free).
Spectrum profiles
Battery: Very battery friendly profile. It sacrifices performance for battery life.
Balanced: As close to stock as possible with only minor tweaks.
Performance: Tuned for CPU performance.
Gaming: Everything always runs as fast as possible. Burns away your battery!
Reporting issues
Before reporting an issue please check that it only occurs when having this kernel installed. Otherwise it may be an issue with the ROM.
The above also applies the other way around: Don't report issues to the maintainer of a ROM unless they also occur without this kernel.
Be aware that performance issues are very likey related to your personal settings. Don't blame me for your decision to run only one core at 307 MHz
Always use the latest Advanced Kernel release with the latest build of you ROM of choice. If the kernel is much newer than the ROM or the other way around weird issues may arise.
Download
All zip files support both the ZE520KL and the ZE552KL.
The treble version is only compatible to treble ROMs using APD as the vendor partition.
The non-treble version is compatible to non-treble Pie ROMs and SHOULD be compatible to Oreo ROMs too.
Flashing the wrong version won't harm your device but will prevent your ROM from booting! This can be easily fixed by flashing the right version or re-flashing your ROM.
Download: https://drive.google.com/drive/folders/1cel2AB59-6kOaLkk7dK6uBPwejdw6s4C
Additional credits
Due to the sheer amount of features it's not possible to list all of the contributors here. Please check the commit history for a comprehensive list.
XDA:DevDB Information
Advanced Kernel for Custom ROMs, Kernel for all devices (see above for details)
Contributors
planet9
Source Code: https://github.com/Planet-X/android-kernel-zenfone3_advanced
Kernel Special Features: Overclocking, Force Fast Charge
Version Information
Status: Stable
Created 2019-07-19
Last Updated 2019-07-19
Changelog
P5 - 2019-07-19:
Updated Toolchain to GCC 10.0.0 (experimental).
Updated AnyKernel2 to AnyKernel3.
Updated rtl88XXau kernel module.
Updated kernel to Linux 3.18.140, CAF Tag LA.UM.7.6.r1-05500-89xx.0.
P4 - 2019-04-19:
Now compatible to latest Treble ROMs! (APD partition only!)
Check the release post for compatibility information: https://forum.xda-developers.com/showpost.php?p=75805766&postcount=100
Updated rtl88XXau kernel module.
Updated kernel to Linux 3.18.138, CAF Tag LA.UM.7.6.r1-04500-89xx.0.
P3 - 2019-02-20:
Added adreno boost.
Updated rtl88XXau kernel module.
Updated toolchain to GCC 9.0.1 (experimental).
Updated kernel to Linux 3.18.135, CAF Tag LA.UM.7.6.r1-04100-89xx.0.
P2 - 2018-12-01:
New rtl88XXau kernel module for usb wifi adapters.
Check the post below for more information.
Updated AnyKernel installation scripts.
Updated spectrum balanced profile to use elementalx with maple.
Added AiO_hotplug.
Updated kernel to Linux 3.18.127, CAF Tag LA.UM.7.6.r1-03600-89xx.0.
P1 - 2018-11-02:
Initial release of Advanced Kernel for Pie
Kernel source has been fully rebased.
New version labels: Releases for Pie ROMs start with a P followed by the release number.
Updated kernel to Linux 3.18.124, CAF Tag LA.UM.7.6.r1-03100-89xx.0.
V 1.1 - 2018-10-11:
Added USB keyboard support.
Added support for SMB2 and SMB3.
Updated kernel to Linux 3.18.123, CAF Tag LA.UM.6.6.r1-09900-89xx.0.
V 1.0 - 2018-08-11:
The zip file is now signed with my release-key.
Added CPU wake boost driver.
Removed asusdebug for a lighter kernel.
Updated BFQ I/O scheduler.
Updated F2FS driver.
Added SdFat for FAT and exFAT support.
Imported many more misc fixes and improvements.
Updated Toolchain to GCC 8.2.1.
Updated kernel to Linux 3.18.118, CAF Tag LA.UM.6.6.r1-09500-89xx.0.
Thanks to @makorn645:
Modifications for "Swipe up to wake".
Misc improvements of the defconfig for more performance.
V 0.9 - 2018-06-11:
Added elementalx cpufreq governor.
Updated Toolchain to GCC 8.1.1.
Updated kernel to Linux 3.18.112, CAF Tag LA.UM.6.6.r1-08600-89xx.0.
V 0.8 - 2018-05-21:
The wifi mac can now be changed by specifying a wlan_mac.bin file.
Check the release post for more information: https://forum.xda-developers.com/showpost.php?p=76580561&postcount=44
Updated kernel to Linux 3.18.109, CAF Tag LA.UM.6.6.r1-08500-89xx.0.
V 0.7 - 2018-05-10:
Updated blu_plug defaults.
Fixed lazyplug display state detection.
Rebased and cleaned up the kernel.
Updated kernel to Linux 3.18.108, CAF Tag LA.UM.6.6.r1-08300-89xx.0.
V 0.6 - 2018-04-25:
Added AutoSMP hotplug. (May be unstable, please report any crashes when using it.)
Added force fast charge feature - Thanks to @Saktis_STi for helping!
Important: Check the main post for more information before using force fast charge. This is NOT QC.
Updated kernel to Linux 3.18.106, CAF Tag LA.UM.6.6.r1-07400-89xx.0.
V 0.5 - 2018-04-06:
Added vibration intensity control.
Added fsync switch.
Imported many other improvements.
Updated compiler to Linaro GCC 7.3.1.
Updated kernel to CAF Tag LA.UM.6.6.r1-07200-89xx.0.
V 0.4 - 2018-03-25:
Updated kernel to Linux 3.18.102.
V 0.3 - 2018-03-23:
Added (optional) overclocking support for up to 2.2GHz.
Advanced Kernel version now visible in settings, with OC indicator.
Updated kernel to Linux 3.18.101, CAF Tag LA.UM.6.6.r1-06700-89xx.0.
V 0.2 - 2018-03-11:
Updated spectrum profiles: See main post for more detailed descriptions.
Updated kernel to Linux 3.18.99.
V 0.1 - 2018-03-07:
Initial release.
Kernel Modules
Here you'll find a description of every currently available kernel module for Advanced Kernel for Pie. (The oreo version is not currently supported.)
Kernel modules are drivers that can be loaded into the kernel in order to use hardware that would otherwise not work. A kernel module comes as a .ko-file and is only fully compatible to the kernel version it was released for. Modules can be loaded by executing "insmod [module].ko" within a terminal as root on the phone.
Every new Advanced Kernel release will come with a new version of all available modules.
The modules can be downloaded from the "Kernel Modules" subfolder (here).
Available modules:
RTL88XXau/RTL8814au
The rtl88XXau module allows you to use usb wifi adapters with the rtl8812au or rtl8814au chipset with your phone.
This driver was forked from aircrack-ng and features monitor mode and frame injection. TX-power can be tweaked too.
Check the readme on github (still WIP) on how to use it: https://github.com/Planet-X/rtl8812au/blob/v5.3.4/README.md
I only ported the driver to this kernel. Check the module's sources for credits: https://github.com/Planet-X/rtl8812au/tree/v5.3.4
I feel like my device is lagging. Even when I set everything to Performance.
So many features...
ra.ndy said:
I feel like my device is lagging. Even when I set everything to Performance.
Click to expand...
Click to collapse
It's all about finding the right settings
Just take your time to find them - I do admit that default settings are very conservative/battery friendly...
However I can assure you that this kernel can be just as fast or even faster than stock kernel. It's actually based on it so with exact stock settings you should get at least stock performance. The real problem is just tuning all these features which is why my spectrum profiles are still very basic ... too many variables take time for testing.
The next kernel version will move the current "Balance" profile to "Battery" and change "Balance" to be very stock-like. The current "Balance" and especially "Battery" profiles may be a little too extreme... :silly:
The system wide mic gain is working perfectly for whatsapp voice messages,but unfortunately it is not applied to video recording it seems... I tested it with Lineage Camera App and Whatsapp camera
Great, that I dont have to fiddle around with mixer_paths.xml, but can you adjust the kernel to let the mic gaion also apply to the video recordings? Many thanks!
kreutzfeldt_808 said:
The system wide mic gain is working perfectly for whatsapp voice messages,but unfortunately it is not applied to video recording it seems... I tested it with Lineage Camera App and Whatsapp camera
Great, that I dont have to fiddle around with mixer_paths.xml, but can you adjust the kernel to let the mic gaion also apply to the video recordings? Many thanks!
Click to expand...
Click to collapse
Mic gain worked for me with Lineage and stock asus camera videos
planet9 said:
Mic gain worked for me with Lineage and stock asus camera videos
Click to expand...
Click to collapse
Well, i guess i Flash your new Rom Update and kernel and test it again
Maybe the videos are Sounding low volume to me, because they need more Gain Boost than pure sound records?
The slider for the kernel is raising the gain equally for all inputs in general, but maybe the video recording gain is less sensitive then pure volume.
hey whem I use cell my mic and speaker can't Normal movement.
edouwu said:
hey whem I use cell my mic and speaker can't Normal movement.
Click to expand...
Click to collapse
I don't understand but...
If you're talking about the speakerphone, it's a known bug.
It is compatible with XenonHD Rom? (because it's based on lineage 15.1)
rafael_gavarron said:
It is compatible with XenonHD Rom? (because it's based on lineage 15.1)
Click to expand...
Click to collapse
It somehow is and isn't: Currently there should be no problems and it should work fine.
I can't guarantee, however, that it'll stay this way in the future. Just be aware that issues may arise due to kernel incompatibility.
I can only assure that my kernel is fully compatible to LOS 15.1. With every LineageOS update a new advanced kernel version will be released. As Xenon kernel improvements get merged into LOS and vice versa it should stay compatible but, again, I can't guarantee it...
planet9 said:
It somehow is and isn't: Currently there should be no problems and it should work fine.
I can't guarantee, however, that it'll stay this way in the future. Just be aware that issues may arise due to kernel incompatibility.
I can only assure that my kernel is fully compatible to LOS 15.1. With every LineageOS update a new advanced kernel version will be released. As Xenon kernel improvements get merged into LOS and vice versa it should stay compatible but, again, I can't guarantee it...
Click to expand...
Click to collapse
Thanks, I'll try it
How do i go back to stock kernel on LOS ?
vaidhy2007 said:
How do i go back to stock kernel on LOS ?
Click to expand...
Click to collapse
To go back to the stock kernel you simply have to reflash the LOS zip file in twrp, then reboot. You don't need to wipe any partitions.
0.3 version is out. Read the OP.
Advanced Kernel V0.4
Advanced Kernel V0.4 has arrived.
It's just a minor update to accompany the release of LineageOS build 2018-03-25.
Changelog:
Updated kernel to Linux 3.18.102.
Advanced Kernel V0.5
Advanced Kernel V0.5 is now available.
Changes:
Added vibration intensity control.
Added fsync switch.
Imported a load of other improvements.
Updated compiler to Linaro GCC 7.3.1.
Updated kernel to CAF Tag LA.UM.6.6.r1-07200-89xx.0.
Awesome work buddy

[KERNEL][TREBLE] HeliosPro Kernel v2.7 For J600X

Welcome to The HeliosPro Kernel Thread for Galaxy J600X
Built with Various Oreo 7870 Source.
Linaro GCC 7.4.1​
Warning : Me nor XDA Are responsible for any damage that might be caused after flashing any file provided here. Please take caution and be aware of what you are doing. And Always backup !
-- Features --
[x]GSI with Oreo Vendor and Samsung Oreo Roms Both Supported
[x]Fake Enforcing (Permissive and shows enforcing)
[x]Various Compiler Optimisations
[x]Compiled with Linaro 7.4.1
[x]ADB Insecure
[x]Fake KNOX
[x]Private Mod support
[x]MultiCPU Governors
[x]Multi I/O Schedulers
[x]Multi TCP Algorithms
[x]Limited Wakelocks
[x]Dynamic Fsync 2.0
[x]Fsync
[x]PowerSuspend 1.5
[x]UKSM V1.23
[x]Boeffla wakelock blocker v1.1.0
[x]StateNotifier & SysfsHelper
[x]Optimized ZSwap
[x]Optimized Deadline I/O
[x]Working MTP and Wifi Hotspot
[x]Better Input Booster
[x]Quicker Doze entry
[x]Other improvments for Batterylife and performance
[x]Support Android 8.0/8.1
[x]WireGaurd Support
[x]CPU VoltageControl
[x]CPU OC upto 1700MHz
[x]GPU OC Upto 1146MHz
[x]GCC 6/7 Support
[x]CRC Disabled by default
[x]Reduced Wakelocks
[x]GPU/CPU Voltage dropped
[x]Improved GPU Utilization
[x]Improved standby
[x]Adoptable SD patched
[x]Deodex oreo support
[x]Many ram improvments
[x]No sim breaking with 8.1 rooting
[x]Encryption Support for StockRoms
[x]And many more listed in changelogs below
[x]Pre-Rooted
--How to install--
If you have flashed Root through any means other than magisk, Please uninstall it (SuperSU>Full unroot)
Open developer options (Press aboutphone > build number 7 times) Enable OEM Unlock
Flash TWRP Recovery that can be found in J701 Section
Fully Wipe internal storage and format data (Must for first time flashing TWRP)
Copy Kernel to your desired Location
Install Zip > Select kernel.zip
Reboot and wait
First time rooting, Open magisk app Once to ensure root is working
--Basic Info --
This kernel is mainly for users who want more than just root, As permissive allows for more flexibility with some of the mods found on xda
You are free to use this kernel in any future rom aslong as you Link this thread / Github Source
-- Credits --
@ananjaser1211 for this golden kernel
@BlackMesa123 and @corsicanu for working with my projects
@topjonhuw For Magisk
@geiti94 For Wifi password Fix
@Noxxxious For general help
@JaskaranSM for Building it For J600X
@mohitmallick17 for his zip template
And my Elite-Team for their contributions to my projects and being Awesome.
Download <> Changelog <> More info In second Post
Github Source :http://github.com/jaskaranSM/Helios_7870
XDA:DevDB Information
HeliosPro Kernel Treble 2.7, Kernel for the Samsung Galaxy J
Contributors
JaskaranSM, JaskaranSM, Ananjaser1211
Kernel Special Features:
Version Information
Status: Testing
Current Stable Version: 2.7
Stable Release Date: 2019-06-12
Created 2019-06-12
Last Updated 2019-06-11
HeliosPro V2.7 Update​This is TOUCHWIZ only. The new compiler greatly improves performance on both 8.0 and 8.1 Based roms.
Enjoy, i know im not making any roms due to time and My potato PC , but i can support this kernel.
Changelog :-
- Compiled with Linaro 7.4.1 Compiler
- Performance and battery greatly improved with new compiler
- IO Schedular Driver Optimisations
- Added hKtweaks app for kernel tuning. (Thanks @corsicanu)
- More Speedier.
- Added NVS Hibernation Driver for better power management.
- Semi-OFast Optimsations for proper balance between performance and battery backup.
- Added Newer Boefolla Wakelock Blocker
- Added Newer Xpad (Joystick Controller) Drivers for Better Compatibilty.
- Added State Notifier Driver
- Fixed MTP on GSIs
- Fixed WLAN (WiFi) Hotspot on GSIs
- Added F2FS Filesystem Support.
- Memory driver using FIFO Queue and crypto optimisations
- Updated Wireguard VPN driver.
- Enabled IP tunneling for IPv6 Networks with TCP and UDP ports Support.
- Hotplugging with Real Time Scheduling
- Reduced Wakelocks for WLAN (WiFi) driver
- Added a lot of new TCP congestion Algorithms.
- Initial TCP window size is set to 64k for better caching
- More precise cpu frequency control
- Magisk Included
- New Cool AROMA theme
Follow the Full change log on the Github source.
Download : Google Drive
Size : 34MB
Tested and working thanks bro !
danicadanicadanica said:
Tested and working thanks bro !
Click to expand...
Click to collapse
...
danicadanicadanica said:
Tested and working thanks bro !
Click to expand...
Click to collapse
Can you tell me which rom and gapps do you use
And what bug is there so far
Ty
danicadanicadanica said:
Tested and working thanks bro !
Click to expand...
Click to collapse
hey.what is the rom that you're using?

[KERNEL][4.14.198][MIUI/AOSP] ?Quantic Kernel ? [MIUI WORKS][23/09/20]

Welcome to Quantic-Kernel, builded specially for Xiaomi Mi 9 codename: Cepheus​
/* I'm not responsable for any damage on your device, for X or Y reason, also I'm not responsable if you loose your alarm and got fired, anything like that, installing this kernel you renounce to make me responsable of any unwanted behavior of your device */
/*Compatible ONLY with Android 10*/
Hi everyone, I want to introduce you my new kernel named Quantic-Kernel, this is my personal build kernel with my prefered features. Hope everyone enjoy it and I'll be maintaining it so people can used it with their preferred AOSP ROM and MIUI ROM(See details below)
/*
* HALL OF DONATORS
* @Kris Chen
* @mitjat (Mitja Tavcar)
*/
FEATURES
Added Underclock down to 180MHz and Overclock up to 825MHz with a 735MHz step and official 675MHz step by CAF (Overclock isn't recommended only when using emulators suchs as Dolphin Emulator)
wq_pwer_saving toggle unlocked (Only visible in EX kernel Manager)
Kernel can be updated using FK Manager or Smartpack manager (see info below on how to add the .json)
Wireguard VPN core support
Added K-Lapse v5.0 module by tanish2k09
Added Sound Control (Thanks to @TeamMex for the fresh implementation)
Added Boeffla Wakelock Blocker v1.1.0
Upstreamed to Linux-4.14.172
Fsync toggle (Use only when your F2FS is your current filesystem)
Dynamic Fsync
Simple Low Memory Killer by Sultan Alsawaf (@kerneltoast)
sched backports from mainline 4.19 kernel
Lates CAF tag of sm8150, SDX55, SD6XX.
KCAL Reimplemented
INSTALLATION PROCEDURE
Flash magisk (If not flashed previously)
Make a TWRP backup of BOOT and DTBO partitions
Flash Quantic-Kernel_rX.zip
Flash Magisk-v20.4
Reboot to system
Enjoy it
BUGS:
Working on all MIUI ROM with broken DC-Dimming (Anti Flicker screen)
AOSP with no bugs
DOWNLOAD HERE
https://github.com/Official-Ayrton990/Quantic-Kernel-AOSP-Cepheus/releases
TELEGRAM CONTACT
https://t.me/Ayrton990 <-- Personal TG
https://t.me/QuanticKernel <-- Discussion group for support
https://t.me/ayrton990mods <-- My update channel
THANKS LIST
Huge thanks to @TeamMex for the help when making some codes
Thanks to @LOswaldoRO for a lot of testing
Thanks to @Giton22 for testing
SCREENSHOTS ATTACHED BELOW
XDA: DevDB Information
Quantic Kernel, Xiaomi Mi 9 (Cepheus)
Contributors
Ayrton990
Source Code: https://github.com/Official-Ayrton990/Quantic-Kernel-AOSP-Cepheus/
Kernel Special Features:
Version Information
Status: Stable
Created 2020-03-08
Last Updated 2020-07-12
Releases and Changelog
Quantic-Kernel reborn
What's this kernel:
It's a new concept kernel as the usual, this is focused on a improved UI experience to feel the smoothness of a Pixel device.
It's based on latest CAFEST base of sm8150 with clean code, including a several backports from 4.19 CAFEST kernels into the scheduler, making the optimum approach to low jank and jitter experience.
Working over WALT scheduler following the recommendations of CAF:
- CONFIG_HZ=100 instead of 300 used on most custom kernels out there
- SchedTune predictions.
- No AOSP overlayed code
- No riced code inside.
Quantic puts it's enhancements on:
- Backported Wireguard module to July
- ExFAT compatible OTG Devices
- LZ4 Crypto upgraded
- 2GB ZRAM for the best multitask experience
- heavily adapted scheduler aligned with CAF recommendations.
- CAF energy management by default instead of Xioami's.
- GPU OC Temporary disabled (will be ready next update until upstream arrives)
- Recalculated EAS Capacity in DTS
- Latest Long Term Support 4.14.193
- Latest tag for sm8150
- In kernel boosting drivers rather than common CAF Boost that causes massive task migration impacting performance and battery life.
- Battery life improved drastically
NOTES:
- BUGS: NONE SO FAR.. (You tell me?)
- Flash over the ROM stock kernel.
- This kernel works perfect aligned with my latest AOSiP build ?
- Screen OC will be added on next build
- Edit : Added Hotfix version
Download:
- http://quantic.carlosayrton.com/Quantic/Cepheus/AOSP/Quantic-Kernel-REBORN-Fixed.zip
OLD RELEASES
Quantic-Kernel r22
Changelog:
- Fixed BSD (Black Screen of Death while device locked)
- Switched to PELT Scheduler (New reworked sched, same as MIUI variant)
- Implemented turbocharge by wloot (To use generic chargers with 3A+ of flow)
- Bringed back GPU Overclock up to 810MHz
- Fixed performance regression (Geekbench: 761 single core, 2618 Multi-Core)
- Bringed back Sound Control
- Jitter with less disparity
BUGS: None so far
Battery Consumption: Acording to my weak test battery drain on simple task should be arround 9.80%/h and idle arround 0.36% please report back if you see high consumption
Download AOSP and MIUI: https://github.com/Official-Ayrton990/Quantic-Kernel-AOSP-Cepheus/releases
Quantic-Kernel r21
Changelog for AOSP | Download here
Changelog for MIUI | [URL="https://github.com/Official-Ayrton990/Quantic-Kernel-AOSP-Cepheus/releases/tag/r21-MIUI"]Download here
MIUI Users, Disable DC-Dimming or Anti-Flicker before flashing, else you will have a bootloop.
Join to my telegram group for support or to my channel to get faster updates
Quantic-Kernel r17
Changelog for AOSP:
- Upstreamed to LTS: 4.14.186
- Upstreamed Low Memory Killer by Sultan Alsawaf @Kerneltoast
- FOD Improvments (Use qcom drm notifier for event blanks)
- disp: msm: sde: prevent CPU from sleeping while processing display IRQ
- soc: qcom: smp2p: keeping inbound entry on freeze
- ARM64: dts: sm8150-common: Disable all PCIe and MHI nodes
- cpufreq: Only block min freq setting for booster processes
- qos: Don't allow userspace to impose restrictions on CPU idle levels
NOTE: Kernel version remains on r16 because I forgot to change it
NOTE: Userspace is the plain where rom and user can tamper in kernel settings by a good or bad way
Download here: https://github.com/Official-Ayrton990/Quantic-Kernel-AOSP-Cepheus/releases/tag/r17
Changelog for MIUI- Initial Release
- Upstreamed to LTS: 4.14.186
- Upstreamed to CAF: LA.UM.8.1.r1-15100-sm8150.0
- FOD Fixed by @sekaiacg
- FOD Improvments by @laulan56
- AOD and FOD on AOD Fixed by @official-Ayrton990
- GPU Overclock to 835MHz
- Fsync toggle and Dynamic fsync
- Disabled all qcom boost
- Use qcom drm notifier and all fingerprint and touch drivers and objects
- PELT Scheduler
- Scheduler backports for general performance and baterry consumption
BUGS: Anti screen flickering not working and dont try to enable or your would never be able to boot the rom
BUGS: Since I'm using magisk to solve some issues of FP coming from M.O.D Kernel or Evira Kernel will bootloop your device, be aware.
Download here: https://github.com/Official-Ayrton990/Quantic-Kernel-AOSP-Cepheus/releases/tag/r17-MIUI
Quantic-Kernel r14
Fod Improvments in accuracy and speed according to
Changed interpolation method from linear to non-linear using logarithms (base 2) for a better accuracy and response in brightness (see: f8658e8)
Fixed high birghtness after unlocking device using fod.
avoid atomics to trigger drm_notifier
Massive improvments in performance and battery consumption, according to
Custom Implementation of cpu_input_boost
Selected minimum optimal frequencies for sm8150 (Thanks to kdrag0n)
Boosting DDR Bus when a new frame is ready to be commited.
Boost when memory pressure becomes high
Upstreamed CAF to: LA.UM.8.1.r1-15100-sm8150.0
Upstreamed LTS: 4.14.183
Scheduler improved, reduced Jank and Jiter (UI)
WALT Dropped
Idle improved (Tweaked s2idle)
Minor battery improvments in general.
OC restored back (recommended default 675MHz)
NOTE: Improvments on FOD are only avaliable in the FOD-IN-KERNEL version
FOD-IN-KERNEL only compatible with: LOS, PE, P-404, Syberia, Descendant and crDroid.
Download here: https://github.com/Official-Ayrton990/Quantic-Kernel-AOSP-Cepheus/releases/tag/r14
Quantic-Kernel r12
rebuilt FOD changes from the ground up to avoid flickering (kernel side changes obviously, requires updated trees)
Enable lz4 zRAM compressor for PELT version
wakeup logging under new s2idle flow
Improve general performance of the scheduler
sched/fair: don't migrate stune boosted tasks to little cores
sched/tune: remove WALT support from stune assist (performance improved, because this enable full stune assist on PELT)
Upstreamed to 4.14.18 from kernel.org
Latest CAF Tags
For FP, there will be 2 versions, one for updated roms with optimized fod by Demon000, such as Pixel Experience and LOS, other version [PELT(2)] will work on other roms like derpfest based and crDroid.
Some little performance improvments and idle consumption lowered
ExFAT added to PELT(2)
Download here: https://github.com/Official-Ayrton990/Quantic-Kernel-AOSP-Cepheus/releases/tag/r12-PELT
Download here (Optimized FOD): https://github.com/Official-Ayrton990/Quantic-Kernel-AOSP-Cepheus/releases/tag/r12-PELT_DERP
Quantic-Kernel r10
Upstreamed to 4.14.181 from android-linux-stable
Embedded dtbo.img into the kernel, this will let modders to alter the dtbo partition without messing with fp.
Updated sched_energy driver
Checkout to sched_energy to common kernel android 4.14
Idle drain improved (please don't use meme apps such as greenify, naptime and GMS Doze, because aren't compatible with sleep2idle)
New complementary build with PELT Scheduler (NO GPU OC, NO KLAPSE and NO Boeffla Wakelock Blocker)
Upstreamed osm0sis Anykernel3
HEX-PATCHED boot.img support on anykernel.sh to support no-root users
Added schedION (See info below) optimized for PELT mechanism
Join to https://t.me/QuanticKernel for group support and https://t.me/ayrton990mods for updates
Download here WALT Version: https://github.com/Official-Ayrton990/QK-AOSP-Cepheus/releases/tag/r10
Download here PELT Version: https://github.com/Official-Ayrton990/Quantic-Kernel-AOSP-Cepheus/releases/tag/r10-PELT
Quantic-Kernel r9
Enabled sleep2idle
Fix excessive packing on the max capacity CPU
updated LZ4 decompressor module
tcp: up initial rmem to 128KB and SYN rwin to around 64KB
Enable simple_lmk (Simple low memory killer upstreamed)
Updated vmpressure
Code cleaned at 80%
Introduce devfreq_boost
Boost CPU DDR bus when commiting a new frame
Forced ULPS on dsi_panel instead of my dtsi forced method
Nuked Dynamic_schedboost since it was making a lot of jitter while navigating on the UI and draining battery so fast
Merge tag 'LE.UM.3.3.2-0800-SDX55'
Merge tag 'LA.UM.8.9.r1-09200-SM6xx.0'
Upstreamed to latest AOSP 4.14-q tag
Added some flags optimization to Makefile (NOTE: I know that Linus Torvalds disapproves using -O3 optimizations but I'm compiling with clang instead of gcc)
Nuked default up|down_rate_limit_us values
Join to https://t.me/QuanticKernel for group support and https://t.me/ayrton990mods for updates
Download here: https://github.com/Official-Ayrton990/QK-AOSP-Cepheus/releases/tag/r9
Quantic-Kernel r7 and r8
Upstreamed to Linux 4.14.180 of https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
Enabled exposure adjustment and also changed some minor values (DC Dimming or Flicker Free, also tunned to avoid visual artifacts)
Merge tag 'LE.UM.4.2.2.r1-01000-SDX55'
Merge tag 'LA.UM.8.1.r1-14900-sm8150.0'
Merge branch 'android-4.14-q' of https://android.googlesource.com/kernel/common
Backported features that will help CPU to distribute the loads on the cores
Nuked some useless boost from CAF
Tunned thermals zones
Imported binder changes from 4.19
Leds: class: ensure workqueue is initialized before setting brightness
Nuked sched_boost feature
Tweaked schedutil
Avoid thermal_core to not throttle prime core
reserve prime core for high_cap tasks only
disallow taking down big and prime cores by userspace
avoid 100% CPU usage during compaction when a task is killed
Join to https://t.me/QuanticKernel for group support and https://t.me/ayrton990mods for updates
Download here: https://github.com/Official-Ayrton990/QK-AOSP-Cepheus/releases/tag/r8
Quantic-Kernel r6
Partially fixed dt2w, some users reporting not working on PA but the rest of the ROMs works
Upstreamed to **linux stable 4.14.178**
Added a new CFS thread for freeing GPU memory. Improves performance when tearing down processes and lets UI to submit work to the GPU. (more info here: 24c27d8)
Offload mementry destroy work to separate thread, this is done to reduce the time spent by user applications in waiting for memory to be freed. (more info here: 0dc7bcd)
Use optimized spinning loop for arm64, this makes about 20% performance improvement on the CPU multithread load. (more info here: 9abedaf)
Fix race between runtime distribution and assignment (more info here: 0d521cd)
Align rq->avg_idle and rq->avg_scan_cost, The only difference between the two is that rq->avg_scan_cost is computed using a pure division rather than a shift (more info here: f3721e1)
Get rid of the big mutex lock on ashmem (more info here: 3ec8f26)
Enable ZRAM to 3GB and use z4 as compressor.
Most of the new features were backported.
Join to https://t.me/QuanticKernel for group support and https://t.me/ayrton990mods for updates
Download here: https://github.com/Official-Ayrton990/QK-AOSP-Cepheus/releases/tag/r6 or use FK Manager/smartpack to Update
Quantic-Kernel r4
Merge tag 'LA.UM.8.11.r1-03300-NICOBAR.0'
Merge tag 'LE.UM.4.2.2-00800-SDX55'
Added dynamic schedtune boost
Tweaked cpufreq_schedutil.c again
By consequence of the prior changes, performance is better than last r3 without loosing battery backup.¿t
Join to https://t.me/QuanticKernel for group support and https://t.me/ayrton990mods for updates
Download here: https://github.com/Official-Ayrton990/QK-AOSP-Cepheus/releases/tag/r4 or use FK Manager/smartpack to Update
Quantic-Kernel r3
paranoid kernel base by @markakash now deprecated, thanks to him to let this project start
New base build from scratch synced with demon000 fp changes
DDR4 2133MHz OC
Enabled Ultra Low Power State (UPS)
Enabled LZ4 on ZRAM
Enabled CONFIG_IP_NF_TARGET_TTL requested by Vladislav Polyakov this let the user to change TTL by their own value in safe way
Tuned schedutil to reach better performance without damaging the battery life
Use PELT instead of WALT
MIUI not compatible at the moment
Join to https://t.me/QuanticKernel for group support and https://t.me/ayrton990mods for updates
Download here: https://github.com/Official-Ayrton990/QK-AOSP-Cepheus/releases/tag/r3 or use FK Manager to Update
Quantic-Kernel v2.1-HF
Fixed tethering, this means that modded TTL to avoid tethering on carries has been reverted. Check: 8b8ef87
Synced with Demon000 changes
Download here: https://github.com/Official-Ayrton990/Quantic-Kernel_AOSP-PE/releases/tag/v2.1-HF or use FK Manager to Update
Quantic-Kernel v2.1
Merge tag **'LA.UM.8.1.r1-14700-sm8150.0'** of https://source.codeaurora.org/quic/la/kernel/msm-4.14
Merge tag **'v4.14.176'** of https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
IMPORTANT NOTE: Upstreams could downgrade battery performance, I don't test and review every single commit of an upstream (Takes a lot of hours) so this is likely the price to pay to have an Up to date Kernel
Download here: https://github.com/Official-Ayrton990/Quantic-Kernel_AOSP-PE/releases/tag/v2.1 or use FK Manager to Update
Quantic-Kernel v2.0
Merge tag 'LE.UM.3.3.2-07400-SDX55' from CAF
Merge tag 'LE.UM.4.1.2.r1-03500-qcs405.0' from CAF
Avoid tethering carrier detection (EXPERIMENTAL) changing TCP time to live (TTL) packages to 64 (ISP dettects tethering when a value of TTL is dfferent than 64)
Use power efficient workingqueues on GPU
Sycned doze changes from Demon000
Disable readahead by default; could improve performance and power consumption by 70% (sequential; 60% for random).
dtbo regenerated (please test this could break the fingerprint)
Download here: https://github.com/Official-Ayrton990/Quantic-Kernel_AOSP-PE/releases/tag/v2.0 or use FK Manager to Update
Quantic-Kernel v1.9
Merge tag 'LE.UM.4.2.2-00500-SDX55'
Added Demon000 screen doze implementation for battery savings
Disabled all debuggers and loggers
Testing new cpu mask to set idle frequencys.
Wireguard is enabled by default
should see better screen off drain
Added the necessary commits for the new flicker-free implementation on PE+ to work
Download here: https://github.com/Official-Ayrton990/Quantic-Kernel_AOSP-PE/releases/tag/v1.9 or use FK Manager to Update
Quantic-Kernel v1.8
Upstreamed to 4.14.175 from https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux
Changed frequency bus (max and min) to achieve better efficiency on GPU OC, this means: Less heat, less battery consumption
IMPORTANT NOTE: Upstreams could downgrade battery performance, I don't test and review every single commit of an upstream (Takes a lot of hours) so this is likely the price to pay to have an Up to date Kernel
Download here: https://github.com/Official-Ayrton990/Quantic-Kernel_AOSP-PE/releases/tag/v1.8 or use FK Manager to Update
Quantic-Kernel v1.7
Support for MIUI (Custom ROMs that doesn't support avb) with broken fp
Force idle 403MHz frequency to silver core (https://github.com/Official-Ayrton9...mmit/49b531db5b553aaac1a42ed6852e4a34ba714190)
Merge tag LE.UM.4.2.2-00400-SDX55.
Download here: https://github.com/Official-Ayrton990/Quantic-Kernel_AOSP-PE/releases/tag/v1.7 or use FK Manager to Update
Quantic-Kernel v1.6
Tweaked schedutil governor, now better consumption and battery drain achieved
Removed Spectrum profiles, not necessary now with this tweak on schedutil
Now kernel is upgradable with Franco Kernel Manager and smartpack just adding the following url: https://www.carlosayrton.com/kernel.json
Overclock downgraded to 825MHz, this because some reports about antutu failing on benchmark and lower results, also a lot of shuttering on the UI
Underclock down to 96MHz to idle the gpu and save energy, when watching videos or static images.
Download here: https://github.com/Official-Ayrton990/Quantic-Kernel_AOSP-PE/releases/tag/v1.6
Quantic-Kernel v1.5
Upstreamed to 4.14.174 from linux-stable (See my github to review changes)
IMPORTANT NOTE: Upstreams could downgrade battery performance, I don't test and review every single commit of an upstream (Takes a lot of hours) so this is likely the price to pay to have an Up to date Kernel
Download here: https://github.com/Official-Ayrton990/Quantic-Kernel_AOSP-PE/releases/tag/v1.5
Quantic-Kernel v1.4 (Birthday update! :victory
Synced with akash changes
schedION governor added (Battery Friendly ONLY and see INFO Post for details)
Updated Spectrum profiles
IMPORTANT NOTE: Upstreams could downgrade battery performance, I don't test and review every single commit of an upstream (Takes a lot of hours) so this is likely the price to pay to have an Up to date Kernel
Download here: https://github.com/Official-Ayrton990/Quantic-Kernel_AOSP-PE/releases/tag/v1.4
Quantic-Kernel v1.3
Upstreamed to 4.14.173
Spectrum profiles reverted
Kernel updated to LA.UM.8.1.r1-14500-sm8150.0
Flashing method:
Backup stock boot and dtbo
Flash Kernel
Flash Magisk v20.3
Reboot
Notes:
Fingerprint on Screen should be fixed since I'd made a dtbo.img to avoid that issue, however because of the lack of testers I can't guarantee fingerprint working since I reimplemented spectrum profiles again.
Download here: https://github.com/Official-Ayrton990/Quantic-Kernel_AOSP-PE/releases/tag/v1.3
Quantic-Kernel v1.2
Deleted Spectrum as fingerprint still not working (sorry for that)
Added houston library from OnePlus 7 PRO
Added blu_schedutil, a governor created by @eng.stk extracted from his kernel implementation on blu spark. (This governor saves battery and unleash power when needed)
Removed several log instructions from defconfig to avoid unnecessary charge on the system.
Added Device_Tree_blob_overlays to completely solve the issue of missing fingerprint in some devices and ROMs (Like crDroid and ArrowOS)
Download here: https://github.com/Official-Ayrton990/Quantic-Kernel_AOSP-PE/releases/tag/v1.2
Quantic-Kernel Hotfix-v1.1
Temporary removed Spectrum, as is the known bad guy that is causing trouble with some people dissapearing fingerprint on display
People that doesn't have problems with fingerprint can stay on v1.0 without problem, this update is made to restore fingerprint.
Please restore your boot and dtbo partition backup made on twrp and then flash the kernel (no need to reflash magisk as I'm not touching ramdisk anymore because no spectrum)
Thanks to Peter Jakson for testing the fixed version Apologizes to everyone for the inconvenience
Download here: https://github.com/Official-Ayrton990/Quantic-Kernel_AOSP-PE/releases/tag/Hotfix-1.1
Quantic-Kernel v1.0
Updated K-Lapse to v5.0 this fixes FK Manager force close issue when activating it
Reimplemented KCAL from scratch, that fixes a lot of shutterings and adds color control to the screen
Added missing header (display_state.h) that causes issues with KCAL
Performance improved massively
Added Spectrum profiles support to the kernel
Download here: https://github.com/Official-Ayrton990/Quantic-Kernel_AOSP-PE/releases/tag/v1.0
Kernel Modules INFO
Introducing schedION governor
schedION is a governor developed by me, it's main purpose is to save battery with PELT Scheduler, you can play game with lower drain and heat, performance still better than stock kernel. This is governor is activated selection "schedion" on the tree clusters and ONLY on PELT edition.
Introducing Spectrum profiles
Spectrum is a simple kernel manager app created by @frap129 in 2017 supporting kernels since Android 5.0 Lollipop, its very special because allows the kernel dev to ship a kernel with preconfigured profiles, with balance, battery, performance and gaming mode, so you can try the best setup made for the kernel without manipulating any kernel variable using others kernel managers.
Spectrum is shipped with Quantic-Kernel since version 1.0, prior versions doesn't support it: like pre-releases and RC.
Spectrum profiles can be applied using Spectrum from Playstore
Spectrum profiles can be applied using smartpack from Playstore
This kernel is going really good and some other good features are coming on next builds. All should try rn.
Thank you, it's working as expected.
Thank you. Tried with latest 11.0.5 stable and worked fine
karrouma said:
Thank you. Tried with latest 11.0.5 stable and worked fine
Click to expand...
Click to collapse
Hey thanks for the testing, did you found issues with fingerprint scanner? :highfive:
Gj mate
Sent from my Xiaomi Redmi Note 7 using XDA Labs
i installed on aosp crdroid and i lost my fingerprint, how can i solve it? thank you
Ayrton990 said:
Hey thanks for the testing, did you found issues with fingerprint scanner? :highfive:
Click to expand...
Click to collapse
Not working
FP not found in security .
TeamMex said:
Gj mate
Click to expand...
Click to collapse
Hey thanks mate, appreciate all your help
baggino said:
i installed on aosp crdroid and i lost my fingerprint, how can i solve it? thank you
Click to expand...
Click to collapse
That's because stock crDroid kernel hasn't the newest changes of fp made by markakash, please try to delete your saved fingerprint and add it again, should work normally.
karrouma said:
Not working
FP not found in security .
Click to expand...
Click to collapse
I expected that, fp scanner differs between AOSP and MIUI, I'll try to make something to let fp work but big chances are that it would not work.
Ayrton990 said:
That's because stock crDroid kernel hasn't the newest changes of fp made by markakash, please try to delete your saved fingerprint and add it again, should work normally.
Click to expand...
Click to collapse
fingerprint is gone and there is no possibility to insert it again because the menu "device security> fingerprint" no longer exists
Another bug
Speed meter all time is 0.0KB/s
karrouma said:
Another bug
Speed meter all time is 0.0KB/s
Click to expand...
Click to collapse
Thanks for feedback, I have bad news, xiaomi changed the FP implementation on 11.0.5 and source code hasn't released, so I can't make anything to make it work until xiaomi release the sc, you can try with another version such as 11.0.2
Using pixel experience but fingerprint disappeared after flashing this
Ty Mate. Kernel is so good working.
Hello
The smoothness and battery on this kernel + pixel experience are fantastic (10-11% screen on drain and 0.3-0.6% screen off) but I've got a problem with the 835mhz oc of the GPU.
On 835 it crashes on 3d apps right away (games and AnTuTu) while on 735 it is smooth and stable.
Is it because if the aosp rom or just the fact that the gpu is not stable at 835? Thanks.
Using the kernel along with Pixel Experience ROM, FP works well, no random reboot. And this kernel has something that I'm looking for, 735 MHz GPU. Sometimes my phone stuttered using the 835 MHz, that's why the 735 is really important instead of the 675 MHz ones. Thank you dev!

Categories

Resources