yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Premium Android Development] the_brad:
Works great so far! I miss the io-schedulers and GPU-idling at 27 MHz. But that's not an important thing right now ☺️ And safetynet finally passes with Magisk! Thank you for this!

Gesendet von meinem E6853 mit Tapatalk
[Xperia Z5 Premium Android Development] petyasb:
Screen rotates upside down

I'm useing Z5p Dual E6883. I flashed MM ftf, installed ROMX 3.3, flashed Z5Prem-dsds_sk_perm_v5.11_III.2_6_CTL_X_SATs_dual.zip

The result is the same - the screen rotates upside down. Is there any way to fix screen rotation on Z5p?
[Xperia Z5 Premium Android Development] reubenbrown13:
Have you tried to only flash the stock for and this kernel to see if you have the rotation issue?

I had the same problem the first time I tried Romx with my zip, and flashing stock fixed it.
[Xperia Z5 Premium Android Development] petyasb:
I needed not just to flash ftf, but boot with it and make basic setup.

https://xdaforums.com/xperia-z5/dev...e6653-e6683-z5p-t3388183/page304#post71655742
[Xperia Z5 Premium Android Development] zacharias.maladroit:
376/378 Nougat kernel, v376_I.1_6_5

https://drive.google.com/open?id=0BykGGWB96CBQb0NTYXc5YURwTHc Z5Prem_SK_Perm_v376_aigoo_I.1_6_5_sats.zip

https://drive.google.com/open?id=0BykGGWB96CBQXzRvaW5PdEJsa0E Z5Prem-DSDS_SK_Perm_v376_aigoo_I.1_6_5_sats_dual.zip

This kernel has

WiFi related battery saving changes, drain might be SIGNIFICANTLY lower

cpuidle changes to allow it to sleep better [stability & reliability need testing]

tweaking optimization flags [stability & reliability need testing]

optimization flags on the kernel might work reliably now (they are actually passed to the kernel)

zram is using lz4

high-performance mode on the wcd9330 ASoC (audio sound chip) is enabled by default [battery consumption, stability & functionality need testing (e.g. echos in calling, etc.)]

sched_boost is set to default value (on or off, depending on what enables or disables it) to potentially lower power consumption

TONs of wakelock blockers have been added (and working reliably), in EX Kernel Manager ALL are available, on Kernel Adiutor Mod NOT

If you're having HIGH battery consumption with WiFi, set the 2.4 Channel to 20 MHz (full bandwith) INSTEAD of 40 MHz - 40 MHz has HIGHER battery consumption and drain (might be bug of the WiFi driver),

or if you have 5 GHz available USE that, it works more reliably
[Xperia Z5 Premium Android Development] the_brad:
[MENTION=3037651]zacharias.maladroit[/MENTION] as requested at the Z5-Thread, here are stock- and patched kernels for latest firmware.drive

rootkernel-log is attached, too.
[Xperia Z5 Premium Android Development] luvmdy:
for a long time tesing I found when using your kernel@corona 5.11, the sound become bad with static noise. However, the stock kernel with little mod by rootkernel_v5.23 haven't noise. But yours is better performance than the stock, and I especially like the boot screen with decreaced brightness. oops :(
[Xperia Z5 Premium Android Development] zacharias.maladroit:
Thanks for those !

dm-verity however has to be disabled (in addition to Sony RIC),

or was that intentional to keep /system without modifications ?

that's not really needed to get a SafetyNet pass
[Xperia Z5 Premium Android Development] _LLJY:
Yeah it's not, seems like safetynet is easily bypassed by magisk now, without even needing to disable root
[Xperia Z5 Premium Android Development] the_brad:
Did not know that I could disable that safely and still pass safetynet. However, I assumed that everyone uses Magisk, which disables dm-verity by default. I'll give you a new one, once I come home from the pub [emoji6]
[Xperia Z5 Premium Android Development] zacharias.maladroit:
[MENTION=817586]the_brad[/MENTION]

I found repacked Z5P & Z5P dual kernels - let me know how those work out with the kernel :)
[Xperia Z5 Premium Android Development] the_brad:
Unfortunately not as good, as I expected ... :(

I can't get magisk to root the device. Magisk-Manager says, my device is unrooted... I checked that with "su" in terminal but that fails, too.

Maybe that has to do with the ramdisk you used (don't know, where you "found" it ;) )

Anyway, here is a new one (same as last one, but this time, verity is disabled...)

gdrive

On the good side, the device boots, it stays stable for the few minutes, I used it. ADB reboot recovery only works, if you have a separate recovery image in FOTA-partition...
[Xperia Z5 Premium Android Development] zacharias.maladroit:
(https://xdaforums.com/z5-premium/general/rooted-stock-modified-kernels-32-3-0-t3556874)

Thanks :)

Can anyone else provide a ramdisk of a Z5 Premium Dual/DSDS with a similar config please ?

Then I can do a new build for Z5 Premium,

(I'm mostly in Linux and from there it's rather cumbersome to extract and convert the kernel.sin to kernel.elf, etc.)

Thanks in advance !
[Xperia Z5 Premium Android Development] suffez:
i got random reboot when playing video on fb and youtube.. can you recheck bout it
[Xperia Z5 Premium Android Development] zacharias.maladroit:
Thanks for the report,

I couldn't reproduce youtube instabilities (Youtube app ?), tried both Wifi & 3G/LTE connections

I don't have or use Facebook, so I'll need logs for any meaningful investigation for that

https://sites.google.com/site/zhuow...onandroid60andabovesysfspstoreconsole-ramoops

/sys/fs/pstore/

console-ramoops

dmesg-ramoops0

dmesg-ramoops1

etc.

On what connection does this happen ? 3G/LTE ? WiFi ?

Youtube app ? Browser ?

What ROM (2.33) ? Without modifications ?

Or are modification scripts or System apps used ?

Any additional changes from Sony's stock ROM ?

Changes in the Kernel configuration ?
[Xperia Z5 Premium Android Development] the_brad:
[MENTION=3037651]zacharias.maladroit[/MENTION] Thanks for the new version! In the meantime, I managed to get magisk work. But v12 still fails to root my device. So I tried an older version and, voilà, v11.6 did the job. Don't know, what has changed... With rootkernel'd stock boot it works out of the box...

Will give feedback after a few days of usage (stable for now :) ).
[Xperia Z5 Premium Android Development] Andrei K.:
[MENTION=3037651]zacharias.maladroit[/MENTION] I've compiled the I.2_3 kernel for the Z5P and it's working fine until now. Keep up the great work :)

The only weird thing happened after an hour or so listening to music using stock Sony Music app. I pressed the power button to check the time and the screen didn't turn on, so I pressed the button again some more times and nothing. All of that and the music was still playing. Then I proceeded to hard-reboot the phone.

Some more info I think you may find useful:

- Stock ROM 32.3.A.2.33

- No root and no Magisk

- Wired headphones

- Unlocked the phone from time to time while music was playing to check time, messages, change tracks etc

- No logs in /sys/fs/pstore after hard-reboot
[Xperia Z5 Premium Android Development] zacharias.maladroit:
Thanks for the feedback [MENTION=8207083]Andrei K.[/MENTION] !

Please update to 2_5 & compile that one, that one will also be posted shortly,

explanation for pstore issue & reboot is in the Z5 compact thread: https://xdaforums.com/showpost.php?p=71921481&postcount=401

haven't gotten around yet to track down if there's a difference in pstore (or actually the ROM, selinux, etc. ?) why pstore isn't working

I had a reboot yesterday evening/night and the content of pstore was empty,

last time I attempted to show the contents of that sysfs folder I however had gotten "permission denied" - so that could be one lead to track down why pstore is displaying nothing at all
[Xperia Z5 Premium Android Development] the_brad:
As promised: Battery-life has never been so good on nougat with my Z5P! Accubattery measures less than 1%/h regularly and often around 0.6%/h :o

And that with a highly filled phone (looooots of apps, lots of sync-accounts). Battery while using screen has improved significally, too.

What I use (the most important parts):

- Magisk 11.6 (as stated, v12 doesn't root the phone)

- greenify with shallow hibernation enabled

- this mod to keep the device even cooler (mainly while charging)

I observed the behavior of lazyplug is a bit strange, sometimes. It keeps only 2 Little-cores active (which have a load at 100% for minutes - but the device stays cool!). Sometimes one, another time up to 4 reboots fixes the problem. It then keeps either all cores active (no tinkering with the lazyplug profiles) or shuts down one or more cores (as expected, when choosing "lazy" profile).

What I love the most is (finally!!) the ability to pass safetynet!:good:
[Xperia Z5 Premium Android Development] Tilman:
Installed the latest Nova_I.2_5, everything's fine, no crashes or random reboots even while listening to music with DSEE (continuous for almost 1.5 hrs), YouTube & FB videos working fine too.

I find the device heat normal while daily usage, but it heats up a lot while charging, CPU & GPU temps were above 45°C even with Mobile Data & Wifi off.

Its smooth enough, a bit stuttering while scrolling through Facebook & Play Store, not much of an issue, both very resource hungry apps.

Though I find the new hotplug weird, for me, only cores 0-5 were online all the time, cores 6 & 7 were always off.

The new I/O Scheduler BFQ does wonders for other apps & multitasking.

Hope you could do something to solve TWRP issues, for now I'm back to stock patched with TWRP. Thanks.
[Xperia Z5 Premium Android Development] Andrei K.:
Hello.

I have version I.2_3 compiled by myself and TWRP (3.0.2) working via pressing volume up button on boot. I'll compile the new version of the kernel when I have some more time and share here.
[Xperia Z5 Premium Android Development] Tilman:
Let Zach know of this, by the way I use E6883 & you wouldn't have the time to compile a kernel again. Thanks anyway.
[Xperia Z5 Premium Android Development] zacharias.maladroit:
Sun-Kernel Nova 2.33 I.2_8_2 [Highly experimental kernel]:

https://drive.google.com/open?id=0BykGGWB96CBQTVE3UzQzaTE5YUk Z5Prem_SK_Enf_vN_2.33_Nova_I.2_8_2_sats.zip

https://drive.google.com/open?id=0BykGGWB96CBQN0VRTjZseXphS00 Z5Prem-DSDS_SK_Enf_vN_2.33_Nova_I.2_8_2_sats_dual.zip

Changes since I.2_6:

enabled power_aware_timer_migration (timers on less power consuming cores) [this should save juice]

ALSA: overhauled the core of the sound subsystem (stability, reliability & other fixes/improvements)

ASoC: Make sure drain command is finished before pm [re-ported it to our device]

ASoC: Correct offload device configuration

replaced more instances of wait_event with wait_event_interruptible [battery savings, lower load avg]

GCC 6.3 Toolchain: add optimizations from O2 optimization level that improve code & stability, minimize size and execution stalls [eval]

dtsi: lower initial backlight brightness some more (matching SunKernel Eclipse III.3)

dtsi: re-add missing ramoops (pstore) entries, now pstore might actually work

arm64: fix a migrating irq bug when hotplug cpu [highly experimental change] [essentially it's moving functions & stuff around so not that experimental - but still, it's concerning IRQs, this is supposed to fix instabilities related to hotplug that have existed for quite a long time]

silencing several more sources of logspam

fix NULL pointer dereference (crash/reboot) in i2c core

binder: drivers: android: correct the size of struct binder_uintptr_t for BC_DEAD_BINDER_DONE

ipa: fix the potential heap overflow on wan-driver, ipa: Prevent multiple header deletion from user space

drivers: soc: qcom: Add error handling in function avtimer_ioctl

msm: sps: add the checking of userspace input length

qseecom: fix incomplete error handling for several functions

fixed the warning in sched/core related to idle_cpu_relaxed

cpufreq: interactive: Skip timer when policy->min == policy->max

ping: implement proper locking

net: ipc_router: fixes

Highly experimental Kernel

If you're uneasy with experimental changes - then hold off testing it for a few days until I can say more

You have been

warned

and given a

choice

Want feedback

- stability (besides Sony Music App)

- smoothness [is the GUI less smooth ? more lags ?]

- performance (e.g. gaming, is there lags, stalls, lower performance ?)

- battery runtime/idle or usage/consumption

- things that might have changed in behavior

- upon crash: logs: https://sites.google.com/site/zhuow...onandroid60andabovesysfspstoreconsole-ramoops
[Xperia Z5 Premium Android Development] zacharias.maladroit:
Sun-Kernel Nova 2.33 I.2_12_2 - caretaker:

https://drive.google.com/open?id=0BykGGWB96CBQYTZRcXpIRXU3V3c Z5Prem_SK_Enf_vN_2.33_Nova_I.2_12_2_sats.zip

https://drive.google.com/open?id=0BykGGWB96CBQdm1yeldqQVlnUVk Z5Prem-DSDS_SK_Enf_vN_2.33_Nova_I.2_12_2_sats_dual.zip

Changes since I.2_8_2:

kernel/sched (scheduler) rework [sync with linux 3.10.105+ upstream]

scheduler: fixes that Sony seemed to have overlooked/left out before

reverted (undo): IRQ rework - too experimental, is still under heavy work in the Linux kernel

ASoC: a few fixes

ASoC: LOTs of fixes on the CPE (codec processing engine) that should make failing much less likely (fix memory corruption [instabilities]], fix instabilities, allow session with calibration data, fix error that sound wouldn't work & device would need to be rebooted, etc.) [Sony didn't seem to care about those]

optimization flags: back to conservative/defensive flags

hardening of the kernel: raised the bits of randomization (thanks to [MENTION=5243932]Tommy-Geenexus[/MENTION] for the reference), enabled YAMA security framework

hardening: raised the MMAP MIN_ADDR to 32768

hardening: a few additional restrictions added

troubleshooting: set CONFIG_ILLEGAL_POINTER_VALUE to 0 (disabling it ?) this should counter faulty kernel and/or app behavior but it's not really appreciated (eval)

Changes since I.2_12:

fixed "random" reboot related to DSP / sound processor that could (finally !) be tracked down the drain handling (thanks to [MENTION=5033594]korom42[/MENTION] for the nice log output)

Want feedback

- general stability & overall functionality

- upon crash: logs: https://sites.google.com/site/zhuow...onandroid60andabovesysfspstoreconsole-ramoops

Notes

- the IRQ rework revert should fix softirq/irq related issues (@trax7 ), the CPE and sound changes should make sound operation generally more reliable

- likely that "sleep of death" / not waking of the phone also is fixed now

- sound hasn't been extensively tested yet, so Sony Music App might be crashy (needs testing)

- battery consumption might still be somewhat higher (can't really explain since with exact same flags & config / very same kernel it was lower for one entire day - before starting working on the kernel)
[Xperia Z5 Premium Android Development] zacharias.maladroit:
Still any Marshmallow (5.11) ROM users around ?
[Xperia Z5 Premium Android Development] zacharias.maladroit:
Sun-Kernel Flares 5.11 (

Marshmallow

) II.3 Kernel

https://drive.google.com/open?id=0BykGGWB96CBQV1ZMY0plNnptTVU Z5Prem_SK_Perm_vMM_5.11_Flares_II.3_lazy_sats.zip

https://drive.google.com/open?id=0BykGGWB96CBQek15MzVKaVI4OU0 Z5Prem-DSDS_SK_Perm_vMM_5.11_Flares_II.3_lazy_sats_dual.zip

Changes/features:

- too much changes to list right now

Kernel Sauce: https://github.com/zachariasmaladro...kitakami_r2/commits/Sun-Kernel_Flares_II.2_t3

This kernel might be the base to port to 372, 2.33 Nougat ROM

Notes:

set "relaxed" governor for BIG cores

set "chill" governor for BOTH clusters (little cluster, BIG cores cluster)
[Xperia Z5 Premium Android Development] -DM-:
Yup... And been on Z5Prem_SK_Perm_v5.11_III.2_6_ctl_X_sats since it was released without a single issue...

Will test drive this new one... Thanks

(I'm staying on MM until Xposed get updated)
[Xperia Z5 Premium Android Development] Andrei K.:
I've been using version I.2_12_2 (compiled by myself) for a few days and it's running very stable until now (video recordings not tested).

Keep up the great work :)
[Xperia Z5 Premium Android Development] the_brad:
Sorry for running late with this (just forgot to give feedback...) :highfive:

My experience is basically the same:

Very stable, battery is really really fine! (up to 1 %/h with all syncing and wifi and mobile-data enabled)

Phone may become a bit laggy after long uptime (maybe something with lazyplug?) but I was not able to recognize any pattern.

As someone else stated, Wifi (sometimes) seems to switch off after the display goes off. I can see the wifi reconnecting sometimes.

I never had any reboots or freezes with I.2_12_2 :good::cool:
[Xperia Z5 Premium Android Development] -DM-:
Hey Matt...so did a test drive with this kernel, first boot screen brightness was stuck at 100% (adaptive brightness on, removed it, still couldn't change brightness no matter what), did a reboot as I had to flash superSU anyway and second boot brightness went back to normal,ran the device for a while...performance is laggy at best and screen has to redraw while scrolling in browser for example...

I did a third manual reboot, just to check thing up once again and I ended in a complete clusterf..k this time around...phone booted to a dim black screen (no sony logo) and moved to brighter black screen and sat there without going any further...so no system final boot and no more root and no more recovery.

At least I took a backup right before flashing that kernel....I was able to get me out of that mess after a long while by finally getting into fastboot at least, reflashed a rooted kernel (whatever I could get my hands on) and fastboot a recovery image again then restored my backup...

Don't really know what happened and not too keen on giving it another test right now though as it took me a while to get my s..t back together ;)
[Xperia Z5 Premium Android Development] suffez:
im installing Sun-Kernel Nova 2.33 I.2_12_2 - caretaker.. all run gud but still want to know any fix twrp? having problem when want to clear dalvik and cache. btw any gud setting kernel dat can apply for batt & speed. tq
[Xperia Z5 Premium Android Development] the_brad:
[MENTION=3037651]zacharias.maladroit[/MENTION] I've been tinkering around with Nova_I.2_12_2 for a while now and never had a single reboot!!! Great work!

One thing that keeps bugging me is the fact, that I'm not able to get several features of magisk running... I found the problem is enforcing mode of SE-Linux (which of course isn't nice to set to permissive on security-aspects). I tried every single bootscript, I found, but it doesn't appear to be fully set to permissive.

Then I checked your kernel's cmdline and since that I'm wondering why you choose the following line

where

should already do the job...

I finally managed to replace that line and put it in permissive mode (for now) and all the features are working (systemless hosts-file, magisk-versions newer than 11.6, ...)

Do you have a specific reason for the use of that additional cmdline? ...Maybe I'm investigating on the wrong end...
[Xperia Z5 Premium Android Development] Vishnarov:
Deleted
[Xperia Z5 Premium Android Development] adilsh:
really want to install the latest sunkernel for my e6853@.33

becuase the original firmware is easily to get hot and battery drains fast when using it.

sunkernel's performance is great when i was using at android 6.0

but the problem is, when i flashed the Sun-Kernel Nova 2.33 I.2_12_2 - caretaker, i will lose root and recovery, how can i get them back with this nice kernel?
[Xperia Z5 Premium Android Development] suffez:
flash kernel first then flash sr3 supersu zip file.. but recovery not stable in this version
[Xperia Z5 Premium Android Development] adilsh:
thanks for your reply, but how can i flash sr3 supersu zip as i cant reboot into recovery?
[Xperia Z5 Premium Android Development] zacharias.maladroit:
Flash recovery to the recovery partition (fastboot flash recovery twrp.img)

You can create a script (via e.g. ScriptManager) that contains

adb reboot recovery

or turn off the device

then

press

Power + VOL DOWN

wait until the screen splash (Sony logo) is shown for a few moments then only keep pressing the VOL DOWN button

that should boot into recovery (the one on the recovery partition)
[Xperia Z5 Premium Android Development] adilsh:
Which recovery img i can use? As i flash the rooted kernel before, thats include the recovery

edited: finally done! thanks for your help! after flash the recovery.img, i can use Power + VOL DOWN to get in recovery mode.
[Xperia Z5 Premium Android Development] the_brad:
In case, you want to try a fully working TWRP 3.1, try the one from this thread

Recovery Lineage OS

I had been searching for a while for one, that works flawlessly ;)
[Xperia Z5 Premium Android Development] sajithvarghese1:
This my new mobile. Z5P dual .How i use this kernel. I'm nothing du with Z5P dual. Not root access also no TWRP ..

---------- Post added at 07:29 AM ---------- Previous post was at 07:26 AM ----------

1 more thing.its running on android 7.0 nugat
[Xperia Z5 Premium Android Development] reubenbrown13:
To use it, you need to unlock to boot loader and flash the kernel. Follow the OP instructions in the 1st post
[Xperia Z5 Premium Android Development] Shauneh:
SafetyNet

Cannot get SafetNet to pass, I didn't have Magisk installed and then tried again but still not working.

Any advice on this from anyone? I noticed [MENTION=817586]the_brad[/MENTION] had his working, is it still currently working?
[Xperia Z5 Premium Android Development] Shauneh:
Do you have a copy of this? :D also, does this get past safetynet?

Cheers,
[Xperia Z5 Premium Android Development] the_brad:
If you can wait until Tuesday, I'll leave you a copy... I am at a festival right now.

Cheers.

Gesendet von meinem E6853 mit Tapatalk
[Xperia Z5 Premium Android Development] Shauneh:
Tried to edit my own kernel, extracted using Image Kitchen but the rebuild did it in AOSP build standard causing huge issues. But one thing I did learn, was that 11.6 version of Magisk is causing the issue with CTS profile mismatch.

This is sorted with v12, so I assume my problem lies there with the double enforcement line in the cmdline file. I can wait till Tuesday as I got my Android Pay back until then :P
[Xperia Z5 Premium Android Development] the_brad:
As promised gdrive

It passes safetynet using Magisk V12 official and even "systemless hosts file"-option sticks :D

I repacked the zip-file for easier flashing in recovery ;)
[Xperia Z5 Premium Android Development] adilsh:
great for z5p users, thanks!:)
[Xperia Z5 Premium Android Development] xElectroKingx:
What about recovery does it work now?

Gesendet von meinem E6853 mit Tapatalk
[Xperia Z5 Premium Android Development] Danjel4u:
Z5Prem-DSDS_SK_Perm_vMM_5.11_Flares_II.3_lazy_sats_dual.z

Can someone give me the abbreviations of the file name?
[Xperia Z5 Premium Android Development] arshia.sunboy:
hi.is there new version of kernel for 2,33 nogut for z5 premium dual e6833?

there is one version in download link but twrp dont work with it.and if I install lineageos_twrp_recovery_3_1_1_0_fixed

can boot to recovery but I cant reboot it from twrp to system,all reboots go to twrp
[Xperia Z5 Premium Android Development] Ashray_Vk:
Haha take your time man. Thanks for giving time for this device :)

I was using greenify + amplify + AppOps xposed + power nap + governor tweaks for interactive governor.

Battery performance was really good.

Incase you find new battery saving methods, let us all know :)

Thank you again, [MENTION=3037651]zacharias.maladroit[/MENTION] :)

Edit: oh and for tomtom sound control, there should have been some related files in sys/class/misc for it to work, which I found missing. Not complaining, just letting you know :).
[Xperia Z5 Premium Android Development] zacharias.maladroit:
yes, of course,

but you can also flash it via fastboot ;)