yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Android Development] whalesplaho:
Hope yhu backup yur apps before flashing kernel earlier... Its always tedious restoring apps tho TB does tha job for me but still needs some little setup.

Will flash kernel now too and see.... Its 7.43am here!!!

Did yhu flash fota recovery to use or what did yhu do?
[Xperia Z5 Android Development] whalesplaho:
After flashing Kernel,2.33, SystemUI FC couldnt get a log... Dnt know whats wrong, reverted back to 1_6_7...
[Xperia Z5 Android Development] koekoek91:
Luckily I frequently move my pictures/video's /documents to my sd card using built in storage options from Sony.

To backup and restore call logs, text massages, contacts and apps, i use superbackup from the playstore. It works much better for me than TB.

I never was able to truely get TB to work to backup everything i need, but superbackup does the Job and takes little configuring to get It to work.

About your question..

I flashed firmware, then latest kernel using fastboot....

Then i used boot.img from 1_6_7 kernel to fastboot into recovery by doing the command:

fastboot boot boot.img

Then I flashed magisk + phh's and rebooted.

I think the issue I had yesterday of not being able to boot the kernel was because when I was on 1_6_7 kernel which had TWRP working included, I had flashed TWRP 3.1 at some point (to the fota kernel I think)... so after flashing the new kernel and trying to reboot system it just kept rebooting into TWRP 3.1.

I was going to try to experiment fixing this myself, so what I wanted to do was flash only fota kernel via flashtool.

(Not sure if this would have fixed my problem), but I like experimenting and trying to fix things myself before asking for help.

Before I was gonna do this I wanted to run a full backup, but first I wanted to delete the old backups...

here's when I started to make a couple of huge mistakes... I went into TWRP --> restore and there you can select backup and delete it, but I accidentally swiped to restore, and it was a pretty old backup so I sort of panicked I guess and did a hard reset while the restoring process was processing, then booted into TWRP and deleted my backups.... and assumed I would still be able to boot into my system, but there it was..... the message of ''No OS installed''

Game over it was at that point :p

So I shouldn't mess with my phone when I just woke up,

and probably I should just go ahead and buy a bigger SD card.

Lesson learnt though :silly::laugh:

---------- Post added at 11:00 ---------- Previous post was at 10:55 ----------

@zacharias.maladroit

The volume up and down issue is now gone thankfully.

Just had a random reboot though...

Was listening music with my headset when the volume suddenly dropped significantly and about 30 seconds later it rebooted.

Again no logs available in pstore folder, any idea why there are no logs lately in pstore folder, after a random reboot?
[Xperia Z5 Android Development] whalesplaho:
[MENTION=7328701]koekoek91[/MENTION] my systemui keeps fc... Dnt know whats wrong, im using ported XZs systemui!!!

Buh when restoring apps with superbackup, it keeps asking to be installing tha app manually right cos i once used it.?

TB has been a life saver for me.
[Xperia Z5 Android Development] koekoek91:
Usually for me the apps are all restored automatically, but there are some hiccups sometimes and indeed sometimes I have to manually restore. But still TB has given me alot more headaches in the past.... I guess its just personal preference here to what app to use.

No FC's here.....

Do you have a link for me to the ported XZs systemui? I'd like to try it :)
[Xperia Z5 Android Development] whalesplaho:
I modded tha systemui to suit my needs but here is tha original thread; https://xdaforums.com/crossdevice-d...ort-xperia-xzs-loop-ui-pixel-overlay-t3585178

Please try and let me know cos i wanna test tha new kernel....

---------- Post added at 10:53 AM ---------- Previous post was at 10:44 AM ----------

To flash tha latest kernel,

1. Fastboot tha kernel (fastboot flash boot boot.img)

2. Flash fota recovery (fastboot flash recovery recovery.img)

3. Boot to recovery to flash superuser zip....

Right [MENTION=7328701]koekoek91[/MENTION]
[Xperia Z5 Android Development] koekoek91:
I think it must have something to do with your modding.

I'll try when I get time. Exams soon, so not much time to mess with my phone lately :p
[Xperia Z5 Android Development] whalesplaho:
I dnt know cos i have never had issues editing SystemUI and also SK 1_6_7 works fine. Dnt know why 2.33!!!
[Xperia Z5 Android Development] koekoek91:
I flashed latest kernel... I renamed the boot.img: fastboot flash boot filename.img

Then I did not flash recovery ( since booting into it via button combo is broken)

Instead as instructed I extracted boot.img from 1_6_7 and put it in adb folder....

Then: fastboot boot boot.img and then it reboots and press volume up when the led turns on.

Recovery I think shouldn't be flashed at this point.... you can only boot it (using PC).

I have not tried anything additional to try to be able get to boot into recovery using the button combo.

Maybe ill try some things later but for now im just too busy and I just follow zach's instructions.
[Xperia Z5 Android Development] whalesplaho:
Maybe i ll try again... Going to beach now to cool off!

Yeap, he instructed but just saying cos of flashing mods when not with PC. I ll retry again when im back.
[Xperia Z5 Android Development] koekoek91:
Yes its quite annoying for me too to not be able to boot to recovery without a PC.

But what's broken is broken.... just have to hope it can be fixed soon :good:
[Xperia Z5 Android Development] koekoek91:
[MENTION=3037651]zacharias.maladroit[/MENTION]

Im having some serious issues on Nova_1_5_2 kernel.

I've been having multiple random reboots today, all while listening to music.

But the biggest issue... after completely setting up my phone again I made a full backup of boot/system/data partitions by fastbooting 1_6_7 kernel.

Then I wanted to try out the XZs systemui port that [MENTION=4471890]whalesplaho[/MENTION] linked me to, but it didn't quite suite me, so then I wanted to restore my backup.

So I fastbooted 1_6_7 kernel again and pressed volume up button to bring me in TWRP to restore my backup. But after restoring my backup my phone went into a bootloop.

I've fixed it by just flashing 1_6_7 kernel, booting into twrp.... and then restoring and rebooting into system worked fine again.

I think im gonna stay on 1_6_7 for now.

Its a shame though.... the new Nova kernel seems to have a lot less idle power consumption because the CPU frequencies are much less erratic on that kernel, so I hate to roll back to 1_6_7.

But its just too much of a hassle like this, and with all the random reboots.... so im sorry :o

Staying tuned for the next one though :good:

Edit: after restoring I keep getting a message that a system update is available, I download it and notice its the .33 firmware.... But im already on .33!!!:rolleyes:

I try to install it but it fails ofcourse..

I'll just completely wipe my phone and start over again tomorrow to have a clean start:crying:
[Xperia Z5 Android Development] whalesplaho:
Hasnt worked for me at all.... I hope a fix version ll be rollout soon!
[Xperia Z5 Android Development] koekoek91:
Yeah... I wanna keep supporting zach.. But this is just too much issues for me to be having right now, ill focus more on studying for a while.
[Xperia Z5 Android Development] whalesplaho:
Goodluck buddy..... Zack rocks!

I ll try my best too

.
[Xperia Z5 Android Development] Andrei K.:
Hello.

I'm a longtime reader here at xda and wanted to share some of my findings regarding the Z5 series kernel in hope that it will help someone (Z5P user here).

Undervolting: I believe I have achieved undervolting in SD810 via hard-coding it in kernel source. I will elaborate this in a future post as I am still testing it.

CPU4 always on: There is a need to keep CPU4 (big core) always on to make the configs stick. I have disabled this always-on mode and edited a couple boot scripts in /system/etc (namely init.sony.cpu_parameter.sh and init.sony.cpu_parameter_gov.sh) with my governor configurations and they sticked around even after the thermal engine kicked in and hotplugged all cores. Also, with the CPU4 always on, the thermal engine couldn't shut down this core at all, and in some heavy applications, that resulted in a 100% usage CPU4 at 384 MHz and low usage on the LITTLE cores, resulting in lag.

Memory controller: Since the SD810 gets hot fast, and I read somewhere that it is in part due to a broken memory controller implementation, I have tried to underclock the memory controller a few steps. It did not noticeably affect day-to-day performance (video recordings not tested) and the device seemed to throttle a bit later when using heavy applications.

SafetyNet: I was able to pass SafetyNet and launch PokémonGo as a test case with the following configuration:

Zach's or AndroPlus' kernels compiled from source

Stock ramdisk from version 32.3.A.0.376 patched with DRM-fix, dm-verity off, Sony RIC off and TWRP

A modified /system partition

SELinux in permissive mode

No root (didn't give Magisk a try, though)

Hope it helps :)
[Xperia Z5 Android Development] the_brad:
Z5P user here, too [emoji106]

Would you mind 5o share some of your work? Which firmware version do you use?
[Xperia Z5 Android Development] Andrei K.:
Sure!

As I'm still experimenting, the kernel source is only on my machine, but I intend to upload it to GitHub when I find it's stable enough. Meanwhile, I can share the boot.img or some snippets of code/the files I've modified if you want to dive deep into the changes.

About the firmware version, I'm currently on 32.3.A.0.376 with AndroPlus kernel v43 and the previously mentioned modifications.
[Xperia Z5 Android Development] zacharias.maladroit:
Yes please :)
[Xperia Z5 Android Development] zacharias.maladroit:
there is a TWRP included in the boot.img but it's using incompatible kernel modules and other stuff, that explains that it cannot boot successfully,

also there is no updated TWRP avaiable

[MENTION=4644172]trax7[/MENTION]

figured out that there is the functionality to reboot into recovery (without PC :) ) via

adb reboot recovery

but there still needs to be a TWRP/recovery that runs with the kernel,

thus I asked over at the z5 compact thread how the suzuran folks are doing it

Related to the audio reboot issue:

details please what mp3 file, what bitrate, [ideally even which exact song file, upload it somewhere so I can reproduce if it's really that much of a trouble],

what app, what effects, etc.

There is the possiblity that the GPU governor is causing trouble (msm_adreno_tz) switching to simple_ondemand seems to help , at least in [MENTION=4644172]trax7[/MENTION] 's case
[Xperia Z5 Android Development] koekoek91:
https://xdaforums.com/showpost.php?p=71336702&postcount=946

What about this? Just mentioning this one because im not sure if you know of it, no idea if it would works.. I leave that up to you to tell me? :p

About the audio reboots....

It happened everytime when trying to turn on the screen or turn up/down the volume with screen off, after having the screen turned off for i'd say atleast 20-30 minutes while listening to music.

But as I said, I have exams coming up next week and I should focus more on that for now.

I don't have much time to be messing with my phone, and i'd like to be able to listen to music without my phone rebooting every 30-60 minutes.

ill be back soon though and I will try what you asked, whenever I get time again and feel like it ;)

I don't think its with particular songs though, but ill see if I can notice if it happens at certain songs, and what the bitrate etc is.

The audio effects I use are DSEE HX and automatic optimization and app is Sony music app (for now).

Next time I flash the kernel I'll try Sony music app and also poweramp to see if there's a difference.
[Xperia Z5 Android Development] whalesplaho:
Same Audio effects with [MENTION=7328701]koekoek91[/MENTION] but i dnt think its a particular song... Will try tha simple ondemand and see and also, GPU was underclocked to 390mhz!!!

---------- Post added at 08:11 PM ---------- Previous post was at 08:09 PM ----------

Also i noticed arch power is always on even when i disable buh after reboot, it comes on.... Turn on fast charger but charge slow even with Sony QC2.0 Charger.
[Xperia Z5 Android Development] whalesplaho:
dnt know if dis will help, i was able to get a logcat... had reboot when playing song dis morning.

first was when playing Meek Mill- Cold hearted feat P.Diddy, couldnt remembered tha second song....... [MENTION=3037651]zacharias.maladroit[/MENTION]

i ll try out tha new kernel right away.....
[Xperia Z5 Android Development] whalesplaho:
[MENTION=3037651]zacharias.maladroit[/MENTION] my SystemUI crashed after flashing kernel.... i was able to get a logcat dnt know if it also help. wanna test tha new kernel but SystemUI keeps crashing.... thanks!!!
[Xperia Z5 Android Development] zacharias.maladroit:
How long is that song ?

seems like I might have found the commits that cause the instability & reverted it,

for now a (rather long) song is playing for already around 20 minutes and it hasn't rebooted yet

*fingers crossed*

I'm mostly using PowerAMP [mostly stable] or Neutron [seems to use more advanced features, thus also a good candidate to test stability]

but Sony Music app seems to cause most of trouble (ClearAudio+, DSEE HX, Equalizer, etc.)

all those features rely on stuff that is being handled in a "weird" (?) way - since when fixing leaks, broken locking, etc. - it is broken and causes instability,

when in reality it should actually prevent these kind of issues.

I found reports that it could be related to Google App (if that's installed),

otherwise don't know why it keeps on crashing,

it's rock stable here so far *knock on wood*

Thanks :)

[MENTION=7541648]sirdoha[/MENTION]

Since lots of upstream changes are being pulled into the lineageOS kernel and several of those changes are known to break sound output quality or cause instability,

the chances are actually pretty slim that DSEE HX or ClearAudio+ (chances are higher) would work on LineageOS

e.g.: https://github.com/LineageOS/androi...mmit/835d61c69a3c240b23457469b6200327ff94ce4e

that specific merge shouldn't break things but I haven't actually tried it out on stock ROM since there are quite some mismatches upon attempt

and I'm currently short on time ...
[Xperia Z5 Android Development] zacharias.maladroit:
[MENTION=4471890]whalesplaho[/MENTION] & others if you don't have exams, and other higher-priority tasks etc. after the holidays and feel up to it,

please test - so far it has survived 33 minutes+ of DSEE HX playback with Sony Music app

Changes:

reverted: several audio-related changes that might change expected behavior and/or API in some way - thus break Sony Music app & DSEE HX / ClearAudio+ / Equalizer

added several qseecom fixes (trustzone, DRM)

added one ion related upstream security/stability fix (gpu)

https://drive.google.com/open?id=0BykGGWB96CBQSU00R251Q0phWTA Z5_SK_Enf_vN_2.33_Nova_I.1_8_sum.zip

https://drive.google.com/open?id=0BykGGWB96CBQcWtSdmNlV2d0UVU Z5-DSDS_SK_Enf_vN_2.33_Nova_I.1_8_sum_dual.zip

everyone criticizing or laughing at instability - remember:

the ROM & Kernel ITSELF is that unstable, whereas e.g. it's perfectly stable on LineageOS (well, when NOT using Sony Music app & the effects anyway or other stuff),

there's the inherent potential instability:

https://xdaforums.com/xperia-z5/help/random-reboots-echo-call-volume-t3589395

(so that's even same "buggy" behavior like with FauxSound and other changes enabled)
[Xperia Z5 Android Development] whalesplaho:
I dnt have Google all... Song is like 6-7mins.

I try out tha new version and see....

---------- Post added at 04:30 PM ---------- Previous post was at 04:28 PM ----------

Wish [MENTION=7328701]koekoek91[/MENTION] is around but exams first!!!!

I ll test but dnt know why my systemui keeps crashing.
[Xperia Z5 Android Development] koekoek91:
I'll probably be back some time after my exams are done and when I feel like it ;)
[Xperia Z5 Android Development] whalesplaho:
[MENTION=3037651]zacharias.maladroit[/MENTION] flashed latest kernel..... will test more to see tha changes!!!

just tha twrp key combo broken is really annoying brov...
[Xperia Z5 Android Development] whalesplaho:
[MENTION=3037651]zacharias.maladroit[/MENTION] i patched my services.jar and flashed fontselector buh my phone keeps restarting if i click on change font in settings- display, strange.... I flashed 1_6_7 and everything working as normal... Dnt know whats wrong with tha new kernel.
[Xperia Z5 Android Development] zacharias.maladroit:
well, it's somewhat of an annoyance - since it's still broken after switching to 4.9 toolchain it's clearly a "crappy" TWRP (again !),

I repackaged the stock kernel and there wasn't the option to get TWRP anyway (due to missing kernel modules & mismatch, etc.)

dunno bro,

but give the with 4.9 toolchain built kernel a try (will be uploaded soon),

recovery isn't still easily accessible but you can try flashing AndroPlus TWRP (the non-AOSP) one, turn off your device and press Power Button + VOL UP so that it boots directly to recovery - see if that works ...
[Xperia Z5 Android Development] zacharias.maladroit:
Updated post to include N_2.33_Nova_I.2 kernel
[Xperia Z5 Android Development] zacharias.maladroit:
If you guys want a working TWRP during bootup,

then please provide Stock kernel (boot.img) which are repacked and have a working TWRP

both

Z5 (E6653) and Z5 Dual (E6683)

the kernel for Z5 is currently using https://xdaforums.com/xperia-z5/general/ftf-e6603-33-53-83-google-drive-patched-t3581463

and that TWRP isn't working with this kernel (tried different toolchains, etc. - but the phone crashes during bootup of TWRP)
[Xperia Z5 Android Development] whalesplaho:
[MENTION=3037651]zacharias.maladroit[/MENTION] i ll try new kernel and post feedback soon... But I patched 33 fw with poc tool using TWRP 3.1.0 and it works perfectly with SK 1_6_7.... I ll patched stock kernel with rootkernel also and it's working fine with TWRP 3.0.2. But ll test again and see if it still works den i ll provide a boot.img if successful.

Thanks always!!!
[Xperia Z5 Android Development] whalesplaho:
[MENTION=3037651]zacharias.maladroit[/MENTION] dnt know whats wrong, tha kernel breaks superuser mod.... I tried to open change fonts app in settings-display but dis time phone didnt reboot, just hanged and had to force reboot it.... But SK 1_6_7 working okay except for tha reboots when playing songs with sony music app!!!

Wanna try stock 33 kernel patched with rootkernel and see!!!

- Busybox

- TWRP

- Ric disabled

- Dm verity disabled

---------- Post added at 05:16 PM ---------- Previous post was at 04:17 PM ----------

[/COLOR [MENTION=3037651]zacharias.maladroit[/MENTION] font app hangs too with patched .33 fw kernel but recovery working fine brov...... here is a boot.img i patched with rootkernel using TWRP 3.0.2!!!

https://drive.google.com/file/d/0B6Q-veJIWV_GQkhJYUpwaWN4TkU/view?usp=sharing
[Xperia Z5 Android Development] zacharias.maladroit:
see ?

told you guys that Sony's Nougat is getting more and more unstable (or: restrictive)

There's no possibility or way (well, at least I don't intend to invest these tons of time) to investigate and "fix" it,

who breaks it - keeps it and shall fix it ...
[Xperia Z5 Android Development] Andrei K.:
Hello.

You can find the memory controller frequencies in the file arch/arm/boot/dts/qcom/msm8994-v2.dtsi around lines 168-228 (snippet below):

&devfreq_cpufreq {
cpubw-cpufreq {
cpu-to-dev-map-0 =
< 384000 1525 >,
< 460800 1525 >,
< 600000 1525 >,
< 672000 2288 >,
< 768000 3509 >,
< 864000 4066 >,
< 960000 5928 >,
< 1248000 7904 >,
< 1344000 9887 >,
< 1478400 11863 >,
< 1555200 11863 >;
cpu-to-dev-map-4 =
< 384000 1525 >,
< 480000 2288 >,
< 633600 2288 >,
< 768000 3509 >,
< 864000 4066 >,
< 960000 5126 >,
< 1248000 5928 >,
< 1344000 7904 >,
< 1440000 7904 >,
< 1536000 7904 >,
< 1632000 9887 >,
< 1728000 9887 >,
< 1824000 11863 >,
< 1958400 11863 >;
};

mincpubw-cpufreq {
target-dev = <&mincpubw>;
cpu-to-dev-map-0 =
< 384000 1525 >,
< 460800 1525 >,
< 600000 1525 >,
< 672000 1525 >,
< 768000 1525 >,
< 864000 1525 >,
< 960000 1525 >,
< 1248000 1525 >,
< 1344000 1525 >,
< 1478400 1525 >,
< 1555200 1525 >;
cpu-to-dev-map-4 =
< 384000 1525 >,
< 480000 1525 >,
< 633600 1525 >,
< 768000 1525 >,
< 864000 1525 >,
< 960000 1525 >,
< 1248000 1525 >,
< 1344000 1525 >,
< 1440000 1525 >,
< 1536000 1525 >,
< 1632000 1525 >,
< 1728000 1525 >,
< 1824000 1525 >,
< 1958400 7904 >;
};

From what I understood, there is a min and a max clock for the memory controller to run depending on the CPU clock (i.e. when the big cluster runs at 1958 MHz, the memory controller can run with a min of 7904 and a max of 11863 which means 1036-1555 MHz).

Just to mention, I have patched the stock boot image (Z5P, version 32.3.A.2.33) with DRM-fix, dm-verity off, Sony RIC off, no Busybox and TWRP, and managed to enter recovery via volume up button on boot (I got the missing kernel modules as described here). When I compiled your latest kernel and integrated this patched ramdisk into it, I couldn't enter recovery on boot.

Edit: Made a mistake with the ramdisk while compiling :D

I've recompiled it and now I can enter recovery via volume up button on boot. I can provide a boot.img with that patched ramdisk for Z5P if you want.
[Xperia Z5 Android Development] whalesplaho:
Yhu cant give up now brov... Yhu av invested alot and been supportive also to thos community and yur work is respected!

Please we cant just keep looking, yhu gat to try brov.... Please!
[Xperia Z5 Android Development] Zaisesl:
Im using latest kernel. With deodex, superuser mod, and sthat mod of systemui xz loops. And everything is working fine. For now never hang or lag.
[Xperia Z5 Android Development] whalesplaho:
Yeah it working... Did yhu try font selector??

Please try...
[Xperia Z5 Android Development] Zaisesl:
I really dont use that.. When i get some time i will give a try.
[Xperia Z5 Android Development] whalesplaho:
Please yhu can just try... Font dev too updated tha thread buh still hasnt work on 33 fw patched stock kernel..
[Xperia Z5 Android Development] CaeLum764:
Using the new nova kernel for 2.33, no issues at all. Didn't use any mods, only Magisk and AdAway installed.

Battery life seems to have improved as well, maybe due to new hotplug? Idle drain is not bad, 7% in roughly 3.5 hours.
[Xperia Z5 Android Development] zacharias.maladroit:
Sun-Kernel Nova 2.33 I.2_3 (Z5 only test/preview):

https://drive.google.com/open?id=0BykGGWB96CBQbXh5M3hsOHJIUkE Z5-DSDS_SK_Enf_vN_2.33_Nova_I.2_3_sum_dual.zip

https://drive.google.com/open?id=0BykGGWB96CBQOFBjVUhMb1FGQzQ Z5_SK_Enf_vN_2.33_Nova_I.2_3_sum.zip

Changes since I.2:

built with gcc 6.3.1 Linaro toolchain :D

use workqueues for the wakelock userspace garbage collector (should cut down unnecessary delays)

fs: use noatime instead of relatime (faster access)

debloat: disable powersave governor

SafetyNet: use a more sophisticated way to pass it (thanks to [MENTION=5645637]kylothow[/MENTION] )

upstream fixes [security, stability, reliability, performance]: camera (less hogging/lag , bcmdhd (WiFi for satsuki, ivy, sumire only - so far), various other components

fix a reboot BUG after disconnecting/pulling the USB cable

cpufreq: interactive: make sure highspeed_freq is within policy limits

qpnp-haptic (vibration): overhaul the driver & make it significantly more reliable (thanks to various devs , franciscofranco, sultanxda)
[Xperia Z5 Android Development] nqdan2992:
fix crash TWRP <<<<
[Xperia Z5 Android Development] Hiku:
I listen to music over 4 hours per day, via BT connection between my Z5 and NWZ-M504 and I never have any kernel panic (I run my own kernel). If anyone who is interested in stability, balance between battery life and performance, I may provide this kernel.
[Xperia Z5 Android Development] 4RM4N1:
how to flash? Just flash the zip via TWRP or unpack the zip and flash the boot.img with Fastboot Mode?