yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Compact General] thisisabore:
If you install a stock Android 5, AFAIK you won't have root, as stock ROMs aren't rooted.

You will NOT lose the DRM in the TA (trim area) partition however, as these are only deleted when you unlock the bootloader.

You should back up the TA partition, in any case, in order to always be able to revert to full stock, should you ever need it.

---------- Post added at 02:02 AM ---------- Previous post was at 01:47 AM ----------

I just backed up my TA partition manually on Debian (the Backup TA tool is Windows only… who on Earth uses that? ;)) and a few quick checks let me think that the method works fine:

- the partition /dev/block/mmcblk0p1 is referred to as TA :

shell@D5803:/ $ ls -l /dev/block/platform/msm_sdcc.1/by-name/
lrwxrwxrwx root root 1970-05-24 05:35 DDR -> /dev/block/mmcblk0p17
lrwxrwxrwx root root 1970-05-24 05:35 FOTAKernel -> /dev/block/mmcblk0p16
lrwxrwxrwx root root 1970-05-24 05:35 LTALabel -> /dev/block/mmcblk0p18
[B]lrwxrwxrwx root root 1970-05-24 05:35 TA -> /dev/block/mmcblk0p1[/B]
lrwxrwxrwx root root 1970-05-24 05:35 aboot -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 1970-05-24 05:35 alt_aboot -> /dev/block/mmcblk0p11
lrwxrwxrwx root root 1970-05-24 05:35 alt_dbi -> /dev/block/mmcblk0p10
lrwxrwxrwx root root 1970-05-24 05:35 alt_rpm -> /dev/block/mmcblk0p12
lrwxrwxrwx root root 1970-05-24 05:35 alt_s1sbl -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 1970-05-24 05:35 alt_sbl1 -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 1970-05-24 05:35 alt_tz -> /dev/block/mmcblk0p13
lrwxrwxrwx root root 1970-05-24 05:35 apps_log -> /dev/block/mmcblk0p22
lrwxrwxrwx root root 1970-05-24 05:35 boot -> /dev/block/mmcblk0p14
lrwxrwxrwx root root 1970-05-24 05:35 cache -> /dev/block/mmcblk0p24
lrwxrwxrwx root root 1970-05-24 05:35 dbi -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 1970-05-24 05:35 fsg -> /dev/block/mmcblk0p21
lrwxrwxrwx root root 1970-05-24 05:35 modemst1 -> /dev/block/mmcblk0p19
lrwxrwxrwx root root 1970-05-24 05:35 modemst2 -> /dev/block/mmcblk0p20
lrwxrwxrwx root root 1970-05-24 05:35 ramdump -> /dev/block/mmcblk0p15
lrwxrwxrwx root root 1970-05-24 05:35 rpm -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 1970-05-24 05:35 s1sbl -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 1970-05-24 05:35 sbl1 -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 1970-05-24 05:35 system -> /dev/block/mmcblk0p23
lrwxrwxrwx root root 1970-05-24 05:35 tz -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 1970-05-24 05:35 userdata -> /dev/block/mmcblk0p25

- I ran all the tests the TA Backup tool does to check if it's the right partition (grepping for 'OP_ID=', 'OP_NAME=', 'ROOTING_ALLOWED=', 'S1_Boot', 'S1_Loader' and 'S1_HWConf') and the partition contains all these strings, which would let the TA Backup tool proceed to backing it up.

So these two things that makes me pretty confident we are backing up the right partition when running dd.

Just make sure the TA partition is also /dev/block/mmcblk0p1 for you (but it would be really weird if it wasn't, I can't imagine Sony wanting to start having different partition layouts on variations of the same device).
[Xperia Z3 Compact General] davestuarts:
Hi guys, I've gone through the thread and still unsure about the answer, so apologies.

I have KitKat with root installed and want upgrade to Lollipop.

I've read the steps, but is it correct in assuming that I have to do pretty much the same procedure to get a rooted/recovery LP as I did when I rooted/recovery with KK all the way from step 1. i.e. Downgrade then to LP, again.

If recovery is already installed, could I not just install a pre-rooted LP firmware from the later steps.

Thx
[Xperia Z3 Compact General] STef000:
Flashed wrong firmware -- need help

Hello,

On my xPeria z3 compact I saw I had already 23.0.A.2.93 firmware so I jumped to step 13 after downloading flash tool

At step 43 I went on internet to download 23.0.A.2.93 (forgot there was a link in step 3 that I skipped.

It was late in evening, a bit in a rush before going to sleep, and I downloaded and pushed D6603_23.1.A.0.693_Baltic

Now when I want to start my phone I can hear the music and then... Nothing...Screen in "ON" but it displays "black" (nothing)

I guess this is because I may have updated with an image that is not for compact and is for a phone with higher resolution.

Whatever, I did download te right fw (from step 3) and try to push it like explained in step 43...

... but it does not work, I got the following errors :

31/050/2015 22:50:12 - INFO - Selected Bundle for Sony Xperia Z3 Compact (D5803). FW release : 23.0.A.2.93. Customization : Generic GLOBAL

31/050/2015 22:50:12 - INFO - Preparing files for flashing

31/050/2015 22:50:14 - INFO - Please connect your device into flashmode.

31/050/2015 22:50:24 - INFO - Device connected in flash mode

31/050/2015 22:50:25 - INFO - Opening device for R/W

31/050/2015 22:50:25 - INFO - Device connected in flash mode

31/050/2015 22:50:25 - INFO - Reading device information

31/050/2015 22:50:25 - INFO - Unable to read from phone after having opened it.

31/050/2015 22:50:25 - INFO - trying to continue anyway

31/050/2015 22:50:25 - INFO - Start Flashing

31/050/2015 22:50:25 - INFO - Processing loader.sin

31/050/2015 22:50:25 - INFO - Checking header

31/050/2015 22:50:25 - ERROR - Processing of loader.sin finished with errors.

31/050/2015 22:50:25 - INFO - Ending flash session

31/050/2015 22:50:25 - ERROR - Error in processHeader : 6 : The handle is invalid.

31/050/2015 22:50:25 - ERROR - Error flashing. Aborted

31/050/2015 22:50:25 - INFO - Device connected in flash mode

31/051/2015 22:51:25 - INFO - Device disconnected

31/051/2015 22:51:41 - INFO - Device connected with USB debugging off

31/051/2015 22:51:41 - INFO - For 2011 devices line, be sure you are not in MTP mode

Now I'm unable to see something on my phone...

What can I do ?

Thanks a lot for your advices

S.
[Xperia Z3 Compact General] endlesstrail:
I'm not 100% sure, but maybe you can try following the instructions on the stock firmwares page and do a proper flash of the correct firmware without any modifications, at least to get your phone back to the working stage, so you can start the rooting process from step 1.
[Xperia Z3 Compact General] nepo1992:
Model Number Changed?

I did every step then, i noticed that model number changed?

Will this change the LTE behavior considering my phone is originally D5833?
[Xperia Z3 Compact General] mrepovz:
Hi everyone,

I already have root on KK (went through the process) and bootloader locked.

Is there a simple way to just upgrade to Lollipop with root and not do all the steps?

Thanks in advance!
[Xperia Z3 Compact General] issy_i:
How do i know if my Phone has a locked or unlocked bootloader?

When i call the service nr (*#*#7378423#*#*) and check rooting status it says "unlock bootloader allowed: Yes"..

Im New to the z3c community,

comming from GSII
[Xperia Z3 Compact General] KrylovFa37:
This means you can unlock your BL. If you didn't do anything on your phone you must have a locked bootloader !
[Xperia Z3 Compact General] fijasko:
Bootloader unlock allowed: Yes = the bootloader is locked, but you can unlock it if you will.

Bootloader unlock: Yes = the bootloader is unlocked.

Bootloader unlock allowed: No = the bootloader is locked and you can't unlock it.
[Xperia Z3 Compact General] KrylovFa37:
I upgraded to lollipop yesterday.

Everything went fine, i have now SuperSU and all the applications that require root are running smoothly.

But i stil have those awful bloatwares and i can't delete them (i can only freeze them :/)

Any idea ?
[Xperia Z3 Compact General] Issemann:
In the same boat....

I would like to know the same. Thanks! :good:
[Xperia Z3 Compact General] qbdx:
You might be SOL if you lost recovery already, but you were suppose to flash the RICDEfeat.zip, I added the zip file when I was creating the pre-rooted firmware. That might of played a part because I can uninstall system apps on mine.

Yes you're correct,

just go into recovery and flash the pre-rooted LP firmware.

U lose the recovery though, so u might want to skip the kernel
[Xperia Z3 Compact General] quarrymanpaul:
Is the kernel not a key part of the update?

(noob question)
[Xperia Z3 Compact General] KrylovFa37:
This is very strange, i tried to flash RICDEfeat.zip during the process but got an error and didn't manage to flash it.

I tried all the steps twice but didn't manage to install it !

Edit: oh you made your own pre-rooted image ... How did you add RICDEfeat.zip?

Edit2: nevermind, I've just opened my eyes :D
[Xperia Z3 Compact General] qbdx:
"U lose the recovery though, so u might want to skip the kernel"

hey, sorry i reread where I saw that, the person referring to that was using a unlocked bootloader lollipop rom.

Sorry for spreading false information. So yeah, recovery is not working on a locked boot loader like the pre-rooted sony lollipop rom.

Kernal's important.
[Xperia Z3 Compact General] centric dk:
I've followed the guide and have now a rooted Z3c with Lollipop. Thank for the guide!! :good:

Sorry for noob question, but how do I enter recovery such I can install RICdefeat?

(I have tried using 'Reboot Recovery' app and also typing 'adb reboot recovery' in CMD. Both results in a phone reboot followed by normal startup. Nothing happens if I hold volume-up+power button when tuning it on.)
[Xperia Z3 Compact General] KrylovFa37:
With the actual version of the recovery you can't boot on it with lollipop. You need to wait an update or do it again and when in recovery you flash the RICdefeat (I didn't manage to flash it so i got back on kitkat).
[Xperia Z3 Compact General] cnsultnt:
SD Card problems

I followed the guide (thanks!), and am pre-rooted with Lollipop Nordic on D5803. Two problems:

- Some of my apps can't write to the SD card, e.g., MX Player Pro, Pocketcasts. They can see and read from external (SDcard1), but not write. Others (ES File Explorer) have no problem.

- I don't have LTE network (Canada).

Any suggestions?
[Xperia Z3 Compact General] centric dk:
Ok, that makes more sense. I also tried to flash RICdefeat when in recovery, but it just gave an error. Have others managed to get RICdefeat to work with Lollipop? (If so, how?)
[Xperia Z3 Compact General] istux:
1) Your R/W access is not working properly

2) For Canadian networks it's better the USA version

So, try to flash this via recovery: http://xdaforums.com/z3-compact/development/z3c-usa-variant-lollipop-pre-rooted-nut-t3071069

...and let me know ;)
[Xperia Z3 Compact General] cnsultnt:
Will do. Factory reset and start from step 36 of OP?
[Xperia Z3 Compact General] AlexS_xda:
Just downloaded:

D5803_23.1.A.0.690 R4C_Customized DE.ftf and

UPDATE-SuperSU-v2.46.zip

right now iam creating a zip with these two files.

Will i be able to reinstall dualrecovery when new version is out without going back to kitkat? (with installer version)

does it make sense to create a zio with dual recovery 2.8.3 even though it wont work?

After Flashing zip:

Do need to Flash D5803_23.1.A.0.690 R4C_Customized DE.ftf without system?

Whats the reason for that?
[Xperia Z3 Compact General] Frontier3:
I have been reading through and was also hoping someone could answer this. I have a still locked and rooted z3c, want to upgrade it to lollipop. Can I just go into recovery and flash the pre-rooted lollipop file?

am I correct in that there is no working recovery yet for lollipop?
[Xperia Z3 Compact General] istux:
Revert to .93 firmware with Flashtool, then root it again and install NUT's dual recovery.

Copy the ZIP file of USA pre-rooted firmware inside the internal memory.

Enter into recovery, make a full wipe and flash the zip.

Enjoy :good:

---------- Post added at 10:37 PM ---------- Previous post was at 10:34 PM ----------

1) Yes. And a full wipe from recovery is recommended before installing the zip.

2) Correct. We're still waiting for NUT to give us a working recovery ;)
[Xperia Z3 Compact General] AlexS_xda:
So when I have rooted kitkat(locked bl) i can create a zip just with supersu and ftf loli and reinstall nut with installer version later?
[Xperia Z3 Compact General] starter15:
Didn't Nut say that he doesn't have as much time to work on the recovery and that chances of a working recovery for lollipop were slim?
[Xperia Z3 Compact General] CAL7:
A fix is available. Check the Recovery thread.
[Xperia Z3 Compact General] Santos8913:
FW android 5 D5833
[Xperia Z3 Compact General] hieughost:
Noob question:

From step 27, I used a 5.0.2 fw customized for Italy to create pre-rooted fw and flashed that non-pre-rooted fw in last step.

If later Sony releases a 5.0.2 fw customized for Singapore (my region) and I want to flash that fw, do I have to do it again from the begining, using SG customized fw from step 27, or I just have to flash that fw excluding system (like in last step) in order to remain my root?

P.S: Sorry for my bad English.
[Xperia Z3 Compact General] Arturiuz!:
yep!you need to go through the whole process again..from scratch! :)
[Xperia Z3 Compact General] sebahttp:
I've completed the tutorial and I'm currently at 5.0.2 rooted.

I'm trying to enter to "recovery" but I can't. It seems that it's not installed

How do I install recovery mode? I want to flash stuff on my device :P

(I tried the adb reboot recovery method too, it doesn't work.)

thanks a lot for the work! :D

EDIT: found solution, just follow this: http://xdaforums.com/showthread.php?p=59879026#post59879026
[Xperia Z3 Compact General] hieughost:
Oh thank you.

So I have to wipe cache/data once again right?
[Xperia Z3 Compact General] Arturiuz!:
yep!reverting or updating from one rom to another(KK to LP & viceversa),need to full wipe system/data/dalvik/cache .. :)
[Xperia Z3 Compact General] kwchan98:
D5833 to D5803?

I have a question, I has done this root tutorial in few months ago, but recently I have found that my device in Setting->About Phone, it is showing D5803, but my device should be D5833, is flashed the ROM will changed to D5803? If yes, is there any impact on my phone? Thanks.
[Xperia Z3 Compact General] Codrea:
Hi bro nice thread u made here.

I am nexus 4 before and will get xperiaz3 compact in a day or two :D

I have read the thread and want to ask some question

1. Will this make my warranty void?

2. How about the risk for brick my device

3. Can you unroot this just in case I have to bring my device to service center?

Thank you :D
[Xperia Z3 Compact General] Tuberomix:
EDIT: So apparently this is actually a common problem with the current version of XZDualRecovery (2.8.4). [NUT] said later today he'll release v2.8.5 with a fix!

Hi all.

So finally with the release of XZDualRecovery v2.8.4 I got around to doing all this. Unfortunately though, I got stuck at step 39. No matter what I do, I can't boot into the recovery. I tried pressing up, I tried pressing down at various times... nothing works. I tried reinstalling XZDR several times, I even reinstalled the firmware repeating steps and doing the root again, but alas, I still cannot boot into any recovery :(

Any help would be appreciated :)
[Xperia Z3 Compact General] nahsha:
EDIT: got it working after downloading the 2.8.3 installer of dualrecovery, try it out ^
[Xperia Z3 Compact General] StruttinSoul:
Thanks for this guide - i've used it a couple times for my Z3 (not compact). A note to people trying this right now - I find issues with the 2.8.4 installer and had to revert back to 2.8.3 and it continued to work. If you are installing lolipop with this method you will need to find a different RIC Defeat as well as the noselinux fix (both available in this forum)
[Xperia Z3 Compact General] sil_el_mot:
hello,

i tried to root my z3c again with lollipop. i did it once with kitkat but when i tried just to update to lollipop i lost root, so i had to start from beginning.

with the solution from http://xdaforums.com/show...6#post59879026 i also got the recovery working.

just one question:

why do i have to do N° 43 "Open Flashtool and select the non-pre-rooted fw (this is 23.1.A.0.690),..."

everything seems to work now

when i want to follow point 43 the flashtool stops at "processing fotakernel.sin"

thanks for help
[Xperia Z3 Compact General] kzchy:
God, this looks so complex. I used to do this kinda stuff before, but now it's blowing my mind.

I want to install this - http://xdaforums.com/z3-compact/development/23-0-1-5-77-debloated-deodexed-zipalign-t3015281/page27

Could anyone be so kind to give me a brief step by step explanation on how to install it? Should I downgrade first?
[Xperia Z3 Compact General] Tuberomix:
Hi I searched but could not find the "different RIC Defeat" you speak of. Can you link it?
[Xperia Z3 Compact General] hieughost:
Last question about this topic. Am I still able to receive OTA update after sucessfully rooted 5.0.2, and if yes will I lose my root after I update via OTA?
[Xperia Z3 Compact General] Tuberomix:
Well no. You can't (or at least shouldn't) OTA update a rooted phone... (I'm not sure what will happen, whether it will just fail, only remove the root or maybe it will brick the device in some way... I don't know. Regardless it's not recommended).

However luckily you can still manually get the latest version of any future firmware pre-rooted, as per the instructions in the guide (from step 26 onwards).
[Xperia Z3 Compact General] StruttinSoul:
This is the one I used:

http://xdaforums.com/z3-tablet-compact/general/ftf-sgp621-lollipop-23-1-0-690-noba-ftf-t3058400
[Xperia Z3 Compact General] deadlyrhythm:
z3c-lockeddualrecovery2.8.3-release.installer.zip

incase anyone is looking for Z3C-lockeddualrecovery2.8.3-RELEASE.installer.zip

http://yun.baidu.com/wap/link?uk=3744757620&shareid=2486715201&third=0

---------- Post added at 07:15 PM ---------- Previous post was at 06:31 PM ----------

I managed to get into recovery using z3c-lockeddualrecovery2.8.3-release.installer.zip

Installed the lolipop rooted rom posted in the op fw 23.1.A.0.690 (Android 5.0 March 2015) at https://mega.co.nz/#!Y8tTQZgQ!yV5L2u...klmMdSl3EZ6t18

Now I'm stuck in a boot loop and have no idea how i can get my phone back in a flashable state.

I can get into recovery however but not sure what i do from there to fix my situation.

Anyone had this happen before?

---------- Post added at 07:23 PM ---------- Previous post was at 07:15 PM ----------

Answered my own question. You can reboot in flashmode from the power options in recovery. It will look like the phone is off but go ahead and proceed with flashtool to flash your device.

Leaving this here incase this helps someone else.
[Xperia Z3 Compact General] panecondoin:
ADB server out of date killing...

Edit: Seems like reinstalling adb drivers did the trick.

Problem solved

Hi there,

thanks for this amazing tutorial! I have a proplem running the root exploit, though:

Device gets recognized but I get the message:

ADB server out of date killing....

This goes on for a couple of minutes than it prompts my kernel or device seems unsupported...

I have the latest drivers/PC Companion installed, downgraded FW and followed all the directions exactly.

What am I missing?

Im on Win 8.1 by the way? I would really appreciate some help!

Cheers!
[Xperia Z3 Compact General] ovizii:
Ok, same problem here, how did you proceed? Did you restart the whole procedure?

I was on the latest rooted kitkat version, then like you I flashed the 5.0 LP version and am stuck in bootloop despite factory resetting the phone.

Not sure where to go from here.
[Xperia Z3 Compact General] leso60:
Thanks
[Xperia Z3 Compact General] :
Wil i have after this instructions odexed or deodexed rom ? Thanks for reply :)
[Xperia Z3 Compact General] tukangbajaksawah:
Just reporting for the new .726

I made my own pre-rooted with superSU 2.46 and dual recovery 2.8.3, ended up with booting loop on Sony logo, cannot enter recovery.
[Xperia Z3 Compact General] catskin:
Bootloop

Help!

I tried this on my phone (D5833) for D5833_23.1.A.0.726_Customized AU.ftf. It shows the Sony logo green light, on off, turns black, vibrates, then shows the Sony logo again, repeat.
[Xperia Z3 Compact General] tukangbajaksawah:
Yes, the symtomps was same with me.
[Xperia Z3 Compact General] KoscheiTheDeathless:
Hey could you please not quote the entire op for no reason?

~tia~
[Xperia Z3 Compact General] chrisroed:
Great guide, thanks!
[Xperia Z3 Compact General] brywright:
I have 4.4.4 rooted as per this guide and want to create my own rooted rom for lollipop.

The instructions for this are a bit vague so I just want to clariify.

1) Download using xperiafirm the FTF file for the rom you want

2) Download superSU

3) Download NUT recovery

4) Open PRFCreator

5) Select FTF FIle

6) Select SUPERSU.zip

7) For recovery select NUT recovery

8) THis is where I am less sure

There are a number of tick boxes under include

Kernel,

FOTAKernel

Modern

LTALabel

Do I check these or just kernel??

Also do I "sign zip"?

Sorry for maybe a stupid question but, after 30 minutes of googling and thread searching I couldn't find a clear answer.
[Xperia Z3 Compact General] andonymouz:
Hi, select/check EVERYTHING. I think signing it is not necessary but I still did it (the whole process of generating the flashable.zip takes quite a while! Only signing took like 15 minutes. ) Copy flashable to SD-Card.

In philz touch recovery I did a FULL WIPE ("Clean to install a new ROM" in Wipe and Format Options) BEFORE flashing my own prerooted ROM (.690 German customized). - After Flashing it, I did a Factory Reset and then reboot into system (takes quite a while, too booting into Lollipop for the first time. ) If you don't wanna loose your Data, you might end up in Boot Loop - happened to me a few times - so I suggest a clean install of your prerooted ROM.

And make sure you you use NUT's latest Dualrecovery 2.8.7. or newer from NUT's page (google "nut xperia" - Icant post links yet :)

this includes System R/W fix and included byeselinux (that means a working recovery without having to patch it afterwards).

[only If you plan to use the .278 Lolipop version (German Telekom Branded) you'll have to add a line line of code to 2.8.7 Recovery manually to grant it system R/W fix]

While writing this I noticed version 2.8.8 and 2.8.9 of Dualrecovery... didnt test it yet - 2.8.7 works for me.

IF THIS DOESNT WORK FOR YOU, clean-flash .93 or .98 root it with giefroot, use 2.8.7(!!!) dualrec. INSTALLER and then flash your prerooted rom from recovery.
[Xperia Z3 Compact General] mibtnt:
Just want to say that although these steps are somewhat many and may pertube noobs like myself. It is very detailed and I got thru without an issue!

Just a few things.

Be sure to install your drivers respectively. Flashtool and adb if applicable.

Also. To use flashtool you MUST NOT have USB debugging on. It should be OFF. (Unticked)

Also. Be sure to copy the prerooted firmware so when u are in custom recovery u can flash it as regular with devices and you do need to download the stock fw. All from the links provided. Thanks for those also.

Finally. Be wary of TURNING OFF and not rebooting. Newer versions of TWRP has reboot when in fast it gives options for power off and if you are connected to USB still it will seem that it turns on but it just gives you the battery % status. That was a scary one.

Anyway. Good luck to those trying this.

I'm already using xposed etc on 4.4.4. I had to flash the root fixer in recover but nothing NDR utils couldn't assist in.
[Xperia Z3 Compact General] Xentar712:
USB debugging shouldn't have anything to do with flashtool. The phone should be in fastboot mode or flashmode, neither of which have android running.

---------- Post added at 08:23 AM ---------- Previous post was at 08:19 AM ----------

Anyone have weird issues returning from standby(screen on) after rooting? When I hit the power button, my screen usually just turns on but sometimes it fluctuates and fades in. On even less occasions, it flashes bright then goes dark and ramps back to full brightness. It only happens on the lock screen but is certainly odd behavior and I don't remember it happening when I was using lollipop non-rooted.
[Xperia Z3 Compact General] InsanoKyller:
Very Nice post!