yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Android Development] zacharias.maladroit:
Okay, that's it !

No custom kernels for Sony Stock ROM EVER again !

compiled the kernel in 10-20 variations,

at least 3-5 times the EXACT SAME kernel config (1.5.4) that was built and uploaded here,

and EVERY bloody time the Sony logo/splash stayed there

OR after a while the red notification LED flashed after a while (+ screen black).

This device is a Stock ROM developing NIGHTMARE ! :mad:
[Xperia Z5 Android Development] whalesplaho:
Sad to hear buddy..... But latest devices has support for kernel development!
[Xperia Z5 Android Development] jonoathome:
Getting random reboots with latest kernel for crdroid 3.7

Interactive Governor
[Xperia Z5 Android Development] PDesire:
Well then we can say at least: It's not related to bootloader :D or your bootlogo would not be even shown

Wow, well there i can't help because i have no idea of mhl and the drivers

Well Sony scheduler just can calculate some more values which does feed their interactive governor. Well I am using Angler scheduler and interactive from Oreo and it's much better (from my opinion)

Well on my EAS kernels i have even disabled it too, so I did on my HMP kernels and no problems. Maybe it's firmware related (?) does some init proces uses sysvipc calls (?)

Your PDesire

---------- Post added at 20:40 ---------- Previous post was at 20:37 ----------

I need to correct you: This device is a nightmare :D

Wait you are telling about Stuck at bootlogo at all? Which Ramdisk you use?

Your PDesire
[Xperia Z5 Android Development] f1^ter:
I also confirm that stuck on bootlogo. But just wanted to disable SELinux. It's really too bad :(

P.S. Firmware 32.4.A.0.160, E6683
[Xperia Z5 Android Development] whalesplaho:
No update yet on crdroid lineage os brov...... Dis booted up but phone cant be used., no root popups!!!
[Xperia Z5 Android Development] zacharias.maladroit:
Updated kernel for RR, crDroid 3.7_HZ_4 (22.09.2017), CarbonROM (release 18.09.2017) [kernel version C_2_6_10]

changes include

fixed video recording (it was broken since September 9th changes), reverted 2 changes

fixed NFC communication (several changes in different subsystems broke it, therefore debugging is currently enabled to check if there are additional issues)

fix against BlueBorne Bluetooth attack vector [https://www.armis.com/blueborne/]

HZ at 1000 Hz for smoother operation, faster race to idle

updated WiFi driver from the Japan firmware, additional few WiFi fixes

fixed the ptrace issue in the very latest kernel which had the video recording fix [cause for instabilities]

re-added voltage control back [needs testing if it works with the dynamic frequency switching of msm_performance + core_ctl]

re-enabled MSM_PERFORMANCE, CORE_CTL, CORE_CTL_HELPER [assumedly needed for proper thermal hotplugging and keeping the device cool]

fix to the NFC driver to make it independent from the Hz rate

ported over FauxSound anew, fresh approach, should work better

optimized for cortex a53

deleting the null-pointer checks + "Detect paths that trigger erroneous or undefined behavior due to dereferencing a null pointer. Isolate those paths from the main control flow and turn the statement with erroneous or undefined behavior into a trap.", this allows better optimizations [and perhaps more stability]

several subsystem changes & fixes

perf: several fixes & improvements that weren't possible with stock ROM

added a few camera fixes (nullpointer fixes) and performance / reliability improvements

enable the VP9 decoder

fixes to interactive governor to avoid calling number unit conversions all the time

enabled Qnovo Interface for QNS [is this working or just being a paperweight without a daemon ?]

increased the max granular size [fixme ?]

several RCU improvements

raise RCU boosted priority

binder 4.9 + fixes

adreno_idler

...

crDroid:

(3.7_HZ_4 , 22.09.2017)

https://drive.google.com/open?id=0BykGGWB96CBQdDVGNWxSR2ljdEk

Resurrection Remix:

(no update to ROM yet)

https://drive.google.com/open?id=0BykGGWB96CBQek9Qem93cDhDTm8

CarbonRom 5.1 , release 18.09.2017

https://drive.google.com/open?id=0BykGGWB96CBQakJDRG03NTV0ZFU

Notes

NO support for F2FS is in the kernel right now, so if you convert your partitions to F2FS you are currently limited to the crDroid bundled kernel

battery consumption could be higher at the moment, I'm lacking the time and patience to compare it right now, also "master" / "reference" testing of battery drain isn't possible since output of the "stock" kernel sound output contains way too much white noise [whiteout putting down the amp, it's way too annoying]
[Xperia Z5 Android Development] zacharias.maladroit:
Apologies,

I won't be doing any Stock ROM kernel updates in the near future,

I've been triggered (and annoyed) way too often with the constant bickering, issues and limitations [like written a few posts before],

for E6653 the build might have worked but the possibility was that the next build (same config, build flags, etc.) was about to fail,

the same is possible for E6683
[Xperia Z5 Android Development] _LLJY:
Alright guys, here's a modified script of init.qcom.post_boot.sh, it modifies core_ctl on boot for better battery. Please test and let me know if performance is laggy. https://drive.google.com/file/d/0B1GT7O5RajNnR05zUDdJLVF1cUE/view?usp=drivesdk . It should be placed in /system/etc and permission should be 644 rw-r--r-- . Thanks
[Xperia Z5 Android Development] zacharias.maladroit:
Yes to both,

TWRP is working and Xreality also works

(I'm currently using a ramdisk which is identical to AndroPlus)
[Xperia Z5 Android Development] zacharias.maladroit:
Hotplug can be changed through /sys configuration

please take a look at the script that [MENTION=6791680]_LLJY[/MENTION] attached (http://xdaforums.com/showpost.php?p=67813484&postcount=201)

and there specifically the 8994 section

dynamic fsync ?

default n

well, that explains it - I forgot to enable or hardcode it to "on" :eek:

Thanks
[Xperia Z5 Android Development] RyTekk:
LOL, maybe you forget to enable low memory killer rbtree too :D
[Xperia Z5 Android Development] nreuge:
Should we use the MODIFY_init.qcom.post_boot that you've shared here ??

Thanks for your hard work!
[Xperia Z5 Android Development] _LLJY:
Use the init script I provided
[Xperia Z5 Android Development] nreuge:
Had a random reboot with it
[Xperia Z5 Android Development] RyTekk:
I had no random reboot with Zach's kernel, even I configured and yah, with Alucard, did a tons of benchmark as well as play for weeks, stock setting is rock solid.
[Xperia Z5 Android Development] _LLJY:
Alright guys, please test this kernel, I modified the ramdisk slightly from Zach's latest update.

kernel link:

https://www.androidfilehost.com/?w=files&flid=83114

cheers
[Xperia Z5 Android Development] RyTekk:
You mean zImage from Zach's and modified ramdisk from you? Can you tell more details?
[Xperia Z5 Android Development] _LLJY:
I just changed the DRMfix version, to test if it really is androplus kernel ramdisk having fantastic battery life or is it just the configuration for the repacker
[Xperia Z5 Android Development] zacharias.maladroit:
It's the repacker,

tobias.waldvogel's emulation got tremendously better - before there seemingly was issues with the Sony ROM correctly working with it,

to say it in plain speech/Tl;dr

The thing however IS that without the emulation, locked bootloader and DRM keys intact (TA partition), the drain still was there,

so it seems tobias must have managed to reverse engineer the process of DRM and improve it compared to Sony

(well, that's at least my theory).

Hope that helps
[Xperia Z5 Android Development] zacharias.maladroit:
Works great so far :good:

Thank you very much :)
[Xperia Z5 Android Development] _LLJY:
Edit: use the old script instead
[Xperia Z5 Android Development] arubamon:
Can this script be used for the E6853? I didn't pay attention to the model numbers in the thread; I thought I was on http://xdaforums.com/z5-premium/development/kernel-zachs-kernel-playground-z5p-wip-t3341437. :eek: I'm now getting random reboots w/ RomAur 4.2.1 and your SunKernel_for_Z5Prem 224_I.1_2_12. If this script isn't compatible w/ my device, is there a way to replace the original init.qcom.post_boot.sh w/o reflashing my rom? Thanks in advance.
[Xperia Z5 Android Development] RyTekk:
It should be compatible, the init sh configures by definition board and three of Z5 family are the same. Zach's kernel is rock solid with default settings and purely stock ROM.
[Xperia Z5 Android Development] nreuge:
This one works perfect. Thanks!
[Xperia Z5 Android Development] toncheee:
Works perfect!

I have one question for _LLjY or Zach:

I usually put my phone on charger over night, and when I disconnect it in the morning cyan LED don't turn off. I have to reboot the phone to turn it off. Is there a way to turn it off without reboot?

Thanks for your answer.
[Xperia Z5 Android Development] zacharias.maladroit:
Does disconnecting (while it is cyan) - waiting for a few seconds (10 seconds or so) and then reconnecting + waiting (5 seconds) and disconnecting

help ?
[Xperia Z5 Android Development] toncheee:
I don't know, but will check on next charge, and report back.

cheers
[Xperia Z5 Android Development] saiz136:
There is so many performance updates, definitely a huge battery drain than stock?

Sad to hear. I was really hoping to get stock because of screen mirroring on dlna, anyway as long as I can share my photos and videos using a 3rd party app, no worries for me. Is it possible if Sony released a new build like 7.1.2 or 8.0 would be awesome to see! [emoji16]

Or I guess not [emoji58] looks like Sony ditched our Z5.
[Xperia Z5 Android Development] whalesplaho:
[MENTION=3037651]zacharias.maladroit[/MENTION] thanks for tha new updates.... Will give it shot and see. But whats tha purpose of F2FS and does it have advantage over Ext4 partition???
[Xperia Z5 Android Development] whalesplaho:
Dnt know.... Flashed and booted up fine but phone not responding well.

1. Downloading from playstore takes forever

2. Apps with roots permission not popping

3. Widgets not loading properly

Please [MENTION=3037651]zacharias.maladroit[/MENTION] look into it... Thanks always
[Xperia Z5 Android Development] whalesplaho:
Edit:::;

Observed dah wen i flashed tha kernel without magisk v14.0 i5 works perfectly and all widget loaded and apps responding fine but wen i restart and flash magisk v14.0 den it starts tha problems again.
[Xperia Z5 Android Development] sirdoha:
The latest kernel [2_6_10] for RR is unstable.

• Heat Issue (very very hot)

• Random Reboot every 1-2 hrs when idling

• Screen unresponsive and cannon turn on using lock button

• Faster Performance but Battery Life is poorer than the previous one.

Hope you could figure the issues. Thanks for your hard work!
[Xperia Z5 Android Development] PDesire:
Provide dmesg and / or pstore ramoops log then ;)

Your PDesire
[Xperia Z5 Android Development] zacharias.maladroit:
thanks for the feedback, sirdoha !

yep, you guys know the drill,

logcat + dmesg or no reaction ;)

In case you guys missed it on the RR thread [this one's currently only for RR, this is the new kernel branch, NovaCore is maxed out - and more of a hybrid, hard to maintain)

New "Facula" (Sun-)kernel for RR (Resurrection Remix) [1_2_4]

Explanation of the name:

https://en.wikipedia.org/wiki/Facula

http://www.isf.astro.su.se/highlights/faculae-explained/

(lol - everytime I read the name I think "Dracula" :silly: )

Link:

https://drive.google.com/open?id=0BykGGWB96CBQTnYzcGFURmhZbUk

changes include

based on the new patched up LineageOS Kernel base ( kudos to [MENTION=4329876]Olivier[/MENTION] )

bleeding edge Linaro 7.2.1 Toolchain

enhanced optimizations

bleeding edge binder 4.9

bleeding edge F2FS (currently NOT built into the kernel, WIP - so do NOT attempt to convert any partitions to it :p )

vibration enhancements to make it work more reliably

BCL (battery current limit) rework

msm-core fixes & improvements

several charger fixes,

fix for overflow during charging fully

ARP spoofing protection (thanks to [MENTION=5996255]jollaman999[/MENTION] )

zram fixes & improvements

lz4 fixes

camera speedups & enhancements

ASoC: CPE enhancements & reliability improvements, stability improvements

stability & reliability improvements

writeback: speedups

Fauxsound

exfat in-built kernel driver + fixes & speed-ups

load average reductions to keep CPU load low

a few scheduler power consumption reductions

fixed/improved battery state calculation (the old one could overflow once the battery was full)

other things I forgot to mention

Additional changes (for 1_2_4)

F2FS enabled

mm: per-thread vma caching added (reduction of the needed cycles for expensive rbtree walk of find_vma() by up to 250%, hit-rate improvement of 25-9431% [ebizzy] [cached] )

re-enabled msm-core polling, decreased the polling rate

other ROMs will follow,
[Xperia Z5 Android Development] zacharias.maladroit:
What non-Stock ROMs are you guys mostly using ?

crDroid ? RR ?

CarbonRom ?
[Xperia Z5 Android Development] whalesplaho:
Downloading new kernel and gonna try.... Thanks always brov!!! :good:
[Xperia Z5 Android Development] dicxz80:
I understand that TS is no longer updating the kernel for stock ROM :(

after reading last few pages, seems that this is one of recommended Kernel Version

Z5_SK_Per_vN_2.33_Nova_I.1_n_1_8_7_2_sum.zip

but I am wondering what is SK stand for ? I assume Per is for permissive ? sum is for sumire ?

Thank you to DNA10 post here and of course thank you TS !

https://xdaforums.com/showpost.php?p=73423586&postcount=2148
[Xperia Z5 Android Development] whalesplaho:
crDroid Lineage OS here.....

Lastest kernel flashed successfully and no hitch at all.... Will test more and see brov!

Good joob!

---------- Post added at 06:01 AM ---------- Previous post was at 05:52 AM ----------

@zacharias.maladroit please add support for kcal.... Thanks!
[Xperia Z5 Android Development] dicxz80:
is this working with stock 2.33 and your kernel ? thank you
[Xperia Z5 Android Development] colorado48:
I think you're not gonna see a drastic difference with this mod since on stock we already have Sony's own engines.

Besides, the mod was built for AOSP roms in mind so it might break something on stock.

Just my humble opinion.
[Xperia Z5 Android Development] and32:
hopefully simple question

hello i am new to modding android so please bear with me. i know this might not be the right place to post this but it is based on kernels. I have a sony xperia z5 e6653 and i wondered if there is a patched kernel for the latest 160 build nougat that has drm fix and saftey net fix, i can only find a download for the older 7.0 version of android. Thankyou if anyone can help
[Xperia Z5 Android Development] saiz136:
Here ya go.

https://xdaforums.com/showthread.php?t=3630282
[Xperia Z5 Android Development] and32:
Thanks for that do you know if that also has the safety net fix, I can see it says drm fix, like I say I'm really new but getting there slowly, thanks again
[Xperia Z5 Android Development] colorado48:
Yes, you will pass safety net just fine.

It's the only kernel for 140 after you've unlocked your bootloader anyway.

Ps: next time just do it, if you wanna mod your z5, take risks, dont be greedy.
[Xperia Z5 Android Development] and32:
OK.thanks for your help
[Xperia Z5 Android Development] and32:
Hello again, I have a problem. I've tried various ways to rectify. When I use anything other than stock ee UK firmware I keep getting signal drop to nothing, it disconnects from ee for a few seconds then reconnects, it's worse when screen locked, can't receive calls. It doesn't do this when the phone is on charge, which is strange. I wanted to use the kernel that I was sent a link for but as soon as I flash that I get this problem. I've tried downgrade to 7.0 and used green kernel, same problem, I've also tried various different roms, all stock but from different regions. Thankyou if anyone can help
[Xperia Z5 Android Development] sirdoha:
What is your device model?
[Xperia Z5 Android Development] and32:
It's e6653
[Xperia Z5 Android Development] sirdoha:
Maybe yours is a locked variant?
[Xperia Z5 Android Development] and32:
What do you mean, do you mean as in sim locked to there network. I looked in configuration and I got 0 next to the network bit it's zero on them all, so I think that means it's unlocked dosnt it, but I'm not sure

---------- Post added at 07:10 AM ---------- Previous post was at 07:10 AM ----------

As in sim locked
[Xperia Z5 Android Development] whalesplaho:
[MENTION=3037651]zacharias.maladroit[/MENTION] under wakelocks, it shows no wakelocks... crDroid kernel latest version
[Xperia Z5 Android Development] zacharias.maladroit:
more details ???
[Xperia Z5 Android Development] nreuge:
Ha ha, that's the ultimate kernel then :D ;) ;)
[Xperia Z5 Android Development] zacharias.maladroit:
I just got the same, actually

no data with BBS :p

Battery consumption is as usual, "relatively low" (well, "high" if you compare it with other devices 1 generation before it)

We must simply start to accept that the SD 810 isn't as efficient as the (great) SD 800, 801, 805 or the SD 6xx devices,

something, for sure, is messed up with the idle battery consumption: it's way too high:

standby (all airplane, no wifi) is only ~ 4-5 days ¹ whereas with SD 800 (Note 3) with a pretty old battery (still using the first one) it's still at least 1.5-2x as much ²

¹[mostly doing nothing or only having wifi on occasionally (off while standby) and reading stuff on the web, ebooks from time to time]

²[and that battery seems to have 2 areas where it feels somewhat broken so that comparison is even in favor of the Z5 !]
[Xperia Z5 Android Development] sirdoha:
I'm thinking of switching to stock ROM.

Could you guys suggest the best FTF version and the best version of SunKernel for that FTF?

Thanks in advance.

Btw, does battery life on the stock ROM actually better than LOS?
[Xperia Z5 Android Development] nreuge:
Yes, with my old Z2 I get easily 2 days of normal usage. With Z5, it's 1.5 day.

For sure it is frustrating, but after all, 1.5 day is enough :)

Some people say that Z2 was a better device, they forget that Z5 is way more powerful (and has much better camera and nicer design)...

The newest SOC (e.g. SD 835) are for sure more power efficient, but knowing that Sony reduces the battery capacity for each new flagship, I don't expect again the good old days of Z2...
[Xperia Z5 Android Development] foueddyf:
Yes, definitely.
[Xperia Z5 Android Development] sirdoha:
Sorry. I can't manage to find out what it the latest "WORKING" (stable/bootable) version of SunKernel for stock ROM.

Anyone can help? Thanks in advance.
[Xperia Z5 Android Development] zacharias.maladroit:
Probably one of the 2.33 Nougat ROM kernels

Anyone using AOKP ROM

and wants a dedicated Facula build for it ?

[MENTION=6853019]Rilard[/MENTION] does that mean you will only use that ROM if there's a custom kernel available ? :angel:
[Xperia Z5 Android Development] whalesplaho:
On previous builds it shows wakelocks to block..... Buh on latest version its empty, hope its okay.
[Xperia Z5 Android Development] zacharias.maladroit:
naturally,

that's the "stock" state,

the way the wakelock blocker was implemented it didn't seem to work properly ?

at least every time I tried to block (read: disable) the wakelocks, the phone would crash and burn after a short while :cyclops:

So: either they'll be left out or replaced with something that actually works (better)

Thanks for the feedback
[Xperia Z5 Android Development] Rilard:
[MENTION=6853019]Rilard[/MENTION] does that mean you will only use that ROM if there's a custom kernel available ? :angel:

Yes,I want to use AOKP, but on this ROM is quickly discharged battery. And I hope that with your kernel this will not happen.
[Xperia Z5 Android Development] whalesplaho:
yeap just like stock....

but it same way we been using and ExKM blocks dem cos dey dnt appear on batterystats.... maybe something new will do tha job!!!:good::highfive:

---------- Post added at 01:52 PM ---------- Previous post was at 01:28 PM ----------

also can yhu add kcal support please.....
[Xperia Z5 Android Development] Mason76:
HI,sorry my bad English

CarbonRom 5.1 at latest novacore very hot,and Cpu always on at max Mhz

system animation twitches

Stock kernel carbon rom much faster and smoother

Why?
[Xperia Z5 Android Development] s.hossein:
Deleted
[Xperia Z5 Android Development] zacharias.maladroit:
If you guys have ideas on how to reduce the battery or power consumption of the bcmdhd / WiFi driver,

please post links to commits (kernel changes),

our WiFi module seems to consume unreasonably much power when comparing to e.g. the Note 3

[e.g. with 3G or LTE and good reception the battery consumption appears to be much lower compared to WiFi]

Anyone can confirm ?

Thanks
[Xperia Z5 Android Development] foueddyf:
I'm on CR and yeah, I get the same battery life whether I'm on wifi or lte (tested on full cycles). So either the lte optimizations are crazy good or the wifi is lacking.

I'm leaning towards the latter :)

In numbers: 3-3.5hrs on screen time over 16-17 hours uptime on wifi and lte on CR.

On stock rom, I would get that for lte only. On wifi I'd get 5hrs ost.

Wish I could help you on the kernel but I don't know anything about coding :(
[Xperia Z5 Android Development] whalesplaho:
+1 too..... not so awesome on wifi and its not like dat on stock, what yhu ll get on crDroid kernel on wifi is what yhu ll get on stock lte!

hope it get better but loving tha kernel features....
[Xperia Z5 Android Development] zacharias.maladroit:
Potential (and confirmed) battery drainers are:

adaptive brightness [sometimes]

double-tap-to-wake [sometimes, more often]

Location (High accuracy) - or at all, sometimes there's a bug and only disabling helps

Security -> Device administrators -> "Find My Device" [pretty much]

*alarm* , *launch* wakelocks [pretty much - can be disabled e.g. in RR, Resurrection Remix or other means]

apps going crazy and keeping the device awake
[Xperia Z5 Android Development] foueddyf:
My testing had the following settings:

adaptive brightness OFF

double-tap-to-wake ON

Location OFF

Security -> Device administrators -> "Find My Device" ON

*alarm* , *launch* wakelocks NO IDEA

I'm gonna test again with everything off and report back.
[Xperia Z5 Android Development] Mason76:
Please rebuild last version Facula

Cpu always run at max clock
[Xperia Z5 Android Development] Mason76:
Allo!
[Xperia Z5 Android Development] zachariasmaladroit:
Bonjour :)

That still doesn't fix the internet outage I have ;)

---------- Post added at 07:48 PM ---------- Previous post was at 07:43 PM ----------

Wow this app is bad: no editing of posts, anyway

That bug when the CPU stays at max frequency is a feature and also happens with stock kernel, well, so it is either apps keeping your phone busy or the CPU driver going a bit crazy (it is a built in feature, waiting how the other devs attempt to fix this for the small cores, since last time I tried to apply it to the little ones it got crazily hot and the little ones also stayed at high frequencies).

Both the little and big cores are affected so both needs to be fixed

---------- Post added at 07:52 PM ---------- Previous post was at 07:48 PM ----------

With all this internet outrage I need a stock ROM with best battery achievable on this device:

Was 5.11 Marshmallow great for everyone in terms of battery (I mean the ROM base)

[MENTION=6791680]_LLJY[/MENTION] your ROMs were based on 5.11, right ?
[Xperia Z5 Android Development] Mason76:
to wait for a new version of the kernel? applications do not load, the phone is empty in principle. rolled into the stock core, with it and poplavnee.a Akb the same eats in principle everywhere ..
[Xperia Z5 Android Development] _LLJY:
yeah, 5.11
[Xperia Z5 Android Development] zacharias.maladroit:
Here's a build of GreenKernel-DEV (courtesy of [MENTION=8041676]GreyLeshy[/MENTION]) 32.4.A.0.160

(see attachment)

that should get you a custom kernel for Stock,

BlueBorne is taken care of, too

As always - in order to build a (working) custom kernel for 32.4.A.1.54 - Sony needs to release the source

Enjoy