yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Premium Android Development] zacharias.maladroit:
well, a DRM "fix" (emulation) is included, so all should work fine - if you want to use your specific DRM key you need to change the ramdisk - how to do this - I don't know ;)

Magisk is your choice

nope, for Nougat ROMs - better flash TWRP to recovery partition via fastboot
[Xperia Z5 Premium Android Development] zacharias.maladroit:
Logos_I.1_5_3 is up !

Kernel for 32.4.A.1.54 (Android Nougat 7.1.1) ROMs

Sauce:

https://github.com/zachariasmaladro...i_r2/commits/32.4.A.1.54_Sun-Kernel_Logos_I.1

Battery life under investigation to match stock kernel,

There should be a detailed instruction on how to build a binary matching kernel to Sony's stock kernel so that we get at least similar battery runtime & smoothness

and get to know how to achieve a most stable kernel, also that's usually the assumed way to comply with GPL :rolleyes:

works fine with M-ROM and similar ROMs on Z5 (no UI crashes) :)

LOL - zip size is just barely below 20 MB :p

Features
[Xperia Z5 Premium Android Development] zacharias.maladroit:
FYI:

looks like I forgot to remove the module block from the kernel

so it won't be able to load the module right now

already unblocked in source, will compile a new kernel once I've worked out the regressions.

That's why I usually avoid releasing a kernel too early or when it's not ready:

it doesn't leave me in peace :(
[Xperia Z5 Premium Android Development] YasuHamed:
please sir, manage time to fix it. and the battery optimization.

i would love to try it!

---------- Post added at 08:04 AM ---------- Previous post was at 08:00 AM ----------

sir, how do you flash it?

my z5p on Nougat 7.1.1 build (1.54)/ rooted

shall i just boot in to twrp and flash the zip file?
[Xperia Z5 Premium Android Development] luvmdy:
Wechat FC after I flashed Z5Prem_SK_ENF_v32.4.A.1.54_Logos_I.1_5_3_sats.zip. Does it caused by the module block you mentioned? Reverting to original kernel, all thing are fine.
[Xperia Z5 Premium Android Development] zacharias.maladroit:
do you have a logcat or dmesg output after this happened ?

you simply launch the app and it FCs ?
[Xperia Z5 Premium Android Development] zacharias.maladroit:
Logos_I.2_8_7 is up !

Kernel for 32.4.A.1.54 (Android Nougat 7.1.1) ROMs

Z5Premium kernel folder access:

https://drive.google.com/drive/folders/12lk5v19SEPUE6BVbYgaWz0dmhJWEEf15

Sauce:

https://github.com/zachariasmaladro...54_Sun-Kernel_Logos_I.1_upcoming_next_03_WIP7

quick kernel release - so no data

Features
[Xperia Z5 Premium Android Development] zacharias.maladroit:
Z5 Premium:

kernel got updated to 2_8_7 due to a potential kernel panic caused by core_ctl driver and a commit (change)
[Xperia Z5 Premium Android Development] luvmdy:
sorry, after that happened, I also found that it can't be charged when device was power on barring power off. So I reflashed firmware immediately.

But wechat indeed FC no matter what I did, just gratuitous.
[Xperia Z5 Premium Android Development] luvmdy:
thanks for your great work. Charger worked after I flashed Logos_I.2_8_7 but wechat still FC. How can I get logcat or dmesg output?

I love the extremely low light so much and was curious that how did you change the brightness settings in source code?
[Xperia Z5 Premium Android Development] xElectroKingx:
Does ur kernel work with mokee rom?

Gesendet von meinem Xperia Z5P mit Tapatalk
[Xperia Z5 Premium Android Development] zacharias.maladroit:
nope,

all lineageOS or "AOSP" based ROMs that use a modified Stock kernel need additional changes and different ramdisk
[Xperia Z5 Premium Android Development] luvmdy:
still has white noise in background when playing while Stock kernel hasn't this problem :(
[Xperia Z5 Premium Android Development] tolgatk:
Hi dude, thanks for everything. I have problem, sd card read and write very slow. I use Samsung pro sd card uhs3 speed 100/90
[Xperia Z5 Premium Android Development] Ashray_Vk:
Gonna try this one out again :D :)

Thanks for all your work ! :)
[Xperia Z5 Premium Android Development] Mike3009:
So far this works pretty well for me although not perfect. It does make my phone a lot faster and the fingerprint sensor actually works as intended instead of always misreading. However, there are occasional hangs where the phone doesn't respond to touches and sometimes the touch gets off and causes some typing errors. Wechat also has a crash and is unusable. I don't use the program personally but I did test it. Looking forward to any further development. Thanks for all the effort put into this.
[Xperia Z5 Premium Android Development] nebrazz.abd:
any update kernel? the kernel 2.8.7 is not stable in my device often reboot himself

please help
[Xperia Z5 Premium Android Development] YasuHamed:
sir i tried your kernel

z5p dsds

it always freezes on sony logo
[Xperia Z5 Premium Android Development] Adzkii:
does it work with HaoZeke's LineageOS
[Xperia Z5 Premium Android Development] nebrazz.abd:
wow... can you find kernel more stable
[Xperia Z5 Premium Android Development] Mike3009:
In this kernels current state, I'd suggest people don't use it. I do appreciate the effort but it is very unstable as of now.

I'd suggest trying this instead. I haven't had any problems with it.

https://xdaforums.com/z5-premium/general/ftf-e68xx-patched-kernels-google-drive-t3689378
[Xperia Z5 Premium Android Development] LastDarkWarlord:
can u make this kernel work with MOKEE pls :) ? i have Z5P
[Xperia Z5 Premium Android Development] zacharias.maladroit:
nope sorry, I don't have the base / root device (Z5, sumire) anymore, it's broken beyond repair

and I also lost the local kernels, ROMs, etc. - everything related to it due to hard drive data loss.

Thanks for your interest though :)

from what I could trace back and reconstruct so far from the google drive is that only stock ROM related kernels are/were available for the device

I don't plan to leave those kernels up forever (Google Drive is 75% full with kernel and ROM stuff) - so get them if you need and while they are still available

Z5Plus (satsuki) [+/- single SIM | DSDS - specific versions mentioned]:

Kernels ONLY available:

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

Z5P-Kernels - Google Drive

drive.google.com
[Xperia Z5 Premium Android Development] Ashray_Vk:
No double tap to wake enabled. Phone was hot for the first time, not much for the second ( I work in an ac environment, so couldn't find out if it heated the second time)

No touch boost enabled either. I dunno how to exactly reproduce this " sleep of death "
[Xperia Z5 Premium Android Development] Ashray_Vk:
Hey [MENTION=3037651]zacharias.maladroit[/MENTION]

The latest kernel actually gives a good standby battery dude. Luckily, I didn't encounter the sleep of death. ( I'm not facing it since a few days, luck maybe ?)

Just lost 4% over around 7 hours. Network was at LTE ( with data off though). Tweaks used were the usual greenify + amplify + AppOps + interactive governor tweaks + boot manager .

I think this kernel is actually a go. Just a thought: maybe the sleep of death is caused from the rom side ? Coz few users not using your kernel were also facing similar symptoms who used ROM aur. Not at all sure, but just my thought.
[Xperia Z5 Premium Android Development] zacharias.maladroit:
Oh, nice stats - it must be more on the ROM side,

sometimes the battery runtime isn't consuming anything for a few hours - but then it drains 0.7-1.5% and more consistently,

I even tried out the Mobile Radio Active Fix, Wakelock blockers, Google Play Store/Services fixes and other stuff

but it still drinks battery unimpressed.

Sony did a really bad job on the Z5 in terms of long-time efficiency with battery

So it clearly could be,

I tested out auras76's latest RomAur (3.0) with his kernel and also got quite nice battery runtime (7% in 10 hours, 3G), but the issue was that it totally locked up the phone 3 times within several hours (or only the GUI ? - well, at least it wasn't usable thereafter, so needed force-reboots)

I suspect that it's however a combination of ROM + Kernel, Sony's proprietary stuff ("Stock" ROM, "stock"-based Kernel, etc.) is very *****y

Thanks for the feedback :)
[Xperia Z5 Premium Android Development] Ashray_Vk:
No problem at all! I managed to keep the phone asleep whenever the screen was off. Stats says so even now. So I actually dunno what's draining the battery anymore. Lol

I actually thought I'd try to do all these optimisations on stock firmware too when free, to see how that'd perform.
[Xperia Z5 Premium Android Development] engineer000:
May I ask what is your rom, kernel and tweaks combination? thanks

I think i'm gonna try stock + this kernel + xposed + other tweaks. I'm not getting SOD on stock unrooted so I'll try the stock and rooted one.
[Xperia Z5 Premium Android Development] Ashray_Vk:
Sure! :)

I'm using greenify ( with donation package and xposed tweaks enabled ) + power nap + amplify ( referred to two threads regarding how to use it efficiently. Search on XDA, if you still don't get it, I'll point it out later) + AppOpsXposed ( to not let many apps keep my phone awake like Google apps and Google services ) , I also use wakelock detector to find out additional apps or services I might have missed and then boot manager to not let unwanted apps boot up.

Oh. And I also use interactive governor tweaks from the Z5 section( Heimdall tweaks)

Let me know if you need any help further :) Id be happy to help the community in any way possible from my side :)
[Xperia Z5 Premium Android Development] engineer000:
I am using this with stock rom and I am not getting black/blue screen. I am using the old version rather than experimental. I am using xposed and greenify
[Xperia Z5 Premium Android Development] Rubensss:
It misses an update :)

Thank you for your work zacharias.maladroid your kernel works wonders
[Xperia Z5 Premium Android Development] frostmore:
Are all these MM kernels?

Was there any kernel builds for LP? would like to DL them as i am still on LP at the moment.
[Xperia Z5 Premium Android Development] zacharias.maladroit:
Alright guys - another weekend, another kernel ;)

Source is at:

Sun-Kernel_32.1.A.1.xxx_185_vI.1_2_4_new

For best measure - combine it with

Wakelock Detector, Greenify, (+/- Amplify), AppOpsXposed (XPosed; or other that e.g. also allows control of system apps), Disable Service/My Android Tools (by WangQi)

with Wakelock Detector it's rather easy to greenify Google Play Store which is one major culprit of wakelocks,

with AppOpsXposed (or other App Ops via root) you can control what apps or services keep awake (wakelock) the phone and thus occasionally or more often drains the battery (Wifi Scan, "Location" is one possible drainer; note that there are 2 Location options)

with Disable Service/My Android Tools you get pretty powerful tools that allow you to disable service on a fine-grained basis, and e.g. specifically turn off Google's Analytics; which as a side-effect also might save battery

with Amplify you can disable wakelocks, alarms and services in a general sense and helps quite to some degree to cut down battery consumption (but you CAN NOT greenify Google Play Store, otherwise you'll miss out on features, which kind of defeats the purpose; luckily you can disable the "Keep Awake" functionality via App Ops Xposed :D )

Power Nap for XPosed is similar to Greenify, but can serve as an additional safety net to catch wakelocks that you forgot (add Greenify and Amplify to the apps, that are allowed; otherwise you'll miss out on their function)

Features:

(will add more later if I forgot anything)

Changelog:

Download:

Z5Prem_Sunkernel_Permissive_v185_I.1_2_4_sats.zip

Z5Prem-DSDS_Sunkernel_Permissive_v185_I.1_2_4_sats_dsds.zip

or attached here in the thread

Enjoy :)
[Xperia Z5 Premium Android Development] zacharias.maladroit:
Pushing out this kernel, I hate it when the big cores can't be controled ;)

Source is at:

Sun-Kernel_32.1.A.1.xxx_185_vI.1_2_5

For best measure - combine it with

Wakelock Detector, Greenify, (+/- Amplify), AppOpsXposed (XPosed; or other that e.g. also allows control of system apps), Disable Service/My Android Tools (by WangQi)

with Wakelock Detector it's rather easy to greenify Google Play Store which is one major culprit of wakelocks,

with AppOpsXposed (or other App Ops via root) you can control what apps or services keep awake (wakelock) the phone and thus occasionally or more often drains the battery (Wifi Scan, "Location" is one possible drainer; note that there are 2 Location options)

with Disable Service/My Android Tools you get pretty powerful tools that allow you to disable service on a fine-grained basis, and e.g. specifically turn off Google's Analytics; which as a side-effect also might save battery

with Amplify you can disable wakelocks, alarms and services in a general sense and helps quite to some degree to cut down battery consumption (but you CAN NOT greenify Google Play Store, otherwise you'll miss out on features, which kind of defeats the purpose; luckily you can disable the "Keep Awake" functionality via App Ops Xposed :D )

Power Nap for XPosed is similar to Greenify, but can serve as an additional safety net to catch wakelocks that you forgot (add Greenify and Amplify to the apps, that are allowed; otherwise you'll miss out on their function)

Features:

(will add more later if I forgot anything)

Changelog:

Download:

Z5Prem_Sunkernel_Permissive_v185_I.1_2_5_sats.zip

Z5Prem-DSDS_Sunkernel_Permissive_v185_I.1_2_5_sats_dsds.zip

or attached here in the thread

Enjoy :)
[Xperia Z5 Premium Android Development] zacharias.maladroit:
How many Lollipop users are still on the Z5 Premium and/or following this thread ?
[Xperia Z5 Premium Android Development] Rubensss:
To flash it with adb cause bootloop ... I've tried being in the romaur 3.2 and later with the stock and has not worked with any . Why?
[Xperia Z5 Premium Android Development] the_brad:
You mean fastboot, right? ;)
[Xperia Z5 Premium Android Development] Rubensss:
Yes :)
[Xperia Z5 Premium Android Development] Vita_Nove:
thank you very much for your job!

After I get MM and install xposed

my CPU is getting warmer and warmer than ever before

hope that your kernel will help

thx again!!!
[Xperia Z5 Premium Android Development] _LLJY:
hmmm strange this kernel causes anything to do with photo editing to crash the phone(can be observed in stock photo editor and Antutu)
[Xperia Z5 Premium Android Development] Ashray_Vk:
I had the same problem with a previous version. The latest version was fine for me
[Xperia Z5 Premium Android Development] zacharias.maladroit:
Features:

(will add more later if I forgot anything)

Overclocking:

http://xdaforums.com/xperia-z5/general/tweak-improve-performance-reduce-t3387879

http://xdaforums.com/showpost.php?p=67444047&postcount=150 ( [MENTION=6791680]_LLJY[/MENTION] 's thermal-engine modifications are attached )

Source:

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

Download, AndroidFileHost or HERE (in this thread) :

SunKernel_for_Z5Prem 224_I.1_2_8

Thanks
[Xperia Z5 Premium Android Development] Muhammad amine:
HI.. thanks for your work..

But I think I haven't seen if the kernel for LB or just UB??
[Xperia Z5 Premium Android Development] KbaB.BroS:
Every custom kernel will never work on LB, only UB
[Xperia Z5 Premium Android Development] zacharias.maladroit:
Download, AndroidFileHost :

224_I.1_2_8_beta9

- boot.img

ONLY

flash via TWRP or fastboot and let me know

if it even boots

Confirmed by [MENTION=4919303]Ashray_Vk[/MENTION] to work on Dual Sim device (5 hours, 0% battery drain !)

Thanks
[Xperia Z5 Premium Android Development] Snake07:
Works on E6853\RomAur,but I lost SuperSu. I had to reflash it.
[Xperia Z5 Premium Android Development] KbaB.BroS:
SuperSU in Romaur is system installed not systemless, which shouldn't therefore affect your root when flashing this kernel.
[Xperia Z5 Premium Android Development] Snake07:
Root access is not lost. SuperSu app is disappeared. I flash

SuperSU-v2.76 from twrp and everything works again.
[Xperia Z5 Premium Android Development] Snake07:
Are DRM fix included ? Looks like not.
[Xperia Z5 Premium Android Development] KbaB.BroS:
If you searched drm fix or just simply drm in this thread you would have already found your answer.
[Xperia Z5 Premium Android Development] SCA1998:
The new kernel is running great on my E6853 with RomAur 4.2.1 installed. Nice battery life with around 5-6 SoT.

I've got no issues flashing this img on TWRP. DRM functions still working, SuperSU app and TWRP still intact, etc.

Thx dev again for all of this great work. I appreciate it.:good:

P.S. FWIK, if you reflash SuperSU, the DRM patch will not work correctly as the kernel is repacked.
[Xperia Z5 Premium Android Development] werks:
the previous and latest versions crash my phone whenever i turn bluetooth on.

stock kernel and aur kernel are fine. are u able to have a look? i really like your kernel
[Xperia Z5 Premium Android Development] zacharias.maladroit:
Please don't tell me you have the wakelocks deactivated for bluetooth, wlan, etc. :p
[Xperia Z5 Premium Android Development] werks:
haha i dont think so, how do i check
[Xperia Z5 Premium Android Development] zacharias.maladroit:
kernel adiutor, ex kernel manager, etc.
[Xperia Z5 Premium Android Development] zacharias.maladroit:
Download, AndroidFileHost :

224 Kernel

SunKernel_for_Z5Prem 224_I.1_2_12

253 Kernel

SunKernel_for_Z5Prem 253_I.1_2_12

Notes:

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
[Xperia Z5 Premium Android Development] zacharias.maladroit:
Apologies for the delay,

I'm pretty occupied and didn't immediately saw the connection to the experimental wakelock control for bluetooth XD
[Xperia Z5 Premium Android Development] the_brad:
Kernel does great work! But since I updated to .253 I have very bad performance and my device (Z5P) faces really bad slowdowns quite often. I use stock Rom, supersu 2.76, xposed v86 and kernel adiutor to setup the kernel.

What I was able to observe: when the device gets really hot, kernel adiutor shows only one big core active and all the little cores running at max. CPU load is at about 90 percent. Yesterday, playing pokemon go outside, my device has shutdown twice, due to high temperature.

Btw, temperature read in kernel adiutor is zero °C.

Any tips?

PS: Did you remove the hotplug mechanisms?
[Xperia Z5 Premium Android Development] zacharias.maladroit:
Hi the_brad,

that indicates throttling,

so it could be that Sony made throttling even more stricter with .253 update,

or it's simply pretty warm outside right now and the default throttling settings are too aggressive + adding the overclocking (you could e.g. restrict the big cores to 1.6 or 1.7 GHz and see whether that still works

smoothly enough + interactive governor)

Yeah, that readout (0°C) is some kind of issue with custom kernels or modifying the kernel & deviating from stock kernel (also occurs in AndroPlus).

Nope, hotplug mechanism is still the one from msm_performance + core_ctl

[MENTION=6791680]_LLJY[/MENTION] has created modified core_ctl (hotplug) settings for the Z5 (http://xdaforums.com/showpost.php?p=67813484&postcount=201),

these surely need adaptation for the Z5P since it generally can tolerate 1-4°C (well, Kelvin actually since it's difference ?) more from what I read in the config files

Please take a look at [MENTION=4798704]RyTekk[/MENTION] 's thread for more information: http://xdaforums.com/xperia-z5/general/tweak-improve-performance-reduce-t3387879

Thanks
[Xperia Z5 Premium Android Development] the_brad:
Yep, that's sounds right. I watched my temparatures for a while, after that...

True.

That's what I did, since I started using your kernel on Z5P, because 1,8 GHz big and 1,2 GHz LITLLE seem enough.

I started using Kernel Adiutor beta and found out, it switches from time to time (mostly after reboots) between zero and it's actual temperature (what I believe :cowboy:)

That isn't the stock one from Qualcomm, is it?

I tried this thermal-engine_modded.conf [MENTION=5321216]viperc[/MENTION] from http://xdaforums.com/showpost.php?p=67821676&postcount=66 and this MODIFY_init.qcom.post_boot.sh by [MENTION=4798704]RyTekk[/MENTION] from http://xdaforums.com/showpost.php?p=67069363&postcount=1

and since that change, my device doesn't throttle anymore (at least not that often!).

What I observed is my GPU goes high up in the sky while my CPU seems to be near idle (core 7+8 shut down). It reaches more than 68°C in average and does not seem to cool down. I, then, searched my device for any app, that's generates a hight load and found nothing. Battery statistics seem like normal, screen is the most battery sucking unit (about 33%) and my display brightness is always at auto and middle setting. I even tried different apps like betterbatterystats and GSAM battery Monitor. But then, I remembered a fix, I had used weeks ago, while tripping after a complete different problem - and - voilà: Sony face detection engine in Album app was at least a huge part of the problem. I switched it off, cleared chaches, rebooted. My device is now working much better (not as well as with the last firmware, but much more satisifying:fingers-crossed:). I don't know, maybe that engine uses the GPU for rendering in the background...?!
[Xperia Z5 Premium Android Development] zacharias.maladroit:
Download, AndroidFileHost :

224 Kernel

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

253 Kernel

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

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:

Mentions:

(additional ones)

- thanks to [MENTION=5627933]androidexpert35[/MENTION] for testing I.1_2_17 kernel

- thanks to [MENTION=6791680]_LLJY[/MENTION] 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
[Xperia Z5 Premium Android Development] -DM-:
Don't know about others here, but after flashing this last kernel, I've been having random apps force closing, random freeze and random freeze followed by that lovely flashing red led with reboot...a total of maybe 10 in the lapse of a few hours....

Haven't changed any kernel settings, everything is default, just flashed the kernel...

Now with all that said, I'm running RomAur 4.2.1, used aur-kernel 4.0, then the beta 9 img from this thread in the past and been using I.1_2_12 since it was released... Never had a single freeze or reboot with any of those mentioned kernel...

In fact I.1_2_12 is rock stable in my case with a great battery life....so went back to it for the time being...

Thanks for your great work as always ;)

Update....I gave I.1_2_17 another go, because I have a bad case of OCD ;)

Just cleared cache and dalvick before to flash the kernel and so far everything running smooth as butter
[Xperia Z5 Premium Android Development] houboy:
Sorry this might seem like a dumb question but, can the 253_l.1_2_17 run on the 6883?
[Xperia Z5 Premium Android Development] zacharias.maladroit:
I'd rather say we have a professional user here :D

Thanks

Sure,

there are no dumb questions ;)

why don't you click on the download link and take a look at the kernel that says:

Z5Prem-DSDS_Sunkernel_Permissive_v253_I.1_2_17_sats_dual.zip

:)