[KERNEL][E6653/E6633/E6683] Zach's Kernel Playground for Z5, WIP (work in progress)

Search This thread

zacharias.maladroit

Recognized Developer
2021 September update:

Since I've been getting requests lately due to Google's updated Google Drive policy - here's the updated share link for the Z5 kernels


Final notice: Since my Z5 died (it's broken into pieces, glass shattered) - development is effectively halted - NO more updates - sorry

This is a Stock (Sony) ROM Kernel and WILL NOT work on AOSP, CM, etc.

aka SunKernel for Z5 + Z5 Dual - Stock ROM (for now only stock)


Alright guys,

this is my intermediate result on working on the Kernel for the Z5 (e6653, sumire), which I'm currently using

There's now also a Kernel for the dsds (Dual Slot/Sim) Version (E6633/E6683), but I can't test if it works due to lack of that very device - Enjoy !


Keep in mind that building for the Z5 "Stock" ROMs and "Stock" Kernels, you're constantly facing the following tradeoff:

  • compatibility with pre-built "core" kernel modules (e.g. texfat [proprietary exfat microSD fs driver])
  • compatibility with pre-built "goodies" kernel modules (e.g. video and other acceleration, hwcodecs, ...)
  • losing features that can NOT be replaced by similar ones (e.g. ecryptfs, wlan, exfat, etc.)
  • when going too far the device doesn't boot or simply hangs on bootanimation

this resulted in a couple branches (at least several dozen) that are partially or totally broken :silly:

[snip]
...
[snip]





More info on the Latest Kernel can be usually found at:

AT the end of the thread

( I KNOW - I should have reserved a few posts for better overview :( )

---------------------------------------------------------------------------------

[Download] How to get the current ("corona", 5.11) Kernel(s) - Step by Step:


1)
Choose your device from one of the 4 folders

Z5 + Z5 Dual:

Z5 Compact: https://drive.google.com/open?id=0BykGGWB96CBQVE0tb2dieTZMXzg
Z5 Prem + Z5 Prem Dual: https://drive.google.com/open?id=0BykGGWB96CBQaVZTdnF5QnVTMU0
Z4/Z3+ + Z4/Z3+ Dual: https://drive.google.com/open?id=0BykGGWB96CBQa2xBdHR5TzlrNUE

2)
At the upper right, click on "List View"

3)
At the top of the table, there are 3 labels (name, owner, [last] modified, File size)

click on "Last modified", the newest Kernels should be shown either at the top, or at the bottom

4)
Download the latest Kernel

5)
???

6)
Profit !




All other features, things should work - no guarantees


Before starting to test/use keep in mind that this is WIP (work in progress),

that means - NO guarantees,

backups before flashing are a MUST (especially your microSD card content !)

stability, speed, improved battery and satisfaction are a great side-effect to have.

You have been WARNED !


Enjoy ! :)


Obligatory Source:
(according to the rules in single commits no giant blobs, authorship kept)

https://github.com/zachariasmaladroit/android_kernel_sony_msm8994_kitakami_r2/branches


Mentions/Kudos:

@AndroPlus thanks for your great kernel base and support for all of the Sony Xperia devices - you definitely are a Sensei in that area ! :cool:
@Tommy-Geenexus another Sensei on the Xperia devices :)
@auras76 Thanks for your great ROM + Kernel !
@Adi Shakthi You are da man ! God's Kernel - there's truly no kernel like it ! @faux123 thanks for intelli_plug and Dynamic Fsync and all the other goodies - they are awesome ! :victory: @neobuddy89 Your kernels really inspire that there is more to be achieved :cowboy: @Cl3Kener @flar2 @DespairFactor @Imoseyon @showp1984 @myfluxi @savoca @franciscofranco @dorimanx @arter97 @ak @eng.stk You (and all other devs I might have forgotten) truly push progress forward ! :)
Linus Torvalds - you started it all !
Richard Stallman - thanks for your "viral" license and GNU :D
Linux Kernel Devs , Linux Foundation
Google , Android @jerpelea @kholk The masters of the Sony Sauce :D @Grarak for Kernel Adiutor - for such a fine Kernel Command Center :D
@caspase for AppOpsXposed
@rovo89 for XPosed
@oasisfeng for Greenify
 
Last edited:

albertobom

Senior Member
Apr 7, 2011
2,490
704
40
Esquinzo
Testing right now.
Thanks my friend. ?

Enviado desde mi E6653 mediante Tapatalk

---------- Post added at 03:01 AM ---------- Previous post was at 02:56 AM ----------

Just reporting...
Lost access to my 64 Gb micro sdcard

Enviado desde mi E6653 mediante Tapatalk
 

Tommy-Geenexus

Senior Member
Apr 30, 2013
2,769
2,576
I live on a Stone Hill.
upcoming:
  • Faux Sound Control for TomTom codec on WCD9330 ( someone can take a look whether the settings are correct for our device ? )

https://github.com/Tommy-Geenexus/android_kernel_sony_msm8994_suzuran_5.x/commit/be36a1e704207a10865d179c5425222bb526c2c1

This driver works on all Z4/Z5 variants. It is less bloated and safer than "Faux-Sound".

That said, i see no real for Sound Control to exist. There seem to be some issues with registers not properly resetting.
My only motivation of writing this was a partially broken headset.
 
  • Like
Reactions: zacharias.maladroit

zacharias.maladroit

Recognized Developer
Testing right now.
Thanks my friend.

Enviado desde mi E6653 mediante Tapatalk

---------- Post added at 03:01 AM ---------- Previous post was at 02:56 AM ----------

Just reporting...
Lost access to my 64 Gb micro sdcard

Enviado desde mi E6653 mediante Tapatalk

Thanks for your feedback,

that was to be expected though,

you get me an idea how to get about with the next iteration - hopefully then it should work.

How did you format your microSD card ?

Through the phone ? So the format must have been extfat ( then the missing textfat driver explain why it stopped to work, although the vfat or at least exfat driver should work, too )

Did you get a "SDcard corrupted" error ? I got it in the past but that was probably related to excessive flashing ;)

Thanks !

Is there undervolting in this?

Of course, its base is AndroPlus Kernel,

this is more like of a playground to test out what works or doesn't with "Stock" Kernel Base - most of this (or ALL) works on the AOSP Kernel ;)

https://github.com/Tommy-Geenexus/android_kernel_sony_msm8994_suzuran_5.x/commit/be36a1e704207a10865d179c5425222bb526c2c1

This driver works on all Z4/Z5 variants. It is less bloated and safer than "Faux-Sound".

That said, i see no real for Sound Control to exist. There seem to be some issues with registers not properly resetting.
My only motivation of writing this was a partially broken headset.

Thanks @Tommy-Geenexus no offense or hard feelings against your Sound Control driver,

I love its clean and slim approach ! :cool:

the issue in the past when I tried it was that there was no GUI capable to drive it - when there's sound control I need a "live" - on-the-fly adaptation capability when doing changes to see how it affects output

(well, with mic, not so much)

Do you know of an app that supports that interface ? I'd be forever grateful :)

Thanks !
 
Last edited:
  • Like
Reactions: kadimatik

albertobom

Senior Member
Apr 7, 2011
2,490
704
40
Esquinzo
I format my sdcard via phone.
Yes I get sdcard corrupted.
Also my sdcard is brand new. ?

Enviado desde mi E6653 mediante Tapatalk
 

zacharias.maladroit

Recognized Developer
You could do a pull-request for kernel adiutor. I'm not sure if hex input is supported, but you can turn all hex vals into decimals. Then it would be fairly easy.

I'll take a look - thanks :)

I format my sdcard via phone.
Yes I get sdcard corrupted.
Also my sdcard is brand new.

Enviado desde mi E6653 mediante Tapatalk

ugh - my bad,

that's some stupid error-handling - when the driver is gone or replaced with vfat, there must be no corruption

Hope the data is nevertheless intact (backups !),

I flashed A LOT of times during migration to AOSP and building it & testing kernels - so I had thought that the driver issues caused that corruption

Thanks
 
Last edited:
  • Like
Reactions: albertobom

zacharias.maladroit

Recognized Developer
Okay,

here is one additional Kernel (v20_9-X_preview):

one-additional feature per branch (for the first 3 three below)

Z5_Sunkernel_Permissive_v20_9-VI_pluggin-only_ALL-OK.zip (Hotplug framework)

Z5_Sunkernel_Permissive_v20_9-IV_zram+lz4_ALL_OK.zip (zram + lz4)

Z5_Sunkernel_Permissive_v20_9-III_frandom+ext4_ALL_OK.zip (frandom + no entropy depletion with ext4)


Z5_Sunkernel_Permissive_v20_9-X_preview_ALL-OK.zip (camera fixes, DSP fixes, frandom, zram+lz4, hotplug, clearpad fix)


The Kernel features the following:

  • Dynamic Fsync ( @faux123 )
  • qdspv6v2 general improvements
  • Sound: 320K AAC encoding support (from 192 kbit, thanks to @auras76 )
  • wcd9330 (sound) fixed 24bit support (haven't tested due to lack of audios in that format)
  • improved and fixed lpm (low power mode)
  • frandom ( @Imoseyon and others ) + ext4 fixes to prevent entropy depletion
  • general fixes and improvements to the memory subsystem and others
  • optimized KSM (kernel samepage merging)
  • Camera fixes & improvements (might make it more reliable and faster to react)
  • scheduler improvements (picked by @auras76 )
  • hotplug framework
  • intelli_plug 4.0 by @faux123
  • "Bricked Hotplug" by showp1984
  • MSM Hotplug @neobuddy89
  • cpu-boost improvements ( @neobuddy89 )
  • MSM Limiter ( @neobuddy89 )
  • reduced wakelocks for the Modem
  • cpu-boost in charge of cpu scaling ( no mpdecision, thanks @neobuddy89 )
  • some general scheduling improvements
  • ext4 and writeback speed tweaks and stability improvements
  • kthread fixes - improved reliability in case of OOM (related to LMK)
  • clearpad (touchpad) potential FIX - answering phonecalls when dt2w (double-tap-to-wake) is enabled, but suspended and the driver confused, works again

Use-cases:

  • 20_9-VI_pluggin: Hotplug, you know you want it ;)
  • 20_9-IV: zram+lz4 - for those who have countless apps running and e.g. use the Shallow Hibernation feature from Greenify), set swappiness to 90 and see what happens
  • 20_9-III: could be an improvement for those with system encryption or use-cases that need more entropy fast
  • 20_9-X_preview: ALL of the Above combined


texfat and ecryptfs drivers work - no modules report

"disagrees about symbol",

except core_ctl , which is intentional (MPDecision replaced by CPU-Boost handling)


Feedback:

- stability (crash ?)
- smoothness (some hotplug mechanisms are less smooth - I know, but battery should be better)
- increased, improved usability (e.g. with zram) with much more apps running flawless
- 20_9-X_preview: how do all the features interact, is it stable ? smooth (depending on settings) ? multi-tasking ?

...

Enjoy !



ninja edit:

removed all the kernel builds, re-compiling with (re-added) upstream fixes from AndroPlus

will only upload 20_9-X_preview

ninja edit.


Kernel Sauce:

Sun-Kernel_32.1.A.0.xxx_AP-mod-v20_9-X



Once I get enough features working flawless in combination - the next step is to combine all into one terrific kernel - like, e.g. God's Kernel :)
 

Attachments

  • Z5_Sunkernel_Permissive_v20_9-X_preview_ALL_OK.zip
    18.3 MB · Views: 1,078
Last edited:

albertobom

Senior Member
Apr 7, 2011
2,490
704
40
Esquinzo
Okay,

here is one additional Kernel (v20_9-X_preview):

one-additional feature per branch (for the first 3 three below)

Z5_Sunkernel_Permissive_v20_9-VI_pluggin-only_ALL-OK.zip (Hotplug framework)

Z5_Sunkernel_Permissive_v20_9-IV_zram+lz4_ALL_OK.zip (zram + lz4)

Z5_Sunkernel_Permissive_v20_9-III_frandom+ext4_ALL_OK.zip (frandom + no entropy depletion with ext4)


Z5_Sunkernel_Permissive_v20_9-X_preview_ALL-OK.zip (camera fixes, DSP fixes, frandom, zram+lz4, hotplug, clearpad fix)


The Kernel features the following:

  • Dynamic Fsync ( @faux123 )
  • qdspv6v2 general improvements
  • Sound: 320K AAC encoding support (from 192 kbit, thanks to @auras76 )
  • wcd9330 (sound) fixed 24bit support (haven't tested due to lack of audios in that format)
  • improved and fixed lpm (low power mode)
  • frandom ( @Imoseyon and others ) + ext4 fixes to prevent entropy depletion
  • general fixes and improvements to the memory subsystem and others
  • optimized KSM (kernel samepage merging)
  • Camera fixes & improvements (might make it more reliable and faster to react)
  • scheduler improvements (picked by @auras76 )
  • hotplug framework
  • intelli_plug 4.0 by @faux123
  • "Bricked Hotplug" by showp1984
  • MSM Hotplug @neobuddy89
  • cpu-boost improvements ( @neobuddy89 )
  • MSM Limiter ( @neobuddy89 )
  • reduced wakelocks for the Modem
  • cpu-boost in charge of cpu scaling ( no mpdecision, thanks @neobuddy89 )
  • some general scheduling improvements
  • ext4 and writeback speed tweaks and stability improvements
  • kthread fixes - improved reliability in case of OOM (related to LMK)
  • clearpad (touchpad) potential FIX - answering phonecalls when dt2w (double-tap-to-wake) is enabled, but suspended and the driver confused, works again

Use-cases:

  • 20_9-VI_pluggin: Hotplug, you know you want it ;)
  • 20_9-IV: zram+lz4 - for those who have countless apps running and e.g. use the Shallow Hibernation feature from Greenify), set swappiness to 90 and see what happens
  • 20_9-III: could be an improvement for those with system encryption or use-cases that need more entropy fast
  • 20_9-X_preview: ALL of the Above combined


texfat and ecryptfs drivers work - no modules report

"disagrees about symbol",

except core_ctl , which is intentional (MPDecision replaced by CPU-Boost handling)


Feedback:

- stability (crash ?)
- smoothness (some hotplug mechanisms are less smooth - I know, but battery should be better)
- increased, improved usability (e.g. with zram) with much more apps running flawless
- 20_9-X_preview: how do all the features interact, is it stable ? smooth (depending on settings) ? multi-tasking ?

...

Enjoy !



ninja edit:

removed all the kernel builds, re-compiling with (re-added) upstream fixes from AndroPlus

will only upload 20_9-X_preview

ninja edit.


Kernel Sauce:

Sun-Kernel_32.1.A.0.xxx_AP-mod-v20_9-X



Once I get enough features working flawless in combination - the next step is to combine all into one terrific kernel - like, e.g. God's Kernel :)
Dear zacharias.maladroit is possible to make a thread how to tuning a kernel properly?

Enviado desde mi E6653 mediante Tapatalk

---------- Post added at 10:22 PM ---------- Previous post was at 09:59 PM ----------

Apparently xreality stop working. ?

Enviado desde mi E6653 mediante Tapatalk
 
  • Like
Reactions: zacharias.maladroit

zacharias.maladroit

Recognized Developer
Dear zacharias.maladroit is possible to make a thread how to tuning a kernel properly?

Enviado desde mi E6653 mediante Tapatalk

---------- Post added at 10:22 PM ---------- Previous post was at 09:59 PM ----------

Apparently xreality stop working.

Enviado desde mi E6653 mediante Tapatalk

First part:

I've still too little experience and information on this kernel to really efficiently tweak it,

but will soon post a few preliminary settings to either get a good balance of a battery vs. performance

and runtime & running cool



Hm, thanks for the report,

the preview under settings doesn't show a change anymore once it's switched on or off ?

I still can see a difference,

only with the Video Player I also noticed some kind of change,

perhaps I'm used to 4K videos too much - so I'm over-reacting a bit to HD or lower res videos ;)


This works with AndroPlus v20 and v21, right ?
 
  • Like
Reactions: albertobom

goRt

Senior Member
Mar 19, 2007
960
205
Nexus 7 (2013)
OnePlus 8
Dear zacharias.maladroit is possible to make a thread how to tuning a kernel properly?

Enviado desde mi E6653 mediante Tapatalk

---------- Post added at 10:22 PM ---------- Previous post was at 09:59 PM ----------

Apparently xreality stop working. ?

Enviado desde mi E6653 mediante Tapatalk
There's no reason to keep copying the whole post when it doesn't relate to your question.
Some of us try to read this on our phone!

Sent from my E6653 using Tapatalk
 
  • Like
Reactions: zacharias.maladroit

albertobom

Senior Member
Apr 7, 2011
2,490
704
40
Esquinzo
Sorry about that guys.
Apparently the xreality problem is due to rom booster app. Nothing to due with your kernel at all. Everything is fine. ?

Enviado desde mi E6653 mediante Tapatalk
 
  • Like
Reactions: zacharias.maladroit

_LLJY

Senior Member
Jun 28, 2015
2,448
3,039
Singapore
This kernel is stable, has eh ish battery life(could do better), has excellent thermals(when undervolted to -355mv) but overall I would say great job but how do I use the sound control I'm the kernel?
 
  • Like
Reactions: zacharias.maladroit

zacharias.maladroit

Recognized Developer
This kernel is stable, has eh ish battery life(could do better), has excellent thermals(when undervolted to -355mv) but overall I would say great job but how do I use the sound control I'm the kernel?

Thanks for the feedback !

So, hm - is that battery life worse than with AndroPlus v21 ?

I assumed something like that but wasn't sure - perhaps the hotplugging is draining battery, :(

the best option would be to use CPUQUIET Hotplug Framework with runnable governor - which I also successfully ported, but something wasn't working fine with the "Stock" (Sony's) ROM

What are your settings for Hotplugging ? What is your governor ?

Sound Control isn't implemented yet (not in kernel right now), I'll use Tommy-Geenexus 's TomTom Sound Control in the future, so you'll have to set the values via terminal or script until support for it is included in Kernel Adiutor ("helper") or other tools
 

_LLJY

Senior Member
Jun 28, 2015
2,448
3,039
Singapore
Thanks for the feedback !

So, hm - is that battery life worse than with AndroPlus v21 ?

I assumed something like that but wasn't sure - perhaps the hotplugging is draining battery, :(

the best option would be to use CPUQUIET Hotplug Framework with runnable governor - which I also successfully ported, but something wasn't working fine with the "Stock" (Sony's) ROM

What are your settings for Hotplugging ? What is your governor ?

Sound Control isn't implemented yet (not in kernel right now), I'll use Tommy-Geenexus 's TomTom Sound Control in the future, so you'll have to set the values via terminal or script until support for it is included in Kernel Adiutor ("helper") or other tools
Yes the battery life is worse than AndroPlus kernel (I only enabled intelliplug)
 

zacharias.maladroit

Recognized Developer
Yes the battery life is worse than AndroPlus kernel (I only enabled intelliplug)

On hindsight I believe it really comes down to configuration and usage of wakelock blockers and aggressive Doze,

agreed that it might consume more battery during operation (and offer more performance) - but there are also improvements for LPM (low power mode) that should really cut down

the battery consumption when the device is really able to sleep.

It's much harder to cut down the garbage on Sony's ROM compared to AOSP as a base where almost no additional cruft is running,

but it might (possibly) be achievable,

I've it currently down to 2% in 4 hours idle in Airplane - 0.5% per hour.

Main tools used are:

- Greenify ("boosted" with XPosed) and "Aggressive Doze"
- Amplify with pretty default settings
- AppOpsXposed with Wakelock ( "keep awake" disabled for most apps (section device) that are at the top (recently requested) - such as Camera, Google Play*, and a bunch more)
- Titanium Backup (freezing com.sonymobile.anonydata and devicemonitor, Service Menu and some more - since those also consume some battery)

AndroidSystem is at the top of consumers keeping the phone awake/using battery under GSam Battery,

but I'm a little hesitant right now to disable the "Keep awake" functionality if the phone stops to work properly :p


edit:

Go away forum quotation function ! You're drunk !
 
  • Like
Reactions: amprich

Top Liked Posts

  • There are no posts matching your filters.
  • 45
    2021 September update:

    Since I've been getting requests lately due to Google's updated Google Drive policy - here's the updated share link for the Z5 kernels


    Final notice: Since my Z5 died (it's broken into pieces, glass shattered) - development is effectively halted - NO more updates - sorry

    This is a Stock (Sony) ROM Kernel and WILL NOT work on AOSP, CM, etc.

    aka SunKernel for Z5 + Z5 Dual - Stock ROM (for now only stock)


    Alright guys,

    this is my intermediate result on working on the Kernel for the Z5 (e6653, sumire), which I'm currently using

    There's now also a Kernel for the dsds (Dual Slot/Sim) Version (E6633/E6683), but I can't test if it works due to lack of that very device - Enjoy !


    Keep in mind that building for the Z5 "Stock" ROMs and "Stock" Kernels, you're constantly facing the following tradeoff:

    • compatibility with pre-built "core" kernel modules (e.g. texfat [proprietary exfat microSD fs driver])
    • compatibility with pre-built "goodies" kernel modules (e.g. video and other acceleration, hwcodecs, ...)
    • losing features that can NOT be replaced by similar ones (e.g. ecryptfs, wlan, exfat, etc.)
    • when going too far the device doesn't boot or simply hangs on bootanimation

    this resulted in a couple branches (at least several dozen) that are partially or totally broken :silly:

    [snip]
    ...
    [snip]





    More info on the Latest Kernel can be usually found at:

    AT the end of the thread

    ( I KNOW - I should have reserved a few posts for better overview :( )

    ---------------------------------------------------------------------------------

    [Download] How to get the current ("corona", 5.11) Kernel(s) - Step by Step:


    1)
    Choose your device from one of the 4 folders

    Z5 + Z5 Dual:

    Z5 Compact: https://drive.google.com/open?id=0BykGGWB96CBQVE0tb2dieTZMXzg
    Z5 Prem + Z5 Prem Dual: https://drive.google.com/open?id=0BykGGWB96CBQaVZTdnF5QnVTMU0
    Z4/Z3+ + Z4/Z3+ Dual: https://drive.google.com/open?id=0BykGGWB96CBQa2xBdHR5TzlrNUE

    2)
    At the upper right, click on "List View"

    3)
    At the top of the table, there are 3 labels (name, owner, [last] modified, File size)

    click on "Last modified", the newest Kernels should be shown either at the top, or at the bottom

    4)
    Download the latest Kernel

    5)
    ???

    6)
    Profit !




    All other features, things should work - no guarantees


    Before starting to test/use keep in mind that this is WIP (work in progress),

    that means - NO guarantees,

    backups before flashing are a MUST (especially your microSD card content !)

    stability, speed, improved battery and satisfaction are a great side-effect to have.

    You have been WARNED !


    Enjoy ! :)


    Obligatory Source:
    (according to the rules in single commits no giant blobs, authorship kept)

    https://github.com/zachariasmaladroit/android_kernel_sony_msm8994_kitakami_r2/branches


    Mentions/Kudos:

    @AndroPlus thanks for your great kernel base and support for all of the Sony Xperia devices - you definitely are a Sensei in that area ! :cool:
    @Tommy-Geenexus another Sensei on the Xperia devices :)
    @auras76 Thanks for your great ROM + Kernel !
    @Adi Shakthi You are da man ! God's Kernel - there's truly no kernel like it ! @faux123 thanks for intelli_plug and Dynamic Fsync and all the other goodies - they are awesome ! :victory: @neobuddy89 Your kernels really inspire that there is more to be achieved :cowboy: @Cl3Kener @flar2 @DespairFactor @Imoseyon @showp1984 @myfluxi @savoca @franciscofranco @dorimanx @arter97 @ak @eng.stk You (and all other devs I might have forgotten) truly push progress forward ! :)
    Linus Torvalds - you started it all !
    Richard Stallman - thanks for your "viral" license and GNU :D
    Linux Kernel Devs , Linux Foundation
    Google , Android @jerpelea @kholk The masters of the Sony Sauce :D @Grarak for Kernel Adiutor - for such a fine Kernel Command Center :D
    @caspase for AppOpsXposed
    @rovo89 for XPosed
    @oasisfeng for Greenify
    11
    Download

    Z5 (sumire): https://drive.google.com/open?id=0BykGGWB96CBQQy05VURLbzJTZlU

    305_corona_III.1_9_12_5_2_ctl_X
    253_corona_III.1_9_4_2 ["stable" branch]

    This is an interim build which could/should solve several problems

    Changes:
    305_corona_III.1_9_12_5_2_ctl_X
    - msm: thermal: load scaling was reverted (this should make thermal behavior less erratic and more predictable)
    - much faster /proc/vmstat (mostly used in Kernel Adiutor first tab & others)
    - random: 64 & 128 default values restored
    - CVE-2016-5696 fix re-added since random depletion now seems to be avoided, no slower down anymore during longer usage (?)
    - slim-msm: sleep while device-timeout (better battery savings, more reliable operation)
    - GPU: disable POPP [Power Optimizer Push-Pop] - unfortunately too laggy
    - GPU: re-add conversion of some workqueues to kthreads, now it doesn't cause micro-lags anymore
    - revert: asynchronous resume threads (potentially unstable)
    - TONs of fixes (i2c, ion, crypto, camera, sound processing, bluetooth [?], tcp, block, hid, ipa, mdss, evdev, memcg, memory-hotplug, ipv6, spmi, smd, cpuidle, usb)
    - sps: fix kernel panic (fix hang/reboot/not waking up from sleep)
    - block: make it possible to delete files again that previously were impossible to be deleted
    - sched: fix task-priority when using SCHED_RESET_ON_FORK
    - add branch instruction count (potentially significantly better performance)
    - power: qpnp-fg: use powerefficient workqueues (potentially MUCH LESS battery consumption)
    - soc: qcom: bam_dmux: fast-shutdown flag [supported ?], (potentially much faster shutdown of modem and MUCH more energy savings)
    - arm64 optimized variant of crc32: 30-450% speed improvement [EXPERIMENTAL, might break encrypted phone function], could speed up the phone in certain areas A LOT
    - input: make volume keys work while device is in sleep-mode since starting with MM that might not work anymore


    253_corona_III.1_9_4_2
    - 253_corona_III.1_9_4 based (supposedly more stable kernel)
    - make Safetynet work
    - fix DirtyCOW: preventing others (non-authorized users/apps) from obtaining root privileges
    - fuse: fix infinite loop (mostly for (t)exfat microSD exfat driver and all others being bound/mounted via fuse)
    - workqueue: allow rescuer thread to do more work

    Notice

    Android dev is happening as time/resources permit


    Notes

    battery life said:
    This kernel is giving me horizontal standby lines after usage & while in Airplane mode,

    this means: most of the kernel-side issues relating to battery efficiency and wakelocks should be fixed. (why wasn't it like that out of the box ? :confused: )


    If your device doesn't go to sleep it's due to wakelocks, alarms and services keep it awake

    If you cannot find the latest kernels change to List View and Sort by Date/Recently Changed


    Kudos

    to @androidexpert35 for the heavy testing :)
    10
    New Kernels are UP ! (5.11_corona_III.1_9_12_8_2_ctl_X)


    Stability Hotfix (thermal-engine, cpuidle crash) [TESTING] )


    Commit-based form of changelog:


    Code:
    git log --pretty=oneline a1a44f5809da69a742f11d734b506d5928fddbad..HEAD
    
    9ddbefd9f3deacf57fa18e7459a1106aafddb6a7 localversion
    7eb6328eced607ea21d7c584120a7666fe3a4fbf Revert "cpuidle: don't disable cpuidle when entering suspend"
    612e33421681b586be3ce1db9b2b4dc5eec474f6 Revert "msm: thermal: Use phandle to input the cluster cpu map"
    5b37bef7b713ab0743a30546799b49b1d8a01624 Revert "msm: thermal: Use CPU phandles instead of cpu mask in KTM"
    e9d3ef69478e5bc7b8c74d7572358fbd4f16f75f Revert "msm: thermal: Fix KTM code to check psm is enabled before handling it"
    67142189e4a6c74f0caa5a402326d6a72dbdda46 Revert "msm: thermal: Update scm calls in KTM with non-atomic calls"
    7d38d566cc6e150f79531b82d4aafafcfbe9501a Revert "msm: thermal: Retry on failure to hotplug"
    35096150dc7152a172f15d458d7521c103c0069d Revert "msm: thermal: Fix sensor number printed during thermal WD bite"
    5b2b2431b5b6678058d88decd207589d099406f0 Revert "msm: thermal: Add support to read KTM thermal configuration"
    3fb901ba3ca1eb3448393b4d8fce77175b997a31 Revert "msm: thermal: Add support to disable KTM mitigation via debugfs"
    57fdf696e27ccc661d656b7393cec4befdd4586b Revert "msm: thermal: Add kernel boot command to disable KTM"
    d6bcad0c60eca12573623b1c41c24de159892b6a Revert "msm: thermal: Support new DT properties to disable KTM feature"
    db05b93b8d99151942e93c8103b42ebba539243a Revert "msm: thermal: Fix zone id to tsens map lookup"
    cba81424857e4e23af319b8fa17e482733be6e5b Revert "msm: thermal: Register for panic notifier on successful probe"
    3a75678e662179d731a4120b247365c9be0febd0 Revert "msm: thermal: Add support for sending CPR temperature band"
    d70e6d54846095dc2ce761d3d2ddf7598b573551 Revert "msm: thermal: Add support for Cx restriction at low temperature"
    e86b2def1655028adcd89c77610ae3a0b179366e Revert "msm: thermal: Add support for bandwidth limit(BWLM) feature"
    5aac40ff08fe27b64ed4d219a1166a2f8d3a2921 Revert "msm: thermal: Configure core sensor id on emergency frequency init"




    Human readable form of changelog:



    Changes since 5.11_corona_III.1_9_12_8_ctl_X
    update to 5.11_corona_III.1_9_12_8_2_ctl_X


    Reverting "msm: thermal" ("thermal engine") changes that allowed userspace access to thermal engine behavior [might have caused instabilities]
    Reverting "cpuidle: don't disable cpuidle when entering suspend"



    [Download] How to get the Kernel(s) - Step by Step:


    1)
    Choose your device from one of the 4 folders

    Z5 + Z5 Dual: https://drive.google.com/open?id=0BykGGWB96CBQQy05VURLbzJTZlU
    Z5 Compact: https://drive.google.com/open?id=0BykGGWB96CBQVE0tb2dieTZMXzg
    Z5 Prem + Z5 Prem Dual: https://drive.google.com/open?id=0BykGGWB96CBQaVZTdnF5QnVTMU0
    Z4/Z3+ + Z4/Z3+ Dual: https://drive.google.com/open?id=0BykGGWB96CBQa2xBdHR5TzlrNUE

    2)
    At the upper right, click on "List View"

    3)
    At the top of the table, there are 3 labels (name, owner, [last] modified, File size)

    click on "Last modified", the newest Kernels should be shown either at the top, or at the bottom

    4)
    Download the latest Kernel

    5)
    ???

    6)
    Profit !


    Important Notes:

    Do NOT restore previous settings of Kernel Adiutor, Kernel Adiutor Mod, EX Kernel Manager, etc.

    since that might lead to crash of thermal engine !

    Also do NOT use BOTH core control + temperature throttle for "Thermal / Thermal Engine"

    Enjoy ! :)
    9
    Download, AndroidFileHost :

    224 Kernel

    SunKernel_for_Z5 224_I.1_2_12

    253 Kernel

    SunKernel_for_Z5 253_I.1_2_12


    224_I.1_2_12 Changelog said:
    Changelog:

    • ramdisk change/bump to AndroPlus v33 (224 kernel)
    • ramdisk change/bump to AndroPlus v33 (253 kernel)
    • (due to unknown errors/reasons the process AndroPlus uses to create and modify his ramdisk appears to work better, thus using that)
    • (thanks to @AndroPlus)
    • .
    • significant battery runtime improvements are to be expected
    • during bootup ony the small core cluster is active == cooler bootup, but potentially also slower (it should however be fast enough)
    • Overclocking: active after Boot for BIG core 2.0 GHz, little core 1.63 GHz , adjust with Kernel Adiutor, etc.
    • <-- experimental, if it locks up during setup/bootup (e.g. wiping dalvik cache and re-creating cache), please let me know
    • .
    • "HOTFIX": reverted experimental bluedroid wakelock control - this should prevent lockup during bluetooth usage and accidental activation
    • filesystem buffer increased LRU size
    • task's adj rbtree for LMK (low memory killer - much more efficient during high memory load)
    • usb-gadget functionality
    • android keyboard support
    • some smoothness tweaks for interactive governor/in general; kudos to @auras76
    • fastcharge support (not sure if this has an actual effect, it seemed to have charged my phone faster ?, dunno)
    • dynamic fsync
    • optional input boost (input boost control), optimized input boost for little cores only (do not boost for big cores)
    • setting to tweak throttling temperature
    • .

    Notes:

    If you have systemless root and systemless xposed on your system, you have to flash latest betaSU and latest systemless xposed framework immediatly after flashing a new Kernel. If you dont do this you will get a bootloop.


    Sauce:

    https://github.com/zachariasmaladro..._r2/commits/Sun-Kernel_32.2.A.0.224_vI.1_2_12

    https://github.com/zachariasmaladro..._r2/commits/Sun-Kernel_32.2.A.0.253_vI.1_2_12

    Thanks
    9
    Download, AndroidFileHost :

    224 Kernel

    https://www.androidfilehost.com/?w=files&flid=86341 SunKernel_for_Z5 224_I.1_2_17


    253 Kernel

    https://www.androidfilehost.com/?w=files&flid=86349 SunKernel_for_Z5 253_I.1_2_17


    Changes: said:
    • I.1_2_13
    • enabled dynamic_fsync
    • added SIO + FIOPS i/o scheduler (give it a testing and let me know how it works)
    • interactive cpufreq governor: some tweaks
    • leaving disabled LMK adj rbtree improvement (didn't work in the past and also failed compilation this time)
    • Overclock BIG core 2.2 GHz, little core 1.63 GHz (down from 1.7 GHz)
    • arm64 optimizations
    • cpufreq handling fix for cpuboost
    • .
    • I.1_2_14 (14 + .15 were a combined test-kernel with CPUQUIET)
    • .
    • I.1_2_15 (14 + .15 were a combined test-kernel with CPUQUIET)
    • .
    • I.1_2_16 (skipping this kernel release)
    • new SUNRISE3 optimization flags (should squeesh out some more performance and stability)
    • charging LED cyan stuck fixed (thanks to @oshmoun )
    • SLIMBUS improvements (natural sound amplitude),
    • NVIDIA powerefficiency improvements rework ( thanks to @RyTekk )
    • some (general) sound improvements
    • .
    • I.1_2_17
    • frandom (increase security with encryption/security in Android in general, better overall smoothness of UI)
    • more (specific) sound improvements (these should be really noticable),
    • scheduler efficiency improvements (might be better / might not; peak performance is somewhat lower, since it doesn't clock up that quick, faster in idle)
    • writeback optimizations (less stalls and latency spikes during heavy writes)
    • a bunch of ext4 + kthread stability and reliability improvements


    TODO:
    (Notes for myself)

    [FIXME: need 1-2 more additional, specific commits for writeback]
    [FIXME: add additional interactive governor, etc. related commits]
    [FIXME: add ZEN i/o scheduler, update simple i/o]

    Notes:

    If you have systemless root and systemless xposed on your system, you have to flash latest betaSU and latest systemless xposed framework immediatly after flashing a new Kernel. If you dont do this you will get a bootloop.


    Mentions:
    (additional ones)

    - thanks to @androidexpert35 for testing I.1_2_17 kernel
    - thanks to @_LLJY and the beta tester crew for testing I.1_2_16 kernel



    Sauce:

    https://github.com/zachariasmaladro..._r2/commits/Sun-Kernel_32.2.A.0.224_vI.1_2_17

    https://github.com/zachariasmaladro..._r2/commits/Sun-Kernel_32.2.A.0.253_vI.1_2_17

    Thanks