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

Search This thread

zacharias.maladroit

Recognized Developer
any update kernel for z5p? my device always reboot himself

@zacharias.maladroit please help check dis logs... Had a reboot while using the phone and was on Home was it rebooted.
Thanks.


Sorry folks,

I was originally planning to do some kind of "final" kernel but my Z5 is totally dead, broken (into pieces) and already gone

no Z5 or Z4/Z3+ development anymore.

Please refer to previous more stable kernel versions/releases
 

whalesplaho

Senior Member
Feb 1, 2012
10,694
2,670
Treasure Island
Sorry folks,

I was originally planning to do some kind of "final" kernel but my Z5 is totally dead, broken (into pieces) and already gone

no Z5 or Z4/Z3+ development anymore.

Please refer to previous more stable kernel versions/releases

Wooooopppsssss..... Dats sad buddy!!
Sorry bout dat bro... Thank you a mill for everything!!!
We really missing yhu already man.
 
Sorry folks,

I was originally planning to do some kind of "final" kernel but my Z5 is totally dead, broken (into pieces) and already gone

no Z5 or Z4/Z3+ development anymore.

Please refer to previous more stable kernel versions/releases

Thank you very much for your hard work for Z5 comunity. Good luck in further development.

Sent from my Sony Xperia Z5 using XDA Labs
 

Avmansoure

Senior Member
Nov 17, 2015
59
5
Sad. Btw is there any kernel best fitting for resurrection remix 5.8.5 for xperia z5 dual e6683? If yes please suggest.
 

tech.no.

Member
Oct 31, 2013
17
1
after flash kerel logos new version, the battery is better than stok kernel, but when my wifi on (i forgot to turning off when no connection wifi) , and i trying turning on the hotspot , the hotspot can not turning on, so i try to force restart but no respond
 

Wandal012

Member
Oct 16, 2012
28
2
hello friends i am new to this z5 kernels and stuff could any one explain me how to flash it I have root access and unlocked bootloader thank you.:good:
 
  • Like
Reactions: rtmreza

_LLJY

Senior Member
Jun 28, 2015
2,448
3,039
Singapore
hello friends i am new to this z5 kernels and stuff could any one explain me how to flash it I have root access and unlocked bootloader thank you.:good:
you can flash it through fastboot

Download fastboot for Windows here:
https://forum.xda-developers.com/showthread.php?t=2588979
Make sure you install it system wide.

power off the device, hold volume down and plug it into the PC to enter fastboot

then, open command prompt in the folder with the downloaded kernel(make sure you unzip it to get the boot.img)

after that, type in fastboot flash boot boot.img

ALTERNATIVELY

you can flash recovery for the Z5

https://www.google.com/amp/s/forum....-dev/sony/twrp-3-1-0-z5-z5c-z5p-t3571050/amp/

Same steps as above but
fastboot flash recovery <recovery image>

now, you can boot into recovery and flash the kernel zip
 
  • Like
Reactions: s.hossein

Wandal012

Member
Oct 16, 2012
28
2
you can flash it through fastboot

Download fastboot for Windows here:
https://forum.xda-developers.com/showthread.php?t=2588979
Make sure you install it system wide.

power off the device, hold volume down and plug it into the PC to enter fastboot

then, open command prompt in the folder with the downloaded kernel(make sure you unzip it to get the boot.img)

after that, type in fastboot flash boot boot.img

ALTERNATIVELY

you can flash recovery for the Z5

https://www.google.com/amp/s/forum....-dev/sony/twrp-3-1-0-z5-z5c-z5p-t3571050/amp/

Same steps as above but
fastboot flash recovery <recovery image>

now, you can boot into recovery and flash the kernel zip

Thank you for your response and help ??
 

Wandal012

Member
Oct 16, 2012
28
2
Teating
 

Attachments

  • Screenshot_20181118-140349.png
    Screenshot_20181118-140349.png
    184.3 KB · Views: 753

MorenzaX

Member
Jun 4, 2018
11
0
Wich version good for playing pubg games?

anyone, I really need your advice, which version of all versions is suitable for playing pubg games?
 

Fulano_LeTal

New member
Jul 1, 2016
4
0
Some guidance please

Hi! I want to give it a try with this kernel but is very confusing as there are a lot of files in the 376 nougat folder, can anyone give some guidance please for what files have to download. Thanks in advance!
 

Fulano_LeTal

New member
Jul 1, 2016
4
0
Stablest version of the kernel

Hi!, could someone advice for the more stable version of the kernel for nougat stock rom. Thanks in advance!
 

zacharias.maladroit

Recognized Developer
hello , is someone compatible whit RR Rom Nougat ? RR ver.5.8.5 2018-4-06 please answer my question

sorry, can't tell

for whatever reason I only have access to the stock (?) ROM kernels - so it seems the previously shared folder was only for stock ROMs (?) - below are the other folders with RR ROM with/without ROM and separate kernels specific for custom ROMs:

and I don't plan to leave those kernels up forever (Google Drive is 75% full with kernel and ROM stuff)


here's the ROM and Kernel list that I could reconstruct from google drive:


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

Z5 (sumire) [+/- single SIM | DSDS - specific versions mentioned]:

ROM + Kernels available:

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

Z5 various kernels (stock ROM ? | different Android versions)

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

Lineageos 14.1 kernels

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

Z5 CaRo 5.1 Android 7.1.2 kernels:

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

Z5 RR (Resurrection Remix) ROM - Android 7.1.1 Kernels:
[empty - old removed]

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

Z5 RR (Resurrection Remix) ROM - Android 7.1.2 (RR 5.8.4) (Kernels + separate ROM available):

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

Z5 RR (Resurrection Remix) ROM - Android 7.1.2 (RR 5.8.5) ROM ONLY (custom kernel included?):

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

Z5 CRDroid Kernels Android 7.1.2 - Kernels ONLY:


------------------------------------------
 
Last edited:

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