[EOL][KERNEL][7.X][i9300] Koffee - Galaxy S III Android Development

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.

Related

Unknown [kernel] [nougat] [gcc7.2]

Kernel only supports stock MIUI, No Lineage/Oreo SUPPORT!!!​
Kernel is based on sagit-oss and some CAF patches and some upstream backports, kernel is for my own use, so don't expect too much on it for fancy features
Disclaimer
/* * * Your warranty is now void. * We are not responsible for anything that may happen to your phone by installing any custom kernels. * You do it at your own risk and take the responsibility upon yourself and you are not to blame us or XDA and its respected developers. * */
What inside this kernel:
Kernel support MIUI 7.12.7
Kernel compiled with GCC 7.2 Android Bionic 64Bit
Kernel build with -O2 with full optimization
Kernel remove annoying wlan logs, pkt logs in the stock kernel
Kernel is systemless, restore stock boot.img before you do OTA
Kernel build with debug disabled to improve performance
Kernel updated up to 4.4.106 build.
Kernel operate in 300HZ
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 latest F2FS driver for 4.4.y with fixes for ICE(not tested yet)
Kernel include ZEN,NOOP,CFQ,MAPLE govs
Kernel includes Blu_active, Interactive Performance CPU GOVS.
Kernel includes ARM enhanced performance and battery patches
Kernel includes random driver backported from mainline
Kernel includes fast finger print sensor mod when screen is off.
Kernel includes @flar2 sound/mic gain control interface.
Kernel include boost to I/O by mounting partitions with optimized flags,
Kernel include fix to various selinux warning in stock kernel
Kernel include ext4 improvement backports
Kernel include memory allocator improvement backported from 4.6 kernel
Kernel include driver that will switch io scheduler to noop for power save when screen off after 5s
Download and Installation
Check github page and use fastboot to flash it
The simple answer is use fastboot to flash it. if you ever unlock your phone, fastboot is in the unlock tool you downloaded.
The detail answer is:
1. download image from github
2. connect your phone to computer using usb, with usb debug enabled
3. run "adb reboot bootloader" in shell
4. run "fastboot flash boot Kernel-Unknown-V2.0-Nougat-boot.img" in shell
5. run "fastboot reboot" to reboot phone
if you want to do OTA or kernel is not booting
1. run "fastboot flash boot boot.img" to restore stock kernel, of course you should find stock kernel on stock MIUI rom, there is a boot.img in the zip
Download link: https://github.com/carck/SAGIT-DOWNLOADS/
Releases
Release V2.2
* Linus 4.4.112
* cfq scheduler backports from mainline and set as default
* CPU minfreq switcher to reduce CPU minfreq in order to save power on screen off, screen off=300Mhz, screen on=Stock MIUI value
* Enable camera2 API to use HDR+ camera
Release v2.0
* Linux 4.4.108
* Experimental with io_is_busy set to 0 for interactive gov, to see if this will improve battery and not affect UI fluency
Release v.19
* Linux 4.4.106
* Tool change update to linaro gcc 2017.11
* Switch to @boeffla's wakelock blocker
* Try to improve fingerprint responsvieness
Release v1.6
* rollback some bluetooth changes, fixed device not going to sleep after Bluetooth disconnected
Release v1.5
*misc lib optimization backported from mainline
Release v1.4
*Linux 4.4.105
*miui 7.12.7 ramdisk
*Enable process reclaim, used by miui
Release v1.3
*Include a kernel driver that will switch io scheduler to NOOP for power saveing when screen off/on
Release v1.2
* memory allocator improvements backported from upstream 4.6
Release v1.1
* ext4 file improvements backports
Release V1.0
* Initial release, see github commits for what inside
XDA:DevDB Information
UNKNOWN, Kernel for the Xiaomi Mi 6
Contributors
lance.zhou
Source Code: https://github.com/carck/sagit_kernel
Kernel Special Features:
Version Information
Status: Beta
Created 2017-12-08
Last Updated 2017-12-28
Reserved
can you support aosp android 7.1?
and build zip?
where is the link?
Miftahzy98 said:
where is the link?
Click to expand...
Click to collapse
github's release tab
abc0922001 said:
can you support aosp android 7.1?
and build zip?
Click to expand...
Click to collapse
I think other kernel is good enough, I have no plan to build for aosp as i can't test.
Can you add fixed KCAL? I feel the color is thin...(My eyes seem to be bad)
What mean "fixed KCAL" ?
1. If turn-off screen, KCAL settings will be reset. (This is a problem on MIUI Nougat)
2. device rebooting when KCAL setting is applied(Apply on boot / changing setting).
Click to expand...
Click to collapse
This problem can be confirmed with custom Kernel which support KCAL
Garry050 said:
Can you add fixed KCAL? I feel the color is thin...(My eyes seem to be bad)
What mean "fixed KCAL" ?
This problem can be confirmed with custom Kernel which support KCAL
Click to expand...
Click to collapse
please provide kernel log, however it is not gurantee this can be fixed by me
what a nice kernel
Don't boot. Wipe's data without media. AND DON'T BOOT. Be aware. MIUI 7.12.7
boots fine here, anyway use other kernel please, no log no fix.
lance.zhou said:
boots fine here, anyway use other kernel please, no log no fix.
Click to expand...
Click to collapse
i try to flash it epic rom but it deletes everything but data and it bootloops on miui screen
MI 6 cihazımdan Tapatalk kullanılarak gönderildi
muzxx7 said:
i try to flash it epic rom but it deletes everything but data and it bootloops on miui screen
MI 6 cihazımdan Tapatalk kullanılarak gönderildi
Click to expand...
Click to collapse
Sorry to hear that, did you flash it by fastboot?
Your kernel works fine except one bug on finger print . When I turn off the screen for more than 5 seconds, there is a seconds-delay to wake the screen on with finger print. My finger print is FPC, not goodix. I guess if it is because "Kernel include driver that will switch io scheduler to noop for power save when screen off after 5s"? BTW the download page is missing, hope you restore it and fix the bug soon. I really like it and it is more stable than the other two xda kernels here on MIUI, you've done a great job. Thanks.
lance.zhou said:
Sorry to hear that, did you flash it by fastboot?
Click to expand...
Click to collapse
Rooted and decrypted devices may need to flash SuperSU to avoid bootloop and auto wiping the data after flash your kernel. This may due to MIUI problem, because I have the same problem when I flash a new version of MIUI rom.
hello,404 not found that url
Project is moved to bitbucket, the download link is updated.
Release v1.6, fix a issue device not going to sleep after bluetooth disconnect.
For those who want to help me to build a more stable kernel, please report with logs , after kernel panic and reboot,
adb shell
cat /proc/last_kmsg > /sdcard/ log.txt
and post log.txt here
lance.zhou said:
Project is moved to bitbucket, the download link is updated.
Release v1.6, fix a issue device not going to sleep after bluetooth disconnect.
For those who want to help me to build a more stable kernel, please report with logs , after kernel panic and reboot,
adb shell
cat /proc/last_kmsg > /sdcard/ log.txt
and post log.txt here
Click to expand...
Click to collapse
Pls give the bitbucket download link. The link hasn't been updated.
iChinxu said:
Your kernel works fine except one bug on finger print . When I turn off the screen for more than 5 seconds, there is a seconds-delay to wake the screen on with finger print. My finger print is FPC, not goodix. I guess if it is because "Kernel include driver that will switch io scheduler to noop for power save when screen off after 5s"? BTW the download page is missing, hope you restore it and fix the bug soon. I really like it and it is more stable than the other two xda kernels here on MIUI, you've done a great job. Thanks.
Click to expand...
Click to collapse
Here is the log.txt, I hope it's helpful to fix screen waken delay with finger print.
doesnt boot on xiaomi.eu

[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] [Q] Twisted Kernel V28 [Polaris] [30/06/2020]

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

[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!

[KERNEL] [SM-T870] Quantic Kernel for Galaxy Tab s7 (WiFi only) [4.19.113]

Welcome to Quantic a Kernel built specially for Galaxy Tab s7 (WiFi) codename: SM-T870
One of the most used kernel on Custom ROMS on Xiaomi Mi 9, POCO F2 Pro, Mi 10T Pro, POCO F3 Pro, chosen by developers , built from scratch with source provided by email from Samsung OSS service/B]​
/* 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 and also the thermonuclear war, anything like that, installing this kernel you renounce to make me responsable of any unwanted behavior of your device */
/*Compatible ONLY with Android 11*/
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 (See details below)
FEATURES
Reduced logging events
Performance Improvements on scheduler
Enabled ZRAM with lz4 compressor
Upstreamed lz4 compressor
readahead optimizations
Android Binder tweaks
Optimized memory allocations
Reduced kernel weight
Optimized CAF CPU BOOST with my personal tweaks using Sultan's kthread affine API's
FIX CPU Capacity issues
Added Drag Kernel GPU Overclock table.
RCU Backports from mainline kernel.
Wireguard Enabled
Devfreq boost enabled and aligned with CAF sched_boost powerhal. Enjoy lag free UI experience with no frame drops.
Using efficient frequencies for kona (disabled 865+ overclock on CPU temporarily).
Support for 24 bits audio
Patched warranty flags on kernel, so knox status and warranty status are spoofed at boot stage.
Removed kperfmon debug driver
Removed lag UI when low battery
INSTALLATION PROCEDURE
Download FK Manager
Flash Quantic-Kernel_rX.zip
Reboot
Enjoy it
BUGS:
Boot time takes too much (trustzone doing his nasty stuff)
DOWNLOAD HERE
https://github.com/Official-Ayrton990/android_kernel_samsung_sm8250/releases/tag/r1.0
TELEGRAM CONTACT
https://t.me/Ayrton990 <-- Personal TG
https://t.me/AyrtonChat <-- Discussion group for support
Thanks List
To kdrag0n
To Kerneltoast
To alk3pInjection
To DragKernel's dev
To the awesome community in telegram of developers of Samsung sm8250
XDA:DevDB Information
Quantic Kernel for Galaxy Tab s7 (WiFi only)
Contributors
Ayrton990
Source Code: Github KONA-DEVS
Kernel Special Features:
Version Information
Status: Beta
Current Beta Version: r2
Beta Release Date: 2020-11-29
Created 2020-11-22
Last Updated 2020-11-29
Reserved
Reserved 2
Looks like awesome work! I'm excited to see the performance on others tab S7 devices! Any plans to support SM-T970 tab S7+ wifi?
Kernel nice ..... could use help with twrp
deleted
Does this overwrite the entire operating system? Does it add some tweaks to the current operating system? I'm a little confused about what flashing this does. And since we don't have TWRP for this device I don't want to mess up my current set up. Thanks.
Latest release boots on T875BUK2. Device seems to be fine, 4G also works.
Edit: Well, apart from the kernel panic whenever the device wakes up from sleep. Since its not for T875, I guess trying it isnt a very bright idea then..
Why A11. Mostly every 1 on A12.
gerabbi said:
Does this overwrite the entire operating system? Does it add some tweaks to the current operating system? I'm a little confused about what flashing this does. And since we don't have TWRP for this device I don't want to mess up my current set up. Thanks.
Click to expand...
Click to collapse
If you don't know what flashing a custom kernel will do to your device, it as well not be important at all for you to flash it. Just use your device stock.
ekin_strops said:
If you don't know what flashing a custom kernel will do to your device, it as well not be important at all for you to flash it. Just use your device stock.
Click to expand...
Click to collapse
I don't know. It's why I asked the question as to what this does? Your response didn't really address my question, though I appreciate the response. This is only a kernel and not the full rom? What is the advantage to flashing this compared to root with magisk?
gerabbi said:
Does this overwrite the entire operating system? Does it add some tweaks to the current operating system? I'm a little confused about what flashing this does.
Click to expand...
Click to collapse
XDA Rule #1: Search before posting.
Ayrton990 said:
Welcome to Quantic a Kernel built specially for Galaxy Tab s7 (WiFi) codename: SM-T870
One of the most used kernel on Custom ROMS on Xiaomi Mi 9, POCO F2 Pro, Mi 10T Pro, POCO F3 Pro, chosen by developers , built from scratch with source provided by email from Samsung OSS service/B]​
/* 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 and also the thermonuclear war, anything like that, installing this kernel you renounce to make me responsable of any unwanted behavior of your device */
/*Compatible ONLY with Android 11*/
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 (See details below)
FEATURES
Reduced logging events
Performance Improvements on scheduler
Enabled ZRAM with lz4 compressor
Upstreamed lz4 compressor
readahead optimizations
Android Binder tweaks
Optimized memory allocations
Reduced kernel weight
Optimized CAF CPU BOOST with my personal tweaks using Sultan's kthread affine API's
FIX CPU Capacity issues
Added Drag Kernel GPU Overclock table.
RCU Backports from mainline kernel.
Wireguard Enabled
Devfreq boost enabled and aligned with CAF sched_boost powerhal. Enjoy lag free UI experience with no frame drops.
Using efficient frequencies for kona (disabled 865+ overclock on CPU temporarily).
Support for 24 bits audio
Patched warranty flags on kernel, so knox status and warranty status are spoofed at boot stage.
Removed kperfmon debug driver
Removed lag UI when low battery
INSTALLATION PROCEDURE
Download FK Manager
Flash Quantic-Kernel_rX.zip
Reboot
Enjoy it
BUGS:
Boot time takes too much (trustzone doing his nasty stuff)
DOWNLOAD HERE
https://github.com/Official-Ayrton990/android_kernel_samsung_sm8250/releases/tag/r1.0
TELEGRAM CONTACT
https://t.me/Ayrton990 <-- Personal TG
https://t.me/AyrtonChat <-- Discussion group for support
Thanks List
To kdrag0n
To Kerneltoast
To alk3pInjection
To DragKernel's dev
To the awesome community in telegram of developers of Samsung sm8250
XDA:DevDB Information
Quantic Kernel for Galaxy Tab s7 (WiFi only)
Contributors
Ayrton990
Source Code: Github KONA-DEVS
Kernel Special Features:
Version Information
Status: Beta
Current Beta Version: r2
Beta Release Date: 2020-11-29
Created 2020-11-22
Last Updated 2020-11-29
Click to expand...
Click to collapse
I flashed it to my sm-t870 now it won't boot. Please help
Hempster18 said:
I flashed it to my sm-t870 now it won't boot. Please help
Click to expand...
Click to collapse
RIP. I’ll play the tiny violin for you while you put it in download mode via the key combo and restore it with Odin and the firmware files from Sammobile
This kernel is a monster!! Thanks

Categories

Resources