[KERNEL] [6P] [8.x/7.1.x] [2018-02-14] Kernvatore v3.11 - Nexus 6P Android Development

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Code:
/*
* kernvatore-angler.c
* --------------------------
* YOUR WARRANTY IS NOW VOID
*
* I am not responsible for bricked devices, dead SD cards,
* sick/abused animals, thermonuclear war or you getting
* fired because you missed your alarm.
*
* Do some research if you have any concerns about features
* included in this kernel BEFORE flashing it!
*
* YOU ALONE are choosing to make these modifications,
* and if you try to blame me for messing up your own
* device, I will drink your tears.
*/
Introduction
Kernvatore is intended to be a super light and lean kernel, much like leanKernel or ElementalX. Kernvatore only exists because Imoseyon has not been able to update leanKernel in a while, and I miss his kernel very much. Though I would never claim my kernel compares to the great leanKernel, I do aim to make it as close to the original lk experience as possible. The only place where this kernel really deviates from lk is the included I/O schedulers. However, including additional ones does NOT make this kernel any less lean, so no need to worry. I know some people love to change settings, even if you recommend they don't, so I just want to provide ample choices in that department. I have no desire to add new CPU governors at this time, as most of them are highly unstable and have been ported many times between devices.
Click to expand...
Click to collapse
Features
Built from the latest Oreo sources
InteractiveX V4 governor is the default (replaced original interactive)
KCAL color control support from @savoca
Optimized for cortex-a57/a53 and built using UBERTC optimized 4.9.x toolchain
Performance/stability optimizations
Some unnecessary features were removed/disabled
No F2FS support currently (trying to find time to merge upstream f2fs again)
Full SDCARDFS support
Synced with upstream to the latest 3.10.x version (currently 3.10.105)
Disabled forceencrypt to widen adoption
No longer patched with any root solution as of v2.x, so you can choose your own root adventure
Removed dm-verity
Filter ro.boot.verifiedbootstate from /proc/cmdline (for SafetyNet checks - Android Pay/PoGo/whatever)
Some code pulled from CAF repo directly, likely more to come in the future
Enabled deadline and ROW I/O schedulers (both built-ins, but disabled by default)
Added FIOPS, SIO, SIO+, Zen I/O schedulers - FIOPS is the default.
Kexec support with hardboot
Config access via /proc/config.gz - mostly for us nerds
Disabled ZRAM and swap
Rudimentary support for init.d scripts in /system/init.d using run-parts (but neither the zip nor the kernel's ramdisk will EVER mount your system RW, so this does not enable support where it doesn't already exist).
Gesture sleep/wake support
FauxSound support
More features will be added as I see fit, as long as they don't add too much "heft" to the kernel.
Click to expand...
Click to collapse
Installation
Download the zip
Flash the zip in TWRP or using your preferred flashing app
BEER
Click to expand...
Click to collapse
Downloads and Changelog
Pushbullet channel
XDA:DevDB Information
Kernvatore N6P, Kernel for the Huawei Nexus 6P
Contributors
vt0r, imoseyon, franciscofranco, googy_anas, flar2, ryanbg
Source Code: https://github.com/vt0r/kernvatore-angler
Kernel Special Features:
Version Information
Status: Stable
Current Stable Version: 3.11
Stable Release Date: 2018-02-14
Created 2016-09-29
Last Updated 2018-02-14

Frequently asked questions
Q: What's with the two zips for encrypted and unencrypted?
A: If your device is encrypted, and you want it to stay that way, use the "-encrypted" variant. This is an absolute must if you're using FBE with Oreo (and possibly Nougat as well).
If your device is not encrypted, either join the dark side and encrypt it, or avoid using the "-encrypted" zip.
Q: I run XXXXX ROM. Will it work?
A: Should no longer be an issue, as we're using AnyKernel2 by @osm0sis. IT SHOULD NOW BOOT ON ANY ROM. If you find one that isn't working, please provide all the logs you can possibly get (see log question below).
Q: I'm just getting a bootloop. What should I do?
A: Please provide logs if you have them, or at least provide full details about your setup and what steps lead you to the bootloop (also see log question below).
Q: How can I collect debug logs?
A: Download and flash my debug log collector zip file in TWRP. This zip will gather some common kernel/boot logs and create a tarball in /sdcard/debug_logs that you can upload to some file sharing site for me to review. Once you've flashed the zip, you can either pull the resulting archive using adb or reflash some kernel that previously worked, reboot back into the system and upload from your phone. Either PM or post the link where I can retrieve the log archive, and I'll review as soon as possible. This does not guarantee I'll be able to resolve the issue, but it should provide a great deal of debugging information either way.
Click to expand...
Click to collapse

Reserved

Thanhks.... ??????
Enviado desde mi Nexus 6P mediante Tapatalk

Welcome
:laugh::laugh::laugh:

So what's the difference between normal interactive on other kernels and interactiveX in this? :fingers-crossed:
Sent from my angler using XDA Labs

Prattham said:
So what's the difference between normal interactive on other kernels and interactiveX in this? :fingers-crossed:
Click to expand...
Click to collapse
Created by kernel developer Imoseyon, the InteractiveX governor is based heavily on the Interactive governor, enhanced with tuned timer parameters to better balance battery v/s performance. The InteractiveX governor's defining feature, however, is that it locks the CPU frequency to the user's lowest defined speed when the screen is off.

I'm not going to ask you to disable force decryption, you're the author of this good work. But can i at least ask why you wont? You seem to have strong reasoning behind it

At first i read it as ''KERVINATORR'' n i was like '' now thats one badasss kernel right there.'' lol

eqbirvin said:
I'm not going to ask you to disable force decryption, you're the author of this good work. But can i at least ask why you wont? You seem to have strong reasoning behind it
Click to expand...
Click to collapse
Absolutely. I'm a paranoid fool, so the thought of intentionally disabling Android's full disk encryption (or file-backed encryption) just makes my stomach turn.
Also, unless things have changed drastically since the N6, unencrypted devices don't even offer that much of a performance boost, especially considering the encryption ops are all done on chip using the built-in AES-NI extensions, which are extremely fast. I just can't fathom someone voluntarily foregoing protection on a device that's so easy for some to lose, just for some perceived performance boost.
TL;DR - I don't want to be the one to make your device less secure, so just update the fstab in the ramdisk if you're one of those who wants to disable encryption, but please don't tell me about it, because I don't like to cry.

Lord. Tech said:
At first i read it as ''KERVINATORR'' n i was like '' now thats one badasss kernel right there.'' lol
Click to expand...
Click to collapse
It's a play on my name (Salvatore), but your version sounds a little cooler for sure.

@vt0r
hey mate
i wanted to try your kernel.zip but with no luck
i'm on stock N with systemless root and stock kernel....
flashed with flashfire but it says "no 6p device abborted"
But I have to say I've unticked the mount/system read write option in FlashFire .. Because I want a full OTA support
Just an example in screenshot
with elementalx i had not this ......maybe ex kernel doesn't touch the system partion?
hmmm weird

danmaman said:
@vt0r
hey mate
i wanted to try your kernel.zip but with no luck
i'm on stock N with systemless root and stock kernel....
flashed with flashfire but it says "no 6p device abborted"
But I have to say I've unticked the mount/system read write option in FlashFire .. Because I want a full OTA support
Just an example in screenshot
with elementalx i had not this ......maybe ex kernel doesn't touch the system partion?
hmmm weird
Click to expand...
Click to collapse
Sorry, but I'm having trouble understanding what you mean. Can you provide the recovery.log, please?
Based on what I think you mean, it's not detecting either of the property values it checks to ensure your device is a 6P, so I'm expecting the log to confirm this.
Also, neither my zip nor ramdisk scripts will EVER try to mount system RW, so that option has nothing to do with the failure. My zip doesn't even mount system RO.

vt0r said:
Sorry, but I'm having trouble understanding what you mean. Can you provide the recovery.log, please?
Based on what I think you mean, it's not detecting either of the property values it checks to ensure your device is a 6P, so I'm expecting the log to confirm this.
Also, neither my zip nor ramdisk scripts will EVER try to mount system RW, so that option has nothing to do with the failure. My zip doesn't even mount system RO.
Click to expand...
Click to collapse
all good now...
i flashed the 32mb boot.img not the zip.....and all ist good
thanks a lot
i'll test now

Considering this kernel is for N and TWRP cannot decrypt android N yet, I cannot flash because it does not disable force encryption. This is kind of a catch 21.
---------- Post added at 01:05 PM ---------- Previous post was at 01:04 PM ----------
vt0r said:
Absolutely. I'm a paranoid fool, so the thought of intentionally disabling Android's full disk encryption (or file-backed encryption) just makes my stomach turn.
Also, unless things have changed drastically since the N6, unencrypted devices don't even offer that much of a performance boost, especially considering the encryption ops are all done on chip using the built-in AES-NI extensions, which are extremely fast. I just can't understand someone voluntarily foregoing protection of a device that's so easy for some to lose, just for some perceived performance boost.
TL;DR - I don't want to be the one to make your device less secure, so just update the fstab in the ramdisk if you're one of those who wants to disable encryption, but please don't tell me about it, because I don't like to cry.
Click to expand...
Click to collapse
I do I update the fstab in the ramdisk as you speak of? I would be willing to do so if it is not such a hard process so I can try this kernel. Thanks in advance!

yung40oz84 said:
Considering this kernel is for N and TWRP cannot decrypt android N yet, I cannot flash because it does not disable force encryption. This is kind of a catch 21.
---------- Post added at 01:05 PM ---------- Previous post was at 01:04 PM ----------
I do I update the fstab in the ramdisk as you speak of? I would be willing to do so if it is not such a hard process so I can try this kernel. Thanks in advance!
Click to expand...
Click to collapse
TWRP 3.0.0-1 upwards support N. I'm encrypted and have been not facing any issues on any kernels I've tried so far.
@OP, really excited to try this. Gotta love leans.

After flashing this kernel and rebooting phone, I could not boot back into rom. After 15 minutes waiting I booted back into twrp and it asked me for a password which I have never set. Was only able to mount system as read only. After trying to read the sdcard, it says I have 0mb of space. After trying to flash factory images it says that it cannot write system.img as it does not have enough space. I have tried all options that I can think of. Any help would be appreciated.

yung40oz84 said:
...TWRP cannot decrypt android N yet.
Click to expand...
Click to collapse
This is not true. Visit http://dl.twrp.me/angler and grab the latest (3.0.2-2 I believe), which has no issue decrypting /data.
yung40oz84 said:
I do I update the fstab in the ramdisk as you speak of? I would be willing to do so if it is not such a hard process so I can try this kernel...
Click to expand...
Click to collapse
I wouldn't recommend it for beginners, but there are utilities to make the process simpler, like abootimg and similar. Check their man pages for usage info.
My current recommendation is to use some other kernel that disables forced encryption if you don't want your device to be encrypted.

atrus5 said:
After flashing this kernel and rebooting phone, I could not boot back into rom. After 15 minutes waiting I booted back into twrp and it asked me for a password which I have never set. Was only able to mount system as read only. After trying to read the sdcard, it says I have 0mb of space. After trying to flash factory images it says that it cannot write system.img as it does not have enough space. I have tried all options that I can think of. Any help would be appreciated.
Click to expand...
Click to collapse
Try doing a full wipe in TWRP i.e. system,data and cache

atrus5 said:
After flashing this kernel and rebooting phone, I could not boot back into rom. After 15 minutes waiting I booted back into twrp and it asked me for a password which I have never set. Was only able to mount system as read only. After trying to read the sdcard, it says I have 0mb of space. After trying to flash factory images it says that it cannot write system.img as it does not have enough space. I have tried all options that I can think of. Any help would be appreciated.
Click to expand...
Click to collapse
Ok I'm going to need lots more info to help here.
First, which ROM were you trying to boot into?
Second, were you unencrypted?
Third, where is the error you're getting about not having enough space? TWRP? Fastboot? Something else?

Related

[KERNEL][UB][F2FS]FizTech - helium

FizTech kernel
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this kernel
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will ignore you.
*/
Click to expand...
Click to collapse
Hi, I modifed stock 23.5.A.1.291 kernel to support f2fs file system etc.
The kernel is EXPERIMENTAL so I need testers.
Features for now:
F2FS support (without encryption)
Disabled sony RIC
SELinux permissive
GPU overclock
Kcal support
IntelliThermal
init.d support
Multirom works using no-kexec workaround (WIP kexec-hardboot)
DIRTY COW exploit patched!
Both f2fs and ext4 partitions support
Custom CPU govenors
Custom ZEN I/O scheduler as requested
Adreno Idler
Intelli-plug
Voltage Control
Features that will be added:
CPU overclock
Optimizations
working kexec-hardboot patch
CPU govenors
I/O schedulers
you tell me?
Features that will not be added:
TWRP - install it with fastboot (custom roms also have them )
Prerequisites:
Official TWRP from https://twrp.me/ (it contains mandatory mkfs.f2fs file)
Xperia Z3 Compact
Fastboot drivers installed and unlocked bootloader
FizTech kernel - helium
Instructions:
I recommend to do this after fresh install of ROM of choice. I tested my kernel on SLiMM and AOXP.
Kernel must be flashed through recovery. The zip contain wifi module and script that corrects partition layout.
If you want to use f2fs filesystem then follow optional steps which will format your /data and /cache partitions. (Maybe backup? )
Think thrice if you are determined to install this!
Install official TWRP
Code:
fastboot flash recovery twrp.img
To enter recovery press POWER and VOLUME down buttons simultaneously when phone is switched off. It should boot to recovery. This requires new bootloader, that allows booting to recovery.
Install ROM of your choice
F2FS optional : Wipe->advanced wipe select /cache and change filesystem to F2FS (Repair or Change File System)
F2FS optional : Do the same for /data
Install kernel ZIP
Reboot and wait. Sometimes it takes few minutes, especially after fresh install.
F2FS advice: If device is not booting, please reboot to recovery. Check your if your /data and /cache filesystems are F2FS. If not then repeat F2FS optional steps. Even if your partitions were F2FS, install kernel zip once again.
Optional: install TWRP once again if it was damaged by ROM installation.
If you don't see F2FS format option in "Repair or Change File System" then your recovery doesn't have mkfs.f2fs file in /sbin of your recovery (it needs to have permissions also). Use offical TWRP from @someone755
Downloads:
Lithium <latest>
Kernel sources:
[url]https://github.com/adrset/kernel[/URL]
Credits:
@someone755
@Myself5
@AndroPlus
@DooMLoRD
@faux123
@frantisek.nesveda
@arter97
@tomascus
SONY
And all other contributors!
Sorry if I forgot you! Tell me and I will add you
About me:
I am currently studing, so the amount of time I can dediacate to XDA is limited. I am begginig my journey with developing - be understanding!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Changelog:
Version 1 - Fiztech Hydrogen
- initial version
- F2FS support
- DM-verity disabled
- sony RIC disabled
Version 2 - FizTech Helium
- added GPU overclock
- added kcal support
- added IntelliThermal
- added init.d support
- initial patch for Kali-Nethunter support
- patched DIRTY COW exploit - in near future more safety patches will be added
- Kernel supports f2fs and ext4 partitions
Version 2.1 - FizTech Helium Revised
- added some CPU govenors
- added ZEN I/O scheduler as requested
- added Adreno Idler as requested
- enabled Intelli-plug
- exfat module enabled
- SElinux enforce
Version 3 Codename Lithium
- Added Voltage Control
- Added sioplus I/O scheduler
- Storage optimizations
Version (double) n (work still in progress)
- I will try to update the kernel to newer versions (AFAIK current one is 3.4.0, will try to update maybe to 3.4.113 if it's possible?)
- CPU overclock (don't prefer this - our device is warm enough )
- govenors
- maybe compile using linaro toolchain
- Kali-nethunter support
If you wanted to reserve this one, though luck
Not often I get tagged in new kernel threads. All the best man, and happy holidays
A day were a new kernel project is starting is a good day...
Good work up to now...
Maybe UV would also be nice...
Good to hear about the new kernel. Awesome works!
I'm having with issue with the touch screen on my Z3 compact. The top and bottom of screen is unresponsive. But it happens on main screen, not in lock screen, not in welcome screen (when installed a fresh rom), and also not in TWRP.
I believe this related to the Sony' kernel. Could you help to investigate and hopefully fix the issue.
I will test the rom if hearing any word from you
Many thanks.
LoveTKB said:
Good to hear about the new kernel. Awesome works!
I'm having with issue with the touch screen on my Z3 compact. The top and bottom of screen is unresponsive. But it happens on main screen, not in lock screen, not in welcome screen (when installed a fresh rom), and also not in TWRP.
I believe this related to the Sony' kernel. Could you help to investigate and hopefully fix the issue.
I will test the rom if hearing any word from you
Many thanks.
Click to expand...
Click to collapse
Did I understood correctly, that you installed my kernel and such issue appeared? If yes: does the it exist on other kernels? I didn't modify anything in panel/screen/touchscreen. The only possible problem for now is that some kernel modules are not loaded. I must check which one is resonsible for what to decide whether to enable it or not or if it could be responsible for such issue (which I doubt).
What about your charger? In some cases broken chargers caused misbehaviour in touchscreen . For instance they are not properly grounded.
I need more information to help you.
Regards
Can someone please explain to me what are benefits of f2fs, and what does it mean? Are there any bad sides of using it?
-CRO-Maher said:
Can someone please explain to me what are benefits of f2fs, and what does it mean? Are there any bad sides of using it?
Click to expand...
Click to collapse
If you search on Google, you will find that f2fs is a filesystem developed by Samsung, faster than the others file systems(if used on emmc, SD card and ufs) so it'good if we could use it. But the kernel must have compatibility for it. Correct me if I'm wrong! And I'm looking forward using this kernel!
Sent from my D5803 using XDA-Developers mobile app
king960 said:
Did I understood correctly, that you installed my kernel and such issue appeared? If yes: does the it exist on other kernels? I didn't modify anything in panel/screen/touchscreen. The only possible problem for now is that some kernel modules are not loaded. I must check which one is resonsible for what to decide whether to enable it or not or if it could be responsible for such issue (which I doubt).
What about your charger? In some cases broken chargers caused misbehaviour in touchscreen . For instance they are not properly grounded.
I need more information to help you.
Regards
Click to expand...
Click to collapse
It's not from your kernel. It's issue on Sony's ROM, which causes top and bottom screen area is not touchable. I think it was the kernel issue. Some forks from the thread had the same of my issue: http://forum.xda-developers.com/z3-compact/help/home-button-t3151587
Many appreciates if you can figure out and have some fixes included in the kernel.
Thanks,
Cool! All the best developing this kernel. I will surely try this. BTW, do you see and performance and battery improvements in SliMM or AOXP?
panzerox123 said:
Cool! All the best developing this kernel. I will surely try this. BTW, do you see and performance and battery improvements in SliMM or AOXP?
Click to expand...
Click to collapse
Yes, both have better performance and battery life than stock.
PS. Version 2 released - codename Helium
king960 said:
Yes, both have better performance and battery life than stock.
PS. Version 2 released - codename Helium
Click to expand...
Click to collapse
Cool I'm developing AOXP... And 1.3 I will be releasing 1.3 now!
Also, how stable is the kernel?
This kernel Is awesome! It would be good if you added zen io, Adreno idler and dynamic fsync
frixed said:
This kernel Is awesome! It would be good if you added zen io, Adreno idler and dynamic fsync
Click to expand...
Click to collapse
Thank you, I will try to add these.
Can you make version for concept?
karol5wwy said:
Can you make version for concept?
Click to expand...
Click to collapse
Maybe I will consider it in the future. Now I would like to focus on stock based kernel and patching it.
I have a problem with my sd 64GB with this kernel i get a notification that says "corrupted sd card" i touch to format and fix but not work and my sd work with twrp :/ i use SLIMM 3.8
noob question could you tell me a good setup for running games without lag? I have problems in games like NFS no limits and RR3 in stock.
I tested another kernel only that always hangs up then I need to reboot.
Game always starts well only after a while drops to 15/20fps I'm almost changing smartphone. I've seen that is some limit that sony puts after a certain temperature thank you for help
frixed said:
I have a problem with my sd 64GB with this kernel i get a notification that says "corrupted sd card" i touch to format and fix but not work and my sd work with twrp :/ i use SLIMM 3.8
Click to expand...
Click to collapse
Hi, what is the filesystem of your sdcard?
Have you tried to format in TWRP or with help of PC?
zEminho said:
noob question could you tell me a good setup for running games without lag? I have problems in games like NFS no limits and RR3 in stock.
I tested another kernel only that always hangs up then I need to reboot.
Game always starts well only after a while drops to 15/20fps I'm almost changing smartphone. I've seen that is some limit that sony puts after a certain temperature thank you for help
Click to expand...
Click to collapse
Hi, after certain temperature a feature called CPU throttling is enabled. It's implemented by thermal driver to prevent damage to your phone. I haven't tried it in gaming but I read many positive opinions about intelli thermal driver which is included in my kernel.
I'll install that game and tell you how it works for me.
king960 said:
Hi, what is the filesystem of your sdcard?
Have you tried to format in TWRP or with help of PC?
Hi, after certain temperature a feature called CPU throttling is enabled. It's implemented by thermal driver to prevent damage to your phone. I haven't tried it in gaming but I read many positive opinions about intelli thermal driver which is included in my kernel.
I'll install that game and tell you how it works for me.
Click to expand...
Click to collapse
Hi, I use exfat, if I already try to format it in twrp but it does not work with the rom, in the pc it works, in twrp also and with another kernel also it works, it is kind of strange maybe it has something to do with format extfat

[KERNEL][7.x.x][SHAMU] * Simple Kernel * [r2 - 07/05]

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
​Simple Kernel - Shamu
Simple Kernel is a kernel for Shamu that aims to be just that; a simple kernel. I believe in having too much stuff that really doesn't contribute to a better user experience should not be added into a kernel, and that's the ideology that I built this kernel with. I present Simple Kernel. I hope you enjoy it!
Features:
Sourced from latest Shamu kernel release (nougat-mr-1.5) up to July's security patches.
Upstreamed to 3.10.107 - Thanks to @The Flash for his guide to upstreaming a kernel
Built with vanilla Linaro GCC 7.1.1 - Thanks to The Flash's gcc build tool I used
Upstream F2FS support
LZO Compressed kernel - fast decompression at boot time
Power Suspend power management - Thanks to @faux123 and @Yank555
Hotplugs: Intelliplug v4.0 & Mako Hotplug + Stock - Thanks to faux123 and @franciscofranco
CPU governors: Nightmare & ElementalX + Stock - Thanks to @Alucard24 and @flar2
I/O Schedulers: Zen & Row(just enabled it) + Stock - Thanks to @bbedward
Intellithermal v3 - configurable thermal management - Thanks to faux123 Adjustable max temp for stock thermal monitor - Thanks to franciscofranco
Simple GPU Algorithm - configurable way to improve stock msm_adreno_tz governor - Thanks to faux123
KCAL Color Control - Thanks to @savoca
Zen-Tune v4.5 - improves overall responsiveness - Thanks to @frap129
Power Efficient Work queues - can save some battery - Thanks to neilbrown
Disabled BCL (for now, was causing me issues)
No force-encrypt or dm-verity
Safe GCC Optimization flags for Shamu - (-O2, -mtune=cortex-a15, -marm, -mfpu=neon-vfp4, -pipe)
Some misc fixes and stuff here and there
No excess/magical optimizations or patches
Look at my commit log for full list for everything in the kernel
Changelog:
Just look at commit log. Make it easy.
Installation:
Download latest build
If on another kernel, flash your ROM's (or stock) boot img in TWRP Recovery. If coming from Simple Kernel, proceed to step 3.
Flash kernel in recovery
Wipe Cache/Dalvik-Cache
Reboot
Done
FAQ:
Q: There was a random reboot or some other issue! What do I do?
A: Pull logs, send them to me. Address issues publicly in thread so everyone can benefit/chip in.
Q: Can you add XYZ feature/patch?
A: Perhaps I can. I am always open to adding things, as long as it maintains the soul of the kernel. Giving me a place to find it also helps. You can also create a pull request on Github if you have the commits.
Q: How do I pull a log that you asked for?
A: I use (play store, free) Kernel Adiutor to pull logs. In KA, go to Settings -> Debugging -> Driver Message & -> Last kmsg. Send me the txt files created in /sdcard. Not doing this when bringing up an issue will result in loss of my support and is not good practice when asking for help.
Q: What is F2FS? How do I convert to it?
A: Googling will do you well, this gives a good overview of what is is. This thread might help you decide if it's right for you. Read my instructions in my TWRP w/F2FS thread to see basic conversion instructions.
Disclaimer:
I am not responsible for anything that happens to your device. Period.
External Thanks:
designapp.io for the logo
Download:
See second post
XDA:DevDB Information
Simple Kernel, Kernel for the Nexus 6
Contributors
Black_Hat01, Contributors listed by-contibution
Source Code: https://github.com/BlackHat01/SimpleKernel-Shamu
Kernel Special Features: F2FS, Linaro Compiled - Smooth, Simple & Stable
Version Information
Status: Stable
Current Stable Version: r2
Stable Release Date: 2017-07-05
Created 2017-07-02
Last Updated 2017-07-05
Download
Download latest build - r2
So far so good...
With six ROM 3.9
"Sent from the Dog Pound"
cujo6801 said:
So far so good...
With six ROM 3.9
"Sent from the Dog Pound"
Click to expand...
Click to collapse
Good to know :good:
Cool thanks
Sent from my Nexus 6 using Tapatalk
About the LZO compressed kernel, I was under the impression that the boot would be faster if the kernel wasn't compressed at all. I don't know how large the uncompressed kernel is, but since it gets decompressed at boot anyway, perhaps it'd be better to just have it uncompressed to begin with?
espionage724 said:
About the LZO compressed kernel, I was under the impression that the boot would be faster if the kernel wasn't compressed at all. I don't know how large the uncompressed kernel is, but since it gets decompressed at boot anyway, perhaps it'd be better to just have it uncompressed to begin with?
Click to expand...
Click to collapse
An uncompressed kernel image would probably boot faster in our case since our CPU/RAM is fast enough to handle an operation as such. Only issue however is the uncompressed kernel sizes in at about 20 mb in our case, and is too large for our device's boot partition (I think around 16 mb), and won't be able to be installed to the device at all, producing an error saying the image is larger than the boot partition.
EDIT:
Also by "faster", I am comparing it to other popular compression methods such as xz.
Build r2 live
Build r2 is live with minor changes. Here's an overview of what's changed:
- Reverted Intellithermal and replaced it with franco's max temp tuner due to stability issues
- Merged latest July security patches from google
Happy flashing!
Black_Hat01 said:
An uncompressed kernel image would probably boot faster in our case since our CPU/RAM is fast enough to handle an operation as such. Only issue however is the uncompressed kernel sizes in at about 20 mb in our case, and is too large for our device's boot partition (I think around 16 mb), and won't be able to be installed to the device at all, producing an error saying the image is larger than the boot partition.
EDIT:
Also by "faster", I am comparing it to other popular compression methods such as xz.
Click to expand...
Click to collapse
LZO is going to be the best available. Also, Intellithermal is outdated. I would stay away from it. May I ask what issues you had with BCl. I always had it disabled in my kernel, I believe it to be the cause of early shutdowns that people report (especially when the power draw it too much).
apophis9283 said:
Also, Intellithermal is outdated. I would stay away from it.
Click to expand...
Click to collapse
Agreed. I decided to just give it a shot because I wanted to see if I could add some more options for as far as thermal drivers goes but it just doesn't do anything better than stock thermal throttling + Franco's userspace temperature adjustment patch, and like you said, was not updated since it's initial port to qcom devices by faux. Decided to squash it from here out.
apophis9283 said:
May I ask what issues you had with BCl. I always had it disabled in my kernel, I believe it to be the cause of early shutdowns that people report (especially when the power draw it too much).
Click to expand...
Click to collapse
This is actually a good point. I believe as of now, I will bring it back in the near future. I had some rebooting issues, and I *thought* BCL was the cause, but it now seems it is due to RQ Affinity (still working on getting it ironed out). Once I figure out the real cause of my very sparse reboots, I will most likely bring it back, as the upsides seem to outweigh its seemingly negatives(never really figured these out ), especially with Franco's BCL modifications.
Black_Hat01 said:
Agreed. I decided to just give it a shot because I wanted to see if I could add some more options for as far as thermal drivers goes but it just doesn't do anything better than stock thermal throttling + Franco's userspace temperature adjustment patch, and like you said, was not updated since it's initial port to qcom devices by faux. Decided to squash it from here out.
This is actually a good point. I believe as of now, I will bring it back in the near future. I had some rebooting issues, and I *thought* BCL was the cause, but it now seems it is due to RQ Affinity (still working on getting it ironed out). Once I figure out the real cause of my very sparse reboots, I will most likely bring it back, as the upsides seem to outweigh its seemingly negatives(never really figured these out ), especially with Franco's BCL modifications.
Click to expand...
Click to collapse
I had a toggle for BCL on mine. My source for it is since lost but that may have been added when Yoinx was part of my team. I had it off by default but people could toggle it on. Do you have it set to off? (RQ Affinity)? I started this on my PC but Ill upload screenshot of what I have going on.
Screenshots
apophis9283 said:
I had a toggle for BCL on mine. My source for it is since lost but that may have been added when Yoinx was part of my team. I had it off by default but people could toggle it on. Do you have it set to off? (RQ Affinity)? I started this on my PC but Ill upload screenshot of what I have going on.
Click to expand...
Click to collapse
I seem to not run into any rebooting with it set to 0 (so off). A BCL toggle would be great. If I could get that into my kernel that will guarantee BCL's return.
EDIT:
Looking at your setup, mine is quite similar, except of course the BCL switches. And currently affinity at 0 for testing.
Black_Hat01 said:
I seem to not run into any rebooting with it set to 0 (so off). A BCL toggle would be great. If I could get that into my kernel that will guarantee BCL's return.
Click to expand...
Click to collapse
This is blackbird kernels source with some of my commits and Ill link you to really old source of my kernel that Yoinx had. I had bad issues setting that to 0. Use RQ Affinity 1 and see if they don't stop. Trust me, I made a kernel for this device for the longest time. If there was a mistake to make I made it. Over a year, 2 version of Android. M and N. If you want..... Get me a log at the next reboot and I would be happy to help
https://github.com/B14CKB1RD-Kernel...2a3c94a/drivers/power/battery_current_limit.c
https://github.com/yoinx/Singularit...a36e6e1/drivers/power/battery_current_limit.c
apophis9283 said:
This is blackbird kernels source with some of my commits and Ill link you to really old source of my kernel that Yoinx had. I had bad issues setting that to 0. Use RQ Affinity 1 and see if they don't stop. Trust me, I made a kernel for this device for the longest time. If there was a mistake to make I made it. Over a year, 2 version of Android. M and N. If you want..... Get me a log at the next reboot and I would be happy to help
Click to expand...
Click to collapse
Almost laughed. Got a reboot while reading this. Anyways, I appreciate your willingness to help. Not by any means an expert here, and still new at making use of my own logs, so I'll take all I can get. Here's my kmsg from last reboot. This was with affinity 0, so affinity is ruled out as the cause of the reboots at least (had them with 1 too)
apophis9283 said:
https://github.com/B14CKB1RD-Kernel...2a3c94a/drivers/power/battery_current_limit.c
https://github.com/yoinx/Singularit...a36e6e1/drivers/power/battery_current_limit.c
Click to expand...
Click to collapse
Thank you so much for this. Will look into it tomorrow when I get on my PC.
EDIT:
Heading off to bed in a bit. Got work and classes tomorrow. Will read what you have to say in the morning. Thank you again.
Black_Hat01 said:
Almost laughed. Got a reboot while reading this. Anyways, I appreciate your willingness to help. Not by any means an expert here, and still new at making use of my own logs, so I'll take all I can get. Here's my kmsg from last reboot. This was with affinity 0, so affinity is ruled out as the cause of the reboots at least (had them with 1 too)
Thank you so much for this. Will look into it tomorrow when I get on my PC.
EDIT:
Heading off to bed in a bit. Got work and classes tomorrow. Will read what you have to say in the morning. Thank you again.
Click to expand...
Click to collapse
Im gonna look at it in a second. In the mean time here is my BCL file
Edit: Do the reboots only happen when using certain apps? I expected to see a watchdog bite for IRQ and I didnt.
apophis9283 said:
Im gonna look at it in a second. In the mean time here is my BCL file
Edit: Do the reboots only happen when using certain apps? I expected to see a watchdog bite for IRQ and I didnt.
Click to expand...
Click to collapse
Thanks. They seem to random, however, the apps that I can remember reboots occuring in are FX File Explorer, Clash of Clans(yes I play this ancient game), Google Camera(video), XDA Labs, and once while suspended.
Black_Hat01 said:
Thanks. They seem to random, however, the apps that I can remember reboots occuring in are FX File Explorer, Clash of Clans(yes I play this ancient game), Google Camera(video), XDA Labs, and once while suspended.
Click to expand...
Click to collapse
Try RQ Affinity value = 1. If not I have another idea
apophis9283 said:
Try RQ Affinity value = 1. If not I have another idea
Click to expand...
Click to collapse
Actually have been doing that since last night, alongside switching to Mako plug. No reboots with heavy usage this morning.
EDIT:
Guess the culprit would be intelli plug
Black_Hat01 said:
Actually have been doing that since last night, alongside switching to Mako plug. No reboots with heavy usage this morning.
Click to expand...
Click to collapse
Feel free to PM me if you need anything.

[KERNEL] [blu_spark r184 unified OP5/5T] [OOS 9.* / pie custom ROMs]

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Kernel features:
Powered by Ubuntu 18.04.3 x86_64 (sparky VPS @ www.servercore.com.br - thanks @ChristianLetti)
Build with custom toolchain blu_gcc-9.2.0 (cortex-a73.cortex-a53 targeted, build with latest Crosstool-NG from GCC-9.2.0 snapshot)
Full -O2 build with device and target flags enhanced, linaro build improvements, etc
Less is more: stockish OP5 builds based on OnePlusOSS/android_kernel_oneplus_msm8998
Systemless installer (doesn't touch system partition, OTA friendly - Nougat only), AnyKernel3 backend (compatible with autoflash apps)
Removed some debug and logging options
ARM enhanced performance and battery patches
CVE security patches, general upstream and CAF fixes
Several CPU Governors (blu_active modded own governor by default - fastlane mode available!)
No OC, use 300HZ kernel timer frequency
msm_performance input boost toggle on/off (enabled by default), tweaked cpu_boost driver
Enhanced TCP methods (westwood is default), Network and Wifi tweaks and updated drivers
Several I/O control tweaks, added schedulers FIOPS and ZEN v2 is default, tweaked and upstreamed filesystems (F2FS, ExFAT, NTFS, CIFS & NFS)
Removed verify and doesn't force encryption, patched SafetyNet flags to pass CTS
Stock thermal driver by default (custom tunables available for ROMs with no thermal daemon)
Disabled hotplug, also on low battery levels (CTL and BCL)
Optimized crypto routines
Swap and adaptive LMK off by default, 60 apps on background by default
Vibrator Strength tunable and Gesture Haptic Feedback control (touchpanel and FPR)
KGSL fixes and reworked GPU driver (goes to idle @ 180MHz)
adrenoboost enabled by default at medium level
KCAL - Advanced color control for Qualcomm MDSS v2 (RGB calibration and post-processing features)
KLAPSE support (v5.0)
DASH charge and USB Fast Charge (USB mode up to 900mA with MTP on)
Battery/Notification LED control
FS fsync toggle on/off
Wakelock blockers available
zx2c4's wireguard support
CDROM emulation on mass_storage (compatible with DriveDroid 0.10.36+)
Compatible with Kernel Adiutor, EXKM, FKM and others
DOWNLOAD KERNEL ZIP​Extras download location​(No mirrors please)​
Warning: If you come from other kernel or have any issues, you should dirty flash your ROM before flashing blu_spark zip to avoid problems.
Reflash ROM -> if you want root flash SuperSU or Magisk (default, no plugins/modules) -> flash blu_spark.
If you are already rooted or upgrading between blu_spark versions, just flash the kernel zip. Also uninstall or clean data of any kernel control app you're using.
About bugs and troubleshoots: don't bother to post if a log isn't ready or without steps so the behavior can be replicated. I only active support stock OOS with NO mods whatsoever (apart from root). That includes NO support if using xposed, Magisk with modules, etc.
If you're using custom ROMs (including OOS based ones) or Open Betas you're on your own. I'm only interested on debugging stuff in stock and stable OOS.
Save the SOT and battery stats/screenshots for general threads, here we deal with development, not personal tastes and results.
Also don't spam this thread with LOS or other ROMs stuff like "this don't work, my app doesn't open, etc" , no OT about OTAs, apps, ROM bugs, Recovery/TWRP troubleshoots and other userspace stuff. There's threads for it, use them.
Going back to stock: This kernel installer doesn't change your filesystem. You can backup your boot.img with TWRP before flashing blu_spark if you want to go back to full stock or just dirty flash your full ROM.
If you like my work, donations are always welcome.
Don't forget to hit thanks and rate the thread nicely, it's free
OnePlus 5T development unit donated by OnePlus. Big shouts to them
Very proud of being on the OnePlus Developer Program, special thanks to Adam K. for being such a supportive person.
XDA:DevDB Information
blu_spark kernel for OP5/5T unified, Kernel for the OnePlus 5T
Contributors
eng.stk
Source Code: https://github.com/engstk/op5
Kernel Special Features: Powered by sparky
Version Information
Status: Stable
Current Stable Version: r184 unified pie
Stable Release Date: 2019-10-19
Current Beta Version: r180 unified pie
Beta Release Date: 2019-08-24
Created 2017-11-17
Last Updated 2019-10-18
blu_spark r51 unified
All right crew!
First kernel for the 5T is up, fastlane style :highfive:
This is an initial build, tested only on OP5. It is a baseline for 5/5t unified installer (similar of 3/3T).
For now, seems like fw updates from OOS 4.7 are needed for some stuff, so it is only working 95% on the OP5 OOS 4.5.* (FPR doesn't work).
Don't flash this on OP5 for now. On 5T all should be working just fine.
So, keep in mind that it's tested on the OP5, on the 5T it's not because I don't have the device just yet.
Backup and take all the precautions you can think of, if you're cat get's on fire you're on your own
blu_spark_r51-oos_op5-op5t_79c5b56.zip
build: use newest and improved blu_naro-7.2, build from developer snapshot Linaro GCC 7.2-2017.10, with updated components and improvements/fixes
Synchronize codes for OxygenOS 4.7.1
full rebase and features bringup from OP5
drivers: misc: fix a couple build errors
Click to expand...
Click to collapse
Keep it real, keep it true, keep it blu :highfive:
Keep in mind: I will give no active support for custom ROMs (including OOS based ones).
Meaning, if using anything besides stock and stable OOS don't bother posting about it.
I am only interested on debugging stuff in stock and stable OOS (with logs and reproducible steps to replicate the issue).
Don't spam this thread with LOS or other ROMs stuff like "this don't work, my app doesn't open, etc" or debugging features.
Also don't go spam and bug reporting on ROM threads if using this.
If you like my work, donations are always welcome.
Don't forget to hit thanks and rate the thread nicely, it's free
bronderb said:
Wow, that was quick!
Click to expand...
Click to collapse
had it running since yesterday :silly:
Phone isn't even released to public yet.
eng.stk is a legend.
From my OP3T
(No mirrors allowed)
Click to expand...
Click to collapse
Are you aware that you violate the terms of the GPL with this?
Rosa Elefant said:
Are you aware that you violate the terms of the GPL with this?
Click to expand...
Click to collapse
For security purposes the place for downloads is this xda repo for the compiled stuff.
Source code is available for anyone to use and build for themselves.
Don't see any issue with that, this is only a cortesy.
The issue is that the GPL enforces you to allow anyone to distribute any derivative works - including "the compiled stuff" - in any way they want. That also means mirrors. So no, "no mirrors allowed" violates the GPL. You might want to replace that by "please don't mirror" or something.
(I know this is nitpicking in a way. I was just wondering.)
Rosa Elefant said:
The issue is that the GPL enforces you to allow anyone to distribute any derivative works - including "the compiled stuff" - in any way they want. That also means mirrors. So no, "no mirrors allowed" violates the GPL. You might want to replace that by "please don't mirror" or something.
(I know this is nitpicking in a way. I was just wondering.)
Click to expand...
Click to collapse
I'm not enforcing anything, this is valid for xda links posted, as a cortesy and for security. Word play it's what it is, I can change if it suits you better.
Other than that you can burn CDs with it and send to your friends if you like
WHAT!
You're a Living Legend @eng.stk
Rosa Elefant said:
Are you aware that you violate the terms of the GPL with this?
Click to expand...
Click to collapse
Rules are made to be broken. Not every rule needs to be enforced when it wont matter and harms nobody. Like he said its a courtesy thing stop doing the moderation for XDA they do a good job themselves. Keep OT out as much as possible. Some people would rather see this thread get support instead of strikes from "rules"
You know, you could just send me a PM instead of further distracting this topic. But FWIW, a legally binding licensing term is not a "rule".
eng.stk said:
Advanced filesystem: If you want to use f2fs, do the following (backup your data to external source before attempt this, it will erase all your sdcard data)
Go to Wipe -> Advanced Wipe -> Select only Data -> Repair/Format File system -> Change partition type to f2fs
Go to Wipe -> Advanced Wipe -> Select only Cache -> Repair/Format File system -> Change partition type to f2fs
Reboot and profit
To be back on ext4, just do the same but choose ext4 instead
Click to expand...
Click to collapse
Does recommended or not if i also partition /system as f2fs?
exodius48 said:
Does recommended or not if i also partition /system as f2fs?
Click to expand...
Click to collapse
No, you can only use it on data.
I prefer ext4 nowadays.
Sent from my blu_spark'd OP5
eng.stk said:
No, you can only use it on data.
I prefer ext4 nowadays.
Click to expand...
Click to collapse
Why's that..? You are the reason I was using F2FS due to your regular updates on kernel / recovery. Faced bad exp on it?
arvindgr said:
Why's that..? You are the reason I was using F2FS due to your regular updates on kernel / recovery. Faced bad exp on it?
Click to expand...
Click to collapse
Some instability on latest times and on fast UFS devices there's no much performance difference.
Also I don't upstream f2fs on 4.4 because of FBE and crypto stuff, prefer to leave as it is and just add security patches when applicable.
Most likely because nowadays Memory is so fast (especially with UFS2.1) that it doesn't really matters and isn't worth the trouble.
I tested it back on my days with the OPO and Nexus 6 and never saw any real benefit for most parts and they haven't have had UFS2.1.
So don't expect too much of a performance gain with F2FS.
EXT is a mature system, more mature than F2FS. And sometime safety counts more than fractions of seconds of starting speed for a bigger application.
Are there wake-up gesture options in the Kernel?
xocomaox said:
Are there wake-up gesture options in the Kernel?
Click to expand...
Click to collapse
Gestures are the same as stock.
Thanks for coming man I just order my 5t
dabug123 said:
Thanks for coming man I just order my 5t
Click to expand...
Click to collapse
Liquid remix for 5t? Haha just joking nice that you're getting one too

[EOL] [MARLIN/SAILFISH] [9.0.0] [3.18.125] [CLANG 7.0] Flash Kernel 2.10

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Introduction
NOTE: This kernel is currently not being updated. Please use another more up to date one if possible.
Hello everyone, this is my personal kernel for the Pixel (sailfish) and Pixel XL (marlin). While I am not a super star kernel developer, I do know my way around it. My philosophy on kernels is pretty simple:
Follow stable Linux always. Updates will be delivered within 24 hours of their release to kernel.org.
Stable kernel rules work best (only add small things when possible).
Security and stability are paramount. Vulnerabilities are patched as soon as they are disclosed.
Features will be added only as needed (I have a list of things in the FAQ I will NOT add, even if requested).
Hopefully you enjoy
Important thread information!
I refuse to acknowledge/respond to bug reports that do not include clear steps to reproduce, a logcat, and a console ramoops (if random rebooting) or a dmesg (any other issues). Follow this guide to do this.
Keep things civil, I do NOT tolerate flaming of any kind.
OT is allowed.
Features
Here are the major features of the kernel (feel free to explore Github)
Up to date with the October security update (android-9.0.0_r0.21)
Up to date with the latest stable Linux version (3.18.125)
Latest binder and sdcardfs commits from kernel/common
Several subsystems converted to use power efficient workqueues
Mainline improvements to CFQ
Kernel hardening from CopperheadOS
Westwood as the default congestion algorithm
Sultanxda's wake boost driver
The following user facing features:
Backlight dimmer
Color control
HBM
Maple I/O scheduler
Sound control
USB fast charging
Wake gestures
Wakelock blocking
Vibration control
Latest WireGuard snapshot (0.0.20181018)
Built with a self compiled Clang 7.0 toolchain with a local initialization sanitizer
Hides bootloader unlock from SafetyNet (can still fail through other means)
Available to flash with AnyKernel2 (thanks to @osm0sis) [zip will automatically detect when Magisk is installed and patch the kernel so reflashing Magisk becomes unnecessary]
Downloads
Primary: https://github.com/nathanchance/marlin/releases
NOTE: Although the kernel's name is Marlin, it is for both Marlin and Sailfish (fully unified).
Installation
NOTE: These sets of steps should work for both initial installations and upgrades. All sane kernels on this device are just replacing the kernel image and maybe adding some cmdline parameters, which this kernel won't care about. If there are ANY issues after flashing this kernel over another, be sure to flash the stock boot image for your ROM, TWRP + Magisk if you want them, then the kernel before reporting any issues.
Through TWRP:
See their instructions for further information, you can install the kernel with TWRP temporarily booted or permanently installed.
Boot into TWRP.
Flash the zip (flashing Magisk is not necessary if you already have it installed).
Reboot and enjoy!
Through FK Kernel Manager (requires root):
Download the zip (and optionally, the md5) from my server
Tap on "Manual flasher"
Navigate to Download
Tap on the zip, select Auto-flash, and choose one of the options.
Reboot and enjoy!
NOTE: On custom ROMs, you must do a reboot between installing the ROM and installing the kernel/Magisk on a clean flash otherwise you may end up in a bootloop...
Changelog
Latest release post!
Commits
Frequently asked questions
1.1 Q: I am having an issue, can you help me?
1.1 A: I am not an amazing kernel developer but I will certainly try my best. First, start by reading the release posts, as I may make note of a particular issue. Also search the thread to see if I have discussed it before. If you see nothing, please provide me with a dmesg/last_kmsg and logcat, your ROM/kernel version, and a detailed description of the issue, following this guide. If I can't reproduce reliably, I'm not going to fix the issue.
1.2 Q: Can you add xyz feature?
1.2 A: If you link me the commits or tell me what kernel you had the feature in, I can take a look at them. I will not go digging super hard for commits and I will ignore requests that don't include this information. I won't promise that I will merge every request but I will always take it into consideration. I will NOT add the following:
Overclocking or underclocking of CPU or GPU
Undervolting
Any governors other than sched/schedutil
Any schedulers other than cfq
Anything that compromises performance
1.3 Q: How do I control the kernel?
1.3 A: I want to be very clear: the kernel does NOT need to be tuned to be useful. Most of the improvements are under the hood and don't require any user intervention to take advantage of them. In fact, if you don't know what you are doing, you could degrade the experience.
To control the user visible features of the kernel listed above, I recommend using either @franciscofranco's FK Kernel Manager (which has Flash Kernel support for downloading and automatically flashing the latest kernel zip along with some nice, user friendly ways for tuning the kernel) or @flar2's EX Kernel Manager.
1.4 Q: OMFG MY BATTERY SUXXXX PLS FIX!!!
1.4 A: The kernel doesn't drain any battery, use an app like BetterBatteryStats to figure out what app is screwing with your phone.
Thanks to:
The various other developers for their patches
@osm0sis for AnyKernel2
@franciscofranco for adding Flash Kernel support to FK Kernel Manager
@phantom146 for the thread banner
All of you guys for viewing the thread
A note about donations
Quite a few people have asked to donate to me in the past and I have turned them down. I am not in this for the money, this is my hobby, something I truly enjoy. If you truly want to donate to something (it is not expected in the slightest), I recommend an entity like the Open Source Initiative, the Free Software Foundation, XDA, or any one of the people I have thanked in the OP. Additionally, you are free to copy any and all of my work; the only thing I request is that you not ask for donations as well (though I can't really enforce this lol). Thank you.
Kernel source links
8.1.0/P Preview 2-5: https://github.com/nathanchance/marlin/tree/oreo-m4
9.0.0: https://github.com/nathanchance/marlin/tree/pie
DISCLAIMER: I openly welcome off topic in my threads. Mods, please do not clean off topic discussion and users, do not complain about off topic discussion here. I may direct you to another thread if it is so suited but I won't have the discussion cleaned. Thank you.
Reserved
You may notice the feature list is a little bare. I wanted to get a nice solid base formed first then add features in as requested. Please read the thread before requesting a feature; if it is already present, just press thanks.
In theory, this should work on P as I have merged the source in. I have only tested on Oreo though.
Feel free to join Telegram for beta builds and hanging out https://t.me/joinchat/C1UAJ0OCAoJtDRo-hhkjhw
nathanchance said:
You may notice the feature list is a little bare. I wanted to get a nice solid base formed first then add features in as requested. Please read the thread before requesting a feature; if it is already present, just press thanks.
In theory, this should work on P as I have merged the source in. I have only tested on Oreo though.
Feel free to join Telegram for beta builds and hanging out https://t.me/joinchat/C1UAJ0OCAoJtDRo-hhkjhw
Click to expand...
Click to collapse
Awesome! Thank you Nathan...
Add KCAL Color Control and I'm in. All I've wanted for so long is a stock like stable kernel with KCAL so I can tweak the display!
I ran your flash kernel the short time it was available for my old Nexus 6, happy to see this kernel here.
Thank you for bringing this to marlin!!
Chimaira33 said:
Add KCAL Color Control and I'm in. All I've wanted for so long is a stock like stable kernel with KCAL so I can tweak the display!
I ran your flash kernel the short time it was available for my old Nexus 6, happy to see this kernel here.
Click to expand...
Click to collapse
Sure, I can add that always happy to see returning users!
nathanchance said:
Sure, I can add that always happy to see returning users!
Click to expand...
Click to collapse
Was looking at your taimen post and was thinking to myself I wish we had this on sailfish/Marlin. Can you add schedutil?
I tried another kernel on Android P preview 2 and had some problems. You noted that this kernel includes the source links for preview 2. The other I think only had preview 1. Would there be a difference?
shagbag913 said:
Was looking at your taimen post and was thinking to myself I wish we had this on sailfish/Marlin. Can you add schedutil?
Click to expand...
Click to collapse
I plan to look into EAS 1.5 tomorrow or this weekend I will look at adding features tonight.
Gordietm said:
I tried another kernel on Android P preview 2 and had some problems. You noted that this kernel includes the source links for preview 2. The other I think only had preview 1. Would there be a difference?
Click to expand...
Click to collapse
Yes although I don't know how much offhand.
@nathanchance I haven't had a change to flash this yet, I really enjoyed this from my 6P days. Can you tell me if HBM and backlight dimmer are available? If not, could I request them? Any wakelock blocks available? Possibly fingerprint scanner boost--NSFW Kernel has this.
Thanks, I was really missing Flash Kernel
nathanchance said:
I plan to look into EAS 1.5 tomorrow or this weekend I will look at adding features tonight.
Click to expand...
Click to collapse
That would be great, thank you for your work.
Akomack said:
@nathanchance I haven't had a change to flash this yet, I really enjoyed this from my 6P days. Can you tell me if HBM and backlight dimmer are available? If not, could I request them? Any wakelock blocks available? Possibly fingerprint scanner boost--NSFW Kernel has this.
Thanks, I was really missing Flash Kernel
Click to expand...
Click to collapse
I'll add HBM, backlight dimmer, and wakelock blocking. I'll take a look at fingerprint scanner boosting; however, the few implementations I have seen floating around lately seem like they don't work well.
shagbag913 said:
That would be great, thank you for your work.
Click to expand...
Click to collapse
Something occurred to me, the stock power HAL on this device doesn't support schedutil. Custom ROMs can add support easily so I'll still add it but I won't set it as default.
nathanchance said:
Something occurred to me, the stock power HAL on this device doesn't support schedutil. Custom ROMs can add support easily so I'll still add it but I won't set it as default.
Click to expand...
Click to collapse
Sounds good
nathanchance said:
I wanted to get a nice solid base formed first then add features in as requested.
Click to expand...
Click to collapse
I would love double tap to wake, or am I just missing it? Really looking forward to trying this out, thanks
Nevermindthelabel said:
I would love double tap to wake, or am I just missing it? Really looking forward to trying this out, thanks
Click to expand...
Click to collapse
It will be in the next build, I'm about to seed out a beta if you want to grab it and test that it works fine.
nathanchance said:
It will be in the next build, I'm about to seed out a beta if you want to grab it and test that it works fine.
Click to expand...
Click to collapse
Running the Beta right now. So far no issues. Thanks for adding Kcal! I wanted to ask about the wq_power_savings option. What the heck does that do?
Chimaira33 said:
Running the Beta right now. So far no issues. Thanks for adding Kcal! I wanted to ask about the wq_power_savings option. What the heck does that do?
Click to expand...
Click to collapse
Here is a nice technical article from LWN: https://lwn.net/Articles/731052/
The tl;dr is these tasks get placed whenever is optimal rather than on a specific CPU core.
Sent from my Pixel 2 XL using XDA Labs
Hey thanks man. I've searched on my own before but came up with nothing.
Chimaira33 said:
Hey thanks man. I've searched on my own before but came up with nothing.
Click to expand...
Click to collapse
I'm always happy to answer technical questions
Sent from my Pixel 2 XL using XDA Labs

[KERNEL][Q][AOSP/OneUI-2][R4][EOL] RAD Kernel [N950(F/N/FD)]

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
DISCLAIMER:
I am not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed. Please do some research if you have any concerns about features included in this ROM before flashing it! YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you.
I don't provide support for OneUI-pie & treble ROMs, asking me if I will ever do is just a waste of time.
INFO:
If you wonder what the hell RAD Kernel is... Then let me explain, RAD Kernel is a project oriented towards people who depend on their phone every day.
RAD Kernel is designed for maximum stability.
All kernel builds are thoroughly tested before Release.
As the title says RAD Kernel per se supports AOSP ROM(s), OneUI 2 ROM(s) and it's meant to be used with it for a better STABLE experience.
RAD Kernel will NOT work with any other ROMS except AOSP & OneUI-2 (i.e no OneUI-pie & treble support).
SUPPORTED DEVICES:
G950(N/F/FD)
G955(N/F/FD)
N950(F/FD)
FEATURES:
Linux 4.4.111
Compiled with Clang 9.
O3 optimizations.
Fast, smooth and great for Daily Use!
Permissive SE-Linux.
Boeffla Wakelock Blocker.
Interactive governor as Default.
Optimized Integer SQRT. for upto 3x faster operation.
Tuned Interactive governor for better balance between performance and battery.
CPU BIG up to 2314MHz.
CPU small up to 1690MHz.
GPU OC up to 572MHz
WireGuard.
Disabled CRC by default - 30% File system performance.
Fsync toggle enabled by default, can be changed in a kernel tweaker.
TCP congestion - bic as default.
Z-RAM enabled by default and set at 2592MB.
Z-RAM compression - lzo
HMP values tuned for better performance!
and the list goes on!
ROOT:
RAD Kernel DOES NOT come with pre-installed ROOT.
You can flash the latest MAGISK to get ROOT!
SUPPORT:
Telegram Group - Click here!
Telegram Channel - Click Here!
CREDITS:
Me, for developing without time and for the struggle to test new things.
Stricted for LineageOS development.
Dr.DoubtReaper for testing my kernel images.
Samsung Open Source for their Kernel source.
Topjohnwu for magisk!
Linus torvalds for Linux!
Thanks to anyone else who made this whole thing possible, you are part of it as well!
and all the people on GitHub whom i might have cherry-picked from!
XDA:DevDB Information
RAD Kernel for Exynos8895, Kernel for the Samsung Galaxy Note 8 (2017 Phone)
Contributors
Live0verfl0w
Source Code: https://github.com/Exynos-nigg/RAD-8895
Kernel Special Features:
Version Information
Status: Stable
Current Stable Version: R4
Stable Release Date: 2021-01-07
Created 2020-10-05
Last Updated 2020-11-08
R4 (07/01/2021) [EOL]
BUGS:
DexOnPc is bugged, device wont be recognized (OneUI2 build only!)
DOWNLOADS:
Official Kernel Website - click here!
Google Drive - click here!
INSTALLATION:
NOTE! YOU NEED TO BE ALREADY ON AOSP/OneUI-2 ROM, BEFORE FLASHING THIS CUSTOM KERNEL
Download the provided zip for your device model.
Put the zip inside your storage.
Reboot to TWRP recovery.
Flash the zip and wait until it completes.
Reboot your device, and enjoy the Butter smooth experience.
CHANGELOGS:
R4(07/01/2021)
Added OneUI-2 support! (make sure to flash the OneUI-2 build)
Disabled logging and some debug stuff
Older changelogs below! =)
R3.5 HOTFIX(08/11/2020)
Unified installer zips!
Fix bootloop issues!
Switch from AK3 to AIK zips!
NOTE: This releases has no changes kernel side, but the installation zips have been changed!
NOTE: Sorry for the inconveniences caused because of the bootloops, this releases should (hopefully!) fix em =)
R3 (04/11/2020)
Disabled GFS (Gentle Fair Sleepers) for better UI performance!
Fix placebo tweaks blocker!
General optimizations!
Kill DVFS completely!
Remove excessive logging from decon, GPU drivers & touchscreen drivers!
Unified S8/S8+ kernel!
Set "westwood" as default TCP congestion algorithm!
NOTE: The kernel zips have different time labels on them because i did build them few days before but was just lazy to release them
R2 (13/10/2020)
Changed to Interactive on CPU!
Fixed sound not coming from earpiece!
Remove Audit dependency!
Enabled touch input booster!
Disabled Hotplug!
Change default IO scheduler to "deadline"!
Disable some logging!
This kernel build should be way smoother than R1!
R1 (05/10/2020)
Initial Release!
FAQ:​ (Read this before flashing the kernel and reporting bugs!)
Q. Gaming performace isnt good in this kernel!
A. Disable Samsung Hotplug from your preferred kernel tweaker app! Hotplug is disabled in builds from R2 onwards!
Q. Whats Fsync? should i disable it?
A. fsync transfers ("flushes") all modified in-core data of (i.e., modified buffer cache pages for) the file referred to by the file descriptor fd to the disk device (or other permanent storage device) so that all changed information can be retrieved even after the system crashed or was rebooted. This includes writing through or flushing a disk cache if present. The call blocks until the device reports that the transfer has completed. It also flushes metadata information associated with the file (see stat(2)).
Too scientific, didnt read! : In layman terms disabling Fsync gives you better performance with the risk of a Data loss/corruption during a system crash!
Q. I cant Flash NFS injector, FDE.AI, MAGNETAR and other tweakers on this kernel!
A. I have added a in-built kernel blocker to block installation of these so called "AIO kernel tweakers". You shouldnt install these tweaks in my opinion! If you still want to use a Tweaker, i prefer you use KTweak though i wont be providing support for issues if u have flashed any mods or anything of this likeliness!
Q. I have an issue and i have reported it in the XDA thread, yet nobody replied to me.
A. I might be slow in responding for issues reported in the XDA thread, if u want me to reply more faster, report it in the Telegram support group!
Q. My phone gets HOT while using this kernel!?
A. Short answer: It's your own issue, fix it yourself. Nobody makes a kernel just to burn your hands.
Long answer:
* Install Termux app from Play Store * Enable screen rotation, open Termux in landspace mode * Type this command: su -c top -d 2 * A list of processes will appear and refresh with 2s interval. Find which process consumes the most CPU usage with [%CPU] column and the package name in ARGS column. You should see the culprit of your issue.
Reminder: There is no such thing as "I have nothing in background but the phone still heats up". There definitely something happen and 99% of the time it's some of the rogue apps running in background.
Thanks to Diep Quynh for finding this one out!
I've tried it and for some reason left top corner of the screen never responded to touch. Ex: I couldn't turn on wifi from quick toggles n back arrow in some apps as I couldn't make a touch on left corner...
I didn't collect logs as I immediately reverted back to old kernel.
arjun.reddy said:
I've tried it and for some reason left top corner of the screen never responded to touch. Ex: I couldn't turn on wifi from quick toggles n back arrow in some apps as I couldn't make a touch on left corner...
I didn't collect logs as I immediately reverted back to old kernel.
Click to expand...
Click to collapse
Could you tell me which rom and device please?
Me or any of my testers didnt find this issue.
Live0verfl0w said:
Could you tell me which rom and device please?
Me or any of my testers didnt find this issue.
Click to expand...
Click to collapse
I am on Resurrection Remix Q Using NOTE 8 (SM-950F). I will flash the kernel again n let you know if it's replicable.
Finally new kernel for my note 8
I'll give it a try
and post feedback after testing for few days
I have small question
which is better... EAS or HMP?
Thanks
Alastal said:
Finally new kernel for my note 8
I'll give it a try
and post feedback after testing for few days
I have small question
which is better... EAS or HMP?
Thanks
Click to expand...
Click to collapse
As a dev i really cant compare, but u can try it and decide for urself:good:
I have this weird bug with the earpiece still not working on the new version of the Kernel
I am using the Official HavocOS rom on my Galaxy Note 8
Alessandro2003 said:
I have this weird bug with the earpiece still not working on the new version of the Kernel
I am using the Official HavocOS rom on my Galaxy Note 8
Click to expand...
Click to collapse
Its a ROM issue, which has been already identified by the rom dev, u can join their telegram group to know this
New kernel build is up guys! =)
Currently running the newest build, runs great, thanks for the work. 6h SOT and still 50% battery. Just wondering, any reason hotplug is disabled? Does it really impact performance that bad? Or is it just samsungs implementation? Tried to build a custom version using your source (with a big core oc and an undervolt), cant seem to for some reason. Once again, thanks for the great work. Any way to buy you a Coffee?
Hotfix build is uploaded, sorry for the inconveniences caused by the bootloop issues =)
Excudent said:
Currently running the newest build, runs great, thanks for the work. 6h SOT and still 50% battery. Just wondering, any reason hotplug is disabled? Does it really impact performance that bad? Or is it just samsungs implementation? Tried to build a custom version using your source (with a big core oc and an undervolt), cant seem to for some reason. Once again, thanks for the great work. Any way to buy you a Coffee?
Click to expand...
Click to collapse
Hi mate!
1. hotplug is disabled cuz in my tests i found em to degrade performance and doesnt make much of a difference battery life wise, hence disabled and yes its a samsung implementation.
2. For OC u can pick ace2nutzers a2n kernel commits, i have tested em and it works
3. as for the undervolt, i havent tried em and probably wont be =)
4. Thanks very much, i dont need coffee or beers and stuff, u can hit the thanks button =)
Thanks and regards,
Stay Safe!
I am using this kernel on android 10 oneui
after i flashed the kernel i had weird issue concerning samsung clear case
when i close the case the screen turn on and when i open the case the screen turns off!
it acts in the opposite manner!
N950N supported?
is there any way to change to enforcing?!
Excudent said:
Currently running the newest build, runs great, thanks for the work. 6h SOT and still 50% battery. Just wondering, any reason hotplug is disabled? Does it really impact performance that bad? Or is it just samsungs implementation? Tried to build a custom version using your source (with a big core oc and an undervolt), cant seem to for some reason. Once again, thanks for the great work. Any way to buy you a Coffee?
Click to expand...
Click to collapse
But how? Can you share your settings?

Categories

Resources