yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Premium General] -DM-:
You don't flash the img, you use the image file in a script that will generate a ftf file that you can flash with flashtool...

Did you use iovyroot to backup your TA?

If you did you should have a file called TA-(numbers).img (don't lose that file by the way, that's a copy of the original partion that is wiped once you unlocked your bootloader, it will come handy if you have to relock also...so keep it safe somewhere)

Copy that img file to rootkernel folder tool from Tobias, right click in that folder to open a command prompt then type

flash_dk TA-(numbers).img restore-drm-keys.ftf

and the script will generate a file called "restore-drm-keys.ftf" and this is the file that you will be using with flashtool to restore your drm keys...

Put this file in USERPROFILE/.flashTool/firmwares and with flashtool select DeviceKey and flash it...

DONE ;)

ps: [MENTION=5410058]KbaB.BroS[/MENTION] sorry for hijacking your thread by the way
[Xperia Z5 Premium General] atif_afzal:
Hello Dear I am already on .253 stock modified kernel. I want to flash the new modified kernel update on 23 August. For that I have to re flash the .253 firmware and then flash the modified kernel. Or simply flash the kernel over existing kernel.
[Xperia Z5 Premium General] KbaB.BroS:
Flash it over
[Xperia Z5 Premium General] benengyj:
I'm on a E6853 and am curious as to why I am getting a "No SIM" problem when using this kernel with RomAur 4.2.1. No such issues with Zach's or Aur kernel though.
[Xperia Z5 Premium General] KbaB.BroS:
I've always had issues with the stock kernel and RomAur and this kernel is in fact the stock one with slight modifications. Could be something with the kernel ramdisk, don't really know because I don't use RomAur for the moment.
[Xperia Z5 Premium General] benengyj:
Thanks for your hard work either way! :)

Just a little frustrated getting my phone working the way I want it to. Aur kernel has a serious battery drain issue, your modified stock kernel doesn't seem to detect SIM for me, Sunkernel doesn't seem to work with Magisk. :eek:
[Xperia Z5 Premium General] jasonhtt:
Nova launcher and this kernel :confused:

Hi! Is there anything in this kernel that might prevent some apps detecting this ROM as MM? I'm asking this because I've just realized that Nova Prime launcher on my Z5P does not show some features which are only available on Android MM. I'm on unlocked bootloader, 32.2.A.0.253, Android 6.0.1, so everything from this thread and yet Nova (version 5.0-beta 1) misses some features. For comparison, at the same time, the same Nova shows all MM features on my other phone Xperia Z3 Android 6.0.1.

The Nova feature I'm missing the most is "Dark icons" for notification bar (found under Nova settings "Look & feel"). Does anyone else using this kernel and ROM and Nova launcher has the same situation?
[Xperia Z5 Premium General] KbaB.BroS:
This is in fact the kernel from the latest FW. Also I'm always typing for which FW the kernel is taken from in the headline, so it's for Android MM.
[Xperia Z5 Premium General] karrouma:
[MENTION=5410058]KbaB.BroS[/MENTION]

any new stock modified kernel for z5 premium E6833 firmware 32.2.A.0.305
[Xperia Z5 Premium General] KbaB.BroS:
I'm downloading the FWs right now so they'll available today ETA 6 hours
[Xperia Z5 Premium General] karrouma:
Ok bro
[Xperia Z5 Premium General] KbaB.BroS:
Seems like I won't be able to do it today. I need the kernel modules from the new kernel to inject TWRP. If TWRP isn't injected other recoveries won't also work, no recovery in other words.
[Xperia Z5 Premium General] karrouma:
Ok bro no problem

You need kernel.img from ftf
[Xperia Z5 Premium General] KbaB.BroS:
That I have, so no problems there.
[Xperia Z5 Premium General] karrouma:
[MENTION=5410058]KbaB.BroS[/MENTION]

Any news for z5p dual .305

For the modified stock kernel

After updating the ftf i reflash the kernel from 253 system update notification appear notification
[Xperia Z5 Premium General] YasuHamed:
bro [MENTION=5410058]KbaB.BroS[/MENTION]

i can see you have uploaded kernels for 305.

https://mega.nz/#F!KwZhjLIK!uNbDzR6lCXMaaW7jKFS1WQ!6hZj1DyK

please update whether it has twrp ?

i couldnt do it, and would have never done it anway without your support
[Xperia Z5 Premium General] KbaB.BroS:
wow, you're checking in fast, I just uploaded them. Can you please try a kernel and see if it works? I've injected TWRP but I used the older kernel modules from .253 kernel. I'll update them either way when the new kernel modules are available.
[Xperia Z5 Premium General] YasuHamed:
booted

...

twrp working

installing SR1 superSU2.78 zip
[Xperia Z5 Premium General] KbaB.BroS:
Update

Alright, new kernels for FW 32.2.A.0.305, these will probably get another update in the future because I used older kernel modules for TWRP.

[MENTION=5327840]karrouma[/MENTION] summoning you for reasons.
[Xperia Z5 Premium General] karrouma:
Thank you bro for your hard work

I will test later
[Xperia Z5 Premium General] WildBit:
Guys, I used Tobias method for repacking the 305 kernel and you´re right, TWRP will be missing, however everything else works as normal. You will need SuperSU 278 and I used the 253 kernel with twrp to toggle recovery and install supersu.

Everything works great and literally on first boot you get the new charging tweaks notification :good:
[Xperia Z5 Premium General] karrouma:
nice work,

i flashed E6833.img in my z5 p dual.

reflash su sr1 v2.78

restart my phone

first boot got bootloop it is normal

and all work fine with me
[Xperia Z5 Premium General] amir_hhhhhh:
Twrp 3.0.2 zip flashable file

Hi i want to create flashable zip from ftf firmware

And trwp and supersu zip files with prfcreator

For Xperia z5 premium dual e6833

But i cant find twrp 3.0.2 flashable zip file

How i can do this

Please help me ?

thanks
[Xperia Z5 Premium General] tuanck2004:
its TWRP missing and no SuperSU :(
[Xperia Z5 Premium General] KbaB.BroS:
Which kernel? SuperSU isn't included so a zip should be flashed in TWRP which should be included.
[Xperia Z5 Premium General] YasuHamed:
may be this iwll help

http://xdaforums.com/crossdevice-de.../twrp-3-0-2-0-recovery-flashable-zip-t3355729
[Xperia Z5 Premium General] tuanck2004:
I try with e6883.img; TWRP missing, so I can not flash the superSU
[Xperia Z5 Premium General] KbaB.BroS:
Just to make sure, do you know how to access TWRP? Vol up when the notification light is yellow. Making sure because it's confirmed working on E6833.img
[Xperia Z5 Premium General] tuanck2004:
Yes I known, but no amber light [and no any light] during the e6883 starting. Its downgraded to .253 and all work fine.
[Xperia Z5 Premium General] YasuHamed:
i am using E6833.img for .305 (kernel modified by [MENTION=5410058]KbaB.BroS[/MENTION] ) and its working fine with me

did u flash the kernel right? plz try one more time! its working FINE

batter life is good!

ram memory management is better. system responses are a bit heavy but i am gonna let .305 to sink in with the device and will see how it works!

at this point not gonna install any custom rom. if some day i decide i would go for resurrection rom
[Xperia Z5 Premium General] Seyren Windsor:
Did u try wipe cache and davik/art cache after second boot?

I do that and i can feel smooth in that fw (.305)

Slightly battery longer

Ram usage lower than .253 in my opinion about 300mb

Display color bright and sharper

And without sound mod now speaker

Ring and in call more loud

[emoji4]
[Xperia Z5 Premium General] YasuHamed:
- i did the wipe cache / delvik cache

- not feeling any major changes so far

- found battery charging bit slow with the new charging optimization feature ON.

- battery drainage is better now for sure

- Facebook / messenger response time is better (but initially with every fresh install apps responds faster due to no or low cache) so i have to observe longer

- i didn't notice the ringing volume and sound speaker loudness so far but since you have pointed out, i will definitely!

- display colors are pretty vibrant now and so fart i didnt notice screen getting Hot like used to before
[Xperia Z5 Premium General] jasonhtt:
Hm... Mobile data is not working with this kernel on my 6853. Anyone else experiencing something simmilar?
[Xperia Z5 Premium General] KbaB.BroS:
[MENTION=4861334]tuanck2004[/MENTION] still any problems? I re-uploaded the kernels so feel free to try.
[Xperia Z5 Premium General] Vazzeking:
Thanks your work. But for me the kernel not allow for me to install supersu. Iflashed 10 times and didn't get supersu
[Xperia Z5 Premium General] YasuHamed:
what is your device ? how are you flashing supersu?

please specify
[Xperia Z5 Premium General] Vazzeking:
E6833. I flashed the kernel and flash supersu in twrp.

It wrote the flash succes but not apperar supersu or I intall from play it says su binari missing root device
[Xperia Z5 Premium General] YasuHamed:
flash the latest supersu 2.78 ONLY. don't install apk
[Xperia Z5 Premium General] Vazzeking:
Yeah. I did it ten or more times but nothing. After that I installed supersu as apk.
[Xperia Z5 Premium General] YasuHamed:
i have E6833 and the kernel is working just fine,, something is missing!
[Xperia Z5 Premium General] Vazzeking:
It works now. Thanks for helping!!
[Xperia Z5 Premium General] leobiagi:
Can you help. I nwed directions. I am on Last auras modified rom and i want to install new update with. 305 modified kernel. What i have to do in order to have lasr update and twrp and root working? Thanks
[Xperia Z5 Premium General] KbaB.BroS:
http://xdaforums.com/z5-premium/development/rooting-xperia-z5-z5p-variants-drm-keys-t3437902/page1

Follow this guide, in courtesy of [MENTION=5613633]YasuHamed[/MENTION]

http://xdaforums.com/z5-premium/development/stock-root-xperia-z5-premium-sony-stock-t3335974/page1

Check also this guide, made by [MENTION=6800595]Fragmentation[/MENTION]
[Xperia Z5 Premium General] Silvio Scarani:
I can flash kernel.elf with Flashtool? I have problems with command prompt. . .
[Xperia Z5 Premium General] YasuHamed:
the kernel elf cannot be directly flashed you must have either sin file or boot.img file
[Xperia Z5 Premium General] Silvio Scarani:
Thanks, now command prompt working well and i flashed E6853.img: perfect!
[Xperia Z5 Premium General] dimex:
I'm on 253 right now with root and TWRP but haven't had the time to upgrade. Now I do. What's the easiest way to upgrade and keep my current data, files, and root?

I do have Flashtool.
[Xperia Z5 Premium General] ahmedsubaih:
i flashed it on my e6833 and my phone not starting .. showing the android logo then the while screen keeps on not starting at all. help please
[Xperia Z5 Premium General] changkho1908:
please update stock modified kernel for 32.2.A.4.4 rom
[Xperia Z5 Premium General] KbaB.BroS:
Been busy all week but now I am free so have patience.
[Xperia Z5 Premium General] KbaB.BroS:
It's working for other users with E6833 so make sure to try again.
[Xperia Z5 Premium General] atif_afzal:
[/COLOR]

Waiting for new stock modified kernel for

New Firmware 32.2.A.5.11
[Xperia Z5 Premium General] KbaB.BroS:
Please wait until weekend, I have a stuffed schedule.
[Xperia Z5 Premium General] EMJI79:
What's new with that firmware?
[Xperia Z5 Premium General] atif_afzal:
Thanks

---------- Post added at 02:20 PM ---------- Previous post was at 02:18 PM ----------

I on stock modified kernel I got update notification but after download it did not update. So I will download through xperia firm then I will let you know.
[Xperia Z5 Premium General] KbaB.BroS:
E6853 32.2.a.5.11

I uploaded a kernel for E6853. The reason for making this device first is because this is my phone and that is how I test (it works FYI). When I get home later today I will make it for the other models.
[Xperia Z5 Premium General] atif_afzal:
Dear brother any update about E6833.
[Xperia Z5 Premium General] danilo_scala:
Thanks friend for keep this great work, all okay in e6883, tested
[Xperia Z5 Premium General] tuanck2004:
E6883 worked fine :) tks
[Xperia Z5 Premium General] EMJI79:
Is it possible to backup DRM keys without downgrading to Lollipop and use the guide in this thread OP right away after I have done the Fragmentation thread stuff?

It seems not but I may have missed something (I have just bought this smartphone and it is already on Marshmallow).
[Xperia Z5 Premium General] harborxperia:
You do great work, thank you. Smooth update so far.
[Xperia Z5 Premium General] KbaB.BroS:
There's a software based on the dirty-cow exploit now, you can find it in the Sony cross Dev sections. .305 should work.
[Xperia Z5 Premium General] EMJI79:
It works
[Xperia Z5 Premium General] EMJI79:
In one of the first post of this thread you said choosing another market firmware would make the mobile network slower, is it the only problem?
[Xperia Z5 Premium General] xrenoix:
Hello ! Work on 511 i have test this !!! :good: ;)
[Xperia Z5 Premium General] EMJI79:
I am in France with E6883, still in. 305
[Xperia Z5 Premium General] EMJI79:
You have E6883?
[Xperia Z5 Premium General] xrenoix:
I have E6853 Single sim ;) look here https://xpericheck.com
[Xperia Z5 Premium General] EMJI79:
Thanks I found the Russia one which is probably the closest but downloading is costly? Any way of having it free?

Edit I used Xperifirm and downloaded it, hope it works.
[Xperia Z5 Premium General] EMJI79:
Cannot use flashTool to flash the downloaded ROM.

I tried tens of time.
[Xperia Z5 Premium General] xrenoix:
work perfectly for me !!!
[Xperia Z5 Premium General] EMJI79:
Strange.

---------- Post added at 06:47 PM ---------- Previous post was at 06:46 PM ----------

It just isn't recognized as a firmware inside of FlashTool.
[Xperia Z5 Premium General] EMJI79:
I just waited more and it eventually worked.
[Xperia Z5 Premium General] EMJI79:
Now it is rooted and everything is fine.

Anybody installed Xposed on this 32.2.A.5.11 version?
[Xperia Z5 Premium General] bassbounce:
I am new with rooting on Sony, I backup the drm keys and flash stock again.

When I flash these kernel is the camera quality the same as with the drm Keys? And fido also provisioned? Same functionality as with drm Keys?
[Xperia Z5 Premium General] Castlevania:
Appreciated, Thanks :3 <3 <3 <3
[Xperia Z5 Premium General] danilo_scala:
edited, sorry and thanks [MENTION=2735815]xrenoix[/MENTION]
[Xperia Z5 Premium General] xrenoix:
Do not ask ETA it's forbidden
[Xperia Z5 Premium General] :
You'll need to wait for the tool to be updated, at the moment it just hangs. Latest post on the matter https://xdaforums.com/showpost.php?p=70595975&postcount=1702
[Xperia Z5 Premium General] randy_c:
delete
[Xperia Z5 Premium General] YasuHamed:
[MENTION=5410058]KbaB.BroS[/MENTION]

rootkernel5.11 is out bro

could you please check
[Xperia Z5 Premium General] kawasaks:
read through the threads but did find update on android 7 kernal. read only able to add DRM funcation but not for RIC. was there any update? cheers
[Xperia Z5 Premium General] YasuHamed:
https://xdaforums.com/z5-premium/general/rooted-stock-modified-kernels-32-3-0-t3556874
[Xperia Z5 Premium General] kawasaks:
Thank you YasuHamed, checked the link but seems like it is procedure for rooted kernel.

As i need to have Airwatch (MDM, corporate secure email), android pay and PokeGo, i need to stick with none rooted kernel with DRM bypass and RIC bypass. is there any update on none rooted kernel with DRM and RIC bypass for nougat? I remember reading a thread mention having compatibly issue on Nougat for RIC but was not able to locate if this was resolved.

Thank you always!
[Xperia Z5 Premium General] YasuHamed:
in that case, there is not much can be done!

DIRTYCOW script gives yout emp access on android 6 to atleast axtract your drm keys (temproot) but yet to be developed for android 7. also i read that in future for xz series they will develop temp root which will atleast let you disable apps.

SONY RIC cannot be switched off in android 6 and greater!

kingroot was able to crack sony ric but on LP kernels only!
[Xperia Z5 Premium General] kawasaks:
thank you YasuHamed, i will stick with what i have for now. thank you for the feedback and also would like to thank you for posting all the procedure as i did used to custom my Z5P.
[Xperia Z5 Premium General] YasuHamed:
you are always welcome [MENTION=4136372]kawasaks[/MENTION]

Xperias has driven me crazy for years and I am still not having enough of them! I am waiting their next version having 6gb ram to buy

- without root you can still disable many apps. and Android 7 has memory optimization under development options - it helps keeping ram in manageable level (you can enable development options by tapping 8 times on build number under ABOUT PHONE)
[Xperia Z5 Premium General] berki1:
Hello, you can help me.

I've already come to it thanks :)
[Xperia Z5 Premium General] mikhail kalashinkov74:
Hi. Admins help me. Where is rootable kernel for E6833 6.0.1? Is deleted? I think u deleted for malware attack (Zygote64). I using 6 years rooted sony devices. I never seen this malware, last week i see this in my phone. Phone cant work normally because cpu usage usually is over 85 90 percent. I try to much for kill this sh it. But :'(. Finally i have to full flash my phone. And now I missed rootable kernel. I search so much but i cant find. I downloaded from xda in 4 month ago, but now i cant see any post for e6833 :/
[Xperia Z5 Premium General] samantafs:
I flash this file on z5p dual but when i want to go recovery hanging on sony logo, and dont have root access, befor this i have recovery and root access from other post in this site
[Xperia Z5 Premium General] KbaB.BroS:
You can't flash this kernel over an recovery. That's why I recommend flashing the firmware from Flashtool first before you proceed with flashing this kernel from fastboot.
[Xperia Z5 Premium General] KbaB.BroS:
First, like [MENTION=3944073]raven213[/MENTION] wrote, unlocking bootloader without backing up DRM you lose them forever.

Second, I wouldn't recommend installing OTA updates, because you have first and foremost an unlocked bootloader. Flashing the newer update from, let's say Flashtool, the kernel must be replaced, making you lose both recovery, root and DRM simulation. Fortunately, it's fairly easy to make a modified kernel with the tool I first linked in OP, so a new kernel will probably be available the moment I can find the FTF for the new update.
[Xperia Z5 Premium General] ZohabK:
So how do I backup the DRM.. And if I flash this kernel I'll get root etc.. When there's an update available for the FW I just wait to someone to put up a new kernel for the specific FW?

Isn't it possible to just flash this kernel and flash a prerooted FW?

Sendt fra min E6853 med Tapatalk
[Xperia Z5 Premium General] KbaB.BroS:
Backup DRM from here:

http://xdaforums.com/crossdevice-dev/sony/iovyroot-temp-root-tool-t3349597

Yes you wait until a kernel comes out, or you can make it yourself with the tool from the first link in OP.

You can flash a prerooted firmware from the kernel's recovery, but keep in mind that it's unnecessary to do that when the kernel itself has root.
[Xperia Z5 Premium General] ZohabK:
This thread you post about is maybe outdated? It says it's only supports lollipop? And not current FW?

Is there a step by step for backup, rooting and then restore drm?

Sendt fra min E6853 med Tapatalk
[Xperia Z5 Premium General] KbaB.BroS:
The exploit for successfully rooting with locked bootloader has only been found on the older firmwares. That root is only temporary and exists solely for backing up the TA partition.

Edit:

I've never used that tool, and I haven't found a step by step guide. It's fairly new and I unlocked the bootloader way before it was possible to make a backup.
[Xperia Z5 Premium General] WildBit:
You have to be on the lollipop fw to backup TA before unlocking BL. You will have t downgrade if you intend restoring the TA partition after relocking.

The DRMRESTORE workaround seems to be very efficient so good news for the people that have lost theirs :good:
[Xperia Z5 Premium General] Seyren Windsor:
Hello, please check kernel for E6883. I dont have root and recovery after flash it. I only see the diffirent about drm restore function.

1. Flash LL rom, backup TA partion

2. Flash clean MM rom, wipe all

3. Unlock bl

4. Flash your kernel for E6883 via fastboot
[Xperia Z5 Premium General] KbaB.BroS:
Try it now. Root doesn't seem to be included in any of them and I couldn't test it until now, because my phone was at service. I linked to the SuperSU thread in OP. flash whichever you like.
[Xperia Z5 Premium General] -DM-:
Got a few questions.... just got a Z5 premium (E6853), the phone booted with LP 32.0.A.6.170, so the first thing I did was to backup my TA with iovyroot as it is a supported firmware to use the tool...

I'm about to unlock the bootloader, and flash the E6853 kernel from the op but I wanted to know does your kernel also have dm-verity and Sony RIC off?

Also can I just take first the system update that popped-up after I booted (which should be MM I guess), then unlock the bootloader and then just flash the kernel in fasboot afterwards....I mean no need to install a MM firmware with flashtool since I'm presented with the update already....

And another one....is there any generic global MM firmware out there and if not, which firmware would more suitable for use in the US (as there is nothing available for my region in xperifirm)....sorry if this might not be the right thread to ask this last question, but I've been reading a bunch of other threads regarding the Z5p about root and so on, so information overload at the moment ;)

Also trying to figure out how to get my TA backup image into a flashable DK.ftf (but I'll get to that at some point)

Sorry with all the questions, but as I said, I just got the Z5p about a few hours ago (coming from a Z3) and never had to unlock the bootloader to achieve root before

Thanks
[Xperia Z5 Premium General] KbaB.BroS:
Yes, it has DM verity and RIC off.

Yes, you can update with OTA to this version and then unlock, as long as everything is stock before you flash this.

You can try the Russian version, I believe it's the smallest version in size and it has less bloatware than the others.
[Xperia Z5 Premium General] -DM-:
Thanks for the info...

I haven't proceed yet... I'm gonna try to grab the files from the update with pc companion from the MM update as from what I see in the buildprop it looks like I have a generic global firmware at the moment so I'll see to what I get updated to and make a ftf with flashtool...that might be helpful for some other people here
[Xperia Z5 Premium General] KbaB.BroS:
Kernels updated to stay in sync with the latest tool
[Xperia Z5 Premium General] mahozi:
Going into recovery

I flashed 32.1.A.1.185 over v163 on rooted E6883 with TWRP&UnlockedBL, then fastboot flashed UB Kernel but when trying to go into recovery gets stuck with red led and Sony logo.

Double checked the steps and repeatedly did but end up with the same result. I should have missed or ignored sthg?

Help needed.
[Xperia Z5 Premium General] KbaB.BroS:
Just for clarifying:

You flashed the latest FW for your device in Flashtool first?

You downloaded the kernel for your device and fastbooted it with "fastboot flash boot E6883.img"?

It should work doing this, I follow this but with E6853.
[Xperia Z5 Premium General] mahozi:
Done !

I did a factory reset and worked.

There might some residues may preventing booting into recovery. Anyway it's OK now.

Thanks
[Xperia Z5 Premium General] djroyb1:
why i cant enter super su its say no root but i install thus kernel
[Xperia Z5 Premium General] KbaB.BroS:
Download a SuperSU zip from the link in OP also and flash it in recovery. SuperSU integrated gave me complications, thus I removed it. Now I recommend flashing the zip from recovery.
[Xperia Z5 Premium General] djroyb1:
where it super su link
[Xperia Z5 Premium General] KbaB.BroS:
It's the second link on the first post, but I will link it here:

https://download.chainfire.eu/921/SuperSU/UPDATE-SuperSU-v2.65-20151226141550.zip