yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Compact General] Lazer72:
Sorry, I assumed you lost them. You can just flash normal stock rom through FlashTool.

You can check whether your keys are intact by going to the dialer and dial *#*#SERVICE#*#* and going to security.
[Xperia Z3 Compact General] solnyshok:
hi, now its easy to root 5.1.1 without much hassle. see this thread http://xdaforums.com/showpost.php?p=65545271&postcount=56

I just rooted today both z3c and z3c-tablet, using same tools. i.e. kingroot 4.8.0, supersume 9.19 and later installed xzdr 2.8.26 via adb/cable/from Windows 10x64. NB! xzdr files are different for phone and tablet. I kept locked bootloader, no need for TA-Backup. Also, no need for RICdefeat if you install xzdr, it takes care of RIC. Later can install sdfix kitkat (for full open access to sdcard for all apps) and flash xposed-v80-sdk2-arm.
[Xperia Z3 Compact General] d0g:
I have lots experience flashing other phones but this is my first Sony.

Am I in the right thread for rooting? Is there a simpler way?

I also saw this thread: http://xdaforums.com/crossdevice-dev/sony/giefroot-rooting-tool-cve-2014-4322-t3011598

Seems simpler, but will it work with D5803?

Also, is this possible using a Mac? Don't have access to Windows.
[Xperia Z3 Compact General] Lazer72:
Yes this is the thread. That link goes to the base root exploit which is used in this guide anyway.

As for easier methods you could try kingroot, though some people say it installs spyware.

On a Mac?

Don't think so.

But take a look at this. https://m.reddit.com/r/SonyXperia/comments/2urn0g/downgrade_firmware_root_using_mac_os_x
[Xperia Z3 Compact General] d0g:
I tried Kingroot and it seems to have worked ... at least Titanium is reporting that I have root.

That was easy ... hope all is good.

thanks
[Xperia Z3 Compact General] Lazer72:
Glad it worked for you.
[Xperia Z3 Compact General] d0g:
Well ... it did for root ... but not for recovery. So I went through the whole procedure, and now I have recovery & SuperSU.

I flashed this pre-rooted ROM: http://xdaforums.com/z3-compact/development/d5803-23-2-1-62-slim-t3127115

But I'm confused from step 40 onwards ... do I need to do all that? Flash ANOTHER unrooted ROM?

Or can/should I just restore the files from the "Backup TA" process?

Phone seems to be working fine ... how can I check if the stuff that relies on the TA stuff is working? The camera works...

Thanks!
[Xperia Z3 Compact General] Lazer72:
I think the ROM you flashed is a complete fw. If you had flashed a prf like in the post you would have needed to flash the unrooted version excluding SYSTEM. The reason for this is because the PRF only contains the updated System partition, to get the rest of the fw you need to flash the unrooted version minus that partition, you don't want to overwrite it!

If you want to check if your DRM Keys are intact go to the dialer and dial *#*#SERVICE#*#* and go to Service Tests then Security.
[Xperia Z3 Compact General] d0g:
OH! OK, now I see. Everything says "[Key OK][Active]" ... so I guess I'm good?

Thanks!!
[Xperia Z3 Compact General] sebadomaitis:
Guys someone can tell me how to install a custom recovery? I have the Bootloader Locked, i take root with King Root and then i replace it with Supersu. I have Root but i dont know how to install TWRP or CWM on my device. I am Using the last version, 5.1.1. Thanks a lot guys.
[Xperia Z3 Compact General] Lazer72:
Look at OP. The section which explains how to create a Prerooted firmware.
[Xperia Z3 Compact General] Geoff2:
I've searched for an answer to this specific question and asked it myself in the Q&A page, but no replies so far.

My Z3C BootLoader can't be unlocked. When I first bought it, I rooted it the long way i.e. downgraded the firmware and then flashed a pre-rooted firmware using TWRP. I'm still using that one (KitKat) but I'm thinking about upgrading to a newer ROM. I know I could do this by downgrading and flashing a different pre-rooted firmware again, but my question is this:

Now that I've used TWRP once, can I use it again to flash a newer pre-rooted firmware? In other words, could I flash a new pre-rooted ROM without having to do all the other stuff (downgrading to that older ROM etc) first?

Thanks in advance,

G2
[Xperia Z3 Compact General] Lazer72:
Yes of course you can.
[Xperia Z3 Compact General] Geoff2:
Okay. As I say, I've searched for the answer to this specific question but I couldn't find one. So it's good to know that I can now use a quicker way to install a rooted ROM, but I'm still not clear on how. The step-by-step guide on how to root just tells you to downgrade before upgrading, and I can't find any firmware-upgrade instructions specifically for people with a locked bootloader, but who have already got 'NDR Utils' installed (which I assume means I've got TWRP as a working recovery?) Could you explain what I'd need to do to install, say, a pre-rooted version of Lollipop?
[Xperia Z3 Compact General] gegu2:
@ Geoff2

There is a separate thread for PRF creator tool. You can find it here: http://xdaforums.com/crossdevice-dev/sony/tool-prfcreator-easily-create-pre-t2859904. Screen shot attached by OP displays how to setup prf creator for preparing pre-rooted fw.

Build your own pre-rooted fw, then run your phone in recovery mode, next wipe all data (I'm not sure if this step is necessary)and finally, flash new fw under recovery.

Your assumption is wrong, because you can install NDR Utils without recovery. You have working recovery, when you're able to run your phone in recovery mode.
[Xperia Z3 Compact General] Geoff2:
Thanks for the reply gegu2. I've just tried the 'boot into primary recovery' option within 'NDR Utils', which put me into TWRP, which I guess proves that I can run my phone in recovery mode. I've already learned (but probably forgotten) how to create pre-rooted firmware, but that was never my problem. My issue was whether there was a short-cut to installing a pre-rooted firmware now that I can run my phone in recovery mode. From what you've written, it sounds like I don't need to downgrade my FW like last time - I just need to build a pre-rooted firmware and flash it using TWRP. That sounds simple enough. I'm now happy to try this, but I have a couple of supplementary questions:

1. If I flash a new pre-rooted firmware using TWRP, am I right in thinking that afterwards I will no longer be able to run my phone in recovery mode? If so, is there anything I can do to include TWRP-capability with the new ROM?

2. What are your recommendations for a new ROM? I like KitKat, and the only reason I'm considering upgrading is its inability to move apps to SD card without software tweaks. My criteria for a good ROM are speed, stability and efficient use of device memory - I'm not too fussed about flashy apps or UI. Would you recommend Lollipop, Marshamallow or stay with Kitkat?
[Xperia Z3 Compact General] WMGARCHITECT:
Please Help

I was on 5.1.1 .. I downgraded to 4.4.4 to root

I follow every single step and worked for me BUT! At the last step i re-flash normal official android 5.1.1 with Exclude the System.. then my phone dosent start normally.. It keep saying *** unfortunately phone has stopped ***

then restart.. what shuld i do? should i flash another version>??
[Xperia Z3 Compact General] Lazer72:
Flash again, this time check all the WIPE boxes.
[Xperia Z3 Compact General] gegu2:
Ad1. Please take a look at screen shot attached to first post of linked thread. The answer for your question is there on the picture. All necessary apps are included inside pre-rooted fw.

Ad2. On my Z3C i'm using last stock KK, because i'm too lazy to upgrade and restore all apps and settings. On my wife's Z3C i've installed last stock LP. For me SuperSU, xzdr dual recovery, fix sd permissions, link2sd and xposed framework is a must, but everyone has its own set of favourites apps.
[Xperia Z3 Compact General] commander-keen:
Funny thing is: some Apps like SMSdroid work partially: They send the message, but you won't see the message in the conversation.

Hangouts for some reason complety works including display of the conversations, I don't know why. (when Hangouts SMS is enabled and it's the standard SMS app, it seems like everything is fully working (send *and* receive).

But I didn't feel comfortable with that while knowing there'S something wrong in the background. ;)

As I have also been at that point (and I noticed it pretty late after everything else was setup because SMS is primarily just for banking etc., so a reset was rather painful for me), also being already in contact with my provider, trying to manually enter SMSC in the hidden service menu mentioned above etc., I'd really like to suggest to add that to the FAQ. [MENTION=2851630]bilboa1[/MENTION]

It's really the "solution". As long as pre-rooted Firmware of Sony has this issue and noone knows how to circumvent it, this workaround is the best way to have it running while using am ROM as described in this tutorial.

So after everything is done and before starting to customize the phone, I strongly suggest to perform a reset of the phone to have SMS running flawlessly in each and every app, including the built-in one.

bilboa1: Thank you very much for this tutorial! I'm coming from Samsung and was completely lost in first place because of that bootloader thing. (I'm very happy that I read about quality loss of camera when opening bootloader before I opened it and found this way to have root without that)

PS: While installing XZDualRecovery it was trying to access sdcard1 (which is the external card I did*not* have at that time). I don't know why and I was afraid it wouldn'T work out but it seems I stil was able to complete the tut. So just for the record I will attach the log.
[Xperia Z3 Compact General] commander-keen:
I'll take a new post if someone quotes this to react as it's a completely other topic:

When I boot into the recovery (PhilZ Touch? I thought XZDual... is something else?) and take a backup, the internal memory was filled by a huge amount of data but I could not find where it was stored. Even with hidden files on ES File Explorer (in root mode) a search on the whole storage it did not find any file bigger than 128MB. Can someone tell me, where the backup is stored so I can cut&paste onto my computer?
[Xperia Z3 Compact General] WorldEaterSC:
Hi ! Quick question !

I've just bought a Z3C, and I'm going to root it (as it's possible without unlocking the BL).

My question is : will the android updates be automatic ? Or will I have to do them manually ?

I've read somewhere that as long as your don't unlock the BL, updates happen automatically. But I'd like to be sure !

Thanks a lot !
[Xperia Z3 Compact General] Lazer72:
If you update normally you will lose root.

To update you have to create an updated pre rooted firmware as shown in OP and just flash that. Include all options when creating.
[Xperia Z3 Compact General] berkely:
Hi,

Thanks for the awesome guide! I managed to get to the very last step but unfortunately the phone gets in a boot loop, the waving animation takes ages and eventually the phone starts but after a few seconds reboots, sometimes showing the same error as mentioned in above post.

I did read and searched a lot, this behavior was mentioned earlier and was solved by indeed checking both WIPE boxes. I tried this. (Several times already with flashing different versions of firmware. (The 23.4.A.1.264 - Unbranded - CE1 [Central Europe] (1288-7915)

and 23.4.A.1.264 - Unbranded - France (1288-6117) but unfortunately after repeating all steps, the result after the last step is always a boot loop.

A small issue I noticed in step 34, it looks like there is only one recovery now, it mentions "you can both flash it in recovery AND unpack it on your computer to install " so I guess the guide is a little outdated but anyway I used the new file.

So I get stuck on every attempt after the last step which results in a boot loop, all other steps actually succeed without problems.

Anyone has any idea? Maybe I miss something stupid...

Edit:

So far I didn't figure this one. However I followed the steps mentioned in this post and installed the rom from that thread so I'm running a debloated rom and have root with custom recovery which is perfect for me.

Thanks again for the guide.
[Xperia Z3 Compact General] FunkyCrime:
V4A issues

I try to install V4A (through Apk) but when i install the drivers, a message says: "Driver install failed: the busybox installation on you device does not work... etc."

I have just installed the last version of busybox in /system/xbin, set Selinux to permissive and mount system to RW.

How can i resolve it?
[Xperia Z3 Compact General] Xperiuser:
Root not working

Hi there!

I have a problem: I did the whole process and successfully installed my prerooted firmware, but then, after a few months I got into a bootloop. I had to reinstall the whole thing but every time I install the prerooted software, root disappears. :(

I tried the process several times and always without success. In step 40 the recovery always reminded my after installing the prerootet firmware to install SuperSU before booting (And I've tried both). What went wrong? I made the prerooted firmware with all the "include" boxes checked. I'm also shure that I got root in step 20.

I used the newest firmware: Xperia Z3 Compact (D5803) 23.5.A.0.570 Latin America Generic (Android 6.0.1) and the stable SuperSU and the newest dualrecovery. I also wiped cache and dalvik after installing the prerootet firmware in the recovery.

Any suggestions?
[Xperia Z3 Compact General] RaXelliX:
Marshmallow might be too new to get root working yet.
[Xperia Z3 Compact General] Xperiuser:
The first time I'd tried it with the one I had done it before (5.1.1) and it didn't work too, so I'm not shure if that's the reason.
[Xperia Z3 Compact General] nataelj:
Does anyone know if we expect this process to work for Marshmallow (6.0.1) or will that require a separate process for upgrading with root?
[Xperia Z3 Compact General] shazee666:
Confused about DRM.

Hi. I followed all the steps of this tutorial, except keeping my DRM backup safe. I installed the recovery and stock Lollipop Android on my Z3c as the tutorial guided without any problem and successfully rooted my phone.

Now going through this forum, what I can understand is, that once I unlock my bootloader, I'll lose my DRM keys. But when I checked my DRM keys (throgh dialing *#*#7378423#*#*), all my keys were OK!

Why are my DRM keys still OK when I have an unlocked bootloader without backing them up? Can I back them up now using Backup TA? Is there any other way to lock my bootloader so that I can update my phone to Marshmallow?
[Xperia Z3 Compact General] Xperiuser:
You haven't unlocked your bootloader if you sticked to the tutorial. So you will be able to backup your DRM keys. You do the whole, quite complicated process to get root WITHOUT unlocking the bootloader. Otherwise it would be much easier.
[Xperia Z3 Compact General] shazee666:
Phew! I am relieved a bit. So, how can I revert back to original settings, so that I can install Marshmallow OTA? I don't care if I lose my root.
[Xperia Z3 Compact General] Xperiuser:
I'm not an expert, but I think that you just have to flash the new version with flashtool (But wipe everything!). I did it and it worked (apart from loosing root). But backup your data first!

Or you could try the same as in the tutorial stated and use the newest firmware for the prerootet file. Then you probably will keep root.
[Xperia Z3 Compact General] Lazer72:
Marshmallow isn't available yet. Only a Beta version for which you have to register for.
[Xperia Z3 Compact General] Xperiuser:
For the D5803 there is a official version:

http://www.xperiablog.net/2016/04/09/android-marshmallow-xperia-z2-z3-compact-23-5-a-0-570/
[Xperia Z3 Compact General] shazee666:
I wish I could post an image... I have an official notification to update to Marshmallow day before yesterday. Update size is 968.1MB

I have to do 10 posts at least before I stick image urls...
[Xperia Z3 Compact General] Lazer72:
Well in that case the update, if released in your country, should appear by itself normally. Having root does not stop that. However if you do upgrade you will lose root.
[Xperia Z3 Compact General] shazee666:
But I cannot do it OTA. I think I have to wait for an offline FTF file. I want to install it OTA, but once I download and restart the phone, my phone boots into custom recovery. No further installation happens after the update!
[Xperia Z3 Compact General] Simon G:
Can I Restore a Backup TA 9.11 Backup on every Android Version or just on same Version from Backup??

Gesendet von meinem C6603 mit Tapatalk
[Xperia Z3 Compact General] phoenix31121:
flashtool errors?

hi i was actually having a bit of confusion while using flashtool. i thought it was due older version (0.9.19.8or10?) so i updated it (0.9.20.0 latest) with no change in outcome. i get these (errors?) after i start flashing, a dialog titled "question" pops up asking "a FSC script is found : default.fsc. Do you want to use it?" (sorry i couldnt attach images)

if i select "yes" it gives:

16/019/2016 11:19:15 - WARN - Unit 2212 not found in bundle

16/019/2016 11:19:15 - WARN - Unit 2404 not found in bundle

16/018/2016 11:18:44 - ERROR - root : this bundle is not valid

amidst the other info and the phone then gets stuck on bootloop after turn on the phone after completion

but if i select "no" it completes without errors and my phone worked perfectly

what is this "default.fsc" and why is it asking this? i have flashed stock firmwares before but i never encountered this dialog:confused:

this is my first time rooting as well.

im also curious if when a new update comes up (eg mm) do i have to repeat from step (1) to (46) ie redoing everything from scratch?

or is it sufficient to only create a pre-rooted image of the newer fw and follow from step (28) to (46) and flash it?

____________________________________________________________________________________________

Sony Z3 Compact (D5833)
[Xperia Z3 Compact General] gegu2:
Fsc file is a PC Companion session log and if my understanding is correct, this file is using by flashtool for flashing fw to phone in the same way (same order of files/partitions) as the PCC does.

Take a look at flashtool thread http://xdaforums.com/showpost.php?p=62162195&postcount=2624
[Xperia Z3 Compact General] Lazer72:
Make sure you have installed the adb drivers
[Xperia Z3 Compact General] phoenix31121:
The ones that come with pcc and flashtool right?
[Xperia Z3 Compact General] Lazer72:
If you have pcc installed then you should have them.
[Xperia Z3 Compact General] xtrembug:
stuck at #12

Hi! I stuck at #12. After reboot i get a bootloop or a flickery display (https:##youtu.be#S7nHgrI2MJQ). I flashed different stock roms (~15GB) with all wipe boxes checked. What am I missing?:confused:

https:##onedrive.live.com#redir?resid=D29BC5EFF8213AD3!466&authkey=!AJyVNXjLdV0G2yQ&v=3&ithint=photo%2cPNG

Change # to / for link.,

Thanks for your help.
[Xperia Z3 Compact General] Jonky0:
Hello!

I followed this guide about a year ago and everything went fine, but now I want to update my firmware to android 5.1.1.

I have just a few question about this:

the firmware I have to add to prfcreator it's the stock one, right (it's a dumb question, I know, sorry)?

When I create a new .prf with prfcreator, should I check all the options under "include" (Kernel, FOTAKernel, Modem and LTALabel)?

Is wiping /data, /dalvik-cache and /cache the same as doing factory restore?

Thank you for your patience with a noob like me!
[Xperia Z3 Compact General] Shaydar:
Yes, the stock 5.1 firmware.

No, since you will flash them later with flash tool.

Yes, that's the same as a factory reset.

Anyone tried the procedure with the Combined Nordic ftf? I did and lost root...
[Xperia Z3 Compact General] spcd:
I followed this guide one year ago to root my phone. Now I wanted to do it again because I had some issues with my previous rom.

With the latest "combined" dual recovery you can skip these steps:

Unfortunately the script is a bit buggy here, so first go in the "files" directory then go to File menu of the windows explorer and select "open command prompt..."

In the command prompt type "adb shell" then "su" (allow root on the phone if needed) then "mount -o remount,rw /system". That's it, close the prompt window.
[Xperia Z3 Compact General] Jonky0:
Wait, so I can't flash a new rom via recovery? I have to do it again with flashtool?
[Xperia Z3 Compact General] astrosp4c3:
I didn't wipe doing downgrade and upgrade and i haven't got any big problem. I just had a little problem downgrading to .98 , had force closes of android.process.media and android.process.acore , i solved it cancelling the data of applications: Contacts, Contacts storage (not sure how it's translated) and for the process.media just deleted data of Media Storage. Other than these the phone is like always

Upgrade didn't present also problems unchecking the wipes.

You can do all this without lose your data , don't worry.
[Xperia Z3 Compact General] :
you could possible check if all work fine with the drm keys in the service menu. *#*#SERVICE#*#*, Service Tests, Security.

I dont know if there is displayed all, but at me it is @ Stock "Key OK Active" in very line.
[Xperia Z3 Compact General] damaz78:
I can absolutelly confirm that. I didn't even wipe any apps data while on. 98 for a while and troubled by the same FC's - together with going back to. 77 it's all gone. No trouble at all now and enjoing root. Go on for it guys.
[Xperia Z3 Compact General] bilboa1:
Just as a quick note, while its possible to down/re-upgrade without losing any data, i'd rather have the topic wipe data by default, and warn that it wipes the phone. Advanced users can figure out by themselves how to do it as they follow the steps without losing data.

Non advanced users have high chances of deleting the data even when following different steps, and even if successful, to have other problems due to corrupted settings after downgrading if they used the phone for a bit. (then you get these "oh what the hell my battery life is bad" and logcat is spamming errors. or "this single app always FC since i followed this!" while most app wouldn't).

Thus, you can keep data, at your own risk, and if you do that, you already know how to =)