[KERNEL][MIDO][MIUI] FLIP kernel [r1] - Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re

Code:
#include <std_disclaimer.h>
/*
* Your warranty is now probably voided.
*
* 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 laugh at you.
*/
What is this:
After tired of looking for stable no nonsense kernel for MIUI and couldn't fine one, I've decided to compile one myself. This is just a kernel I flipped from readily publicly available source, nothing special here. It should boot with any MIUI Nougat roms.
Click to expand...
Click to collapse
Difference with stock MIUI kernel
Compiled using OmniRom's kernel source as base so contains all its features, fixs and patches.
Compiled using UberTC 4.9.4 for stability.
Compiled using correct optimisation flags for our MSM8953 cpu.
Patched with EAS scheduler from OnePlus3 LineageOS-based kernel with EAS
Updated Ondemand cpu governor from franciscofranco's kernel for OnePlus3, finetuned it abit and made it as default booting cpu governor.
Default to Noop disk i/o scheduler on boot.
Default to Westwood tcp congestion control on boot.
Disabled/made as built-in some modules.
Disabled some stuff like zram, cleancache, zcache.
Added support for exfat fs via exfat-nofuse.
Enabled ntfs fs support.
Init.d startup script support with correct permissions applied on every boot.
Probably some other things I forgot to list here...
Click to expand...
Click to collapse
Changelog:
r1 - First public release.
Click to expand...
Click to collapse
Download:
FROM HERE
Click to expand...
Click to collapse
Installation notes:
Need unlocked bootloader, so unlock your bootloader if you haven't yet.
Need to be on any custom recovery so flash one if you haven't yet.
Need to be on any MIUI Nougat rom.
If you have any custom kernel other than this kernel already installed, please flash or restore your MIUI rom stock kernel because this kernel would need to use the stock unmodified ramdisk and custom kernel might already modify it.
Backup, backup and backup!
Download the zip, put into either internal phone storage or sdcard, flash away.
If you want to go back to your previous kernel, just dirty flash your rom or restore boot and system from backup.
Click to expand...
Click to collapse
Thanks to:
God, for everything.
Linus Torvalds, for the Linux kernel.
Google, for Android.
Xiaomi, for kernel source.
Xda forum, learnt alot from here.
Uber team, for the toolchain.
khan_frd2002, for the OmniRom kernel source.
EAS-Project on Github for the EAS patches.
franciscofranco, for the Ondemand cpu governor source.
osm0sis, for AnyKernel2 kernel installation template.
Probably some others I forgot to list here...
Click to expand...
Click to collapse
XDA:DevDB Information
FLIP kernel, Kernel for the Xiaomi Redmi Note 4
Contributors
coldplug
Source Code: https://github.com/thecoldplug/android_kernel_xiaomi_msm8953
Kernel Special Features:
Version Information
Status: Stable
Current Stable Version: r1
Stable Release Date: 2018-01-11
Created 2018-01-11
Last Updated 2018-01-11

Wow. EAS working well ?

Kevin Saiza said:
Wow. EAS working well ?
Click to expand...
Click to collapse
Partially. Cpu governors meant to work with eas like sched and schedutil doesn't work well with 625 because it was meant to work with dual cluster a72+a53 like 820 etc, while 625 only have a single cluster of a53, plus theres no proper powertable. Sched and schedutil just froze at lowest available freq because it can't choose proper powertable, making phone lags. I've disable both and made ondemand as default governor.

I se the OP off this thread speaking about voltage values, is this what o are referring as power table?
https://forum.xda-developers.com/redmi-note-4/how-to/tweak-interactive-governor-tunables-t3608118

zecabra said:
I se the OP off this thread speaking about voltage values, is this what o are referring as power table?
https://forum.xda-developers.com/redmi-note-4/how-to/tweak-interactive-governor-tunables-t3608118
Click to expand...
Click to collapse
Similar. All cpu already got predefined voltage table in the kernel source for the usual hmp scheduler, usually modified for oc/uv. Eas need its own, new voltage table specifically written for it, for every specific cpu too.

tks for the nice kernel, I only have one request if possible, I'm more a guy of battery saving because i spent long times with no access to recharge the phone, its the implementation of alucard

add please function: fix ttl.
this is very important for Russia, Ukraine, Belarus ... and others.
this is necessary to bypass the blocking of cellular operators.
this is in the same kernel as: [KERNEL][MIDO] Stormguard 01/01/18, [KERNEL][MIDO][VOLTE++] Chewy kernel r8.1 [22/12].
Please

zecabra said:
tks for the nice kernel, I only have one request if possible, I'm more a guy of battery saving because i spent long times with no access to recharge the phone, its the implementation of alucard
Click to expand...
Click to collapse
If you mean alucard cpu governor, then I've already tried to add it lol. Doesn't work, endless reboot. In fact all interactive based cpu gov like impulse, alucard, blu_actice, zzmoove won't work here. Hence why I've disabled even the interactive cpu gov.

DEMIGOD124 said:
add please function: fix ttl.
this is very important for Russia, Ukraine, Belarus ... and others.
this is necessary to bypass the blocking of cellular operators.
this is in the same kernel as: [KERNEL][MIDO] Stormguard 01/01/18, [KERNEL][MIDO][VOLTE++] Chewy kernel r8.1 [22/12].
Please
Click to expand...
Click to collapse
Doesn't need to add or anything, its already in the kernel and enabled, i think...
I don't have any idea how it work or if it even work though, so do try and let me know how it goes.

FLIP-r1-MIUI-mido.zip Failed - Virus detected What???

pikachukaki said:
FLIP-r1-MIUI-mido.zip Failed - Virus detected What???
Click to expand...
Click to collapse
Lol your virus scanner might have detected the zip itself or the script within as a virus, its not. Gdrive where I've uploaded it should already scanned it before you even download.
Don't use that pos virus scanner, change to other virus scanner or better yet, use linux ?

So witch one is better for miui and why ?

kcal bugg still there?

kemo12533 said:
So witch one is better for miui and why ?
Click to expand...
Click to collapse
Theres only one...
aman1241 said:
kcal bugg still there?
Click to expand...
Click to collapse
Haven't add kcal.

coldplug said:
Theres only one...
Haven't add kcal.
Click to expand...
Click to collapse
I mean this one Vs stock
I am not really into the kernel thing and wanna know what will I get from this one VS the stock in a sample do novas like me will get what all this futures for ?

kemo12533 said:
I mean this one Vs stock
I am not really into the kernel thing and wanna know what will I get from this one VS the stock in a sample do novas like me will get what all this futures for ?
Click to expand...
Click to collapse
Already wrote all the differences on the first post. Can't really say whats good amd whats not due difference usage and needs, but do try and see for yourself. Backup before install, restore if you're not happy ?

coldplug said:
Already wrote all the differences on the first post. Can't really say whats good amd whats not due difference usage and needs, but do try and see for yourself. Backup before install, restore if you're not happy ?
Click to expand...
Click to collapse
i am on pixel experience right now so i cant atm but i will soon

Hi
Where is the link?

Overclock
Can I overclock my cpu and gpu on this kernel ??

I feel stock is better
I feel as so cause after switching to this kernel my phone is a bit more Laggy so I switched back to stock

Related

[Discontinued][Kernel][AOSP/LineageOS/MIUI] KaminariKernel R12 [04 March 2018]

This project is no longer being maintained. I'm no longer developing for the G1/G2 family.
KaminariKernel​
Code:
#include "std_disclaimer.h"
/*
* Your warranty is now more void than it already was.
*
* 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 simply grab my popcorn and laugh at you.
*
* Tl;dr: if your device crashes and burns, and if that gets you in trouble, it's entirely your fault. [STRIKE]Might be my fault as well, because I'm not a developer, but I don't care. lol[/STRIKE]
*/
Hiya fellas.
This is a sister project to my original (and ridiculously outdated) kernel for stock ROMs only. The version in this thread is the one designed to work with anything that isn't the stock firmware, i.e., AOSP, AospExtended, LineageOS, Resurrection Remix,... You name it. Even MIUI, which can be a b**** to get custom kernels supported on.
Features:
Sources & Optimizations
- Based on Lineage's shared falcon/peregrine/titan/thea sources
- Compiled with Linaro 4.9
- Optimized ARM RWSEM & Square Root algorithms
- Kernel-side NEON mode
- Some miscellaneous armv7 tweaks
Click to expand...
Click to collapse
Hotplugging Drivers
- MSM Hotplug
Click to expand...
Click to collapse
Extra CPU Governors
- Impulse
- Smartmax
- Yankactive
- Zzmoove
Click to expand...
Click to collapse
Extra I/O Schedulers
- Bfq
- Fiops
- Sio
- Vr
- Zen
Click to expand...
Click to collapse
Sound
- Faux's Sound Control
- Headset High Performance Mode
Click to expand...
Click to collapse
Screen/GPU
- Kcal Screen Control
- Dt2w/s2w
- Simple GPU Algorithm
- GPU overclock & underclock (533MHz/100MHz)
Click to expand...
Click to collapse
Extra Sh*t
- CPU Overclock (up to 1.6 GHz) (Overclocked version only)
- USB Fast Charge
- Disabled gentle fair sleepers
- Extra TCP Congestion Controllers
- Fsync enabled by default
- Kexec-hardboot patch (for multirom compatibility)
- Power-efficient workqueues
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Downloads:
Unified Marshmallow & Nougat (CM/LineageOS 13 & 14.x)
Click to expand...
Click to collapse
Looking for previous releases?
Go here.
Click to expand...
Click to collapse
Flashing & Tweaking Instructions (Follow this very carefully!!!):
- Place the zip at the root of your phone's internal storage
- Reboot into recovery
- Flash the zip
(Another way: Reboot into recovery without copying the zip, and flash it via adb sideload)
- Reboot again and have fun!
Coming from another kernel which isn't mine? Don't worry, no need to dirty flash the ROM/kernel anymore. The install script now does all the dirty work for you.
If you wanna "tweak ALL the things", use Kernel Adiutor! (Synapse is NOT supported!)
Click to expand...
Click to collapse
Want some info on what this kernel offers you?
Then go here! (Credits to @AssToast for suggesting and to @gsstudios for creating the site!)
Click to expand...
Click to collapse
"Thank You" Section
- Motorola/Lenovo
- Qualcomm/CodeAurora
- The CyanogenMod team
- @Flashhhh, his work kinda inspired me to do this
- @faux123, for Sound Control & Intellithermal
- @savoca, for Kcal Screen Control
- @hurtsky, a huge load of cherry-picks came from his sources
- @YoshiShaPow, for some more stuff
- Some more fellas whose names I can't remember
Click to expand...
Click to collapse
XDA:DevDB Information
KaminariKernel (AOSP/LineageOS, Falcon), Kernel for the Moto G
Contributors
kingkaminari
Source Code: https://github.com/Kamin4ri/KaminariKernel/
Kernel Special Features:
Version Information
Status: Abandoned
Current Stable Version: R12
Stable Release Date: 2018-03-04
Created 2016-01-13
Last Updated 2018-05-17
F.A.Q. (Read this before crying!!!!)
Q: Why did you develop this kernel?
A: Because I wanted to
Q: ERMAHGERD DIS KERNEL SUCKZ, MAH BATTERY IS DEAD IN 30 MINS, PLZ HALP!
A: When I created this kernel, I never had the intention to have it decrease battery life. So before / instead of complaining, go check your f***ing wakelocks and fix them! The kernel isn't responsible for this, your apps and/or services are.
Q: Will this kernel work on AOSP/CM12.1/CM13 ROMs?
A: Works on any ROM as long as it isn't stock . So yes, it does. AOSP, CM LineageOS, RR... Any of these.
Q: How do I report bugs?
A: If you wanna report a bug, then grab your kernel log - either by pulling /proc/last_kmsg (in case of a random reboot / kernel panic or oops) or copying the output of "dmesg" via shell - and paste it at pastie.org and link it in your post (or save it to a text file and attach it to your post). Don't bother getting logcats, they don't apply for kernel debugging purposes.
Q: How do I flash this?
A: I suggest you scroll up and read the OP. The instructions are there.
Q: How do I tweak this kernel?
A: Download Kernel Adiutor from the Play Store and have fun. No Synapse support!
Q: This kid is such a n00b!
A: Oh well then, why don't you go work on a kernel yourself, instead of criticizing my work and, by doing so, wasting your time?
Click to expand...
Click to collapse
Reserved
Reserved
Okay... Last reserved.
Our first test build is up! Link is at the OP.
It's still a very early test build and it may (and probably does) contain issues (serious or not). You've been warned.
This build should fix PowerHAL not being disabled.
Great work. Zero bugs in the short time since flashing. Thanks.
Hello King Kami Nari , , , Kami nari Kami Nari
What hotlplug is provides in your kernel ??
King Kami Nari
BhavikRB said:
Hello King Kami Nari , , , Kami nari Kami Nari
What hotlplug is provides in your kernel ??
King Kami Nari
Click to expand...
Click to collapse
MPDecision.
Sir King Kami Nari ,
Have you modified Interactive ?
kingkaminari said:
Created 2016-01-13
Last Updated 2016-01-12
Click to expand...
Click to collapse
Lol? xd
So far so good with the kernel thanks!
@kingkaminari Wow, finally! flashing it right now, thank you so much!
I hope to see the rest of the features present on 5.1 here on M and Thank you so much!
@kingkaminari
Will not let me change the minimum frequency of the CPU whenever I lay below 787 MHz to 5 minutes switches to the same, Tube to disable the "MPDecision" so that the frequency is not changed (sorry my english im use google traductor)
espaciox99 said:
Lol? xd
So far so good with the kernel thanks!
Click to expand...
Click to collapse
Yeah . There's this little derp with the dates lol
espaciox99 said:
@kingkaminari
Will not let me change the minimum frequency of the CPU whenever I lay below 787 MHz to 5 minutes switches to the same, Tube to disable the "MPDecision" so that the frequency is not changed (sorry my english im use google traductor)
Click to expand...
Click to collapse
Didn't have that problem here. My phone's minimum frequency stays at 300MHz all the time. Try another governor. And don't disable mpdecision
BhavikRB said:
Sir King Kami Nari ,
Have you modified Interactive ?
Click to expand...
Click to collapse
No. Interactive has been left untouched.
If you come from Hurtsky's Hybrid Kernel or Flashhhh's Optimus Kernel, don't forget to re-enable MPDecision - just rename /system/bin/mpdecisionbak to /system/bin/mpdecision.
kingkaminari said:
Didn't have that problem here. My phone's minimum frequency stays at 300MHz all the time. Try another governor. And don't disable mpdecision
Click to expand...
Click to collapse
Try and several governors and feel the same, the only solution is to disable "MPdecision"
EDIT: The problem is when you lock the phone, no matter how infrequently the minimum of changes to 787mhz cpu and if I turn off the mpdecision not happen
espaciox99 said:
Try and several governors and feel the same, the only solution is to disable "MPdecision"
EDIT: The problem is when you lock the phone, no matter how infrequently the minimum of changes to 787mhz cpu and if I turn off the mpdecision not happen
Click to expand...
Click to collapse
I actually was having a similar problem to this not long ago but not this particular kernel.
Just fooling around I found that if I flashed any kernel after rebooting system I would have the problem you described, however if I flashed the ROM, Gapps, and kernel in recovery all together before initial boot everything works as it should.
Not sure why this is but I have experimented and it is the only solution I have found so far.

[DEV]Xperience G5 Kernel H850

Xperience G5 Kernel​
Code:
#include
/*
* Your warranty is now void *
* 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.
*/
Install:
1.) Download the zip file
2.) Make a backup
3.) Flash kernel in TWRP (dont use fastboot because some needed libs wont be copied)
4.) When you disabled the device encryption flash no-dm-verity again
Features:
- Don't breaks Safetynet when Bootloader is unlocked (rooting will break safetynet)
- more CPU Governors
- TCP congestion Westwood
CREDITS
@alucard_24 - for the very good buildscript and some fixes
Version Information
Status: Beta
Compatible Roms: Stockbased Roms only
Download Link:Klick me Hard
Sourcecode: https://github.com/mericon/Xp_Kernel_LGH850
Created: 11.11.2016
Updated: 24.11.2016
Paused since: 26.11.2016
Statement:
I have to pause the Development for the next time. My work takes to much time for now. I think i will resume in the next year.
Code:
[U][B]Changelog:[/B][/U]
[U]First Release V 0.1:
[/U]
[B]- [/B]Don't breaks Safetynet when Bootloader is unlocked
[B]- [/B]more CPU Governors ([STRIKE]ElementalX and[/STRIKE] Impulse)
- TCP congestion Westwood (works now)
- sioplus iosched
- Moved core control in to the kernel (should help to save some power)
[U]v0.2[/u]
- Added Zen iosched
- disabled core ctl helper
[U]v0.3[/u]
- Added SIO iosched
- Added FIOPS iosched
- Added Builtin ExFat support
[U]V0.4[/U]
- Disabled Core Ctl
- enabled Core Ctl helper
- Adding Zzmove Governor
- Adding back ElementalX Governor
Kernel is ready to download now :] feel free to test it
Gesendet von meinem Pixel XL mit Tapatalk
mericon said:
Kernel is ready to download now :] feel free to test it
Gesendet von meinem Pixel XL mit Tapatalk
Click to expand...
Click to collapse
For some reason it is stuck at boot. Not even getting to the boot animation. Left my phone for 5 minutes, still the same.
onestyle007 said:
For some reason it is stuck at boot. Not even getting to the boot animation. Left my phone for 5 minutes, still the same.
Click to expand...
Click to collapse
Which rom do you use?
I will look in this
mericon said:
Which rom do you use?
I will look in this
Click to expand...
Click to collapse
Fluence HD 25 patched over O3 rom with dual boot patcher (updated ramdisk through dual patcher app on primary rom). My guess is its because of my patched ramdisk.
onestyle007 said:
Fluence HD 25 patched over O3 rom with dual boot patcher (updated ramdisk through dual patcher app on primary rom). My guess is its because of my patched ramdisk.
Click to expand...
Click to collapse
Okay thats could be. Atm im doing a Full fresh install of my Phone and than i will try the dualPatcher. If the patcher is the problem i try to figure out what the problem is but this could take some days.
mericon said:
Okay thats could be. Atm im doing a Full fresh install of my Phone and than i will try the dualPatcher. If the patcher is the problem i try to figure out what the problem is but this could take some days.
Click to expand...
Click to collapse
Patcher was the problem. I was to eager to try your kernel and forgot to patch it for Primary ROM. Now it works but I've lost root. No su detected, since I was on systemless root.
onestyle007 said:
Patcher was the problem. I was to eager to try your kernel and forgot to patch it for Primary ROM. Now it works but I've lost root. No su detected, since I was on systemless root.
Click to expand...
Click to collapse
Well i forgot to mention that it isnt a rooted kernel for now sorry. But nice to now that the kernel works for you.
mericon said:
Well i forgot to mention that it isnt a rooted kernel for now sorry. But nice to now that the kernel works for you.
Click to expand...
Click to collapse
Which governor's did you put in? It's cool,flashed already and rooted again. I'm asking since I only get elementalX and impulse as new and seems no Westwood in tcp. Seems I've made a big mess with patching my ramdisk lol.
onestyle007 said:
Which governor's did you put in? It's cool,flashed already and rooted again. I'm asking since I only get elementalX and impulse as new and seems no Westwood in tcp. Seems I've made a big mess with patching my ramdisk lol.
Click to expand...
Click to collapse
Atm its only Impulse and ElementalX for CPU and for TCP Westwood should be default for the networking.
Planned are some IO-Sched's and maybe zz_move bigLittle and maybe kcal for now.
mericon said:
​
Atm its only Impulse and ElementalX for CPU and for TCP Westwood should be default for the networking.
Planned are some IO-Sched's and maybe zz_move bigLittle and maybe kcal for now.
Click to expand...
Click to collapse
Got both of them in cpu but have this in tcp, look at the pic. Just a question, but did you consider multirom support at some point?
I assume this is for LG roms and not CM or anything else? If I ever move back to stock, I will deff have to test this out. Thanks!
onestyle007 said:
Got both of them in cpu but have this in tcp, look at the pic. Just a question, but did you consider multirom support at some point?
Click to expand...
Click to collapse
Than i have to take a look at the westwood problem thanks
I will look what i can do for multirom but it will take some time because i didnt work in Development a long time and have to learn it mostly new and on the other side is my work 8 hours a day and my familiy
davitox87 said:
I assume this is for LG roms and not CM or anything else? If I ever move back to stock, I will deff have to test this out. Thanks!
Click to expand...
Click to collapse
You are right its for LG roms only (i think didnt test if it works with an CM rom and wouldnt recommend it). Maybe when the Kernel is at an stable stage i try to build one for CM.
mericon said:
Than i have to take a look at the westwood problem thanks
I will look what i can do for multirom but it will take some time because i didnt work in Development a long time and have to learn it mostly new and on the other side is my work 8 hours a day and my familiy
Click to expand...
Click to collapse
Same here,trying to find time for tons of projects I've started on my pc. Well I'm pretty new in kernel developing, but if you need help, I learn pretty fast
onestyle007 said:
Same here,trying to find time for tons of projects I've started on my pc. Well I'm pretty new in kernel developing, but if you need help, I learn pretty fast
Click to expand...
Click to collapse
Feel free to help
I think i found the problem with westwood, A new zip comes tomorrow.
awesome work!!! any chance we'll see this on h830 as well? really want to get a kernel that will pass the safety net boodloader check
please build by UBER 5.4.1 like boeffla kernel for better performance
https://www.mediafire.com/folder/r9l07voht8ets/cyanogenmod13.0#rhtzub5gx1hb9
@mericon
Using your kernel since last night on Impulse governor, really big battery improvement compared to the stock kernel ,and not really losing performance. Great work mate. :good:
ggelo10 said:
please build by UBER 5.4.1 like boeffla kernel for better performance
https://www.mediafire.com/folder/r9l07voht8ets/cyanogenmod13.0#rhtzub5gx1hb9
Click to expand...
Click to collapse
Well be careful with compilation errors...
Envoyé de mon GT-I9505 en utilisant Tapatalk

SmartPack [Kernel] project for LOS-14.1 [G901F] / [G906S/K/L]

This project is now maintained by @wilmsn. The new thread can be found here.
/* Introduction */
I haven’t found any suitable kernel that supports Lineage-OS 14.1 (and likely other aosp nougat ROMs) for these variants of S5 though many custom kernels are available for many other devices with the same APQ8084 chipset (e.g.: shamu). So, I made one by simply picking a lot of good features from other existing APQ8084 kernels. All the credits go to many developers those create several kernels for this platform and eventually made my job very easy. Here I’m sharing the output of my work and hope you guys like this.
/* DISCLAIMER!! */
Code:
I am not responsible for any damage to your device. Everything you are doing on your device is on your own risk.
I only own lentislteskt (Korean variant). Hence, kernels under the category 'lentislte' are only tested by myself.
Please note that flashing any custom Kernel including mine will void your warranty.
/* Supported devices */
lentislte: SM-G906S/K/L
kccat6: SM-G901F
/* Compatibility */
This kernel is only meant for Lineage-OS 14.1. It may or may not work on other LOS-14.1 (and AOSP) based Nougat ROMs (Please try in your own risk).
This kernel will NOT work in Samsung Stock and other TW ROMs.
/* How-to-Install */
1. Go to recovery (TWRP recommend)
2. Flash Kernel
3. Reboot and enjoy​
/* Features */
Build from latest Lineage OS source code.
Build using Google arm-eabi 4.9 toolchain.
Anykernel concept for compatibility with maximum devices.
Kernel tweaker app recommend: Offical Kernel Auditor.
Added features include...
CPU voltage control
CPU_input boost
CPU Freq Gov: Intelliactive, Lionheart, Nightmare, Alucard, Blu_Active, Yankactive, & Ondemandplus.
CPU hotplugs: Intelli plug and mako hotplug.
TCP congestion algorithms: Westwood, reno, cubic etc.
IOScheds: SIO & FIOPS
IOSched_switcher
FSync enable/disable support
Fastcharge
Sound Control
Simple GPU Algoritham
FRandom
KCAL v2 advanced colour management
a lot more...​
/* Features likley added in the future */
1. More cpufreq govs
2. More ioscheds
3. Overclocking/Underclocking
4. Intelli_thermal
5. Suggest me?
/* Downloads */
SM-G906S/K/L
SM-G901F
/* Special note to ROM developers */
You are allowed to include my kernel in any ROMs. Feel free to contact me, if you need any assistance from my side.
/* Acknowledgements */
@cvxda
@franciscofranco
@faux123
@flar2
@Imoseyon
@savoca
@Lord Boeffla
@Sultanxda
@Grarak
@osm0sis
@Alucard24
Many other XDA developers
XDA:DevDB Information
SmartPack, Kernel for the Samsung Galaxy S5
Contributors
sunilpaulmathew
Source Code: https://github.com/SmartPack
Kernel Special Features:
Version Information
Status: Beta
Beta Release Date: 2017-10-10
Created 2017-10-09
Last Updated 2017-11-26
Frequently Asked Questions (FAQ)
Q1: Is this kernel compatible with ROM(s) a/b/c?
Ans: I do not know. All of my kernels are based off and tested only on Lineage-OS. However, if your ROM(s) a/b/c are based on Lineage-OS (and uses the same kernel source code), it will most probably work
Q2: Is this kernel better than stock/‘xyz’ kernel(s)?
Ans: Regarding stock, Yes, It should be better in many aspects (Otherwise it will never been published). Regarding ‘xyz’ kernels, I don’t know. I even may not used your mentioned ‘xyz’ kernels.
Q3: How about performance/SOT?
Ans: Since SOT, performance etc. are largely based on several factors such as ROM, installed apps etc. No one else can exactly predict the performance/SOT of your mobile. So, you should test and find out that by yourself.
Q4: Can you tell me the best settings for performance/SOT?
Ans:Again, that depends on several factors. I can only say my favorite settings that gives me best results in my favorite ROM.
Q5: Could you add feature x and y to your kernel?
Ans: Not sure. It depends on the feature and the capability of device. Anyway, I’m happy to check and add, if possible, any useful features (unless it is too experimental or dangerous) to my kernel. Please give your suggestions in the official xda thread.
Q6: When will you release a new version of this kernel?
Ans: New updates will arrive whenever I have something new to present in-front of you (such as I managed to add new useful features, or fix some existing issues or along with each LOS release with some changes in the kernel source code).
Q7: I found a bug, what do I do?
Ans: Please provide as much information as possible (such as what feature, what didn\'t work, screenshots or logcat if possible) and post in the xda thread.[/hide]
Please also note:
Guys... I'm pretty new to this device (and in fact to android development itself). So, it is very likely that I break some already available stuffs. If you found so, please let me know.
1. Please make sure to disable mpdecission if you decided to enable other hotplus (only one hotplug at a time).
2. Do not use any CPU hotplug while using zzmove cpufreq governor (since zzmove uses its own hot-plugging profiles).
3. Do not use Adreno_Idler and Simple_GPU algorithm together (that will likely make issues).
Change-logs
Nougat
men, i will try your kernel today, but already thanks for not forgeting this device, have a nice day.
well, im using the last rom version, and all that i can see is that it breaks the wifi, my device is G901F
New builds...
Release status: beta-v1
Changes: CPU voltage control is updated (all the frequencies are now accessible via KernelAuditor). Some other fixes (mainly for wifi)...
Download links cane be found here... enjoy...
/* Downloads */
SM-G906S/K/L
SM-G901F
@Juanchito16 any updates?
heyyy man, now im tryong your last version of the kernel with the RR on my G901F, and now wifi works, thanks for your time and your project !!!!!
Juanchito16 said:
heyyy man, now im tryong your last version of the kernel with the RR on my G901F, and now wifi works, thanks for your time and your project !!!!!
Click to expand...
Click to collapse
Thanks for the reply and nice to know that it is working.
Btw, it could be nice if you test everything and made a detailed review. It will be useful for me to make it better as well as other users. I really like to know its status from an SM-G901F user (since I only own SM-G906S)... Thanks, anyway, for the early testing...
@sunilpaulmathew, right now im using a lg g6 so for now i will test how is the drain battery with stock kernel of RR and then with yours.
so actually wich settings i should let on in the phone for the standby test ? or wich you suggest me.
Honestly, I do not know since it is difficult for me to test the standby time due to my building and flashing habit
However, I'm presently satisfied with 1. cpugreq (nightmare), 2. cpu hotplug (intelli_plug), 3. undervolted (up to -50), 4. TCP algo (westwood) and 5. All other available features like fastcharge, sound control etc. enabled...
Juanchito16 said:
@sunilpaulmathew, right now im using a lg g6 so for now i will test how is the drain battery with stock kernel of RR and then with yours.
so actually wich settings i should let on in the phone for the standby test ? or wich you suggest me.
Click to expand...
Click to collapse
exactly what i tough so i do have time to try this, im waiting for phone to charge fully (now 55%), i will set 1. cpugreq (nightmare), and turn on wifi, bluetooth, gps, and in airplane mode bc i dont have sim for the phone.
well i dont have many apps installed ,so i will do every test with exactly same settings and apps
workload
Thank you for your Kernel,
The fist Look seems to be good, the CPU workload shows 3 Cores are OFF (kernel adiutor), one by 50% by default LOS with no Apps in the Background, with the settings you are posted.
Thank you for the the first costum kernel for sm-g901f on LOS 14.1.
best regards
so i did the "test" with your kernel, with the default kernel configurations, wifi, bluethoot, gps in high accuracy, full brightness, and youtube all the time with video playng, so it gives me 4 hours, wich i think is just exelent thinking its a old battery.
its a really nice work man, about the fast charge, its nice, i charged it with everithing, but unfortunately i cant say how fast its yet
deollz said:
Thank you for your Kernel,
The fist Look seems to be good, the CPU workload shows 3 Cores are OFF (kernel adiutor), one by 50% by default LOS with no Apps in the Background, with the settings you are posted.
Thank you for the the first costum kernel for sm-g901f on LOS 14.1.
best regards
Click to expand...
Click to collapse
Thanks for testing and review. It become much better in the next updates once I add cpu input boost...
Juanchito16 said:
so i did the "test" with your kernel, with the default kernel configurations, wifi, bluethoot, gps in high accuracy, full brightness, and youtube all the time with video playng, so it gives me 4 hours, wich i think is just exelent thinking its a old battery.
its a really nice work man, about the fast charge, its nice, i charged it with everithing, but unfortunately i cant say how fast its yet
Click to expand...
Click to collapse
Thanks for the really detailed review... As per its source code, it only increases the USB charging speed to 900mA and nothing else. Probably you can try ampere to test the charging speed. Btw, I hope more people test this kernel soon.
Testing now, thank you ! My phone g906s
i did try with ampere, im testing it in norway, and actually without any modification, and right cable i get 1.200 mA
kotobodj said:
Testing now, thank you ! My phone g906s
Click to expand...
Click to collapse
Juanchito16 said:
i did try with ampere, im testing it in norway, and actually without any modification, and right cable i get 1.200 mA
Click to expand...
Click to collapse
Thank you very much friends. Was busy with my klte kernel. I'll probably push an updated version tomorrow, if everything goes as expected.
Btw, anybody tested the sound control (Kernel Auditor ---> Sound)? Is it worth?
Thanks in advance...
I have tried to use the sound option, however it crashes my device. I can make some logs later if that's helpfull.
BorrelNootje said:
I have tried to use the sound option, however it crashes my device. I can make some logs later if that's helpfull.
Click to expand...
Click to collapse
Ahh, yes, please provide a log if possible... Thanks for reporting...
New builds (beta-v2)...
Release status: beta-v2
Added: SIO and FIOPS ioscheds, CPU input boost, iosched switcher & FSync enable/disable support...
Changes: Interactive cpufreg gov, sound control (default gain marginally increased, PS: it might still crash the device if you touch the sound tab, but give significant gain by default), recent commits in the LOS kernel source code...
Download links are here... enjoy
/* Downloads */
SM-G906S/K/L
SM-G901F
Code:
[B][COLOR="Red"]Please remember to download the latest build (dated 20171012)...[/COLOR][/B]
One more build...
One more update before the weekend...
Release status: beta-v3
Changes: Changes: zzmove cpufreq gov. All the commits in the LOS kernel source code till date...
Download links are here... enjoy
/* Downloads */
SM-G906S/K/L
SM-G901F
Code:
[B][COLOR="Red"]Please remember to download the latest build (dated 20171013)...[/COLOR][/B]

[Kernel] Project T Kernel for ZTE Axon 7 Mini

Hi guys,
I know that this forum is not widely used by ZTE Axon 7 Mini owners, but I still want to share my work the kernel used by the stock firmware.
Most of the parts were of course already based on the work of others, so I will give credits at the end of this thread of course.
Pre-requisites:
Unlocked bootloader
TWRP flashed
Knowledge you do this all at your own risk! I tested this kernel with my EU model, so I don't know if this will work on the US models, too.
Features:
- Based on latest kernel source shared by ZTE (ZTE B2017G Nougat(7.1.1) Kernel(3.10.84))
- Built with GCC 4.9 toolchain
- UC to 499MHz for BIG and 403 MHz for LITTLE (thanks to @flar2)
- OC to 1651 for BIG (again @flar2)
- Additional governors: yankactive, blu-active, impulse
- Additional IO schedulers: Sioplus, Zen, FIOPS. Tweaked Row is set as default
- Additional TCP congestion algorithms with westwood being the default one
- Approx. 30% faster due to CRC calculation and auditing disabling
- Sweep2Sleep on the navigation bar
- frandom RNG
- Sound Control by @flar2
- ZRAM using LZ4 optimized for ARM by default
- Optimized power management driver by @Yank555
- Native exFAT support without needing fuse @dorimanx)
- KCAL
- Vibration control
- uses higher power CPUs to boot (got roughly 3s faster boot time)
- Dynamic Fsync
- Gentle Fair sleepers can be toggled via sysfs and Kernel Adiutor
- Smaller tweaks
To do:
- Switch toolchain
- Remove "dirty" from the kernel name Apparently I need to push all changes to github before compiling(or recompiling the same kernel as soon as I pushed everything)
- Set the phone to accept the lower frequencies without having to set this up in Kernel adiutor
- Alter interactive governor to use full frequency range
- Add D2TS for screen and fingerprint sensor, S2W
- Wakelock reductions
- Maybe BLX, KCAL (even though I don't get the point to implement it) I was curious and did it now, looks nice
- LED and vibration control
- Switch hotplugging mechanism to Lazyplug, hotplugging is not that energy efficient anymore
See the attached picture regarding the CPU stats when using yankactive for example
Credits go to:
@Lord Boeffla @flar2 @dorimanx @Yank555
Unfortunately I didn't give proper credits on my github, I want everyone to know, that none of the features were designed and written by myself, just adapted to work on our phones!
Download here:
https://drive.google.com/drive/folders/0B0mn6OUqIDzBZG1DM1Y4dmxUV2c
Flash in TWRP, root and every other ramdisk modification will be preserved (Anykernel2 by osmosis)
Github:
https://github.com/TheSSJ/tulip_kernel
Changelog
V1.1: Initial version for public release!
V1.2: KCAL support
V1.3: Changed boot CPUs to higher power ones, added dynamic Fsync, added Quick Wakeup driver
V1.4: Gentle Fair Sleepers can be toggled now, ROW scheduler tweaked
NOTE: in case anyone is wondering why I didn't pick the DevDB projects: as our device is not activated to be used with DevDB, I went with normal threads
TheSSJ said:
V1.1: Initial version for public release!
NOTE: in case anyone is wondering why I didn't pick the DevDB projects: as our device is not activated to be used with DevDB, I went with normal threads
Click to expand...
Click to collapse
Hi! Amazing work! Thx for the job.
Can I use this kernel with AOKP? AOKP has android 7.1.2
Askael said:
Hi! Amazing work! Thx for the job.
Can I use this kernel with AOKP? AOKP has android 7.1.2
Click to expand...
Click to collapse
I wouldn't exclude this, but as I am running on stock, I can't confirm or deny...
You could make a backup of your boot and flash it and see what happens, worst thing is that you need to reboot to recovery and restore your backup
TheSSJ said:
V1.1: Initial version for public release!
NOTE: in case anyone is wondering why I didn't pick the DevDB projects: as our device is not activated to be used with DevDB, I went with normal threads
Click to expand...
Click to collapse
TheSSJ said:
I wouldn't exclude this, but as I am running on stock, I can't confirm or deny...
You could make a backup of your boot and flash it and see what happens, worst thing is that you need to reboot to recovery and restore your backup
Click to expand...
Click to collapse
Thank you for replay, what governor you use?
You will need to try and see.
It uses anykernel which is good. But aokp and lineage are on android 7.1.2 while stock is on android 7.1.1. There was at least one kernel api change that may cause problems. But I'm not sure.
I'm assuming this package has the wlan module also...?
Askael said:
Hi! Amazing work! Thx for the job.
Can I use this kernel with AOKP? AOKP has android 7.1.2
Click to expand...
Click to collapse
@ssj @tdm
Guys, try flash kernel, AOKP, don't work.
W8 kernel version from customs
tdm said:
I'm assuming this package has the wlan module also...?
Click to expand...
Click to collapse
You mean the prima wifi stuff I have seen in you github? Honestly I didn't feel the need...does it improve the wifi experience or is it just for making it compatible with LineageOS?
No, I mean the kernel module for wifi, /system/lib/modules/pronto/pronto_wlan.ko. If that doesn't match your kernel, it won't load and you won't have wifi.
Note stock has a handful of other kernel modules, but I don't think any of them are needed Most look like they are for testing.
TheSSJ said:
You mean the prima wifi stuff I have seen in you github? Honestly I didn't feel the need...does it improve the wifi experience or is it just for making it compatible with LineageOS?
Click to expand...
Click to collapse
tdm said:
No, I mean the kernel module for wifi, /system/lib/modules/pronto/pronto_wlan.ko. If that doesn't match your kernel, it won't load and you won't have wifi.
Note stock has a handful of other kernel modules, but I don't think any of them are needed Most look like they are for testing.
Click to expand...
Click to collapse
Oh, ok...pronto driver is built into the kernel though, all other modules are really for debugging and testing as far as I could gather, so they are not included (and the phone works fine)
@Askael: As for a custom kernel for Lineage/AOKP etc: as I won't have these OS's on my phone I use as my daily driver, I can of course create one, but it is always published as untested, so there is no point IMHO.
TheSSJ said:
Oh, ok...pronto driver is built into the kernel though, all other modules are really for debugging and testing as far as I could gather, so they are not included (and the phone works fine)
@Askael: As for a custom kernel for Lineage/AOKP etc: as I won't have these OS's on my phone I use as my daily driver, I can of course create one, but it is always published as untested, so there is no point IMHO.
Click to expand...
Click to collapse
But we can test this. But if you not want - don't worry! :good:
Askael said:
But we can test this. But if you not want - don't worry! :good:
Click to expand...
Click to collapse
Will think about it
Version 1.2 is out, now with KCAL screen control support!
I'm building a kernel with many of these features for the LineageOS ROM. Want me to make a thread, and then you can link it for people interested in using it in your OP? Source is here: https://github.com/djkazic/sombrax_kernel
kevincai96 said:
I'm building a kernel with many of these features for the LineageOS ROM. Want me to make a thread, and then you can link it for people interested in using it in your OP? Source is here: https://github.com/djkazic/sombrax_kernel
Click to expand...
Click to collapse
Hi,
Feel free to open a new thread it is important to push this phone amd its potential as good as possible!
Development will go on, i still have some items to implement :good:
@TheSSJ
Hi! Any news about update?
@TheSSJ
Good to see you in Axon mini from zenfone 2
Askael said:
@TheSSJ
Hi! Any news about update?
Click to expand...
Click to collapse
You mean a custom kernel for CM builds or an update for this stock kernel?
For the CM based one I didn't start, although applying the modifications I applied to my kernel should be working
Druboo666 said:
@TheSSJ
Good to see you in Axon mini from zenfone 2
Click to expand...
Click to collapse
I was spotted It's a great phone, let's get the most out of it
TheSSJ said:
You mean a custom kernel for CM builds or an update for this stock kernel?
For the CM based one I didn't start, although applying the modifications I applied to my kernel should be working
I was spotted It's a great phone, let's get the most out of it
Click to expand...
Click to collapse
For this stok kernel
I was spotted It's a great phone, let's get the most out of it
Click to expand...
Click to collapse
i am using Axon 7 and yeah its a great phone i must miss you in axon 7
Updated version uploaded and available on G-Drive, boot time increased by 3s (you take what you can get )
/EDIT: Next version out, small enhancements and adding the possibility to enable/disable gentle fair sleepers

[KERNEL][CUSTOM][Pie] Phizero kernel for j4+

Code:
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
Phizero kernel j4+ for all non-stock ROMS i.e custom roms,gsi....
Kernel features:
Compiled with Bleeding edge toolchain GCC 9.1
Upstreamed to Linux 3.18.140
Enabled lower frequencies 345, 499, 729, and 844mhz
Undervolt lower clocks ONLY! for better battery without performance loss
Disable CRC for about 30% performance boost
GPU overclocked to 650Mhz
Security and other under the hood improvements
Changelog for v2.0 2019-08-17
Increased charge current to 1.6A on AC and 1A on USB for faster charging
Use 300Hz base timer frequency
Add KCAL - Advanced color control for Qualcomm MDSS (RGB calibration and post-processing features)
Add KLAPSE live-display module support (v5.0)
Rework underclock : remove inefficient frequencies set minimum 652mhz
Add Cpu Overclock to 1.65ghz and define voltages
Rework interactive governor scaling parameters
Added Boeffla wakelock blocker v1.1
FS fsync toggle on/off
Disable Samsung Knox,tima etc
Disable lots of debugging for some improvement
Export max charge current to lock screen (fixes missing charge current info on custom ROMs)
Enable CONFIG_WQ_POWER_EFFICIENT_DEFAULT
Revert to GCC 4.9 Tool-chain
Link for kernel (v1.0)
https://mega.nz/#!N0xAEIjQ!QriScEX0_rsWcx6pu6wDii9S5Xj5-tiapUxxikDQM6I
Link for kernel (v2.0)-2019-08-17
https://mega.nz/#!pwYXVQhK!bxUJgXD_GPl6f9TkD30z25na57aSWxeoUJnD5Y6Mo2s
Installation
1.Flash kernel in twrp (based on any kernel2).
2. Reflash magisk.
Done!!!
Don't forget to hit thanks and rate the thread nicely, it's free
More features will be added with time. Enjoy
Credits
kapmino269 for testing
IanH82uk for testing
AlaskaLinuxUser for great tutorials on kernel development
tanish2k09 for Klapse
Thanks to all devs whom I learnt a thing or two from and also cherry-picked from
XDA:DevDB Information
[CUSTOM] Phizero kernel for j4primelte
Contributors
Geckyn
Source Code: [url]https://github.com/geckyn[/URL]
Version Information
Status: Stable
Current Stable Version: phizero-kernelv2.0
Stable Release Date: 2019-08-17
Current Beta Version: phizero-kernelv1.0
Beta Release Date: 2019-06-28
Created 2019-06-28
Last Updated 2019-08-17
So.. any update? I just want to flash and forget it (lol) without changing anything else. Do I also need to set the minimum frequency manually if I flash the squeezer profile?
Andhika24kd said:
So.. any update? I just want to flash and forget it (lol) without changing anything else. Do I also need to set the minimum frequency manually if I flash the squeezer profile?
Click to expand...
Click to collapse
No updates yet...and yes you need to set the minimum frequency manually after flashing the squeezer profile
Would be great if there were CPU OC options.
poviking said:
Would be great if there were CPU OC options.
Click to expand...
Click to collapse
Yhup done with that and others....update will come next week or less
Geckyn said:
Yhup done with that and others....update will come next week or less
Click to expand...
Click to collapse
Awesome! You brought life to a almost useless phone hehe. Before it lagged just to accept calls . Great work!
poviking said:
Awesome! You brought life to a almost useless phone hehe. Before it lagged just to accept calls . Great work!
Click to expand...
Click to collapse
Working for j415f?
jhedjhed11 said:
Working for j415f?
Click to expand...
Click to collapse
Yes, it works.
alexx zes said:
Yes, it works.
Click to expand...
Click to collapse
On OneUI firmware?
jhedjhed11 said:
On OneUI firmware?
Click to expand...
Click to collapse
Yes, on Oneui.
1. Go to download mode .
2. Flash twrp in Ap .
Notice : uncheck auto reboot .
3. Reboot recovery .
4. Install
- disable_All_pie_security.zip .
https://www.androidfilehost.com/?fid...89523397964680
-J4 plus disable encryption .
https://www.androidfilehost.com/?fid...89523397964679
5. Format data .
6. Follow the steps available in this thread
Or check TWRP thread https://forum.xda-developers.com/ga...ecovery-twrp-3-2-3-1-galaxy-j4-j415f-t3876876
jhedjhed11 said:
On OneUI firmware?
Click to expand...
Click to collapse
If it works you'll lose mtp function. That's the only difference between this and stock kernel
Geckyn said:
If it works you'll lose mtp function. That's the only difference between this and stock kernel
Click to expand...
Click to collapse
Will this improve the gaming performance?
jhedjhed11 said:
On OneUI firmware?
Click to expand...
Click to collapse
Install twrp as "alexx" explains, then install lineage 16 through twrp and then the kernel
jhedjhed11 said:
Will this improve the gaming performance?
Click to expand...
Click to collapse
lol its not going to turn your device into some gaming beast but it obviously has a performance advantage....new kernel uploaded with overclock and other features.
poviking said:
Install twrp as "alexx" explains, then install lineage 16 through twrp and then the kernel
Click to expand...
Click to collapse
kernel will work on any non-stock ROM including gsi ROMS...thread updated. I'm not sure about stock ( havent tested) but likely may not work due to certain changes in kernel...if it does work however...mtp function will be lost
Geckyn said:
kernel will work on any non-stock ROM including gsi ROMS...thread updated. I'm not sure about stock ( havent tested) but likely may not work due to certain changes in kernel...if it does work however...mtp function will be lost
Click to expand...
Click to collapse
Didn't know that
How is it going with the updated kernel, it's been sometime since you said you were gonna release it.
poviking said:
Didn't know that
How is it going with the updated kernel, it's been sometime since you said you were gonna release it.
Click to expand...
Click to collapse
Updated a moment ago....phizero-v2.0
Geckyn said:
Updated a moment ago....phizero-v2.0
Click to expand...
Click to collapse
Awesome, didn't see the update
The performance of the second version is better, with all the new features. But I've noticed a bug when starting games that stresses the GPU and CPU, its very stable for the few minutes the the game crashes.
poviking said:
The performance of the second version is better, with all the new features. But I've noticed a bug when starting games that stresses the GPU and CPU, its very stable for the few minutes the the game crashes.
Click to expand...
Click to collapse
I'm sure there's something wrong at your os level or probably you are trying to run high end games on an entry level device and not kernel related as I use it too..played a game with it and I'm always watching the frequency scalings like a police ..plus no such problem confirmed from testers

Categories

Resources