yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Premium Android Development] jinciu:
my z5p is E6883 running stock firmware marshmallow 6.0. erm, i think i brick my phone. ok let's get to the whole process from the begining which i did.

1)i unlock the bootloader(i did the developer option by enable usb debugging+allow untrusted software+OEM unlocking) by going into official pages and did it in official way,which email verification needed and few official agreement agreed and after finish bootload process my entire phone data wipe out.

2)after i restart with factory reset phone, i forgotten to set back the developer option. immediately i went to flashing custom kernel and twrp .and this time i select a file named boot.img and twrp-2.8.7.0-E6883-20151130_material by key in command prompt without using falshtool. source from http://xdaforums.com/z5-premium/general/root-z5-premium-dual-t3381919

3)after done flashing i went to twrp recovery by hitting continuously volume up button when start up, then in twrp i install super su as provided by the link.

after this 3 process i got my phone rebooting all the time by showing white page showing sony wording then follow by dimming brown sony pic.

therefore, i thought my phone softbrick n thought to repair it by repair sony companion, but failed as sony companion show Problem: the phone/tablet contined modified software cannot be updated.

reason: sony update engine failure (error 0x000007d3)

next, i try out your link by going immediate to step 2 as i thought my phone was unlock bootload but failed as well in getting stock firmware and i proceed to step 3, successfully flash and step 4 successfully install as well.

so that were the whole thing that i can recall throughout my rooting process. hope there is a life line for my little phone. :(
[Xperia Z5 Premium Android Development] dominicstg2:
rooted e6853 and tried the z5 3.0 twrp and it stuffed the screen up so downloaded 2.7 for e6853 any ideas because i want the latest twrp
[Xperia Z5 Premium Android Development] Snake07:
I faced with the same problem some time ago - recovery from first page is not working on e6853,you need to seek somewhere else. I can share repacked kernel from 185 or 224 firmware with recovery,root,super su and drm fix if you need it.

Can download from here
[Xperia Z5 Premium Android Development] toekne3:
[MENTION=6800595]Fragmentation[/MENTION]

Hi, thanks for the files (E6833 boot.img). Managed to flash them and root device. And like [MENTION=5139398]dominicstg2[/MENTION], twrp3.0.2 caused a bootloop. So I flashed 2.7 material image and it worked fine after that but every couple of days, if the phone restarts, it bootloops. Lucky, I backup my phone before any major changes or flashes (measure twice, cut once), so I'm able to twrp restore all partitions to get it working again (even though I keep losing my data). While looking for the source of this problem I happened to notice that my device now reports its model number as E6883. Could this be part of the problem? Is there any way to change it back?

What I've noticed so far:

Restoring System or Boot partition (individually or both of them only) doesn't fix it, have to restore EVERYTHING

Wiping Data, Cache or Dalvik doesn't do it either

Does not require updating anything (i.e apps, mods, system files) to cause bootloop

- in other words even if the device is left without any changes, in a couple of days (amount of time is generally random, never been more than 2days sometimes even the same day)

FlashTool won't flash stock firmware (gets stuck at modem.sin on official firmware from XperiFirm)

Official Xperia Software for Windows cannot/wont restore stock firmware either

Device-

Sony Z5 Premium Dual

Originally E6833, Now reporting E6883

Xposed Installed

Kernel 3.10.84

Build Number 32.1.A.1.185

P.S if anyone has any advice/idea on what could be causing this, any help would be appreciated...
[Xperia Z5 Premium Android Development] dominicstg2:
do you have bootloop every couple of days? i had that and had to send it for repair and they gave me a new devices it was the mother board
[Xperia Z5 Premium Android Development] ShamblerDK:
I just rooted my E6853. Installed TWRP, SuperSU and drmrestore. Everything seems to be working. Thank you, guys :)
[Xperia Z5 Premium Android Development] :
Does the rootable kernel already work on android 6.0.1?

---------- Post added at 16:07 ---------- Previous post was at 15:41 ----------

I tried, but it doesn't work. So i can't root my stock 6.0.1 / .224 firmware
[Xperia Z5 Premium Android Development] melvinhatred:
Same problem. But I have send my phone to sony havent get back yet. Pls let me know if u have tried out some method and its works.
[Xperia Z5 Premium Android Development] jinciu:
Hi melvinhatred,

I got my problem solved by using another pc with flashtool,by using flashtool u try to lock back ur bootloader with 'BLU' sign if previously ur device was unlock officially.then get back to sony pc companion and get it repair which companion will restore stock firmware.

Hope u understand n good luck.
[Xperia Z5 Premium Android Development] melvinhatred:
Thanks will try once I get back my phone
[Xperia Z5 Premium Android Development] toekne3:
[MENTION=5139398]dominicstg2[/MENTION] had you rooted your phone, unlocked your bootloader?
[Xperia Z5 Premium Android Development] dominicstg2:
yes i had it rooted and bootloader unlocked
[Xperia Z5 Premium Android Development] xQuantum:
is there any way to update to 6.0.1 without losing root? I'm on stock FW.
[Xperia Z5 Premium Android Development] Fragmentation:
No, I didn't heard about it.
[Xperia Z5 Premium Android Development] giz02:
"FlashTool won't flash stock firmware (gets stuck at modem.sin on official firmware from XperiFirm)"

I had this same issue ...

Solved it by flashing but excluding modem..

Rebooting

Sim did not work at this point..

back to flash tool

flash ONLY modem (exclude all other packages).

Reboot.

Back in business.

After this, reflashing normally works fine with multple loads.. must have been some previous combination of my efforts in the past.

---------- Post added at 04:12 PM ---------- Previous post was at 04:11 PM ----------

---------- Post added at 04:11 PM ---------- Previous post was at 04:06 PM ----------

Ok.. just so I get this straight..

Unlocking boot loader wipes DRM keys.

Installing a twrp allows DRM key mod push

6883 won't boot 6.0.1 with modified permissive kernel and twrp installed. Need to reflash ..

and reflashing wipes DRM mod.

So I can't have X-Reality engine, Sony app updates, sony camera etc as a result of losing DRM ?
[Xperia Z5 Premium Android Development] dominicstg2:
can anyone help me root on 6.0.1 6835 please
[Xperia Z5 Premium Android Development] dominicstg2:
do i just flash this 224fw boot.img and have all the above?
[Xperia Z5 Premium Android Development] Snake07:
Yes,if your bootloader is unlocked just flash this kernel via fastboot.
[Xperia Z5 Premium Android Development] YasuHamed:
even me, i am not gonna buy sony anymore, i am on E6833 (z5p dual), on MM 6.0, LB_)

although i am big xperia fan for last 6 years but i will be switching to ONEPLUS3 and its decedents,

its announced 6gbs of ram and the beauty is, you don't have to ROOT is, it prerooted :)

---------- Post added at 11:25 AM ---------- Previous post was at 11:20 AM ----------

you are lucky <3
[Xperia Z5 Premium Android Development] melvinhatred:
Hi everyone I have gotten back my device and all was replaced for free. Now my device is bootloader locked. Im not going to root it anymore.
[Xperia Z5 Premium Android Development] KbaB.BroS:
If it's the same device I don't think you have your DRM keys back.
[Xperia Z5 Premium Android Development] melvinhatred:
Not very sure whats DRM keys for but its seems to have gotten much faster and battery last longer. According to the service center battery was replaced and was reflashed also was updated to the newest firmware .224
[Xperia Z5 Premium Android Development] KbaB.BroS:
Can you go to the phonepad and type in this:

*#*#SERVICE#*#*

Then service tests>security

What does it say?
[Xperia Z5 Premium Android Development] KbaB.BroS:
Your DRM keys aren't there. They should say active instead of error. X-reality won't work and camera quality in low light will be worser than it already is.
[Xperia Z5 Premium Android Development] melvinhatred:
Anyway to restore?
[Xperia Z5 Premium Android Development] KbaB.BroS:
You can flash RomAur or use the stock modified kernel I put up in Z5 Premium General
[Xperia Z5 Premium Android Development] melvinhatred:
Do I need to unlock the bootloader again? Or do I have other options rather then flashing again? Im afraid that I will brick the device again.
[Xperia Z5 Premium Android Development] KbaB.BroS:
Bricking will easily be fixed with FlashTool, unless you fry your phone, which is almost impossible nowadays.

Yes you have to unlock your bootloader.

No other solution than unlocking bootloader if you want X-reality back.
[Xperia Z5 Premium Android Development] melvinhatred:
Thanks alot for ur help while I need some consideration about flashing again.
[Xperia Z5 Premium Android Development] danilo_scala:
try to downgrade to backup TA, with firm .209 5.1.1 china and had problems,i not to wipe downgrade .. I used xperi firm for download.the cell begins with many errors , xperia z5 premium e6883, i found firm .209 Malaysian but flashtools show firm Z5 normal to flash, I downloaded and blog xperia same name e6886
[Xperia Z5 Premium Android Development] zams85:
Already backup drm..unlock bootloader then back to stock..restore back drm..not losing originality drm right?first time using sony
[Xperia Z5 Premium Android Development] Ali_Parto:
hi , my z5p on 6.0.1 and when i try to root it , mu phone not turn on . bootloader perfectly onlock and twrp install but when i install superuser , phone not turn on and shen press puwer , notification on (red) and do nothing. sorry my english is very bad

my phone is :

android 6.0.1

E6833_32.2.A.0.224_Customized MEA
[Xperia Z5 Premium Android Development] herbao:
Help Z5P Dual

Amigos, fiz o procedimento e deu tudo certo... mas depois que instalo o Super U, que ligo o celular, fica O Android está iniciando.... Iniciando os aplicativos, e não sai dessa tela... alguém para me ajudar?
[Xperia Z5 Premium Android Development] Fragmentation:
Okay guys, I've just did a major rewriting of this guide since there were a lot of complaints regarding the moonbutt's kernels. Sometimes they work and sometimes they are not. [MENTION=357342]tobias.waldvogel[/MENTION] created a powerfull script which is able to repack the Xperia kernel and integrate TWRP and DRM fix to it, so my guide is now based on it. Feel free to check it out.

All who experienced issues with the previous guide are strongly recommended to check the current version. It will more probably work for you.
[Xperia Z5 Premium Android Development] sepehr.sd:
HI my bootloader status is unknown plz help me to fix it
[Xperia Z5 Premium Android Development] Fragmentation:
Hello. Do you want to unlock or relock it?
[Xperia Z5 Premium Android Development] sepehr.sd:
I want unlock bootloader
[Xperia Z5 Premium Android Development] Fragmentation:
Then refer to the step #3 of the guide.
[Xperia Z5 Premium Android Development] sepehr.sd:
I want to relock it
[Xperia Z5 Premium Android Development] Fragmentation:
This may be of help. 5 seconds in Google, by the way.
[Xperia Z5 Premium Android Development] Guilherme Pacheco:
Drm keys

i want to know if my z5 premium drm keys are locked?
[Xperia Z5 Premium Android Development] KbaB.BroS:
The DRM emulation works, you can see that on the lines where "active" are written.

The FIDO keys however needs to have the TA backup for the specific phone to work. That's why it says "not provisoned"
[Xperia Z5 Premium Android Development] Guilherme Pacheco:
drm keys

I didn't do the TA backup. But this error in fido keys means that my drm keys aren't working?
[Xperia Z5 Premium Android Development] KbaB.BroS:
You don't have DRM keys if you didn't do a backup, only DRM emulation. The mod can't restore your specific DRM keys, only emulate them and there's a limit for that, the FIDO keys for example.
[Xperia Z5 Premium Android Development] Guilherme Pacheco:
drm key

This loss of drm keys interfere in watching videos in 4K?
[Xperia Z5 Premium Android Development] KbaB.BroS:
no
[Xperia Z5 Premium Android Development] Guilherme Pacheco:
ota updates

If there a new firmware in the future can be installed normally via OTA?
[Xperia Z5 Premium Android Development] pao008:
Hi I am stuck on step 2. I'm having a problem downgrading my phone to .200 or .170 when I flash it my phone just goes to endless loading. Is there another way to backup my DRM keys using 32.2.A.0.253 firmware? Thanks!
[Xperia Z5 Premium Android Development] guhvanoh:
No, it is clearly stated what firmware this works for.
[Xperia Z5 Premium Android Development] konstantinos3:
So the only way is to downgrade? How?
[Xperia Z5 Premium Android Development] eqbirvin:
I downgrading safe?
[Xperia Z5 Premium Android Development] iwilltouchthesky:
When trying to use flash_dk.cmd in windows command prompt for restoring DRM keys I get the error:

"ash: can't open 'flash_dk.sh'"

any idea why anyone??

EDIT: Nevermind, I got it working. Ended up having to execute the command in the script manually using busybox instead of just using the flash_dk.cmd script.
[Xperia Z5 Premium Android Development] konstantinos3:
anyone?:(:(
[Xperia Z5 Premium Android Development] pao008:
Hi. Check this thread it might help you to downgrade your Z5P properly http://xdaforums.com/z5-premium/help/downgrade-firmware-t3415421
[Xperia Z5 Premium Android Development] IslzaeL:
Thank you so much and thank to the people who made this posible. Now I´ll try to unlock the bands for my operator and country. Thank you a million times.
[Xperia Z5 Premium Android Development] :
Would it be possible to get a link to the recovery and kernel used in the old tutorial in this thread. I preferred that method and I can't seem to find it anymore. I just need those 2 files. I'm look for a link to the recovery and boot img in the previous version of this tutorial. Any help is greatly appreciated.
[Xperia Z5 Premium Android Development] YasuHamed:
your signatures reads "Xperia Z5 Premium Dual (E6883) - RomAur 4.2.1 - Aur Kernel 4.0"

however if you are looking for STOCK MODIFIED KERNELS for all three variants of Z5 E6833 / E6853 / E6883 of following stock updates

32.1.A.1.185 / 32.2.A.0.224 / 32.2.A.0.253

thanks to [MENTION=5410058]KbaB.BroS[/MENTION]

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

---------- Post added at 08:06 AM ---------- Previous post was at 08:05 AM ----------

its a LONG process

try reading this

http://xdaforums.com/z5-premium/development/rooting-xperia-z5-z5p-variants-drm-keys-t3437902
[Xperia Z5 Premium Android Development] danilo_scala:
thanks, great guide, , in 7. RESTORE YOUR DRM KEYS, i make bakup but .img (key), i flash recovery or option flashtools?. thanks
[Xperia Z5 Premium Android Development] Fragmentation:
Sure:

http://xdaforums.com/showpost.php?p=67015743&postcount=46
[Xperia Z5 Premium Android Development] Fragmentation:
I've just updated the guide and added instructions to install Xposed framework.
[Xperia Z5 Premium Android Development] pablo2002:
Everything works perfectly, thankssss

This tutorial is excellent !!! I followed all the steps and everything worked perfectly . I have Z5P dual E6833 with root and TWRP , thank you very much you are 're a genius
[Xperia Z5 Premium Android Development] Fragmentation:
Welcome.
[Xperia Z5 Premium Android Development] grodri1972:
Little lost I'm on 6.01 do I still have to flash new firmware or can I can start with ivoryroot save keys any videos on how to do everything
[Xperia Z5 Premium Android Development] Fragmentation:
You should flash new firmware, which should be specifically prepared to be rooted. This guide covers exactly this. Before this you probably want to get your DRM keys, however this is not mandatory. I didn't do any video guides, sorry.
[Xperia Z5 Premium Android Development] grodri1972:
Ok thanks
[Xperia Z5 Premium Android Development] elias.parasini:
[ASK] more than 260 char

Running WIn10 64bit

Flashtool 0.9.22.3

I have this error: Unpacking failed because one of the file path was longer than 260 characters!! Bla bla bla (see attachment)

Came from 32.2.A.0.253

Downgrade to 32.0.A.6.209 -> success

Unlock bootloader -> Success

Tried to go back to 32.2.A.0.253 via flashtool -> xperifirm download success -> unpacking failed

How to avoid this?

Download was succesfull, but flashtool wont unpacking.. Already tried 4 times but still..

Any help will apreciate it..

Thanks (:
[Xperia Z5 Premium Android Development] nigeta_gr:
Thanks for the guide.

I followed the instructions and I rooted my E6833 (Zperia Z5P dual) succesfully. I also installed Xposed.

The problem I face up is that frequently during device's reboots or turn-on function the phone starts to bootloop.

I uninstalled Greenify and Minminguard mods which seemed to provoke the problem but it didn't solve it permanently.

A solution I found is to wipe Art but I cannot repeat it every time I turn the phone on and still it's impossible for me to explain what causes this malfunction.
[Xperia Z5 Premium Android Development] Oreltub:
is bootloader unlock necessary for only stock rom flashing?

or i need it anyway?

if UB is not necessary, can i just make prf and flash it with flasftool?
[Xperia Z5 Premium Android Development] Fragmentation:
Hey everyone.

Should ask this in Flashtool and/or XperiFirm threads, not here. Not sure if anyone here can help with this error.

Yes, bootloader should be unlocked to be able to flash custom firmware.
[Xperia Z5 Premium Android Development] elias.parasini:
[ASK] After update to 32.2.A.0.305

Just got update via falshtool.. Without checking the Wipe column..

Should I redo those steps to get root & TWRP?

Seems my TWRP has gone.. Cant enter TWRP..

Thanks..
[Xperia Z5 Premium Android Development] Fragmentation:
Sure, if you flashing the whole firmware with a Flashtool, even if nothing is checked for wipe, boot part got erased and updated and TWRP is gone of course.
[Xperia Z5 Premium Android Development] elias.parasini:
Thanks for your respond..

1. extract kernel.sin from 32.2.A.0.305 TFT

2.extract kernel.elf with flashtool

3.repack kernel.elf to boot.img with rootkernel5.0

4.flash boot.img with cmd -> no error found

But seems my TWRP still gone.. No amber light on booting..

Something I miss?

Edit: Sorry, seems like my bootloader relocked after flashing FTF via flashtool.. Check on my Configuration:

Bootloader unlock allowed: Yes

So, I need to unlock again..

I dont know if flashing FTF will relock bootloader..

Edit: Unlock FAILED, remote: device already rooted ))):
[Xperia Z5 Premium Android Development] amirh8466:
is this way go with 305 build number?
[Xperia Z5 Premium Android Development] Fragmentation:
Actually, if you will look close enough to the repack script's console output, you will notice TWRP adding error. The latest version of the script doesn't fully support .305. However, later in the original thread someone offered modified script, but his version doesn't support Xposed.

I personally stick to .253 for now, hoping that original repack script author will eventually return to XDA.

UPDATE 21 October:

Actually updated to .305 while doing rewrite of the guide. So far so good and even Xposed works.
[Xperia Z5 Premium Android Development] Fragmentation:
I've just updated the guide and uploaded new screenshots (previous mysteriously vanished).
[Xperia Z5 Premium Android Development] pomelowu:
So the backed device key doesn't need to be packed into the boot.img, but can be restored in a separate step, am I wrong?
[Xperia Z5 Premium Android Development] Fragmentation:
You are right, however I didn't test the DRM keys save and restoration.
[Xperia Z5 Premium Android Development] FireDragonmx:
Hi!!

Thanks for all! Now I have my Z5 Premium E6853 Rooted and I have mi DRM keys.

But I have a problem, I can't flash the " DK.FTF" with flashtools because i can't choose the file... How can I flash the dk.ftf to restore my DRM keys?

Sorry if my english is bad! And thanks for the help!
[Xperia Z5 Premium Android Development] Fragmentation:
Hello, please ask about DRM keys restoration the author of the tool.
[Xperia Z5 Premium Android Development] FireDragonmx:
Thanks! I will ask him for help. This step is the only I need to finish it.
[Xperia Z5 Premium Android Development] miramirovich:
I have Z5 Premium Dual E6833 and successfully rooted my device.

I have never used a smart-phone before, carefully following this guide I

manage to root it with no errors, but with hard reading and testing.

But If you are familiar with this method and app. you can root your device in minutes!

Some advice to inexperienced people like me who are going to root their devices:

The most important thing is properly installed drivers for your device

and YOUR ORIGINAL USB cable or BETTER one!!!

Use only firmware for your device and create a repacked kernel-boot.img from your own firmware!

I chose E6833_6.0.1_32.2.A.0.253 it's not the newest one but I do not care.

Consider your firmware to work whit all additional application given in this topic,

it is normal the new one to be ï¿½unsupportedï¿½!

If It is necessary downgrade your android ver. /as I did it/ to backup your DRM-Keys properly.

To downgrade or upgrade via flashtool you can leave your boot-loader untouched -LOCKED so

do some experiment with firmware designed for your device.

I backup my DRM Keys three times from android ver. 6.0, 5.1.1 and 6.0.1 and trusted iovyroot!

I actually unlocked my boot-loder just before REPACKING AND FLASHING A KERNEL

If something is unclear for you first try some search in the WWW. It helps a lot.

So, I did not understand something how I have root and bootloader locked + DRM keys OK?

Thanks to Fragmentation for detailed guide.:good:

Thanks to all other people for theirs guides linked here and additional software making you an more than administrator on your android device.:good:

[IMG="Unlocked BL DRN keys Gone"]http://imagizer.imageshack.us/v2/800x600q90/921/ivseHe.jpg[/IMG] [IMG="Root"]http://imagizer.imageshack.us/v2/800x600q90/921/TGqqzk.jpg[/IMG] [IMG="Root and DRM keys back"]http://imagizer.imageshack.us/v2/800x600q90/921/7s4iaj.jpg[/IMG]
[Xperia Z5 Premium Android Development] Fragmentation:
It's good to hear that even inexperienced folks get success in a not really straight-forward operation of getting a modern smartphone rooted. Enjoy your device at its most!
[Xperia Z5 Premium Android Development] ElTigre-2008:
Hello,

at first thx for the guide. My Device Sony Z5C (E5823) is rooted. But my ineternal Memory shows only 16 GB now instead of 32 GB.

Can somebody help?
[Xperia Z5 Premium Android Development] petrutms:
I made successfully TA Backup on my Xperia Z5P with stock MM 6.0.1 from here: http://xdaforums.com/crossdevice-dev/sony/universal-dirtycow-based-ta-backup-t3514236 . I can now unlock the bootloader to root my phone, then to restore TA Backup (there is now a simple way, any hope)? Thank you!
[Xperia Z5 Premium Android Development] Stavrozo:
cant get into recovery

hi thank you man very much for this guide anyways i have an issue

i have a sony xperia z5 premium dual E6833 i did everything and i had no errors what so ever my bootlaoder is unlocked .........but when iam trying to install the SuperSu i cannot boot into the recovery and there is no amber light ?? where did i go wrong ?

ok i ran through and i found

5. REPACKING AND FLASHING A KERNEL

i get this "Skipping TWRP recovery. No kernel modules for 3.10.84-perf-g0802f10 available"

photo in attachment

now what should i do ?
[Xperia Z5 Premium Android Development] XperiaWizzle97:
Step 4

Hi,

For Step 4 when I would click on the XperiFirm icon the window doesn't open up.

Please help.

By the way I have an Xperia Z5 premium if that helps.