yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Android Development] saiz136:
A stupid question, what is BlueBorne?
[Xperia Z5 Android Development] Andromeda 90:
A Bluetooth vulnerability.
[Xperia Z5 Android Development] zacharias.maladroit:
And another kernel 32.4.A.0.160

Name is Green_Kernel-v0.8.6_MOD_1.29 since the base is GreenKernel-DEV (1 initial version, 29 bumps from it)

this one takes the GreenKernel-DEV base (which is slim) and adds all the stuff that I usually add to my kernels.

It's close to finished, only mm (and/or rcu) changes are needed, perhaps also sound, then it would be "complete"

This time I've made sure to only cherry-pick those scheduler (and other) changes that don't introduce higher battery consumption [ymmv]

(see attachment)

Source:

https://github.com/zachariasmaladro...4_kitakami_r2/commits/GreenKernel_Mod_01_test

Enjoy

edit:

WARNING: FM Radio app is broken on this kernel, Bluetooth might also have issues with it [Sony Stock apps are dependent on 100 Hz timer rate, this kernel is using 1000 Hz timer rate with fixes]
[Xperia Z5 Android Development] zacharias.maladroit:
Semi-final release for 32.4.A.0.160

Name is Green_Kernel-v0.8.6_MOD_1.46 since the base is GreenKernel-DEV (1 initial version, 46 bumps from it)

this one takes the GreenKernel-DEV base (which is slim) and adds all the stuff that I usually add to my kernels.

It's close to finished, only rcu changes are needed, perhaps also sound, then it would be "complete".

The kernel is configured differently and still has certain driver left outside as modules,

thus scheduler changes are possible, features such as suhide [security, checks] can be added, SYSVIPC is disabled [NOT used in Android],

and other additional goodies (e.g. the battery charging/state algorithm keeps the extensions [somewhat needed for MHL] but has finer-grained trimming + adapted SD810 power tweaks).

The state of the kernel is considered semi-stable, experimental/testing.

If you run into any issues and the device locks up - please wait a few moments, so that it can reboot and provide the output of /sys/fs/pstore/*

(console-rammops, dmesg-oops-0, dmesg-oops-1, etc.)

This time I've made sure to only cherry-pick those scheduler (and other) changes that don't introduce higher battery consumption [ymmv]

a few additional scheduler changes were needed to satisfy the interactive governor changes, thus battery might be somewhat worse than the previous one (also due to "stock" 100 Hz timer-rate required by FM Radio app).

If you notice that battery is significantly worse than 1.29, please let me know

Download:

https://drive.google.com/drive/folders/0BykGGWB96CBQMU00RGl5MEYwRVk

+ see attachment

Source:

https://github.com/zachariasmaladro...4_kitakami_r2/commits/GreenKernel_Mod_01_test

Enjoy
[Xperia Z5 Android Development] sirdoha:
Post deleted
[Xperia Z5 Android Development] zacharias.maladroit:
Already included ;)

That kernel + XPosed + Greenify + Naptime actually gives me incredibly good battery runtime,

if you're only doing browsing, reading stuff via e.g. kindle, etc.:

projected SOT 4-8+ hours

the lower battery range still needs fixing, this is my first charge

Battery consumption was 14% and 2 hours of SOT already [approx. half 2G/3G, WiFi not both activated],

I had to reboot a few times since did experiment with Spirit FM 1 app and it lead to crash :silly:

now it's 73% and projected Standby says: 18d 6h remaining

well, that - I can believe :o

The app launch times might appear a bit slower, not exactly sure yet what the reason is,

and the UI appears laggy - it's caused by the Adreno Idler,

seems like the CPUs/SoCs are very efficient now and the GPU is limiting:

thus raise the adreno_idler_idlewait value to 20 (from 15)

That should give you a smooth UI,

I'm using a dpi of 320 so the GPU has more load, but the font is much smaller (how I like it).

The kernel will get a different name, I'm backporting several improvements from newer kernels.

A few things cannot be backported e.g. kernel 4.10/4.11+ memory fragmentation fix for the ion GPU, zram, etc. driver usage

but at least we get the better performance on Stock and the battery is really useable again <3
[Xperia Z5 Android Development] sirdoha:
Great tips! Can I change these values via EX Kernel Manager?
[Xperia Z5 Android Development] zacharias.maladroit:
Yes, the options are there :)

edit:

seems like flashing new kernels over and over really messes with the stats - and the battery discharging curve / algorithms also isn't that accurate,

like [MENTION=5231789]nreuge[/MENTION] stated and we've been experiencing for a long, long time - it appears to discharge faster towards the end,

this kind of lying in the useable battery charge/amount is deception !

edit2:

oh wow - XDA is being catty

32.4.A.0.160

:

Not really sure that having a working FM Radio app is worth the price (the higher lagginess and wonky behavior),

might try out 1000 Hz again ...

Anyway - that's the kind of battery life I had expected the minute I got that device (7-8 hours)

4.5 hours with 53% left is "nice" :D

edit3:

and close to 7.5 hours with 22% left it was :)

needed to flash different kernel for testing and other stuff, charged battery to 92% and today it's at 70% within pretty short time

Had disabled swap and Android OS is draining like no tomorrow ^^

This device is a difficult creature :silly:
[Xperia Z5 Android Development] zacharias.maladroit:
The scheduler seems to behave a bit wonky, there's nothing in the logs - might be due to the fact that it's only running at 100 Hz ,

not really sure if having the FM Radio app working is worth that price ... perhaps will give it again a try with 1000 Hz and see how it behaves ...

Anyway - the battery runtime is something I would expect from that kind of device class (enthusiast, premium):

<-- screenshot 1

<-- screenshot 2

attaching the screenshots, too - not sure what is up with imgur or XDA that the embedded pictures are not being displayed ...

Kernel source:

https://github.com/zachariasmaladro..._msm8994_kitakami_r2/commits/BreachKernel_I.1

edit:

okay - seriously - how did THIS post end up HERE ?
[Xperia Z5 Android Development] saiz136:
And where talking about build number 32.4.A.0.160?
[Xperia Z5 Android Development] zacharias.maladroit:
yep, that kernel is for Nougat 7.1.1 32.4.A.0.160,

sorry, forgot to add the 160 to the kernel version this time :o
[Xperia Z5 Android Development] saiz136:
Grand! What's your setup for naptime? It's my first time using it soooo... Do appops xposed module working??
[Xperia Z5 Android Development] Adzkii:
just bought the E6603 model of z5, will this work?
[Xperia Z5 Android Development] Andromeda 90:
If it works correctly. But it's always good to make a backup. :D
[Xperia Z5 Android Development] dicxz80:
Iam confused. Which one is recommended for nougat stock ROM?

Breach or Green kernel?
[Xperia Z5 Android Development] saiz136:
Breach is the newest one, he changed the name Green to Breach about 2 days ago. Probably because Green is developed by another developer, so to avoid confusion....
[Xperia Z5 Android Development] dicxz80:
Haha.. no wonder i tried to google breach kernel i cant find anything.

Thx TS you are the best and consistet Z5 kernel developer ! Finally i can try stock nougat rom with custom kernel and offficial xposed !

Iam still using your sun kernel btw. And it is very good consistently get 4-4.5 hours SOT (when first installed even can get 5-5.5)
[Xperia Z5 Android Development] saiz136:
[MENTION=3037651]zacharias.maladroit[/MENTION]

Nice. Hope to see A.1.54 soon!
[Xperia Z5 Android Development] zacharias.maladroit:
Yeah,I hope that Sony releases an even newer one that protects against the WiFi vulnerability (KRACK) but without the delay for kernel source

Sony could do something special once and for all and offer an update to Oreo (similar to the Nexus 6P) THAT would somewhat convince me to get another Sony - but I doubt it -well, one can dream :silly:

Man, this cable modem is really crap again no internet (this time writing from my z5 with RR) :(
[Xperia Z5 Android Development] nreuge:
I don't think that Z5 will get Oreo. If you look at the Zn series, these devices got 3 major versions of Android. The Z5 has had LL, MM and N.

It would be wonderful that Z5 get O (AFAIK, there are no hardware or driver limitations that prevent it), but don't dream too much, it would not be good at all for Sony's business... According to Sony plans, early Z5 owners should get a new device in 2018 at the latest.
[Xperia Z5 Android Development] saiz136:
Yeah, me too. I really like Google Pixel2 XL but has so many hardware issues these past few days.

Yeah, I think that is the trend today with all smartphones. 3 major updates from Google then their done, you need to buy a new one. My HTC M8 came out with KK out of the box and stopped official updates up until MM, but I heard developers has already rocking Android Oreo LineageOS based.

Front facing speakers is a big deal for me, and I'm really into Pixel2 XL.
[Xperia Z5 Android Development] :
Hi, i got a problem with the PowerManagerSerivce.Display kernel wakelock

it is keeping my phone awake 90% of the standby time...

Any way to fix this?
[Xperia Z5 Android Development] zacharias.maladroit:
What specific Kernel, ROM, etc. ?

What battery monitoring tools ?

What apps ?

A shot in the dark: stop using BBS (better battery stats) [it scews the stats] or Kernel Adiutor [it kept the battery awake for me]

besides that - need more info
[Xperia Z5 Android Development] :
i'm using stock 7.0 + Last zach's

I'm using BetterBatteryStats to monitor

i have non-system apps greenifyed + some non-android wakelocks blocked by WakeBlock

(now qpnp_fg_memaccess is on top of the list with qpnp_fg_update_temp after)
[Xperia Z5 Android Development] zacharias.maladroit:
Actually: there's not really anything to "fix",

it might just be scewed statistics,

if you don't observe higher battery drain than usual it should be fine.

E.g. I got "stay awake" via swype for 3 days but there wasn't any increased battery drain, so it's just messed up stats

okay, qpnp_fg takes up quite a bit after a longer usage period,

please let me know if you experience higher battery drain - besides that in my knowledge there's nothing to "fix" those broken stats

edit:

Battery consumption for e.g. PowerAMP is shown under "Android System" (AudioMix, AudioOffload, etc.)

uploaded a few screenshots
[Xperia Z5 Android Development] H.Khanh:
And Breach kernel is still Enforcement ?
[Xperia Z5 Android Development] :
i don't think they are broken stats...

if i put the device in standby airplane mode no wifi no bluethoot no gps no nfc etc. i get 1% less battery every 25 minutes

Btw wich rom is that one? Carbon? How is the battery and performance? is it worth to install?
[Xperia Z5 Android Development] Sexiria:
it's worth to install :good:
[Xperia Z5 Android Development] :
What do you raccomend me to backup?

is titanium backup enough?
[Xperia Z5 Android Development] zacharias.maladroit:
yeah, boot process probably isn't needed to have enforcing

I'll try within the next weeks to get Facula kernel working on Sony Stock ROM - that seems to be the best (and smoothest) kernel so far,

BreachKernel somehow has a stall issue with process management shortly after suspend, a few moments/minutes later it's fine - but it's not optimal experience ...

App or ROM problem then - that can't be right if it's draining that quickly

I'm currently mostly on Resurrection Remix - haven't released a new kernel for the other ROMs yet though since it's a chore to build all those different kernels for the ROMs [(Carbon, crDroid, RR, LineageOS) x 2 (at least) ]
[Xperia Z5 Android Development] :
now i installed carbon rom and tomorrow i will see if i have the same problem

So the kernel won't work on carbon?
[Xperia Z5 Android Development] zacharias.maladroit:
The ramdisk/initramfs doesn't match - you could make a backup of the current kernel and try it

in the past I used a kernel with CarbonROM ramdisk on RR (out of error) - not sure if it'll still work though.

There's also the uncertainty if there's not services / features are not working or broken when doing so [e.g. on the Note 3 it seemingly is okay to do between RR and LineageOS but there still could be issues considering that CarbonROM (~ AOSP) and RR (~ LineageOS) don't have the exact same ROM base]

I'm currently still evaluating the 2.44 build for battery life to be sure it didn't got worse compared to a bit earlier builds

after that I'll do more builds for different ROMs
[Xperia Z5 Android Development] :
So wich kernel are you using at the moment on carbon?
[Xperia Z5 Android Development] zacharias.maladroit:
I'm on RR
[Xperia Z5 Android Development] :
Yes but do you know wich kernel could i use on Carbon rom?

the stock one doesen't even have idle for the gpu
[Xperia Z5 Android Development] Mason76:
Dear developer, please build kernel for aosp based rom?
[Xperia Z5 Android Development] zacharias.maladroit:
CarbonROM ?

I'm not doing a pure AOSP-based kernel (e.g. sonyxperiadev AOSP) since that involves an entirely different kernel source

[MENTION=7776553]Mason76[/MENTION]

which specific ROM do you mean ?
[Xperia Z5 Android Development] Mason76:
Yes,I mean last build of carbon rom

And what sound mod you using in RR?
[Xperia Z5 Android Development] Nyuubi:
Ok so at long last I decided to upgrade to .160 (I know I'm late to the party but I was busy)

Everything seems fine so far but being the lazy guy that I am, I was wondering if someone could tell me if I could use the framework-res.apk from 2.33 on .160

See, I made a bunch of modification to it, ambient display and full rotation among others, and it would seem like a pain to redo the work again.

So I was wondering if it would be OK to just swap them or do I need to re-do the modification all over again?

Thanks for your time spent on my silly question!
[Xperia Z5 Android Development] nreuge:
Actually, I don't think it has something to do with flashing new kernels over and over.

I've always been using the same crDroid "stock" kernel for 2 months and I've noticed again a stronger and stronger deviation of the battery level estimation towards the end of discharge.

Then on last tuesday I've wiped cache and done full cycles of discharge-charge (100%-0%-100%) and now the estimation seems quite good.

So, I do think there is an actual issue with the discharging estimation algorithm over long-term periods, a stupid drift...
[Xperia Z5 Android Development] whalesplaho:
Edit.... Deleted.
[Xperia Z5 Android Development] HoiFung:
Hello, this script needs to be executed every time you boot?
[Xperia Z5 Android Development] shanpao:
7.1.1 154 system does not have a kernel?
[Xperia Z5 Android Development] zacharias.maladroit:
yep,

well, now 32.4.A.1.54 has a custom kernel :)

https://drive.google.com/open?id=1B-lDzwIZRN3fK7e1tME4lcYTXa1F-Yi-

it's a GreenKernel 0.9.9 (DEV) branch MOD, essentially a collaborative kernel by [MENTION=8041676]GreyLeshy[/MENTION] and [MENTION=3037651]zacharias.maladroit[/MENTION] (that's "me" ;) )

You can reach that folder also via the link mentioned in OP (the first post) in this thread

ramdisk thanks to [MENTION=5813612]sceryavuz[/MENTION]
[Xperia Z5 Android Development] zhjackss:
tryin it

Edit: same as in GreenKernel, gives an system.ui error with this mod: https://xdaforums.com/crossdevice-d...eria-xzs-loop-ui-pixel-overlay-t3585178/page3 [MENTION=3037651]zacharias.maladroit[/MENTION]
[Xperia Z5 Android Development] whalesplaho:
was tha mod working on .54 stock fw?
[Xperia Z5 Android Development] zhjackss:
havent personally tried the mod. The rom I use has the mod in it.
[Xperia Z5 Android Development] whalesplaho:
Is tha rom based on 54 FW cos tha kernel is based on 54 FW n tha mod is for 376 n 33 FWs.
[Xperia Z5 Android Development] zhjackss:
rom is based on 54. i was using this chinese rom which has a modified systemui and stuff : https://xdaforums.com/xperia-z5/general/steal-bbs-gfan-t3689489

i tried it with stock rom- Dual 54 it boots and works fine until green kernel gives me random shut downs (not reboots) unfortunatelly i dunno how to provide a kernel log.
[Xperia Z5 Android Development] whalesplaho:
Maybe [MENTION=3037651]zacharias.maladroit[/MENTION] can help.....
[Xperia Z5 Android Development] HoiFung:
I also got a random restart at .54
[Xperia Z5 Android Development] GreyLeshy:
[MENTION=1247627]zhjackss[/MENTION] , [MENTION=6370862]HoiFung[/MENTION] , After the restart, the log is here:

sys/fs/pstore
[Xperia Z5 Android Development] zhjackss:
okay ill flash and report back to you. thanks mate
[Xperia Z5 Android Development] zhjackss:
Ok ive been using the kernel for a day. No reboots. I plugged in to charge i had a reboot. Here is the pstore

Edit: appearantly the reboot occurs only when the device is on charging. No problem while using the device, but when i lock sometimes it goes immediate shutdown and reboot itself.

Edit 2: Had another reboot this time while daily use i also atteched it as pstore2
[Xperia Z5 Android Development] GreyLeshy:
1. sched: take into account of governor's frequency max load
[Xperia Z5 Android Development] Mason76:
Please make green kernel for 7.1.1 54 custom rom?
[Xperia Z5 Android Development] balrajs99:
look one page back, its there.

P.S: It gives random reboot AFAIK from feedbacks. You can try.
[Xperia Z5 Android Development] Mason76:
This rom https://xdaforums.com/xperia-z5/general/steal-bbs-gfan-t3689489/page1 dont work this clkernel
[Xperia Z5 Android Development] balrajs99:
I'm also on that rom, its based on .54 only.

May be [MENTION=3037651]zacharias.maladroit[/MENTION] can help.
[Xperia Z5 Android Development] Mason76:
How fix viperFx on thjs rom,he doesn't work((
[Xperia Z5 Android Development] korom42:
[MENTION=3037651]zacharias.maladroit[/MENTION] [MENTION=8041676]GreyLeshy[/MENTION]

Hey I appreciate your work and commitments to xperia community we're lucky to have you keep up the great work ..

I just want to ask if you can help making eas for xperia xz (msm8996) kernel cuz we'd no luck

Stock sony uses QCOM powerhal, idk if we can modify that since we don't have source code to modify cpusets and how to deal with SELinux issues

If you have any ideas .. any help is appreciated ..

lucas is responsible for building the kernel .. [MENTION=6791680]_LLJY[/MENTION] currently we're waiting oreo sources release. This is project src maybe you can take some time and go through the commits

https://github.com/LLJY/android_kernel_sony_msm8996/tree/EAS

This is his ROM thread

https://xdaforums.com/xperia-xz/development/project-energy-aware-scheduler-xperia-xz-t3639515

Also this kernel requires ROM side changes??
[Xperia Z5 Android Development] zacharias.maladroit:
not really sure what this does have to do with kernels (this is a kernel thread),

if viperfx doesn't work you might need to look for a different variant that potentially works with Sony/Xperia ROMs

[MENTION=6791680]_LLJY[/MENTION] has lots of contact/experience with Alin, kholk and the other Xperia devs, by now, I guess, he must have more experience how to do these things than I do (also from SlimX, RomX, etc.)

I'm mostly focusing on Stock ROM & Stock kernels right now also haven't followed development so can't really help

New "beta" / work-in-progress release of a 32.4.A.1.54 kernel

https://drive.google.com/open?id=1B-lDzwIZRN3fK7e1tME4lcYTXa1F-Yi-

Enjoy
[Xperia Z5 Android Development] whalesplaho:
Im presently on Kryptonian rom.... Would have love to test!!!

Good job brov... :good:
[Xperia Z5 Android Development] ninestarkoko:
Hello zacharias,

some questions regarding CPU management on these devices.

Did you get to a conclusion regarding min_cpus online for Little and Big cluster cores on the Xperia SD810 platform?

Some suggested at least 1B always online core, other suggested 2B (stock) always online cores and Little cluster left as stock, other people said 4L+0B...

1) What is your recommendation after these years developing kernels?

2) Moreover, do you have suggestions for the other core ctl parameters?

3) Is it possible to underclock with stock kernel? Would you still recommend underclock?

If you can link me to the latest file that sets core ctl parameters in your source code, i would appreciate (i'm not sure how to find it in kernel code and how it connects with the core ctl files in /sys :silly:)

Thank you for the work
[Xperia Z5 Android Development] GreyLeshy:
core_ctl.c
[Xperia Z5 Android Development] abj2aqua:
Hi guys

Sort of a noob here

Been using my Z5 since 2 years and it gives me something like 3hrs SOT with moderate usage mainly consisting of chrome, music and fb.

Am gonna try and revive this handset before having to buy a new one

Can anyone please tell me what all benefits I'll be getting by installing this kernel and in case it has any cons or any breaks in the phone's performance?

Thanks.. Help appreciated!
[Xperia Z5 Android Development] GreyLeshy:
Release Green_Kernel v1.4.14 for Z5

Change log:

- Watch it here

- Driver update WLAN to 1.71.26 and FW 7.43.184.20 (r718507)

Downloads: Dropbox
[Xperia Z5 Android Development] s.hossein:
Which one is for dual? What is the ramdisk folder?
[Xperia Z5 Android Development] GreyLeshy:
1. Read README_Xperia

2. The RamDisk folder moved to GitHub
[Xperia Z5 Android Development] ninestarkoko:
thanks but can't find the actual integers used for the parameters
[Xperia Z5 Android Development] zhjackss:
Flashed right after published. Havent encountered any problem. Working flawlessly so far. Thanks for your efforts
[Xperia Z5 Android Development] zacharias.maladroit:
New "beta" / DEV channel / work-in-progress release of a 32.4.A.1.54 kernel for Z5

Most notable changes:

- protected against Spectre CPU vulnerability (Meltdown appears Intel processor specific)

- upstream binder (4.9 kernel with most changes except those that would require a total backporting of mm subsystem)

- stackprotector=strong protection with extended coverage of functions

- command queue support on MMC (similar to NCQ for SSDs / harddrives) [depending on use-case better performance or little higher latency]

- kernel-side protection against KRACK (WPA2 vulnerability) (already since a few releases but specifically mentioning it here nevertheless)

- disabled speculative optimizations / calls via GCC (might or might not harden the kernel further against Spectre)

- lower latency bluetooth (this already was included since a few kernel releases but mentioned it here -> go test it !)

- threaded IRQs (also was there for a few releases, should make experience and latency more consistent)

- KSM is disabled (battery drainer, might be usable

- WireGuard support

- several powerefficient enhanced workqueues

- lots of MMC changes

- lots of different subsystem changes

thanks to [MENTION=8041676]GreyLeshy[/MENTION] , [MENTION=7551742]aviraxp[/MENTION] and all the other devs for their work on the 3.10 (msm8994) kernel base !
[Xperia Z5 Android Development] aviraxp:
Ah, meltdown is not Intel specific, A57 also suffers from that. ARM has a patchset in the waiting list against meltdown in upstream. Google has backported them for 3.18 and 4.4, but not us.
[Xperia Z5 Android Development] whalesplaho:
[MENTION=3037651]zacharias.maladroit[/MENTION] maybe when yhu free yhu can build kernel for Kryptonian rom..

Thanks....
[Xperia Z5 Android Development] zacharias.maladroit:
Agreed, thank you for the comment :)

Not really sure how to get those kpti changes for us, that would involve tons of backporting - and wouldn't be even certain to work ...

https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git/log/?h=kpti

[MENTION=4471890]whalesplaho[/MENTION]

Kryptonian is stock-based, latest Kryptonian is .54 at that and the kernel uses 32.4.A.1.54-based patched ramdisk

not sure why it shouldn't work
[Xperia Z5 Android Development] whalesplaho:
When a user asked tha author of tha rom if flashing another kernel is ok den he responded dah not sure if tha rom ll work well... Check here, https://xdaforums.com/showpost.php?p=74460884&postcount=17
[Xperia Z5 Android Development] zacharias.maladroit:
it's a sony out of the box stock kernel with forced permissive selinux [ https://github.com/venkatkamesh/android_kernel_sony_msm8994_VK/commits/release_kernel ]

so yes, it'll work