yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Android Development] Pact:
You've probably read misinformed posts, my Z1 runs the latest Dstriker and OK releases, all works well including WiFi. SoT around 5 1/2 hours for my average usage - the best it has ever seen. Though, it'd be good to compare with 6.2 anyway; if I have time I'd like to test the SoT differences.

Only thing left is to restore the X-reality Engine through some arcane means, the BIONZ DRM keys are working fine by applying the DRM fix.
[Xperia Z1 Android Development] nemes480:
6.5 Working well in here. Is it possible to change to bootlogo back to stock? But anyways good job everthings work perfectly.
[Xperia Z1 Android Development] CVLover:
would this kernel work with lineage os?
[Xperia Z1 Android Development] MiniKoelkast:
I got a no mirror found. Could that please be fixed?

update 14:32(2:32PM)

Download is working now :P
[Xperia Z1 Android Development] olokos:
There's msm mpdecision, which isn't implemented well in our Z1 IMO. Xerxes kernel is my kernel, but modified. Xerxes first did some private builds and I told him it's fine, but if he wants to publish it then I asked him to ask me which he did not do, so I can't be bothered to compare it in any way. It's got some serious changes which might decrease the performance and stability, but once again. I'm not even looking into it.

No problem man, I've already used some of your stuff which is pretty good. I asked you multiple times for each and every one thing, but for that small thing I've decided to mention you while crediting and hoped for the best. :D I'm glad you're fine with this and I always credit original authors. :D

Is there any other kernel supporting that rom? If yes, link me both rom and kernel.

Both links work fine for me, there's basketbuild and afh.

6.2 download links work fine right now

X-Reality engine is part of a ROM and it requires changes in both rom and bootloader. It's not linked with the kernel itself.

https://xdaforums.com/crossdevice-dev/sony/xperia-z1-z2-z3-series-devices-drm-t2930672

This worked fine for me.

Unlikely, as a creator I wanted to have any kind of a credit that would be visible, so I'll keep it. If you really want to replace it for yourself then there's a lot of guides on xda

https://xdaforums.com/showthread.php?t=2476783

this one for example. :)

I really appreciate all of your support guys. Every thank you from you guys means something to me. Thank you for that. :)
[Xperia Z1 Android Development] algarues:
In case something goes wrong,

How do I go back to stock kernel after trying yours?
[Xperia Z1 Android Development] Klaus N.:
[MENTION=4300205]olokos[/MENTION]

Is it possible to add the drm fix [MENTION=357342]tobias.waldvogel[/MENTION] (see here)?

Unfortunately repacking your kernel and flash the created boot.img ends in a bootloop...

Thanks in advance!
[Xperia Z1 Android Development] olokos:
I think the best cleanest way is to download latest ftf and flash kernel.sin, that's what I always do, flash the zip in 1st post first if u used xzdr recovery.

This drm fix is in ROM not in kernel for Z1 IIRC. Even if that would not be true, there is no source code which I could test and then ask the author for permission if he agrees for me to release it.
[Xperia Z1 Android Development] algarues:
Thank you!

Why not making also the kernel into a flashable zip?

How do you access the controls for the msm limiter? Kernel adiutor seems unable to to that. I am looking for the configuration files, but I cannot find them
[Xperia Z1 Android Development] dferferfer:
for now i have 5.1.1 lastest stock!

Can anyone prefer a way to root and install this Kernel?

There any Bugs?
[Xperia Z1 Android Development] Snp Mania2:
Hi, sorry, yes in stock kernel was fine so keep the Z1 better...

actually this problem i just found out, after use for gaming the GPU freq is turn down as suddenly but not for all games,just somes type game., this problem same

on all our custom kernel, maybe z1 is old device then a games for now mostly has new sources indirectly improve for newest SoC/processor..

==============

EDIT: sorry again, after doing wipe data n cache(i use kernel without setting anything)then i've testing for 15 minutes gaming finally is fine not yet to see slow down the gpu freq.. Looks like the kernel need a clean rom, i recomend be better avoid flashing kernel at rom which running in used.,flash it in rom which really2 clean condition, you can wipe data or reinstall totally the rom with kernel in first time..to got optimize performance

NOTE:(but gaming is depending with temperature too, if heating will easy lagging)
[Xperia Z1 Android Development] algarues:
sorry, but flashing kernel.sin does not work.

flashtool in fastboot mode says it is not a valid boot image
[Xperia Z1 Android Development] olokos:
because I'm lazy, I don't think I implemented msm limiter, well, I partially did, but I thought it's redundant so I gave up on that idea.

https://xdaforums.com/showthread.php?t=2642081

Phones usually run better after flashing a clean rom, but there shouldn't be any issues flashing my kernel over rom that you used for a year at all.

through fastboot you mostly fiddle with bootloader and flash .img files

through FLASHMODE you can flash .ftf and .sin files
[Xperia Z1 Android Development] olokos:
We're coming to a close

Well, my Z1 is about 3 years old and it's slowly dying. It's becoming slower and slower because of memory wear and I will be getting a new phone, most likely S8+, I'm not sure if will be a good decision development wise, but hardware wise it looks like a great device.

I was thinking about doing one last update, tiny one which will basically default the kernel to the best settings in my opinion. You change them by yourself using kernel adiutor so it doesn't really change anything, but if anybody is interested then I will do that.
[Xperia Z1 Android Development] babyboy3265:
Indeed we all need to upgrade asap :D BUt i guess a final update would be nice... :)

THe s8+ is a great choice!
[Xperia Z1 Android Development] Snp Mania2:
Yes, pls give the final update asap hehe :D
[Xperia Z1 Android Development] olokos:
I was going to just change default governors etc. but I played some Asphalt and realised how much my phone was heating up, so I implemented Intellithermal V2, I'll upload it within a few minutes.

Here it is

https://www.androidfilehost.com/?fid=745425885120742491

Well, Asphalt Nitro isn't smooth as it never was, but at least phone is cool now, so I'm happy :)
[Xperia Z1 Android Development] TheDeamonGamer:
How can I update my kernel to the Latest?
[Xperia Z1 Android Development] olokos:
Just flash the latest image, flashing zip from 1st post is recommended.
[Xperia Z1 Android Development] TheDeamonGamer:
And if I update to v7 do I lose any xposed things or root things? And do I have to dirty flash my custom rom after flashing this latest? Or just flash and everything works?
[Xperia Z1 Android Development] olokos:
If you're already running this kernel then just flash over, shouldn't cause any issues.

But if you wanna be safe, then backup in TWRP and flash zip from 1st post afterwards, it won't hurt, but if you're already running my kernel, then u can just flash it, not much will change.
[Xperia Z1 Android Development] muphetz:
Something wrong with twrp recovery from last update,,i cant flash anything,,it say error updater script,,
[Xperia Z1 Android Development] Potato King:
I think it's because [MENTION=4300205]olokos[/MENTION] accidently deleted /tmp directory from ramdisk. Error says can't open updater script in /tmp, no such file or directory.
[Xperia Z1 Android Development] olokos:
Yea I was figuring out intellithermal as apparently I had to include also v1, not just v2 and a friend was waiting all that time for me to play csgo nagging me how long how long so I accidentally messed up and forgot about one obvious file. I always test my kernel for long time before release, but I didn't this time. You can even see on my git how messy I was when doing it. xD
[Xperia Z1 Android Development] Snp Mania2:
Thx for the update v7, will waiting for next to twrp's fixed
[Xperia Z1 Android Development] muphetz:
I can fix the recovery with Rashr, flash twrp you can download from official twrp
[Xperia Z1 Android Development] TheDeamonGamer:
[MENTION=4300205]olokos[/MENTION] i want to install this image with twrp from V6, but i need to select which partition i want this installed on. Do i need to choose boot partition or Recovery partition?
[Xperia Z1 Android Development] Snp Mania2:
You sure bro?

If yes i will follow it hehe :D

EDIT: yes TWRP can be fixed, now i use official twrp v3.0.2-0 via flash image in twrp, thanks [MENTION=5256614]muphetz[/MENTION] for this solution, but still waiting for next update
[Xperia Z1 Android Development] olokos:
OK-Kernel V8

I've done tons of stuff just now and I was supposed just to add a folder to a ramdisk to fix TWRP, oh well.

You can see all the changes here here

Not all of them might be safe, so I won't update first post just yet, let's do a small beta test first.

To everybody testing out the V8 please pay attention to:

-Wifi

-Idle temparature of phone

-Phone behaviour under heavy load such as gaming

-Microphone in call and while recording videos - it might be stereo now, might be broken

-Charging speed and temparature

It should be perfect, phone should run cooler, faster and snappier than before, but I'm too tired to test it out and TWRP fix is pretty important, so there you go.

https://www.androidfilehost.com/?fid=673368273298972771
[Xperia Z1 Android Development] Snp Mania2:
Thanks a lot for update.. V8 Flashed already, for me WiFi is normal i think hehehe, n for game i've test only ppsspp with dragonball tenkaichi,no lag,not too heats up,fps stable at 30-32Fps.. That's it,. Sorry for bad testing n english spk :)
[Xperia Z1 Android Development] olokos:
Thanks, don't worry too much about your english, if I can understand then all is fine. :)
[Xperia Z1 Android Development] olokos:
OK Kernel V8.2

So I've came across a few issues such as random reboots, crashes, hangs. All of those should be gone now, on top of that camera should work much better, less buggy and faster.

With this release the worst issues such as freezes while waking up the phone or turning on the camera should be gone. Some of those even go as far as doing better what sony did with camera. This release is mostly bufixing, but with less bugs there's faster phone and better battery. :)

sdcards should also work better, if you're using sandisk sdcard and had any issues, there will be none with this kernel, hopefully.

https://www.androidfilehost.com/?fid=673368273298972928

If anybody will get a random reboot or crash then please get me last_kmsg

https://github.com/M66B/cm-xtended/wiki/How-to-get-logs

You can always just open file manager, go to /proc/ and copy last_kmsg from there anywhere else and upload it for me. I'll make sure to fix the issue.

What to keep an eye on:

idle temps

wifi

sdcard performance/reliability

camera - all of it

Gaming performance/temparature

random reboots

This version isn't rock stable, it's quite experimental, but I decided not to just test it myself, but give it out to all of you to test it. :)

All in all, I expect it to be the best, most stable and perfect version yet, but i can't guarantee. Don't worry tho, I never do something that can damage your device, but it's always on your own risk.
[Xperia Z1 Android Development] olokos:
Boot partition, always, don't even bother about recovery partition. This kernel incorporates recovery inside kernel's ramdisk so it's not really used.

I haven't noticed your post before, sorry.
[Xperia Z1 Android Development] Snp Mania2:
Wow..wow :D i just tried v8 now awakens a v8.2, even though not seeing any important of problem on V8 which good temperatur, no reboots random, overall stable usage as i feel.. Ok now i'll go for v8.2, thanks :)
[Xperia Z1 Android Development] olokos:
Go for V8.2! That's the point of my kernel, making something which is good, even better, not showing off with flashy features. It seems that there's still some quirks with sdcard that nobody notices, but it bothers me in dmesg and I'm trying to figure that out now. Phone should run cool as a cucumber now anyway. :D It seems that this weird sdcard issue is preventing phone from entering L2 low power state on idle, which would make Z1 use almost 0 energy when screen is off and idle for some time.
[Xperia Z1 Android Development] Snp Mania2:
V8.2 flashed, n i've 1x random reboot occurs during i execute file script in init.d to enable linux swap(mmcblk1p3) then phone is reboot itself..

==============

For gaming i change cpu gov to intelliactive as usual,because intellimm got lag for a little, but intellimm is ok for non gaming, temperature more cool i feel(i live in tropic country so my device mostly hot), WiFi normal, dont know about sdcard perform heheh.. That's it :D

This my last_kmsg
[Xperia Z1 Android Development] olokos:
Yeah, intellimm is mostly battery focused, I'm not gaming too much so I'm fine with that. If you will find some epic governor which is awesome for gaming then let me know and I might implement it, just don't list 30 governors, just the most recent ones. :P

Show me what your script does as without that I can't really do much.

BTW. Another huge update coming up. It seems that what I've done recently is actually quite safe.

I'm working with on Energy Aware Scheduling as requested by [MENTION=5970333]markakash[/MENTION] . If all goes well I might release it in a few hours. someday, it's hard as hell. [MENTION=6126659]PDesire[/MENTION] is helping me with that so it should be possible.

PS. In my opinion swap is really worthless unless you're using internal memory for that. sdcards for swap is a bad idea.

I did my best in trying to port EAS to 3.4 z1 kernel

this is the result

In file included from include/linux/sched.h:20:0,

from arch/arm/kernel/asm-offsets.c:14:

include/linux/jiffies.h:10:33: fatal error: generated/timeconst.h: No such file or directory

#include <generated/timeconst.h>

^

compilation terminated.

make[1]: *** [arch/arm/kernel/asm-offsets.s] Błąd 1

make: *** [prepare0] Błąd 2

Done

I'm getting stuck here
[Xperia Z1 Android Development] Snp Mania2:
I didn't know much of cpu gov, but pls you add some more it will much better :D

I use this script :

/system/xbin/busybox mkswap /dev/block/mmcblk1p3

/system/xbin/busybox swapon /dev/block/mmcblk1p3

No, its not internal, but its external card swap partitioning.. I doing that is long time ago since i've xperia L, n still used now in honami,

Yes i think so but i just follow somes tips by friends which tell me to creat a swap partition via extrnal card for good perform my device!

Yeah, very glad to see the Kernel Devs still working like a monster :P, keep it up man (Y)
[Xperia Z1 Android Development] lazortex:
tanks man

Thanks for everything I will have in mind the points testing right now thanks for bringing us your amazing work if I present any inconvenience I will not hesitate to tell you thanks for everything and trying:RE: Highfive:
[Xperia Z1 Android Development] Mr saxobeat:
Did you test Lineage with 3.4 kernel? Can this kernel work with the rom? Or even is it possible to make a proper version to work with it? Gonna test the kernel, thanks alot for the best kernel for z1 ever!
[Xperia Z1 Android Development] luckywj13:
thanks, i will try it (v8.2)
[Xperia Z1 Android Development] andron k:
Report please is this kernel work in lineage os 14.1
[Xperia Z1 Android Development] Mr saxobeat:
No..it doesn't work :(
[Xperia Z1 Android Development] matcho13579:
Hello.

I'm trying out the kernel and I'm suspecting a bit of high battery drain. I'm using an MX ROM and Betterbatterystats is reporting a "suspend_backoff" wakelock. What could possibly be the cause of this? Thanks!
[Xperia Z1 Android Development] olokos:
Thank you man. :) Try to use your phone without swap for some time and see for yourself if it's really helping you out. If it is, then tell me and I'll look into it.

Don't ask me, check for yourself.

No problem

Try zip from 1st post. If it still won't help then send me logs and I might look into it.

In my case the issue was WiFi scanning set to always on even when disabled. Simply switch automatic scanning when wifi off only when on charger and your problem should be gone.
[Xperia Z1 Android Development] nqhoai:
I think im having the battery draining fast when idle too. Im using your v8.2 and had a screen freeze recently as i cant turn on the screen. I dont know why but somehow my phone doesn't have the last_ksmg file, i found the ksmg here file only, hope you can solve it. Thanks

Sorry for my bad English :P
[Xperia Z1 Android Development] olokos:
Seems like something with your rom. All looks fine in kmsg logs. You will only get last_kmsg if kernel crashes entirely.

This is my battery stats on idle with greenify and amplify on stock rom.
[Xperia Z1 Android Development] Mr saxobeat:
Well, it doesn't work sony logo loop..

I think that would be awesome if you make a version for nougat roms (just a one version don't even update it!) It's ok if you don't i think that a legendary kernel like ok kernel disserve to sacrifice nougat for it's battery performance and stability, keep the great work up.

Edit:which rom do you recommend to use with your kernel?
[Xperia Z1 Android Development] olokos:
I'm using plain stock, debloated, deodexed with some mods such as cyberian camera, my volume and torch boost and that's pretty much it. RockZ1 by [MENTION=4433143]venkat kamesh[/MENTION] is pretty good IMO.

I actually got in touch with [MENTION=4311238]SuperLamic[/MENTION] and when he's going to figure out touchscreen driver issue then I'll work on updating my kernel to work with nougat and if camera and touchscreen will work there like on stock then I might aswell entirely move my kernel development to AOSP.

Get me last_kmsg and I might get it to work on nougat sooner.
[Xperia Z1 Android Development] Snp Mania2:
I am sorry man for bad this post, but I have two last_kmsg on LOS latest superlamic, i am currently in Nougat rom now,

for first i take it when phone is normal/stand by,

And a second i take when phone is reboot then i go to twrp then paste it in sdcard.. I hope can useful
[Xperia Z1 Android Development] olokos:
Wait a second, so you actually flashed my kernel on suprelamic's rom and it boots and works just fine? :o

Try flashing my kernel on top of his rom and then get last_kmsg. His own kernel last_kmsg doesn't really matter for me, at least not yet.
[Xperia Z1 Android Development] olokos:
OK-Kernel V8.3

So there's a new release, still testing, but should be flawless.

Changes compared to 8.2:

- Replaced mmc/sdcard drivers to the latest ones from OPO including patch which should fix dreaded status -110 when sdcard is trying to go to sleep.

- replaced entire qdsp6v2 audio driver with latest OPO one (soundcard update, should improve sound in-call and in general a lot)

- updated cpu calculations code allowing for better frequency scaling, detection etc

- removed SELinux auditing, doesn't change a thing as selinux is set as permissive, but will improve performance as there's less spam

https://www.androidfilehost.com/?fid=817550096634788492

As always, better, faster, less buggy or at least I think so. :)
[Xperia Z1 Android Development] Mr saxobeat:
I think RockZ1 is a kitkat rom..do you mean Kryptonian rom?

I don't really think that the camera gonna work like on stock, but it's pretty good with really solid and decent performance..maybe the touch will be..

I'm testing the rom and every build it the touch gets better till now i tested 14/7 build (not the lastest) for a week and the screen didn't respond only one time and a quick double power button clicks solved it *on the other hand CodeZero's aicp and RR had a worse touch screen*

---------- Post added at 02:34 PM ---------- Previous post was at 02:31 PM ----------

Looks like [MENTION=4300205]olokos[/MENTION] is on fire! ?
[Xperia Z1 Android Development] olokos:
Yeah I meant Kryptionian. Basically latest venkat kamesh's ROM. I know he's doing stuff right. I was planning to release my own ROM a year ago, everything was perfect but then .236 was released and I had to redo everything I did so I am just doing the most important changes for me in stock rom and using that.

Once SuperLamic gets touch working like on stock I'll be focusing on getting it to work with his ROM, maybe even creating another kernel specifically to be based on his ROM, we'll see in the future. Last time I used AOSP games like Asphalt or anything else for that matter was unplayable because touschreen was always losing touch so I was always against it, but this can always change. :)

Yup, I am on fire. :D

Actually just last 3 commits were what I did now before releasing as I wanted to test those massive changes myself for a bit before releasing it to you guys, but it seems to work better than ever! :)
[Xperia Z1 Android Development] Snp Mania2:
Lol man.. I am really sorry for bad english, i just send LOS last_kmsg for u to check into it! not realy understand what u mean!

I know your kernel will doesn't working for LOS :laugh:
[Xperia Z1 Android Development] Mr saxobeat:
If you are a gaming guy i recommend trying games with [MENTION=4311238]SuperLamic[/MENTION]'s LOS.. graphics performance is better than stock based lollipop rom because it's CAF (i can't really confirm if the rom with 3.4 kernel is CAF but the old rom with 3.10 kernel were) and tested those games much better performance and didn't have any screen issue while playing:

Mortal Kombat x, dead trigger 2, asphalt nitro,into the dead
[Xperia Z1 Android Development] tomascus:
My (one used in superlamics ROM) kernel is CAF based and stock is CAF based too.......
[Xperia Z1 Android Development] Mr saxobeat:
Do you mean stock lollipop? Does it use the latest code Aurora patches?
[Xperia Z1 Android Development] tomascus:
Yes every kernel for z1 has been based on CAF.

Depends on what you mean by 'latest CAF patches', qualcomm deprecated msm8974 long long ago so in that sense, no it doesn't have the latest 'CAF patches'. But the latest for the branch suitable for our device? Sure, that's in the kernel in superlamic's ROM.

Anyway, enough off topic :)
[Xperia Z1 Android Development] SuperLamic:
He's talking about rom. SODP ones were aosp and some hw adreno features didn't work.
[Xperia Z1 Android Development] TheDeamonGamer:
I want to update from V8.2 to V8.3 but it says error with flashing in twrp. And can't open folder or something. How can I resolve this and flash it in twrp? [MENTION=4300205]olokos[/MENTION]
[Xperia Z1 Android Development] JC Pzy:
You can use the playstore Rashr-Flash tool without any problem so I did :good::fingers-crossed:
[Xperia Z1 Android Development] olokos:
You're trying to flash my kernel using TWRP img flashing right? I just flashed a zip and there's 0 issues with that.
[Xperia Z1 Android Development] TheDeamonGamer:
Maybe zips work but V8.3 not. But I already updated now through rashr. You can look into it if you release a new update.
[Xperia Z1 Android Development] luckywj13:
what is configuration in Kernel Adiutor?

I don't know what to do with it.
[Xperia Z1 Android Development] olokos:
8.3 works perfectly, I'm asking you what way were you trying to flash as I have no idea how are you trying to flash it. Recommended way is always through fastboot flash boot OK-Kernel-V8.3.img.

CPU governor - intellimm, group tasks on as less cores as possible

hotplug - intelliplug, disable any other

gpu - keep gov as it is, but enable idler and simple ondemand

thermal - disable all but intellithermal

I'll try to set these as default in next update.
[Xperia Z1 Android Development] TheDeamonGamer:
I was trying to flash V8.3.img with twrp on boot partition. But didn't work. Got error.
[Xperia Z1 Android Development] olokos:
Tell me what error was it. I'm quite busy and "got error" isn't gonna make me troubleshoot the issue, but exact error will.
[Xperia Z1 Android Development] TheDeamonGamer:
Sorry, the error i got was two times in red: 'error with opening' and then the location of the image and after that '(not a directory)'