yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Compact General] openfridgedoor:
I've got the same thing. My problem is i cant turn the phone off at all to flash it again. Even holding the power button near the sim card slot does nothing. It seems like its just going to go till it runs out of battery, im having to keep it on an icepack so it doesn't overheat. You know if there's anything i can do?
[Xperia Z3 Compact General] Lazer72:
Have you tried holding power and volume up?
[Xperia Z3 Compact General] grinna:
I did all the steps and made a pre-rooted android rom 5.1 and not root remained, I have to put the flashesh.zip in card memory?

in FlashTool and to mark some of selection box?
[Xperia Z3 Compact General] Lazer72:
Make sure you have put SuperSU and Recovery in the PRF and then put it in the internal storage of the phone and flash in recovery, not FlashTool.

But you've lost root. So go do everything again.
[Xperia Z3 Compact General] grinna:
oh sorry i not been very clear, I put everything in the PRF as required and used the flashrecovery then was that used the FlashTool as required step 43, now what I did not was in step 40 sends using rom-prerooted and then sends use a non-pre-rooted over, what am I doing wrong, sorry for bad English, to this procedure went 1-46 the device gets the unlocked bootloader or not?
[Xperia Z3 Compact General] Lazer72:
OK, at the last step when you use FlashTool make sure you EXCLUDE System. Otherwise the PRF will be overwritten.
[Xperia Z3 Compact General] thobi3:
i have a problem with upgrading to the latest firmware.

i finished the procedure successfully once with D5803_23.0.A.2.93_Customized CE1 and got a rooted phone.

now i wanted to update to D5803_23.4.A.1.232_R5C_Central Europe 1 Generic_1288-7915. i made a rooted build with PRFC, UPDATE-SuperSU-v2.46.zip, Z3C-lockeddualrecovery2.8.21-RELEASE.flashable.zip. i copied it to my phone and booted into recovery (PhilZ Touch 6). but every time i try to install zip i get the following messages:

i also tried another

any idea what went wrong? can i do it another way, maybe with flashtool instead?
[Xperia Z3 Compact General] RaXelliX:
Use TWRP Recovery.
[Xperia Z3 Compact General] thobi3:
unbelievable. that's the only one out of three i didn't try. worked! thank you!
[Xperia Z3 Compact General] lazylearner:
Hi all, I am a complete noob here.

I've only been using android phones as-is but after getting the Z3 compact I have decided to try customizing it and so here I am.

(This is an awesome phone that I hope to use for a long time :D)

I did some reading, and I am thinking of using moly82's [ROM ALL-IN-ONE] [LP_5.1.1] and will learn to use xposed later on.

Here's the thing, I just got the phone to 5.1.1, 23.4.A.1.200 and have never rooted before.

moly82 mentioned his rom is pre-rooted, does that mean I can simply install it onto my phone and it will become rooted?

Or would I have to follow the instructions here, revert to KK > root > update to LP > then install rom?

Sorry if this is kinda off topic. I can't post in the other forum yet.

Please advise, thanks in advance!
[Xperia Z3 Compact General] RaXelliX:
Indeed if you have not rooted before you have to complete the tutorial in the first post. After that you should have working recovery and in the future you can flash prerooted ZIP's in recovery.
[Xperia Z3 Compact General] geeyoff:
Backup-TA hangs on "Waiting for USB Debugging..."

Hi. I've followed the OP successfully through step 25, but on step 26, things don't work when I run Backup-TA.bat. The terminal just sits on "Waiting for USB Debugging..." even though my xperia z3c is connected and it has USB debugging turned on.

I have a feeling that I'm missing something obvious, but after hours searching through various posts here, I can't figure it out. I've tried it on Windows 7, Windows XP, and OSX (which doesn't seem to be working with Backup-TA.bat.) Any suggestions would be much appreciated! Thanks.
[Xperia Z3 Compact General] RaXelliX:
Your phone should ask for authorization confirmation when usb debugging is on and something requests debbuging access. Did you get such a prompt? Should look something like this:

http://i.stack.imgur.com/MPh73.png

You might also try "Revoke USB Debugging authoirizations" right below the option to enable/disable usb debugging. Also maybe restarting the phone.

As far as Backup-TA goes - this is not a critical step anyway. It just backs up your DRM keys so when (and if) in the future you decide to unlock the bootloader you can relock it with TA Backup you made. You can also backup TA in newer versions of android so like i said - not critical.
[Xperia Z3 Compact General] lazylearner:
Thanks, I'll work on this first then.

(Just my luck that I decided to update to LP a day before doing all this lol :eek: )
[Xperia Z3 Compact General] A.K.Paul:
Am I doing mistake, can't understand where's the problem at the end i get no root on my phone, phone works properly but no root did everything according to the instructions. Xperia z3 compact on 5.1.1
[Xperia Z3 Compact General] geeyoff:
Thanks for the response. Unfortunately, none of those suggestions worked: my phone still goes unrecognized by the batch file. (However, it is recognized by other software on the computer, as both Windows and Sony PC Companion go into action when I connect the phone to the USB port.) One thing I forgot to mention last night is that none of the OP's earlier rooting steps worked for me on Windows, either -- those batch files (such as in step 20) also just hung there, waiting to "see" the phone, even though it already was connected. I was able to root the phone on OSX, but not on Windows.

Understood. Thanks for the reassurance. Since I'm a newbie, and since I've already had other complications with the process (as described above), I'm a little gunshy about progressing with further steps of the OP without the security of backing up the DRM. :o
[Xperia Z3 Compact General] Lazer72:
Make sure at the last step you EXCLUDE System in FlashTool.
[Xperia Z3 Compact General] RaXelliX:
Could be something to do with your Windows configuration. For such tinkering it's best to run at full administrator rights with UAC and Antivirus disabled. Also Run as Admin on the batch/command file to execute in elevated privileges.

You could also try installing Flashtool and see if it sees your phone: http://www.flashtool.net/downloads.php

Perhaps the problem is missing ADB or Fastboot drivers that are included with Flashtool.
[Xperia Z3 Compact General] geeyoff:
That helped! Turns out I hadn't installed the drivers that came with Flashtool. Once I went into the included Drivers folder and installed the appropriate drivers (both the generic ones at the top of the selection box and the z3c drivers near the bottom) things worked out. (The only weird thing is that it worked on my old WinXP computer but not on my fiancee's Windows 7 computer. And to get Backup-TA.bat to work with WinXP, I needed to replace choice32.exe as per this post.)

Thanks again!
[Xperia Z3 Compact General] [Antonio]:
Guys I need some help, I was wondering if it was possible to:

- Downgrade to 23.0.A.2.93

- Root with the exploit

- Install TWRP Manager from the play store, grant root access and install the recovery

- From the recovery install a flashable zip with Lollipop 5.1.1 or any other custom firmware

Could it work or it's totally wrong?
[Xperia Z3 Compact General] gkhn:
Hi.

I performed this root a couple of weeks ago. It was certainly doable, Really well written.

I got an OTA notification for a new firmware but it has problems with verification.

I get a notification 'Can't verify' after the download is complete.

I run giefroot 3.1 with bootloader locked. So OTA shouldn't be a problem right?
[Xperia Z3 Compact General] Lazer72:
I'm not sure why the verification failed but in any case the OTA will remove root.

If you want to upgrade you need to follow OP. Just flash the PRF.
[Xperia Z3 Compact General] shrazy:
As I have no interest in opening the bootloader, is there a fast and easy method of rooting and installing a custom recovery for stock rom and keep the possibility to update via OTA?

I do the method described in the first post on my old z3 but get a brand new one a few days ago and it cost me a few hours to do everything and as I work I dont have much time left and need a quicker method. Backing up DRM Keys isnt neccessary because i dont want to open the bootloader.

I come from the Samsung Corner, there I just need to flash a recovery via Flashtool (For Samsung devices its called "Odin") and after that I can flash a root file or a pre rooted rom, depends on personal preference.
[Xperia Z3 Compact General] Lazer72:
AFAIK you can only flash recovery if you have root in the first place or you unlock the bootloader.

If you could just flash recovery just like that, without UB this thread would be a whole lot shorter.

And there is no way to "keep root" after an official OTA install.
[Xperia Z3 Compact General] azninfinite:
Hi,

this is my first time flashing / rooting a Sony device so please bear with me. I have a D5833 model and was originally on 23.4.A.1.232 (I think.. should've noted what version I was on. PC Companion did say I was up to date though and I recall getting an update last week which was meant to be the security fix).

I am unable to successfully downgrade my firmware (constant boot loop) with both the unbranded Australian and Hong Kong firmware (23.0.A.2.93).

Both firmware won't get passed the animation (the blue one) and will constantly go back to the android sony/ android logo. Do you guys have any suggestions?

Luckily, I was able to flash back to 5.1.1 (23.4.A.1.232) but now adaptive brightness will not work (I assume the sensor is bugged from the software? I had an issue previously where the screen would not turn itself off during calls. This was later fixed with a firmware update). I'm still really keen on rooting my phone (I just can't experiment anymore tonight since I need my phone for work and it's getting late).

Any suggestions would be greatly appreciated (on either problem)
[Xperia Z3 Compact General] craacK:
i have the same problem. am on 1.232 .. and want to downgrade to 23.0.A.2.93 to get root etc. but im stuck on blue "login screen" with a beep sound and bootlod afterwards. How is it possible to get root from newest Firmware ?
[Xperia Z3 Compact General] Lazer72:
Both of you, when downgrading check APPScache and DATA in the WIPE box.
[Xperia Z3 Compact General] craacK:
I've got Flashing tool 0.9.19.10 and the only options i have to wipe are APPS_LOG and USERDATA, which i both checked
[Xperia Z3 Compact General] Lazer72:
Hmm. I'm not sure what the problem is then. Make sure you have the correct fw for your device. Check whether you have d5832 or d5803.

Try with some older versions of FlashTool maybe.

Make sure nothing is excluded. (except TA if present)
[Xperia Z3 Compact General] craacK:
That did the Trick :)

Instead of flashtool 0.9.19.10 i tried 0.9.18.6 and now got 23.0.A.2.93 running. Seems like deleting "APPS_LOG" and "USERDATA" in the newest version aren't enough. With the old version we got the option to delete "APPSLOG", "CACHE" and "DATA".
[Xperia Z3 Compact General] [Antonio]:
Up :rolleyes:
[Xperia Z3 Compact General] Lazer72:
Sounds right. Though if you want to flash a custom rom not based on stock you will need to unlock the bootloader.
[Xperia Z3 Compact General] [Antonio]:
Why? What is the difference?
[Xperia Z3 Compact General] Lazer72:
It won't boot. So things like CM will need an unlocked bootloader to boot. I don't know exactly why.

But make sure you backed up TA before unlocking and check properly that they're actually backed up.
[Xperia Z3 Compact General] theduardo:
Hi guys, bought recently a Z3c and as I did with all my previous android phones, I want to root this device also. I don't want to unlock the bootloader or anything else. Just root.

My doubt is if I can simply root my phone without losing DRM keys and without having to follow all the instructions in OP. Is this possible?

thanks!
[Xperia Z3 Compact General] [Antonio]:
It worked! Installed dualrecovery, factory reset + wipe cache and i'm currently running a custom stock ROM

Thanks for the tutorial
[Xperia Z3 Compact General] rmartinezdl:
Hello, I rooted succesfully :D

Now I would like to know since I am on kit kat, can I upgrade with OTA and keep root?

I usually like to do a factory reset after getting the latest OTA update, will this delete root?

If I check for software updates then it shows that there is one, I havent downloaded anything.

Thanks.
[Xperia Z3 Compact General] Lazer72:
An OTA will remove root. If you want to upgrade you'll have to flash a Prerooted firmware.
[Xperia Z3 Compact General] rmartinezdl:
or create my own pre-rooter right? I am downloading as we speak the latest fw, and will follow a tutorial on how to create a pre rooted firmware, I assume this will have to be done with each major upgrade.

thanks for the answer!
[Xperia Z3 Compact General] Lazer72:
Correct. Remember to wipe everything when flashing, since you're upgrading from Kitkat to lollipop. And there are two ways to upgrade:

1. Create the PRF like in the OP, but if you do it this way you'll have to flash the full fw EXCLUDING System through FlashTool after you've flashed the PRF in recovery. (This is because by default only the System partition is included in the PRF so you have to upgrade the rest manually)

2. When creating the PRF include everything, all partitions. This way you'll upgrade the whole fw in one step. But you'll probably run into some issues with your apps so do a factory reset before upgrading this way.
[Xperia Z3 Compact General] rmartinezdl:
I already upgraded, if I do a factory reset, from the phone settings will this remove my root?

its just that I have this OCD thing, and I want to have a clean install with root, at least clean everything BUT supersu.

Thanks.
[Xperia Z3 Compact General] Lazer72:
I think it will remove root. I'm not absolutely sure on that.

If you want a clean install go to FlashTool and flash that same fw, but EXCLUDE System. And check all the WIPE boxes. You'll end up with latest fw and root, but no user data.
[Xperia Z3 Compact General] devil188:
Can anyone quickly explain me Step 40, I just don't get it.

Do i have to download a stock-[.ftf] file ?

I just flashed the pre-rooted [23.4.A.1.232] and now i have to download the non-pre-rooted (aka stock) version again?
[Xperia Z3 Compact General] Lazer72:
Yes. You need to flash the latest stock fw because the PRF only updates the System partition. You need to update the rest manually through FlashTool. Make sure you EXCLUDE System in FlashTool when flashing or you'll overwrite the PRF.
[Xperia Z3 Compact General] devil188:
Thanks mate, appreaciate that!
[Xperia Z3 Compact General] huzel:
Bootloop after Downgrade

Hi,

thanks for the great HowTo.

When i do a Downgrade to version D5803_23.0.A.2.98_Germany_1289-4696.ftf or to version D5803_23.0.A.2.93 Android 4.4.4_Customized CE1 1288-7915.ftf i become a bootloop.

I can repair my softbrick by flashing the version D5803_23.4.A.1.232 Android 5.1.1_Customized CE1 1288-7915.ftf

I will do this to backup my drm keys. Anybody an idea?

regrads huzel

Using xperia z3 compact
[Xperia Z3 Compact General] huzel:
Bootloop solved

i used the the fastboot version 9.18.6 instead of version 9.19.10 and it works:o
[Xperia Z3 Compact General] Paull95:
Ohai! Thanks for the wonderful post, yet I've got a question (Sorry if it has been already asked): Let's suppose that I'm on Lollipop 5.1.1 completely stock phone, can I directly backup the DRM keys, install the recoveries and then flash a pre rooted 5.1.1, or do I have to downgrade mandatorily?

Thanks in advance, and sorry for the noobish question :P
[Xperia Z3 Compact General] Lazer72:
You have to downgrade. Backing up DRM and stuff like that requires root, and the root exploit only works on old fw. So yeah, downgrade and wipe.
[Xperia Z3 Compact General] Paull95:
Alright, thanks!
[Xperia Z3 Compact General] Mechanon84:
Hello friends. I've followed all the instructions and don't have ROOT> Hopefully someone can tell me where I went wrong?

1) Downgraded to 23.0.A.2.93 (Device D5803) using flashtool.

2) Installed root (verified)

3) Created a PRFW using 23.4.A.1.200 - Unbranded - USA (1289-7524) downloaded through flashtool. Packaged with the latest SuperSU and DualRecovery using the latest PRFC and followed instructions 32-40.

4) After I flashed and went into power options to shut down, it said something about root not being applied, and forced me to choose to install or not before shutting down. I chose 'yes' and shut the phone down.

Followed the rest of the instructions successfully flashing the non-prerooted FW excluding 'system'

Booted phone. Latest FW + Recovery, but no root.

Help!
[Xperia Z3 Compact General] Lazer72:
If you still have recovery flash the PRF again. Are you sure SuperSU was included?
[Xperia Z3 Compact General] Mechanon84:
Yep definitely. But I didn't verify root after flashing because it said to shut down the phone directly from the recovery and flash the non-prf... Which I didn't understand why, but that's what I did...
[Xperia Z3 Compact General] Lazer72:
Are you sure you excluded System even flashing the stock non prf? You do this because the PRF only updates the System partition. You have to do the rest manually. (I have explained this 1000 times in this thread).
[Xperia Z3 Compact General] Mechanon84:
Yes, I checked the box to exclude system when I flashed the non-PRF. (after flashing the prf I created without checking anything, and then shutting down) That part was very confusing to me, but I just did what the tutorial said regardless. Not sure why I flash a PRF and then a non PRF right over it. Sorry, it's a 118 page thread. I read the first 10 and then I was on the road so I thought it would just be easier to ask since it was hard to turn up any relevant results in the search.

Thanks for your help!

Edit: Wait, was I supposed to exclude system when flashing 23.0.A.2.93?
[Xperia Z3 Compact General] Lazer72:
No. When downgrading include everything.
[Xperia Z3 Compact General] Mechanon84:
Ok so you want me to reflash the prf and that's it? Or follow all instructions 40-46 again?
[Xperia Z3 Compact General] Lazer72:
Create the PRF again and go from there.
[Xperia Z3 Compact General] Mechanon84:
Again, followed all instructions ^^^ Detailed above. No SU installed...
[Xperia Z3 Compact General] leyton01:
I followed the guide and effectively achieved root with OPTUS branded 23.4.A.0.546 (Australia).

I want to move to 23.4.A.1.232 while keeping root and *without* wiping data but at the moment there is only an unbranded Australian version.

Is this possible and if so what steps do I need to follow?
[Xperia Z3 Compact General] Lazer72:
Hmm. Maybe it's your SuperSU. You have the UPDATE version. I'm not sure if that's the full package, I think maybe that just assumed you have the previous version and want to update certain packages. Try download the latest version that doesn't say UPDATE.

---------- Post added at 02:41 PM ---------- Previous post was at 02:39 PM ----------

If you want an OPTUS branded one you'll have to wait for a release. If not you could just flash a prf to get latest unbranded version.
[Xperia Z3 Compact General] leyton01:
Happy to have the unbranded one - just wanted to make sure this was OK and that I wouldn't wipe data.

So just steps 39 onward? Do I have to flash non-rooted firmware again as in the original guide?
[Xperia Z3 Compact General] Sirboscos:
This. This is all that happens, even after i install the drivers from the folder.
[Xperia Z3 Compact General] astrosp4c3:
I had same problem, while the phone was turned off in flashmode i noticed it was installing some drivers for flashmode , i kept it off and i didn't unplug the cable (don't!) until the drivers got installed. Once it finished , i did again the procedure and it worked! You can give it a try ;)
[Xperia Z3 Compact General] mmm286:
Sorry I dont understand these step. Is like these?
[Xperia Z3 Compact General] charliebigpot:
Yes, that's correct! You need to include system in the exclude section. :p

Just make sure that you select the non-pre-rooted FW on the left.
[Xperia Z3 Compact General] CAL7:
system write access

Rooting my Z3C went smoothly, only hitch is that I'm not able to write to system (resulting in, among other things, no ability to run Titanium Backup. I flashed RICdefeat.zip and ran

SDFIX, which both seemed to work. Then, I did the following:

adb push systemrw.sh /data/local/tmp
adb push modulecrcpatch /data/local/tmp
adb push wp_mod.ko /data/local/tmp
adb shell
chmod 777 /data/local/tmp/systemrw.sh
chmod 777 /data/local/tmp/modulecrcpatch
chmod 777 /data/local/tmp/wp_mod.ko
su
cd /data/local/tmp
./systemrw.sh

Here's my output.

shell@D5803:/ $ cd /data/local/tmp
cd /data/local/tmp
shell@D5803:/data/local/tmp $ ./systemrw.sh
./systemrw.sh
insmod: init_module '/system/lib/modules/wp_mod.ko' failed (Operation not permitted)
mount: Operation not permitted

modulecrcpatch (by zxz0O0)

module_layout: patched to 0xFF791C4F
__aeabi_unwind_cpp_pr1: match
kallsyms_lookup_name: not found
printk: not found
mem_text_write_kernel_word: not found
__aeabi_unwind_cpp_pr0: match
successfully patched
insmod: init_module '/system/lib/modules/wp_mod.ko' failed (Operation not permitted)
insmod: init_module '/system/lib/modules/wp_mod.ko' failed (Operation not permitted)
mount: Operation not permitted
rm failed for /system/bin/mount, Read-only file system
cp: /system/bin/mount: Read-only file system
Unable to chmod /system/bin/mount: Read-only file system
cp: /system/lib/modules/wp_mod.ko: Read-only file system
Unable to chmod /system/lib/modules/wp_mod.ko: Read-only file system
Installing of mount.sh finished

Suggestions, please. Thank you.
[Xperia Z3 Compact General] snwman:
what other option did you use
[Xperia Z3 Compact General] bilboa1:
After you flashed RICdefeat.zip you dont need to do anything.

your commands dont work because youre not root + selinux is on but it doesnt matter. this should already work if you wanna test:

su

mount -oremount,rw /system
[Xperia Z3 Compact General] dshstudio:
Thanks :)

Thanks for your help

The file 'Backup-TA.bat' just needs an 'Open by Administrator'

I don't know why, but I successfully restored my TA

Thanks :)
[Xperia Z3 Compact General] CAL7:
Thanks, bilboa1. I'm not completely sure If you were responding to my post (#105) or the one below. But I went into terminal and issued the commands you suggested (with a space inserted after the "-o") and got no error message which I guess means they executed without problems. But nothing has changed: can't write to system and TB fails. Is there any other data I can provide you to help diagnose the problem?
[Xperia Z3 Compact General] vovantuong:
Great thanks
[Xperia Z3 Compact General] dillalade:
[MENTION=2534747]charliebigpot[/MENTION]

Were you able to downgrade the firmware without wiping the data partition (hence apps and app data all in tact.)

I want to do something similar in order to take a titanium backup of my apps and data as well as a nandroid backup of my current state without having to sacrifice my data partition.

It would be very nice to know if you were able to preserve the data partition when you downgraded as per [MENTION=4708091]istux[/MENTION]'s suggestion or otherwise.

In essence is it plausible with the given instructions provided in the OP of this thread to "downgrade and root without losing the data/app data" partition a such?

Really be good to hear your experience.

Thanks in advance
[Xperia Z3 Compact General] charliebigpot:
Well, you haven't heard back from me because I spent the last couple of days mourning since it didn't work ;)

I didn't get any FC when flashing the new FW like somebody else reported but I couldn't save my apps/data. I backup all I could but after downgrading I basically had an empty phone.