[Kernel][Xenial][Hlte][18/03/18] - Galaxy Note 3 Android Development

[snapdragon]
Xenial kernel built27
17th March 2018 source
(N7.1)​
Download:
AndroidFileHost
Supported ROMs:
Android N7.1:
~ LINEAGE 14.1 BASE
Supported Variants:
~ GSM (N9005 & N900S)
~ CHN
~ TMO
Kernel Features:
~ Selinux set to Permissive
~ Added Smartmax EPS & more
~ Set Interactive as default
~ Tweaked Interactive Governor
~ Linux 3.4.113
~ Faux Sound Control
~ Intelliplug hotplug
~ Kcal control
~ Custom I/O schedule
~ Set Fiops sechedule by default
~ Advance TCP Congestion Network
~ Set Westwood by default
~ Underclock 268mhz
~ Removed partially CPU steps
~ Undervolt CPU with custom value
~ Intellithermal
~ Adreno Idler
~ Disable CRC check
~ Power Suspend mode
~ Power Efficient workqueues
~ Extreme Deepsleep
~ Patched Safetynet
~ USB Fastcharge
~ Qvono Charging Interface
~ Lzma kernel & ramdisk compression
~ Personal tweaks in Ramdisk
~ TouchWiz 6.0 sdcardfs (replace stock)
~ Compiled with Linaro 7.2.1 optimized
~ Compiled with -O3
~ Backward compatible sim for older ROM
Note:
This kernel only support selected and tested ROMs. This kernel is also an img type, it replace your stock img and you may loose systemless root. Flashing this may replace your sdcard in system so if you want to use stock or any other custom kernel, you require to flash this Revert Sdcard to avoid system crash. Futhermore, Xenial kernel ramdisk has move forward with the latest version thus it will not work on older ROMs but I've made a patch to work on older ROMs just by flashing Sim Patch after you flash the kernel.
Credits:
Everyone
Information
Jairus980 GitHub
Thread rules
~ I can ignore your comments
~ I will reply necessary question
~ I will not accept any feature request

Changelog
Built27 (18/03/18)
Built26X (02/01/18)
Built26 (20/12/17)
Built26 (12/12/17)
Built26 (09/12/17)
Built25X (19/11/17)
Built25 (01/11/17)
Built24 (14/10/17)
Built24 (08/10/17)
Built23 (12/08/17)
Built23 (15/07/17)
Built22 (01/07/17)
Built21 (27/06/17)
Built20 (10/06/17)
Built19 (29/05/17)
Built18 until Built1 has no direct link

Xenial built26
~ Fixed no sim issue
~ Backward compatible sim for older ROMs
~ Extreme deepsleep (only with 0 connection)
~ Compiled kernel with -O3
~ Revert to lzma compression (-O3 is huge!!)
~ cpuidle improvements

Congrats on the new thread, looking forward on some real Xenial goodies. Gonna test Xenial asap
Edit: flashed on RRN CHN @vidwhal 5.8.5 latest build, flash went without issues, boot to home screen also no issues to report.
I'll be testing further for battery life and other stuff.
Big thanks to @Jairus980

finally...
EDIT: After using it for couple of hours the random reboots begin...does anyone know any fix or workaround?? im using RRN 5.8.5 by Vidwhal btw.
EDIT v2: tried to install thermal.zip.. no more random reboots for now...

Hello @Jairus980, it did not take long to release b26 after all.
Test build of last week is running so well. I believe this b26 will be my new daily driver.
Will install it later today, have some errands to run now.
I have a feeling this kernel will have the best battery drain ever. :good:

Thank you!
Works perfectly (N9005, RRN, GSM variant). Bluetooth issue gone with b26.

jprimero15 said:
finally...
EDIT: After using it for couple of hours the random reboots begin...does anyone know any fix or workaround?? im using RRN 5.8.5 by Vidwhal btw.
EDIT v2: tried to install thermal.zip.. no more random reboots for now...
Click to expand...
Click to collapse
Where do you download thermal.zip?

bryanyee said:
Where do you download thermal.zip?
Click to expand...
Click to collapse
here:
Jairus980 said:
Xenial built19
~ update script
~ Awaken TW6.0. mu ha ha ha ha ha........ ha
~ some updates in chili source
~ compiled with latest gcc 5.4.1 (05-05-17)
msm thermal.zip
if you have thermal problem. flash this msm thermal script
Edit: smaller script size (save data!!!)
Edit2: fix error in typo
revert sdcard.zip
latest built19 uses latest samsung sdcardfs (tw6.0 compatible). so I added the sdcard bin file. certain custom kernel will have mount failing so this revert sdcard.zip will fix it.
edit: improve script handling
Click to expand...
Click to collapse

There is a small issue in b26.
Gravity, Linear Acceleration and Orientation sensors are dead.
They were working in last week SIM test build.

svbarbosa said:
There is a small issue in b26.
Gravity, Linear Acceleration and Orientation sensors are dead.
They were working in last week SIM test build.
Click to expand...
Click to collapse
Sensors are working for me, but not with "sensor test" app...so it could also be an app issue
EDIT: @svbarbosa: Sorry, made the same mistake as Chinaboy5216. These special sensors really did not work.

caesar68 said:
Sensors are working for me, but not with "sensor test" app...so it could also be an app issue
Click to expand...
Click to collapse
RRN CHN all mentioned sensors also ok here.
@svbarbosa Sorry my mistake, you're correct sensors not working. Guess it was too early when i got up today

caesar68 said:
Sensors are working for me, but not with "sensor test" app...so it could also be an app issue
Click to expand...
Click to collapse
Chinaboy5216 said:
RRN CHN all mentioned sensors also ok here.
Click to expand...
Click to collapse
How are you checking sensors?

Got some random reboots with 30.11 RR :/

svbarbosa said:
How are you checking sensors?
Click to expand...
Click to collapse
Hi Svbarbosa,
Checked again, yeah fully awake now
I used the same soft you used and no go also on the mentioned sensors. After that I checked with PhDoctor and the sensors I could check work.

Rexor10 said:
Got some random reboots with 30.11 RR :/
Click to expand...
Click to collapse
try to install thermal.zip by @Jairus980 it may fix the random reboots for u..

Random Reboots x Thermal Settings / Sensors again
Rexor10 said:
Got some random reboots with 30.11 RR :/
Click to expand...
Click to collapse
jprimero15 said:
try to install thermal.zip by @Jairus980 it may fix the random reboots for u..
Click to expand...
Click to collapse
I always enable IntelliThermal when using Xenial. If you do not do it you may have reboots.
Maybe that is what this thermal.zip will do.
Anyway my solution is simple, use KA Mod to change thermal settings and Stress Test to check if it is ok.
Refer to my old post in RR thread for instructions: Intellithermal - Xenial Kernel
Chinaboy5216 said:
Hi Svbarbosa,
Checked again, yeah fully awake now
I used the same soft you used and no go also on the mentioned sensors. After that I checked with PhDoctor and the sensors I could check work.
Click to expand...
Click to collapse
I checked PhDoctor, but it will not test these specific sensors: Gravity, Linear Acceleration and Orientation.
I tried 3 other different sensor test apps and they all show these sensors as dead.
@Jairus980, did you rebase the kernel for b26? These sensors were working well in the private test build you forwarded to me last week.

svbarbosa said:
@Jairus980, did you rebase the kernel for b26? These sensors were working well in the private test build you forwarded to me last week.
Click to expand...
Click to collapse
No. I use official ramdisk from LineageOS.
Which test that works? If I'm free, I will try to make another test and see.

Jairus980 said:
No. I use official ramdisk from LineageOS.
Which test that works? If I'm free, I will try to make another test and see.
Click to expand...
Click to collapse
Sent in a PM...

svbarbosa said:
I always enable IntelliThermal when using Xenial. If you do not do it you may have reboots.
Maybe that is what this thermal.zip will do.
Anyway my solution is simple, use KA Mod to change thermal settings and Stress Test to check if it is ok.
Refer to my old post in RR thread for instructions: Intellithermal - Xenial Kernel
I checked PhDoctor, but it will not test these specific sensors: Gravity, Linear Acceleration and Orientation.
I tried 3 other different sensor test apps and they all show these sensors as dead.
@Jairus980, did you rebase the kernel for b26? These sensors were working well in the private test build you forwarded to me last week.
Click to expand...
Click to collapse
Sorry for the confusion, seems like i really made a mistake this time. My excuses

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.

[KERNEL][AOSP/CM13/CM14.1/LOS] NxKernel r4 [03.01.2017]

NxKernel
r4​
Yeah, jet another kernel for the falcon!
Why? You might ask and you are right.
I have been experimenting with kernel features, fixes and (alleged) improvements and always tried to create a kernel which I would be happy to use every day on my device. You know the usual stuff: long lasting battery with lag-free performance... It's not easy at all I have to tell. I am not a developer but know my way around Git and programming and researched a lot of sources on the internet looking for kernel stuff. Some patches offer improvements in speed and response time etc, but in reality, many of them do more harm than good when it comes to real-life praxis. In the end, I had a great collection of fixes and patches which I tried (nearly) one-by-one examining the gains and losses of 'em.
All the credits go to the developers of the features - and a little of it to me for putting them together and bringing them to the Moto G.
Features
Compiled with UBERTC 4.9.4 and O2 optimization level
Overclocked [email protected], [email protected], [email protected]
Intelliplug 4.0 CPU hotplug
Intelliactive and Intellidemand CPU governor
PowerSuspend 1.5
Intellithermal v2
Simple GPU Algorithm
Adreno Idler
Power Efficient Workqueues
Fast Charge v2
Dynamic fsync
Enabled NEON mode
Westwood TCP congestion control
Frandom fast random number generator
Wakelock toggles
Click to expand...
Click to collapse
Installation
Download the kernel to your device from the link below
Reboot to recovery
Flash the kernel
(optional) Wipe cache & dalvik cache (recommended)
Reboot
(optional for CM13 - bootloop on CM14) If you would like to enable frandom, copy the 20frandom script (by Ryuinferno, see attached) to system/etc/init.d and change its permissions to 0755.
Click to expand...
Click to collapse
Download
CM14.1/Lineage OS: r4 - https://www.androidfilehost.com/?fid=673368273298920933
CM13: r2 - v1.1 - https://www.androidfilehost.com/?fid=385035244224396903
Please do not mirror any of my files!
I switched to "r" naming scheme which means r1 (v1.0) and r2 (v1.1) are for CM13 and releases from r3 upwards for CM14.1 and Lineage OS.
Click to expand...
Click to collapse
Sources
https://github.com/NStep/android_kernel_motorola_msm8226/tree/cm-14.0-nx
Click to expand...
Click to collapse
Recommended settings in 2nd post.
Changelog in 3rd post.
Many thanks go to:
The CM Team
faux123
arter97
Hurtsky, Kaminari, pinkflozd, alinp, BryanByteZ
soniCron
...and the community for keeping alive a 3-year-old device :highfive:
Click to expand...
Click to collapse
If you would like to help or thank me, you might buy me a beer/coffe/coke to fuel the development.
XDA:DevDB Information
NxKernel, Kernel for the Moto G
Contributors
NxStep
Source Code: https://github.com/NStep/android_kernel_motorola_msm8226/tree/cm-14.0-nx
Kernel Special Features:
Version Information
Status: Stable
Current Stable Version: r4
Stable Release Date: 2017-01-03
Created 2016-10-21
Last Updated 2017-01-03
Recommended settings
I suggest Kernel Adiutor to edit the kernel settings. See attached screenshots for the details. The settings that cannot be seen on the pictures are untouched.
I've attached the two json files to import for the two custom controls in Kernel Adiutor, bluedroid_wakelock and USB_fast_charge. To be able to import directly just change the extensions to json.
*For CM13 only! Causes bootloop on CM14 for now.*
Also attached the frandom enabler script (20frandom) that is to be placed in system/etc/init.d wit the permission 0755. Make sure you remove the txt extension first!
Sorry for the extension messing, xda does not allow to upload json files or files without extension... I might move the files to my file host soon.
CPU governor tunables
*to be updated for CM14*
Optimized governor tunables based on soniCron's superb guide. It works with interactive and intelliactive as well and scales fine with overclocking enabled and disabled too.
Basically, it uses 4 optimal frequencies: 300MHz, 998MHz, 1190MHz and 1593MHz if OC enabled. It prevents the CPU jumping a lot between frequencies that do not provide enough performance for a given task. I managed to get 4-5 hours of screen on time with these settings.
Tunables are as following:
Code:
above_hispeed_delay: 20000 998400:60000
boost: 0
boostpulse_duration: 80000
go_hispeed_load: 75
hispeed_freq: 998400
io_is_busy: 1
min_sample_time: 40000
sampling_down_factor: 0
sync_freq: 0
target_loads: 98 384000:56 600000:31 787200:27 998400:82 1094400:9 1190400:95 1305600:3 1344000:4 1401600:7 1497600:6 1593600:85
timer_rate: 25000
timer_slack: 80000
two_phase_freq: 998400,998400,998400,998400
up_threshold_any_cpu_freq: 998400
up_threshold_any_cpu_load: 95
Changelog
r4 - 03.01.2017
merged latest CM14.1 kernel sources
update to latest prebuilt toolchain UBERTC 4.9 by mdalexca
added some additional patches, see Github
r3 - 25.11.2016
intial release for CM14.1
merged latest CM14.1 kernel sources
switched to "r" naming scheme
r2 - v1.1 - 11.11.2016
merged latest CM13 sources
r1 - v1.0 - 21.10.2016
initial release
Reserved another just in case.
NxStep said:
NxKernel
v1.0​
Created 2016-10-21
Last Updated 2016-10-21
Click to expand...
Click to collapse
Downloaded and installed a couple of hours ago.
Feels smooth and snappy. Have not encountered any glitches.
I'm running [7.0.0_r14]AOSP+OM
Thank you for bringing another kernel to this old device.
this kernel have multirom support?
thanks for your amazing work
Pretty nice idea man, I'll test it. Thanks for this kernel
Thank your for your feedback!
aldanopolis said:
this kernel have multirom support?
thanks for your amazing work
Click to expand...
Click to collapse
No, it doesn't. I haven't really examined this feature as I use only one ROM on my phone. But I might add it in the future if it is requested.
NxStep said:
Thank your for your feedback!
No, it doesn't. I haven't really examined this feature as I use only one ROM on my phone. But I might add it in the future if it is requested.
Click to expand...
Click to collapse
IMHO, As we have no kexec workaround in last version of multirom , this is not mandatory.
Any way to backup the stock kernel of Orion Os in case I find any issue with this kernel?
Guillosd said:
Any way to backup the stock kernel of Orion Os in case I find any issue with this kernel?
Click to expand...
Click to collapse
Use Flashify
It has the option to backup the current kernel and can also flash imgs, zips and stuff.
Good to see another kernel available for our old (but seemingly immortal?) phone. Best of luck to you!
Like Kamin4ri said thanks for the kernel i really hope that moto g be immortal best phone that i used for sure, good enough for what i need.
Would be great if it has dt2w...
Aayushya said:
Use Flashify
It has the option to backup the current kernel and can also flash imgs, zips and stuff.
Click to expand...
Click to collapse
nandroid restore would work as well ,right?
Hiraethic said:
nandroid restore would work as well ,right?
Click to expand...
Click to collapse
Yes
everything works awesome on aosp 7.0 by srisuriya
Skarni said:
Downloaded and installed a couple of hours ago.
Feels smooth and snappy. Have not encountered any glitches.
I'm running [7.0.0_r14]AOSP+OM
Thank you for bringing another kernel to this old device.
Click to expand...
Click to collapse
Did you change any settings in Kernel Auditor?
---------- Post added at 10:48 AM ---------- Previous post was at 10:46 AM ----------
NxStep said:
Recommended settings
~snip
[/CODE]
Click to expand...
Click to collapse
Those pictures on second post are recommended settings?
kamesh_kraken said:
Did you change any settings in Kernel Auditor?
---------- Post added at 10:48 AM ---------- Previous post was at 10:46 AM ----------
Those pictures on second post are recommended settings?
Click to expand...
Click to collapse
I did apply some of the settings from the pictures. I chose different scheduler and network TCP algorithm.
I do not have the paid version of Kernel Adiuitor, so I was not able to use the .json files.
Skarni said:
I did apply some of the settings from the pictures. I chose different scheduler and network TCP algorithm.
I do not have the paid version of Kernel Adiuitor, so I was not able to use the .json files.
Click to expand...
Click to collapse
Use a mod, kernel adiutor is open source

[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] [OC] IceCold Kernel R5 [4.4.153] [Pie Kernel Source based]

IceCold Kernel
IceCold Kernel is a basic kernel for whyred (Redmi Note 5) that contains some special features and aims for best balance between performance and battery.
Features included
- Rebased to pie kernel source and caf base
- Merged Latest CAF Tag
- Implemented EAS (EM by tytydraco)
- top-app stune boost hardcoded to 1
- NTFS support
- Timer tick rate 80Hz
- Many things added to power efficient workqueue
- Update TAS2557
- schedutil default governor
- Sound control
- More sound improvements
- DTS Support
- Anxiety default I/O scheduler
- HDR support
- Charging Limiter
- Night Charge
- Use lpm parameters of sdm845
- Rapid GC for f2fs
- Simple Thermal
- Only wake GPU when needed (not on touch)
- TCP improvements
- Per-Process reclaim
- Remove debugfs
- Nearly complete VLA free
- Remove inefficient frequencies
- Simple Low Memory Killer
- Enable Idle Dynticks
- Other under the hood stuff
How to install DTS Sound mod
Credits to the developer and "porter" of this awesome sound mod
Issues
U tell me (got no issues with it, pretty stable) ​
Support​
I only support Custom ROMs... It is working on MIUI but I won't fix issues for MIUI! (As example Kernelversion shows unavailable)
Also it's confirmed to work too on Mi6x (Wayne) but i won't support it officially because i don't own this device!​
Flashing​Make sure u backup ur current Kernel before flashing! I'm not taking responsibility for any damage!
If you installed a custom Kernel before please flash the boot.img of the currently installed ROM or dirty flash the ROM (I prefer dirty flashing)
Then just flash the zip file through TWRP...
And have fun with the full "IceCold Experience"
Download
Stable Builds
TestBuilds will be only available in Telegram Group!
If there are any questions, hints or something like that feel free to post them!
Or join Telegram Group
https://t.me/IceColdKernel
​
Credits:
srfarias - for the caf base
tytdraco- for his energy model
uvera - Helped implementing simple thermal
kerneltoast - for many improvements
kdrag0n - also many improvements
Information
IceCold Kernel for Redmi Note 5 Pro (aka whyred)
Contributors
lexx.ps (PrimoDev23)
Source Code: https://github.com/PrimoDev23/kernel_xiaomi_whyred
Version Information
Status: Stable Release
Created 2019-01-23
Last Updated 2019-06-26
I can confirm!!! The kernel is 100% working on mi 6x(Wayne) with F2FS.
Tnks..
ARNOB XENON said:
I can confirm!!! The kernel is 100% working on mi 6x(Wayne) with F2FS.
Tnks..
Click to expand...
Click to collapse
Ty for testing
Added the information in the thread
Can f2fs work with Xiaomi.eu or other miui roms?
kostas gp said:
Can f2fs work with Xiaomi.eu or other miui roms?
Click to expand...
Click to collapse
rom nees to support this as well as twrp and kernel.. theres one miui rom named Kosmos that supports f2fs
https://www.youtube.com/watch?v=x7RKyAd-scE
ARNOB XENON said:
I can confirm!!! The kernel is 100% working on mi 6x(Wayne) with F2FS.
Tnks..
Click to expand...
Click to collapse
W8 xd
How could u test? Anykernel will not install on wayne, it will cancel...
I didn't made the installer script compatible with wayne yet
Edit: Uploaded a stable version with some patches i've got working, should be smooth.
Also added wayne in the installer script so wayne users can flash it!
Keep in mind I don't officially support it
Good that you decided to start your own topic!
raptorddd said:
rom nees to support this as well as twrp and kernel.. theres one miui rom named Kosmos that supports f2fs
https://www.youtube.com/watch?v=x7RKyAd-scE
Click to expand...
Click to collapse
Thanks for answering
lexx.ps said:
W8 xd
How could u test? Anykernel will not install on wayne, it will cancel...
I didn't made the installer script compatible with wayne yet
Edit: Uploaded a stable version with some patches i've got working, should be smooth.
Also added wayne in the installer script so wayne users can flash it!
Keep in mind I don't officially support it
Click to expand...
Click to collapse
wired problem on wayne after reboot audio port is not working
ARNOB XENON said:
wired problem on wayne after reboot audio port is not working
Click to expand...
Click to collapse
As I mentioned I don't support this device. Try wiping cache and dalvik.
Reboot again won't fix?
Normal audio working?
BT-Audio working?
Otherwise I can't help u because i only have whyred and not wayne.
lexx.ps said:
As I mentioned I don't support this device. Try wiping cache and dalvik.
Reboot again won't fix?
Normal audio working?
BT-Audio working?
Otherwise I can't help u because i only have whyred and not wayne.
Click to expand...
Click to collapse
From 1st boot every thing works all audio after a reboot only headphone is not detecting.
ARNOB XENON said:
From 1st boot every thing works all audio after a reboot only headphone is not detecting.
Click to expand...
Click to collapse
Tried wiping caches?
I think it won't help but it's worth a try i think, else u have to switch kernel (eventually I will find a fix for it later)
Awesome kernel. Smooth for pubg..
alvinrs said:
Awesome kernel. Smooth for pubg..
Click to expand...
Click to collapse
It really is? Heard it has some issues on pubg
Edit: Should work, working on an update and trying some things
lexx.ps said:
Thanks for answering
Click to expand...
Click to collapse
is fsync enabled or disabled .?
raptorddd said:
is fsync enabled or disabled .?
Click to expand...
Click to collapse
Should be enabled, not sure but find it no where in config
Updated some Informations in OP!
thx for your work, there is no way to apply some configs on cpu section - kernel auditor?
EDIT: Nevermind, I was trying to change the settings on the schedutil governor.
Keep the good work, thx!
Is it this undervolt kernel stable ? I mean will it cause data loss (bootloop) or Sleep Of Death ? Thanks
Ale uto said:
Is it this undervolt kernel stable ? I mean will it cause data loss (bootloop) or Sleep Of Death ? Thanks
Click to expand...
Click to collapse
No it's fine, using it myself and never got bootloop or any problem with it

Shh.. good game

GG
Reserved
GG
Stuck on boot logo.
naveediftikhar said:
Stuck on boot logo.
Click to expand...
Click to collapse
Mention rom
not boot on miuipro ,stuck on splash screen
xdarkstar said:
Mention rom
Click to expand...
Click to collapse
Xiaomu.eu..
MIUI - WIP, read before posting.
flashed the kernel on HAVOC 2.2 622019 build
booted and working so far so good!
will check
1. sound mods in mixerpath over this kernel since there is NO SOUND CONTROL in Kernel Auditor
2. battery performance
3. whatsapp and voice call random reboots (found in oreo )
Anyone try it on pixel experience rom?
alreadyregistered said:
MIUI - WIP, read before posting.
Click to expand...
Click to collapse
Wip listing went on after we reported.
Pixel experience
matane said:
Anyone try it on pixel experience rom?
Click to expand...
Click to collapse
if it works, but I just built an unofficial build with the latest jhenrique changes, in addition to adding the pre-installed kernel, also has the Thermal Hal of Miui on the device tree, which has much better temperature control, if you want I can share the link
Good kernel thx
R3 it's OUT!
New build it's UP!
R3 changelog:
* Miui support
* Pm/devfreq fixes
* Q6dspv2 patches
* Westwood tcp enabled
* SoundControl
* A lot of CFQ improvements and fixes
* DTS support
* Now power efficient wq can be enabled (disabled by default)
* Implement power efficient wq on subsystem (wifi, display, thermal, sound and others)
* Some caf patches
* Other things (fixes/improvements)
Click to expand...
Click to collapse
Download link on first post!
R3 works.. boots at least.. nice work.. will test and report.. btw i flashed my stock boot img before flashing the kernel from insignuix.. not that itll help but tried to keep all ends under control. Can u tell me how to enable power efficient wq?
naveediftikhar said:
R3 works.. boots at least.. nice work.. will test and report.. btw i flashed my stock boot img before flashing the kernel from insignuix.. not that itll help but tried to keep all ends under control. Can u tell me how to enable power efficient wq?
Click to expand...
Click to collapse
Enable it with Kernel Adiutor on CPU tab, search for "Schedule workqueues on awake CPUs........"
Nice battery and lightning fast. This and insigniux are my favourite kernels.
One of best kernels
Simple,smooth,battery good,no otg bug which was on derp.
Me testing as you know in btlg and prolly will release update with your Kernel :laugh:
Adi5 said:
One of best kernels
Simple,smooth,battery good,no otg bug which was on derp.
Me testing as you know in btlg and prolly will release update with your Kernel :laugh:
Click to expand...
Click to collapse
Working? What about betery backup???
Ok just an early single day review..
Good battery life
Snappy
Sound is a bit low but that could be me.
No crashes as yet.
This kernel is seriously underrated, great performance and battery life, no stability issues I found yet

Categories

Resources