yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Compact General] JL08:
Pls help Im having a bootloop after downgrading my phone to 23.0.A.2.93 D803. I tried another fw with a different country but still having a bootloop. I haven't tried the one that is provided (the global) but Ill try it nxt and hopefully it will fix it. For the meantime ill just ask why did it bootlooped? Im pretty sure I did exactly what is said.
[Xperia Z3 Compact General] Conte Mascetti:
A downgrade has to be done with a full wipe, if you don't want a bootloop. Use flash tool and repeat the OP procedure, carefully step by step.

From Z3C Black
[Xperia Z3 Compact General] hmrc87:
I'm currently on the latest Lollipop 5.1.1 and now I want to root my phone. When I flash the firmware 23.0.A.2.93 do I need to downgrade to Android 4.4.4 first or is the firmware compatibly with 5.1.1?
[Xperia Z3 Compact General] Lazer72:
Ummm...... Flashing older firmware = downgrading.

Your entire phone is completely wiped, no lollipop left.
[Xperia Z3 Compact General] hmrc87:
Thanks for the reply, Lazer. I'm completly aware and ready to wipe all my data. My question was if the old firmware from December is compatible with 5.1.1 since I've seen a listing of firmwares which was dividided by Android Versions I thought there are firmware <-> Android Version dependencies
[Xperia Z3 Compact General] Lazer72:
You don't understand...

How do I explain this....

OK, what do you mean by compatibility?

When you flash the old .93 firmware your phone is now running Kitkat. Lollipop has been overwritten.
[Xperia Z3 Compact General] hmrc87:
Oh damn now I realize my mistake: I thought the manufactures firmware is a different part of the system. Now I get it: with firmware you mean Sonys Android 4.4.4 version. I thought u can install firmware and android separately but firmware = Android with manufacturers addition. I'm ashamed :D

Ok, since I am on 5.1.1 and the Root-Exploit only works with older firmwares (true?) I have to download the old firmware (hence 4.4.4), backup TA, unlock bootloader root and the upgrade to 5.1.1 again, right?
[Xperia Z3 Compact General] Lazer72:
Now you just follow OP.

The root exploit works without unlocking the bootloader.

Once rooted you can't just upgrade like normal, you'll lose root.

Everything you need to know is actually in OP.

Yes the exploit only works on anything before .5.77

[emoji1]
[Xperia Z3 Compact General] hmrc87:
Error: Phone (german unbranded) keeps rebooting after "unfortunately phone has stopped working" appears

Steps I did

Flash D5803_23.0.A.2.93_Generic GLOBAL.ftf in order to root exploit

Root = OK, backup TA = OK

Install SuperSU and flash pre-rooted Lollipop FW fw 23.1.A.0.690 (Android 5.0 March 2015) at https://mega.co.nz/#!Y8tTQZgQ!yV5L2u...klmMdSl3EZ6t18

Now I didnt boot into Android - instead I just flashed the Nordic 5.1.1 firmware and excluded SYSTEM ( http://xdaforums.com/z3-compact/general/list-stock-firmwares-d5803-d5833-t2906706)

What did I do wrong?
[Xperia Z3 Compact General] smollusca:
I have a D5583 and have successfully rooted my phone by following the steps right up to 21.

I'm currently using the 23.0.A.2.93 (1288-5506) Singapore fw, and I'm slightly concerned by step 26.

Should I be getting the pre-rooted fw 23.0.1.A.5.77 (android 4.4. dec 2014) and the non-prerooted one per OP's instructions? I noticed that both fw are for D5803 when I went to download them.
[Xperia Z3 Compact General] Lazer72:
Well your Prerooted firmware is version 5.0. And then you flashed 5.1.1. That's what you did wrong. If you want to have rooted 5.1.1 you have to make Prerooted firmware of 5.1.1.

Note : Prerooted firmware only contains the System partition. That's why the last step is necessary.

---------- Post added at 11:06 AM ---------- Previous post was at 11:03 AM ----------

If you have D5833 don't get fw for d5803, you'll get problems.

Instead create your own Prerooted firmware using D5833 versions.
[Xperia Z3 Compact General] smollusca:
Got it! Thanks! :)

Just another question. Step 28 calls for the latest fw. The latest for D5833 is 5.1.1 (Australia, Thailand and Brazil).

Is it all right to create my own pre-rooted fw with those or should I go for the 5.0.2, which has the Singapore version?

Not sure if it makes a difference, but after backing up my DRM keys, I'll like to go back to 5.1.1.
[Xperia Z3 Compact General] Lazer72:
Yes you can, the regions hardly make a difference. [emoji1]
[Xperia Z3 Compact General] smollusca:
Awesome! I'll give it go now.

Thanks! :D
[Xperia Z3 Compact General] hmrc87:
Thank you very much for your answer.

So in step 28 it says: Get latest fw (https://mega.co.nz/#!YYNFwY5a!cHuAuw...jWHBHfixlZRW3Q) (currently this is fw 23.4.A.0.546) . Can't I just take the newest 5.1.1 from the firmware thread, run the pre-root stuff on it, flash it and then flash the same fw (but un-pre-rooted)) without system over the phone?
[Xperia Z3 Compact General] smollusca:
I think I've successfully backed up my DRM keys. I've also flashed the newest Lollipop fw.

One last question. If I decide to go back to Kitkat, so I just simply flash the Kitkat fw or do I have to go through the entire process again in order to retain my root?
[Xperia Z3 Compact General] Lazer72:
You have to flash a Prerooted Kitkat fw through recovery, then flash the KK fw through FlashTool excluding System.
[Xperia Z3 Compact General] hmrc87:
It worked! I took the same FW and flashed it pre-rooted and then exluding system. Thanks all!
[Xperia Z3 Compact General] ninj3:
Question: In the PRFC thread, zxz0O0 recommends ticking all 4 includes for creating the prerooted zip - Kernel, FOTAKernel, Modem, LTALabel

Why do we not include these when we create the prerooted zip in step 31?

Does this mean that these 4 components are not updated?

zxz0O0 does say: "Note: If you do not include the kernel in the pre-rooted firmware, it's recommended to flash it afterwards with flashtool (check "system" under Exclude)."

which is what we do in step 43. Does this update the 4 aforementioned components?
[Xperia Z3 Compact General] raxidian:
The link you posted is getting skewed and not properly showing the decryption key for the mega link.

Could you fix it? I was looking forward to get an easier way to root my phone that is already on 5.1.1.
[Xperia Z3 Compact General] ondroidd:
Recovery

Hello again,

so i finally managed to complete the whole process.I got the phone rooted, FW flashed, recovery installed and DRM keys backed up. The thing is that after everything i am not able to access recovery.

I tried the following :

I tried mashing the volume up button when the LED lights up whilst turning on the phone (i tried volume down as well) and after that i downloaded Quick Boot app and Rashr too but still wasn't able to get in recovery.

Does anyone have any idea why this might be or how to fix this ? I've also got unlocked bootloader - i unlocked it after all my attempts were unsuccessful.

Here's some phone info just in case :

Model	: D5803

File System Version	: GLOBAL-LTE_23.1.A.0.690

S1 Boot Version	: 1286-7314 S1_Boot_MSM8974AC_LA3.0_L_15

Customization Version	: 1289-7524_R4C

Kernel version	: 3.4.0-perf-g72984dd

BuildUser@BuildHost #1

Fri Feb 27 18:06:32 2015

Thank you in advance for your help !

Edit: Using ADB does not work either
[Xperia Z3 Compact General] astmacca:
Just managed to get my new Z3C rooted 5833 and with 5.1.1 on it. :) Have come from an HTC M7 which is now the wifes phone.

Frustrating to begin with.

First mistake was not wiping everything before downgrading firmware to KK. Phone would bootloop and squeak at me until i held down vol up and power to restart.

And, was maybe not prepared for just how long it takes to boot up first time.

But, am now a happy person with TWRP available. :)

Many thanks to all who posted here, and particularly for this tute. I actually solved this by searching threads and reading other peoples posts until is saw the one about wiping when going between 4.x and 5.x either way in another thread and smacked myself for forgetting that. :(
[Xperia Z3 Compact General] anonim1:
I had the same behavior with the boot loop after step 12 and have the same exact warnings in the Flashtool log. After seeing your Edit comment, I first stopped the boot loop by holding the power and volume up buttons until the device turned off. I then checked the three wipe boxes in the Flashtool for APPS_LOG, CACHE, and USERDATA before performing another flash, which did the trick. I'd point out that this is not specifically called out in the original post.
[Xperia Z3 Compact General] anonim1:
To add a follow-up question: what's the purpose of steps 41-45? In 40, we're flashing either the fw we created or a pre-built fw. After this step, I selected System Reboot from within recovery and verified that I still had root after everything came up. It seems bizarre to flash a 5.0 fw after already having installed 5.1.1 (I see that SYSTEM should be excluded, but still not understanding what is being gained with the second flash).

EDIT: Found the answer to my question on page 84, sorry for not having caught it before posting.
[Xperia Z3 Compact General] floorflux:
FW Downgrade Step: Boot Loop, Cannot Power Off

I got a z3c D5803 with build 23.1.A.1.28 with Customization 1288-6117.

I followed the instructions and flashed D5803_23.0.A.2.93_USA.ftf

From the log:

INFO - Flashtool Version 0.9.19.0 built on 29-07-2015 12:00:00

...

INFO - Phone ready for flashmode operations.

...

INFO - Current device : D5803 - YT9115H94A - 1288-6117_R7C - 1285-6521_23.1.A.1.28 - GLOBAL-LTE_23.1.A.1.28

...

...

INFO - Ending flash session

INFO - Flashing finished.

INFO - Please unplug and start your phone

INFO - For flashtool, Unknown Sources and Debugging must be checked in phone settings
​

After I unpluged and turned on the phone, I see the Sony XPERIA splash screen, then the powered by Android splash screen, then a chime and the blue wave screen for a second, then the device makes a humming noise and reboots itself in the same manner over and over again. I cannot get the device to turn off by holding in the power button.

I've never had a sony phone and done this before but the 110 lines in the log file look okay to me. Nothing stands out as suspect.

Any advice? Am I going to be able to get this thing to boot?

---------- Post added at 05:14 AM ---------- Previous post was at 04:58 AM ----------

Nevermind. Previous post #866 solved my problem.
[Xperia Z3 Compact General] anonim1:
I'd double check and make sure you really used a 5.1.1 fw. 23.4.A.0.546 is indeed the latest, but the Mega link in step 28 goes to a file named D5803_23.1.A.0.690_Customized_US.ftf. I'm downloading the 23.4.A.0.546 fw from here.
[Xperia Z3 Compact General] Jhef2023:
Hello

Can i ask some question

1. After instruction #21. Is my phone already rooted? If so

2. Is it ok if i stop there? Don't mind upgrading to latest fw.

3. Can i use this to root z3?

TIA.
[Xperia Z3 Compact General] MoeARPeer:
Recovery lost after Busybox

Firstly, I'd like to say that I'm not very experienced with Sony devices, so help me as if I know nothing.

My D5803 won't boot to any recovery after I install Busybox with the installer from Play Store.

I've had this issue about 6 times now where I suddenly couldnt enter recovery and each time, I wasn't sure of the exact cause and so I had to start again from scratch.

I've finally isolated it so that I'm absolutely sure that its because of Busybox.

Can someone please help me because I really don't want to start again.

Just to clarify my problem: after following all the steps in the tutorial, my phone is rooted and working perfectly. Then I install Busybox and just like that, I can't access recovery at all. Not manually and not with any app.
[Xperia Z3 Compact General] chris5s:
Same here. But recovery can be reinstalled from a pc. It is a pain tho the way this keeps happening and I have no explanation for it.

Peace
[Xperia Z3 Compact General] MoeARPeer:
How can you install recovery from a PC without going through the whole process again?
[Xperia Z3 Compact General] chris5s:
Use the twrp installer from nut's website, sorry don't have the link, I'm on my phone, but it's well publicised :good:

Peace

Btw, use the installer zip, not the flashable zip ;)
[Xperia Z3 Compact General] MoeARPeer:
I'm not familiar with a TWRP installer.

Is that the same as the XZDualRecovery installer?
[Xperia Z3 Compact General] chris5s:
Yes mate, same one. Follow the link in the first post for "Dull recovery" and from nut's website download the Z3C installer zip, extract the files onto your pc and use it to install dual recovery on your phone.

Peace.
[Xperia Z3 Compact General] MoeARPeer:
I did it.

It works.

Thank you.
[Xperia Z3 Compact General] chris5s:
You are welcome :good:

Peace
[Xperia Z3 Compact General] Jhef2023:
can someone please answer these except number 3. thank you so much.

after this is OTA still working?
[Xperia Z3 Compact General] chris5s:
Considering post 21 states "You should now be rooted", it's reasonable to assume that, um, your phone should be rooted :good:

After this you are backing up your drm keys and upgrading to a newer firmware, if you continue to follow the steps in the op.

Ota still works but upgrading this way will lose root. But if you're not interested in the latest firmware you won't worry about ota either :good:

Peace.
[Xperia Z3 Compact General] Jhef2023:
Thank you so much chris. the reason why i ask if ota or pc companion still working after root is after sometime i might want to unroot my device and consider upgrading to latest fw. Anyway thanks again.
[Xperia Z3 Compact General] Gravol:
Can't download the recovery

I don't know why safari, chrome, or firefox on my mac or the VM running windows cannot download any file from

"Get Dual Recovery installer this time, from http://nut.xperia-files.com/ you want Z3C-lockeddualrecoveryX.Y.Z-RELEASE.installer.zip notice how thats 'installer' this time, not the same file as in 30!"

If anyone could mirror I would be GREATLY appreciative otherwise maybe point me in the right direction. I can't find anything and have been in the process of rooting for the past 3 hours....Was much simpler on the note 3 than this but my mistakes here were running Parallels Virtual machine with windows xp and It had been some time since I used the OS and I'm not as up on this side of things as I had hoped. Thanks so much in advance and thanks for the great tutorial and I'm sorry i'm not able to figure it all out on my own....
[Xperia Z3 Compact General] chris5s:
Have you tried temporarily disabling any antivirus software on your Mac while you download the file?
[Xperia Z3 Compact General] Gravol:
I actually don't have anti virus on my mac, perhaps I'll turn off my Virtual machine. Then reboot and see what happens, I did disable all the anti virus on my VM. Its a new day lets see what I can do before I bugger off for work ha ha

Update*

thanks ALOT I actually just suspended my VM and it allowed the download to start right away on my mac. I feel stupid but perhaps that wasn't the task to start after a few drinks out with friends
[Xperia Z3 Compact General] Gravol:
Boy did I screw this up, I tried but somehow horribly failed. Ended up with stock 5.1.1 will give it a go when I have some dedicated time. Thankfully I didn't screw my drm keys
[Xperia Z3 Compact General] evildog1:
does it work for lollipop 5.1.1?
[Xperia Z3 Compact General] Lazer72:
You have to downgrade to root it, then upgrade back to 5.1.1 while retaining root. Does nobody read the OP anymore?
[Xperia Z3 Compact General] evildog1:
i readed the OP but he said lollipop 5.0. another question. when i have rooted kitkat 4.4.4 with custom recovery without unlocking bootloader and upgraded to lollipop 5.1.1 with flash tool. do i lose custom recovery?
[Xperia Z3 Compact General] Lazer72:
You have to follow OP, read the - - Upgrade to latest firmware with root, DRM keys and recovery - - section.

Follow that but with the latest version of everything.

You can't just flash the new firmware.
[Xperia Z3 Compact General] evildog1:
oh ok thanks
[Xperia Z3 Compact General] kjplasma:
Touch not working

Just got my phone replaced due to water damage under warranty.

Downgraded, rooted and then flashed the .546 firmware and now touch does not work.

Tried flashing multiple different firmware but touch doesn't register anymore, the physical buttons work though.

Tried PC Companion but got the error there is no Software for your device (D5833).

Any suggestions?
[Xperia Z3 Compact General] Lazer72:
Was the phone replaced or repaired?
[Xperia Z3 Compact General] evildog1:
On step 7. WIPE EVERYTHING (APPS_LOG, CACHE AND USERDATA) BEFORE YOU FLASH OR YOUR PHONE WILL GET STUCK ON BOOT SCREEN!

Here is the solution. while the animated wallpaper freezes, plugin the USB and hold volume DOWN until the screen goes black and the light thing (whatever it called) on your phone blink red and blue. That's all your phone is in flash mode. wipe everything and flash

---------- Post added at 06:42 PM ---------- Previous post was at 06:17 PM ----------

On step 36. You can hold SHIFT + Right click and "open command window here" will appear in context menu
[Xperia Z3 Compact General] flamand:
can't reboot recovery

At step 39, I'm in recovery and flash the new rom and the procedure goes as it should until the end. However, once everything is finished I'm not able to enter recovery any more, either with hardware keys in a cold boot, with an app, or with adb. Any ideas?
[Xperia Z3 Compact General] kjplasma:
It was replaced.
[Xperia Z3 Compact General] km8j:
So I'm going to be purchasing a new Z3C. A few questions on this...

1) Retaining the DRM keys is what keeps the camera quality, correct?

2) Once I do this, if I flash a new ROM, how does that impact these DRM keys?
[Xperia Z3 Compact General] kjplasma:
Flashing a new ROM will not erase the DRM keys, but it is advisable to make a backup using the procedure mentioned by the OP.

The DRM keys are erased by unlocking the bootlader (Unlocking the bootloader isn't neccessary to root the phone and flash stock based ROMS), Unlocked bootloader is only required if you intend to flash a custom kernel or other AOSP based non sony ROMs.
[Xperia Z3 Compact General] km8j:
Thank you! What about flashing custom recovery? Is that needed for Sony roms? I saw some that were zips rather than ftfs so assuming they need custom recovery?
[Xperia Z3 Compact General] polykoma:
+1

and

did someone manage to get from cm12.1 back to stock after this instructions here in the thread ?

what steps need to be done ?

i saved TA files according to this thread...

how would the procedure from cm12.1 back to stock look ?

flash stock ftf (same as from ta backup according to this thread instructions)

lock bootloader with flashtool

get root access like in this thread...(again)

restore TA backup with TA tool

update to latest ftf firmware (5.1.1)

IS THIS CORRECT ?!

thanks so much !
[Xperia Z3 Compact General] km8j:
Nvm..........
[Xperia Z3 Compact General] km8j:
Is dual recovery needed to flash all custom ROMs or can flashtool be used somehow?
[Xperia Z3 Compact General] km8j:
Can someone help me understand the point of step 43 onward? I flashed this and stopped here and it seems fine http://xdaforums.com/z3-compact/dev...ted-xposed-t3164221/post62115611#post62115611

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

Also, when using the TA Backup tool, where does the data actually get backed up to?
[Xperia Z3 Compact General] RaXelliX:
Flashtool can also flash custom ROM's but you really do yourself a favor by installing recovery too as it can often be a lifesaver when fixing bootloop or making full nandroid backup.

However custom ROM's include custom kernels wich require unlocked bootloader so...

To your computer ofcourse. I dont remember the exact directory tho. it's a zip file named something like this: TA-backup-20150816.090345.zip
[Xperia Z3 Compact General] polykoma:
can someone check my question on the previous page pls? thanks a lot :)

(or in a short)

at which STEP do i need to RELOCK my bootloader when i want to return to stock from customRom?
[Xperia Z3 Compact General] fgaine:
Sorry, rookie here. Can I flash say, the prerooted Lollipop firmware after having downgraded then rooted a Kitkat one?
[Xperia Z3 Compact General] Lazer72:
If you straight flash a regular stock firmware you'll end up with that firmware and no root. No matter what you had before.

To update and maintain root read the OP
[Xperia Z3 Compact General] polykoma:
please help im stuck !
[Xperia Z3 Compact General] Lazer72:
Sounds about right
[Xperia Z3 Compact General] :
I figured out how to solve the problem. When creating the rom with prfcreator, you must check the boxes "kernel", "ltalabel" and "modem".

Then just flash the ROM, clear the cache and the dalvik/art cache. :D
[Xperia Z3 Compact General] polykoma:
THANKS man.

PHONE is up and running. Yay!

All drm stuff is back accordin security config! Brilliant!

Thanks.so.much at all
[Xperia Z3 Compact General] Fooughhy:
Don't know if I backed up the DRM keys correctly...

If I have done all the steps, should the backed up DRM files still be one the PC?

Because I tried to restore the DRM files to my phone, but it said they could not be found.

Does that mean that I've screwed up? How do I know if I didn't back upp my DRM files correctly?
[Xperia Z3 Compact General] polykoma:
i would say if you run the TA backup tool.

pressed backup and result in Errors ?

as for me i had successfull backup. It is stored in the scripts Folder named "backup" there a Little zip in it (about 150-250kb only sized)

didnt you made several copies to at least 2 different Storages ?

maybe ist in the trash can or somewhere blocked by antivirus ?!
[Xperia Z3 Compact General] Fooughhy:
Do you mean you have a folder inside the TA Backup Tool folder called "backup"?

Because I don't even have that...
[Xperia Z3 Compact General] polykoma:
i will check it when im at home.

but i extracted tool from zip in a Folder "TA Tool"

and Insider there are 3 Folder (one is named backup as i remember right) and there is the Little zip located.

i instant made several copies

Looks like it maybe saved someone else ? i look for the Name of the backup and you can search for it maybe.

but normally it should be there at all.

you were successfully rooted when you did your backup ?!
[Xperia Z3 Compact General] Fooughhy:
I have a folder called "tmpbak" which didn't have any files in it until I tried to restore the TA backup today (I rooted the phone yesterday). Now it has 2 files called "restore_list" and "restore_serialno".

Do I now need to redo the whole thing to backup up the TA files again?

And yeah, I've unlocked bootloader, created my own ROM with SU and DualRecovery with FW D5803-23.4.A.0.546.

All apps I've tried works for me, I get SU permissions in the terminal app, the NDR Utils app is able to reboot straight into recovery.

As I understand it, the reason you backup the DRM keys is because the camera app has degraded performace otherwise. This is an app I NEVER use. Do I need to redo everything if I never take pictures?

Will it affect me?
[Xperia Z3 Compact General] Lazer72:
Also your warranty is void. If you didn't properly make a backup BEFORE unlocking bootloader then you're screwed
[Xperia Z3 Compact General] polykoma:
look

drm keys are they "keyfunction" between your Hardware camera and the post processing softwarte part.

so the only affect u have is bad low light Quality pics and missing sony xperia cam Features (bionz, and some more)

allover the cam suffers a lot without drm keys. thats all

AND

you cant send your phone to warranty anymore.

you voided warranty with unlocking Bootloader (and without backup u can NEVER EVER get your DRM keys back, NEVER try to Flash someone elses DRM backup->hardbrick!)

but heres a fix on the Forum if you lost the drms keys totally to improve the cam a Little bit

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