yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Compact General] Amplifiction:
Try RICDefeat or sdfix app. Details in OP FAQ.

---------- Post added at 08:48 PM ---------- Previous post was at 08:43 PM ----------

Can you boot into flash mode? If so, you can simply repeat the procedure. Try new version of XZDR. Works better with lollipop.
[Xperia Z3 Compact General] Duv'orynn:
Yep, almost full (80%)

I've repeated the flashing and got the same issue. Apparently the non-prerooted ftf file from OP isn't good (for my phone).

I've flashed another ftf file which was provided by [MENTION=4708091]istux[/MENTION] (D5803_23.0.1.A.5.77 Android 4.4.4_Customized CE1 1288-7915 from http://xdaforums.com/z3-compact/general/list-stock-firmwares-d5803-d5833-t2906706) without SYSTEM, and now everything works fine.

I don't want to switch to LP cause of the battery issues mentioned on several forums.

Anyway, thank You both for advices
[Xperia Z3 Compact General] calinro:
I have a very dumb question, but I didn't find any answer on Google or XDA Forums after a whole hour of searching:

How do i find out if CWM Recovery is installed?

And do you boot into CWM Recovery??

Button down does nothing when starting phone, button up the same, and both buttons also nothing...

Thanks :D
[Xperia Z3 Compact General] chris5s:
You should have an app.called NDR Utils. Open.that, tick either TWRP or Philz as your main recovery, then press the button to reboot into recovery.

Peace
[Xperia Z3 Compact General] agiss30:
Where is the step 33…?
[Xperia Z3 Compact General] calinro:
Million thanks, man! You saved my day!
[Xperia Z3 Compact General] MarcraM90:
hey is there a recovery for lolipop now?
[Xperia Z3 Compact General] cbuctok:
Very much yes.
[Xperia Z3 Compact General] calinro:
Recovery boot becomes a *****...

In fact, something went wrong! NDR Utils does nothing but simple reboot, despite selecting all the different options.

I followed exactly all the steps described in first post of this thread and installed "Lollipop - fw 23.1.A.0.690 (Android 5.0 March 2015)".

I got the root and the Android 5.02, but I need to install RICDefeat.zip (for SDCardFix), so I need to boot into Recovery (as the only way I now to install *.zip).

I searched the net for methods to enter boot recovery and I found:

- press Vol Down when Power - does normal boot

- press Vol Up when Power - does nothing

- press Vol Down(or Up) when led changes color - the led does not change color! It lights red for a second and that's all. Anyway, pushing buttons does nothing.

- press Vol Down (or Up) when phone vibrates and green led - phone does NOT vibrate and led never lights green during boot.

- install NDR Utils (I already have it installed) - does nothing but normal boot. Tried all possibilities TWRP, Philz, CWM.

- install Qbanin Reboot Recovery - does not work. Normal boot.

- install TWRP Manager - does not work as it asks for SD card access.

Is there a glitch somewhere??? How can I install RICDefeat and other zips? How can I do a recovery?

Please help! Thanks!
[Xperia Z3 Compact General] agiss30:
What did u mean? 2.8.14 or what?
[Xperia Z3 Compact General] MarcraM90:
where can i find it?
[Xperia Z3 Compact General] rwhryz:
Thanks a million! :)
[Xperia Z3 Compact General] vesoop:
How to update once rooted

If I am already rooted on the fw 23.1.A.0.690 how would I update to a newer fw like the fw 23.1.A.0.726? Do I repeat the whole process again?
[Xperia Z3 Compact General] firtvid20:
Thank you so much for this guide! Managed to get Lollipop installed with root in under an hour! :D

I'm just wondering though (silly question), am I able to use to recovery to backup Lollipop and restore it in the future?
[Xperia Z3 Compact General] rwhryz:
You mean nandroid backup via recovry and then restore? You should be able to.
[Xperia Z3 Compact General] basti2909:
No. Just wait for a prerooted flashable zip
[Xperia Z3 Compact General] nokian95ita:
at the step 44 i have this

30/007/2015 22:07:33 - INFO - Processing fota-reset.ta

is normally that this step need very long time now there is the 22.18
[Xperia Z3 Compact General] Jandalf102:
I have exactly the same problem. No way to get into recovery. Did anybody solve this problem?
[Xperia Z3 Compact General] devilstutor:
Need Root

Hello i had a rooted phone( z3) with locked bootloader before i upgraded to lollipop.

so just when i upgraded i lost my root :/ now i want to know how can i root my phone without unlocking the bootloader.

Please Help !!!:eek:
[Xperia Z3 Compact General] Exzu:
43. Open Flashtool and select the non-pre-rooted fw (this is 23.1.A.0.690), but DESELECT system: in "EXCLUDE" make sure you check the checkbox next to "SYSTEM", flash it.

This is rather confusing, is system going to be excluded and rest not?

Or is everything else going to be exluded and system not?

Or is everything going to be excluded? Or is everything going to be flashed?

Obviously if you dont exclude system, you loose root

But why reflash the untouched image at all? Wouldnt that just remove recoveries?

Also, no working recovery at all, same as above posters.
[Xperia Z3 Compact General] istux:
If you check something inside the "exclude" box, it means that the checked item won't be flashed. So, yes, the rooted system will stay untouched.

Why this step? To be sure that kernel, basebands and all the stuff will be the right ones for the system!

In fact, if someone doesn't include them when he's working with PRFCreator or if someone just flashes a zip with a system already rooted, then this step is needed ;)
[Xperia Z3 Compact General] supersilk31:
OTA update

Hey I rooted a while back with this method (which was really scary for me, since I don't know the first thing about programation) to be able to install adaway on my Z3C.

I'm now rooted with android KK D5803_23.0.1.A.5.77

My question is I now have the possibility to do the Lolipop update through OTA, will I keep all my data and the root access if I do ?

Or do I have to find a pre rooted version and a tutorial?

Also is lolipop any good or buggy? (I saw they fixed the problems with double tap to wake, that i'd love to use ^^).

Btw congrats for putting all the data together for this method, you're the man ! ^^.
[Xperia Z3 Compact General] vesoop:
Do I flash it in TWRP or Flashtool with the exclude system option

---------- Post added at 05:52 PM ---------- Previous post was at 05:50 PM ----------

Do I flash it in TWRP or Flashtool with the exclude system option?
[Xperia Z3 Compact General] Muffinut:
So after about 8 hours of following this guide, I got the damn thing rooted and to 5.0.2 fw with Windows 8.1 Pro. Among the ~6 attempts I went through, I'll go through the problems I faced which I feel weren't expressed well enough, and must be common.

Before using every .bat file, save for TA Backup (ie giefroot, Dual Recovery), I had to restart my PC before they would work correctly.

I had to use the customized .ftf to flash in the very last steps. Otherwise, with any other .ftf, the phone would bootloop, forcing me to start over. I realize there was this step: "Open Flashtool and select the non-pre-rooted fw (this is 23.1.A.0.690)" however I'm still not sure this was explained well enough because if going with Alternative 1 or 2 in step 26 you will have a different fw version. If I don't understand this step, let me know, but the only option was to use the customized .ftf.

I did have to install every base driver for Flashtool, but not every driver.

Before installing drivers, windows said they were tampered with or something stupid. I had to follow this guide to fix that: http://xdaforums.com/xperia-z/devel...bootloader-t2153261/post38878089#post38878089 with this thread linked there to resolve issues http://xdaforums.com/showthread.php?t=2635830 specifically the part of entering a command to restart with advanced options and disable Windows Driver Signature Testing (or whatever it was called, something like that).

In order to copy the flashable.zip, I had to change the file ext. to something like .txt, then change it in-storage once it was copied over.

I think that's about it. Other than that, any problems faced were due to my own inexperience.

I also used the /r/Android IRC channel for some ideas on what to do. Thanks to those guys, especially for even showing me this thread in the first place.

Thanks for the great guide, got my phone rooted and it's working just fine.
[Xperia Z3 Compact General] Exzu:
Working recovery

** IF YOUR PHONE DIES, BURNS, BRICKS OR EXPLODES AND CAUSES A TERRORIST ATTACK ON ITS OWN, I CANNOT BE HELD RESPONSIBLE FOR IT **

How to fix recoverys if you didnt get them, and make them work with NDR Utils.

1. You must have root, duh.

2. You must be on either 690 or 726. (These I've tested, cannot speak for others)

3. Download Z3C-lockeddualrecovery2.8.14-RELEASE.installer (2.8.14+ havent tested any older)

4. Redo the step 34 to 38 in main guide. Once you finish step 38, your phone will reboot into recovery.

5. Reboot system out of recovery.

6. Now you cannot enter recovery by pushing up/down, why I have no clue. Most likely due to dualrecovery still not supporting lollipop 100%. However, you can reboot using NDR utils. Select prefered recovery and hit reboot to primary recovery.

Voila, you're in recovery, also it seems you dont need to flash RICDefeat as recoverys flashes RIC Killer anyway
[Xperia Z3 Compact General] virtualflyer:
One thing I cannot understand. If I follow the whole procedure without unlocking bl, will I have the DRMs left? I mean I won't have to restore them, right? The backup is just for safety reasons?
[Xperia Z3 Compact General] chris5s:
Yes, no, yes :)
[Xperia Z3 Compact General] sm4tik:
Thanks for the instructions, after a bit of a trial and error I got it working just fine. Could someone explain why the last flashing is needed (step 41->). Why isn't it enough to just flash the pre-rooted zip from recovery? Not that it's something too painful to do, just made me curious.

..umm, nevermind what I asked about ota's. I tested it but the system couldn't verify it.

On a side note, have I understood correctly that after rooting there's no way to receive ota's? So the only way to update will be repeating the relevant steps from op. (create pre-rooted zip, flash it, flash the ftf with flashtool excl. system)
[Xperia Z3 Compact General] amdismat:
thanks for info its very good! :) now i can get on ignoreing it and trying things my way so far i have done this 4 times and each time got a slightly different result lol, now all the system+ functions in tasker (secure settings) has vanished as a selectable option which it was the first time round lol. so far i bricked it with the nadro kernal but flash tool fixed that. moved super su that collapsed the rom in on its self like a blackhole. magically lost the recovery completely. and now i have lost access to all the system functions in tasker ss. lol. still no fear after having my samsung note 2 and never managed to brick tha ven after flashing the wrong rom to it :) any way thanks for all the great help this is an excellent post. On the premade rom i notice a lot of system apps like smart screen rotation are in constans use of about1% cpu time using usage timeline, wonder if thats something to do with that specific image or if its the same on all roms, i have used greenify to shut it down as i dont use that option and even turned off it uses cpu time (usage timeline). now i notice google search doing the same thing totally blatently eatting cpu while not being used these google people dont seem to know hot to right code google now is horrific. just my pascal educated opinion lol.
[Xperia Z3 Compact General] Jandalf102:
that did it, thank you!
[Xperia Z3 Compact General] gourmandos:
Clarification for point 33 & 40

Hi,

I'm a new member but I've been reading here since a while.

I would like first of all to thank the people who directly contributed to this thread and all the community that supports it! Amazing job!

I'm a little bit confused with the storage of the pre rooted fw (am a noob after all):

point 33 mentions /sdcard0 (internal phone storage) and point 40 mentions /sdcard1

Is it:

-a typo or

-does that mean that installing Dual Recovery automatically moves it from sd0 to sd1 or

-do I need a mini sd card and copy the fw on it

Also, can you please confirm that FlashTools does the "clean wipe" for me. I remember reading in previous post that once in recovery mode, before and/or after flashing a fw, you had to wipe the cache/dalvik cache... Is it still necessary and if yes, when do I do it ?

Again thanks heaps to all of you
[Xperia Z3 Compact General] superpipo:
I have the latest 23.1.A.1.28 rooted and with XZDRecovery, but sometimes, randomly, my phone reboot. I don't know why but I suspect the sd patch....
[Xperia Z3 Compact General] Goldfasan:
Write permission fix without flashing RICDefeat

English is not my main language, but i try to explain my problem and the fix for that...

I made the tutorial (1-46) from the first post without any problems and get root access.

BUT i didnt have write permission for adaway and other root apps. Some other root apps like titanium backup worked perfect...

So i tryed to flash the RICDefead.zip, but there was an error while flashing it. i guess because i still have not write permission ;)

so i tryed this:

at the giefroot/files folder start a cmd line and use the following commands:

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

after that, reboot...

And now i have write permissions without flashing the ricdefead.zip

Hope this helps somebody with the same problem ;)

Greetings from Bavaria
[Xperia Z3 Compact General] supersilk31:
Rooted and no adaway nor adfree :/

Thanks to OP for the step by step explanation, I've to say I was a bit afraid to do something wrong and brick my phone ^^.

I wanted to root to install adaway and be able to surf the web (it's really impossible otherwise :/).

But I've a problem, neither adaway nor adfree seems to work even though I've SuperSu, granted permission and everything.

Adfree says everything is fine (but it doesn't work)

And Adaway says "fail to copy the file "hosts"".

Did anyone had the same problem and found a solution?

(I installed the prerooted KK .77 that is found at step 26, I thought I'd wait for a better version of LP).

Please help me xda community, you're my only hope.

;)

Thanks.
[Xperia Z3 Compact General] superpipo:
try an older version
[Xperia Z3 Compact General] Goldfasan:
...which is exactly the same problem that I had ;)

try the solution from the last post :good:
[Xperia Z3 Compact General] supersilk31:
I just tried this solution, after the reboot it's still impossible for adaway to copy the file "host" :/
[Xperia Z3 Compact General] supersilk31:
write permission

Here the messages I get :/ (see attach file)
[Xperia Z3 Compact General] Shabo09:
restore

Just after restore I tried the DRM functions which arent active it seems. After resetting the device it still isn't fixed. Anybody with an idea which I can do?

Hope to hear a solution!
[Xperia Z3 Compact General] slicetwo:
EDIT: never mind.
[Xperia Z3 Compact General] nahsha:
Hi, I am on .726. Can I just flash the prerooted .28 via recovery ? or do I need to redo everything in the tutorial? thanks :)
[Xperia Z3 Compact General] alwaysbelieve1:
I just flashed right over after a full wipe. Always better with a clean install. Good luck! ???
[Xperia Z3 Compact General] doktor5000:
Also confused me slightly. Basically you can copy it anywhere where you have write permissions and where the file fits in terms of size.

You just need to select it later from the recovery to install it, the recovery does support either internal storage or SD card (external storage).

As far as I'm aware, you should always do that when flashing a different release. I did it after installing the non-pre-rooted firmware at the end of step 40.
[Xperia Z3 Compact General] lyingit:
So myself, and the [MENTION=5015797]botty67[/MENTION] on page 49 are the only two that have an issue with the camera not working?

Anybody have an idea why?
[Xperia Z3 Compact General] apexofservice:
prf is windoze only

It seems that the pre-rooted firmware tool is a .NET thingy. For those that run linux, is there either:

1) some pre-made pre-rooted firmwares that we can download

2) at least the source code from pre-rooted firmware tool so that we can see what it's doing (i've seen quite a few windows scripts on this site which were extremely easy to port to *nix)

Best!
[Xperia Z3 Compact General] OGSwank:
Sorry for being a noob but I've not had to root like this in a while. I'm a little confused once i follow the -- ROOTING W/ EXPLOIT -- why is there an option after to install prerooted image (-- Install latest firwmare with root, DRM keys, recovery --) . Is there a choice in which step you follow? because i'd rather go for the latest firmware (Lollipop)

Why would you have to re-root again if you've already rooted with the exploit?
[Xperia Z3 Compact General] Conte Mascetti:
You have to flash a pre rooted zip because the original firmware doesn't keep root.

Once you have flashed the zip (it contains system partition) you have to flash the original ftf excluding system.

From Z3C Black
[Xperia Z3 Compact General] apexofservice:
Can anyone post a link to a pre-rooted firmeware list. I can't run the PRFC tool because I don't have windows (only Linux). What to do?
[Xperia Z3 Compact General] Conte Mascetti:
Read .26 in OP, there you have latest KK (which I'm using) or lollipop prerooted zip

From Z3C Black
[Xperia Z3 Compact General] OGSwank:
Is Xposed running good on Lollipop yet? Someone told me they installed LP, rooted, locked BL and have no experienced no issues.

Need to decide by tomorrow if i should put LP or KK :rolleyes: as i'll mostly be using Xposed and mods..
[Xperia Z3 Compact General] xxxxchrisxxxx:
I followed these steps, including flashing the pre rooted zip to upgrade to lollipop.

I powered off rather than rebooted as per the instructions, however I did not then reflash the original ftf at all...

My device appears to be working fine.. I still have root..

What is the purpose of reflashing the original ftf minus system..?

Will me device be adversely affected by failing to complete the last steps?
[Xperia Z3 Compact General] Starlith:
I am already rooted on lollipop using steps from OP but i have just received an update notification for the latest .28 lollipop firmware. Has anyone tried updating a rooted lollipop version to the latest? I don't want to lose root in doing so.
[Xperia Z3 Compact General] apexofservice:
Thanks! Somehow I overlooked that :)
[Xperia Z3 Compact General] Dixxhead:
Great Stuff! But not being able to boot into recovery seems to defeat the purpose of having a recovery really... Hope a fix for this comes around soon.
[Xperia Z3 Compact General] Conte Mascetti:
I base my answer just on what I saw into zip and during the process.

When you flash pre-rooted zip, I think you flash solely Sytem partition including SuperSU... and that's good, it's the "core".

Flashing original ftf excluding System gives you the whole updated firmware and rooted. IMO you're using a half updated firmware. And it's a luck it works :D.
[Xperia Z3 Compact General] xxxxchrisxxxx:
Thanks... Sounds like I made a mistake then...

As I have already rebooted and installed apps... is it too late for me to just try to complete the final steps and flash the original FTF minus system or should I just go ahead and do that?
[Xperia Z3 Compact General] Conte Mascetti:
At this point, use your phone without doing anything more. Do the entire procedure when you feel it's time to clean things up for a fresh start, or if you see it's needed

From Z3C Black
[Xperia Z3 Compact General] apexofservice:
So, when I tried this using the pre-rooted firmware in step 26, the flashing went fine. But when I turned off and tried to flash the non-pre-rooted without /system, I got a checksum error on S1, and loader.sin failed and flash aborted. I dunno what to do about that. This was trying with the KK .77

I was gonna try with the lollipop pre-rooted, but I don't see a link to the non-prerooted. I think there are links to those elsewhere. I may just give it a try since I have a full backup and I restored it (I backed up with my twrp recovery before flashing prerooted firmware) and all is fine.

Let me know if you guys have advice on the checksum error on loader.sin.
[Xperia Z3 Compact General] OGSwank:
Why is Avast reporting Flashtool as malware.. (flashtool.net) is it a false positive 100% ?
[Xperia Z3 Compact General] apexofservice:
Looking into this a little further, I realized that these .ftf file are just .jar files so I used unzip to unpack the generic unrooted one for .77 into a dir. Then I did m5sum of loader.sin:

apexofservice@computer:~/Downloads/D5803-23.0.1.A.5.77/$ md5sum loader.sin

b0d2e98567587314e5b83b66b0f61232 loader.sin

But I'm still poking around to try to see where there's some checksum stored for this file (also, I guess it could be a checksum in the data itself...)

So, I'm gonna keep poking around to try to figure out why I'm getting this bad checksum error on loader.sin. Let me know if you guys have tips.

EDIT: two more notes, my error had said something about S1 error in checksome of loader.sim, or S1 failed checksum or something, now I see in the hex editor this near the top of the file:

0000070: 140c 5331 5f52 6f6f 745f 3963 3834 301e ..S1_Root_9c840.
0000080: 170d 3133 3037 3233 3133 3333 3433 5a17 ..130723133343Z.
0000090: 0d33 3330 3732 3531 3333 3334 335a 3014 .330725133343Z0.
00000a0: 3112 3010 0603 5504 0314 0953 315f 4c6f 1.0...U....S1_Lo
00000b0: 6164 6572 3082 0122 300d 0609 2a86 4886 ader0.."0...*.H.

Then I notice that there are a whole lot, a suspicious lot of 0s through the rest of the file, most of it is blank.

I wonder if my download got corrputed. Can anyone me by posting an md5 sum (or sha256, or whatever) of D5803_23.0.1.A.5.77_US.ftf (the non-rooted KitKat linked in 26 of OP) so that I can confirm that my download went okay?

Also, what kind of data are these .sin files, anyway? I'm looking at in now in a hex editor but I'm not figuring it out yet.
[Xperia Z3 Compact General] Banwell13:
Anyone know this???

I am wondering the same thing! :)
[Xperia Z3 Compact General] istux:
Right, when the bootloader is actually unlocked, you read "bootloader unlocked: yes"
[Xperia Z3 Compact General] pw1nce:
do we have to cllean install the .77 firmware or dirty flash ? pls reply thnx
[Xperia Z3 Compact General] XQC:
Don't know if it's just me, but for me this step is very confusingly described, that's why I needed 3 entire runthroughs - you're actually suggesting to check everything BESIDES system. Result for me was a borked system with no wifi.

Just write that users should ONLY check "system" in the Exclude area!

Besides that, thank you very much!
[Xperia Z3 Compact General] hayatesan:
Well...

It seems I did the stupid mistake of doing everything right BUT I did not Backup the TA Partitions until after everything was finished.

For some reason my brain skipped all of this

I've just done this (and I have a TA-Backup which is about 350kb) but I guess the damage is done and my DRM Keys are lost as I should have done this in the right order, right? :(
[Xperia Z3 Compact General] mf01mf01:
After I reading through the forum thread I should some confirmation (I apologize for the poor English):

- I have: locked bootloader, and stock 23.0.1.A.5.77

- Do not need to unlocked bootloader?

- Know I well that the section "-- FW DOWNGRADE AND INSTALL WITH FLASHTOOL --" can be skipped because of the stock 23.0.1.A.5.77 or by all means you should do?
[Xperia Z3 Compact General] brywright:
Nope as long as you didnt unlock bootloader you should be fine and none of the listed steps get you close to unlocking the bootloader.

My backup is only 261KB and mines fine

Try this

go into the service menu (*#*#7378423#*#*) and then services tests >> security

If all keys are [ok] then your fine

Should mean your TA key is still there?