yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Compact General] apexofservice:
converting to *nix

I was going to try to go through .bat and convert it to bash, I found this resource:

http://tldp.org/LDP/abs/html/dosbatch.html

But I wanted to pause first in case someone has already done this.
[Xperia Z3 Compact General] mibtnt:
I know it doesnt. But coming from a list of other non-sony devices and many needing USB debugging to be on before modding... It was sort of 1st nature to have it on... When it should be off as it blocks flashtool.

Also I don't have those issues on either lollipop or KitKat.
[Xperia Z3 Compact General] Nortelus:
Can I downgrade firmware from OTA lollipop upgrade and then perform the root?
[Xperia Z3 Compact General] lyingit:
So I followed this, have root, and lollipop, but my camera won't load, what did I miss?
[Xperia Z3 Compact General] capuagenclik:
worked perfectly for me. I was on the december fw with root.

Downloaded lollipop created a rooted fw. Flashed it via recovery. Power off. Flash unrooted fw with TFT flasher. Excluded system didnt wipe data. Worked like a charm. I have lollipop and I havent had to do one bit application wise. ]

First couple of reboots and such phone struggles a bit due to incompatibilities but once everything is updated in play store it all becomes well . I like the lockscreen notifications. I dont really miss anything from kitkat.
[Xperia Z3 Compact General] Codrea:
Hi guys problem in step 37

When I type adbshell

There is eror adbshell server out of date daemon not running bla2.

Try step 35 and hit 1 but it get the same message adb server out od date daemon not running and failed to reboot to recovery. Any help?
[Xperia Z3 Compact General] dane_xperia:
How do I create something like this with the firmware of my choice? I'm from the philppines and I'd like to have a pre-rooted LP (ph region) flashable zip and make sure that I won't get problems with Google play and Xposed?
[Xperia Z3 Compact General] ibolito:
Desn't work

I followed every steps, downloaded the Global FTF file to downgrade from official french 23.1.A.0.690 fw. Everything went well, downgrade, putting the pre-rooted lollipop fw on the phone, gaining root, backing up DRMs, and installing dual recovery. But when I entered the recovery, it didn't find anything on my internal memory, it said E : can't mount storage, sdcard... It could'nt mount anything at all. I tried to format the storage to EXT4 then FAT from the recovery, when the phone boots I see all of my 11 GB available but the recovery sees nothing.

Any idea ? I tried to make it from the beginning, same problem and now twrp is seeing only 9 MB on the storage.

Please help guys !
[Xperia Z3 Compact General] :
You are awesome

Followed the guide yesterday. This phone has one of the longest rooting steps I have seen but everything worked perfectly.

Thanks.
[Xperia Z3 Compact General] Codrea:
f

hi my phone version is 5833 since it don't have firmware ftf lollipop .690 can I use the D5803 ftf lollipop firmware in my d5833 phone?

will it brick my phone?

thanks
[Xperia Z3 Compact General] Amplifiction:
Thank you very much for your detailed explanation. I just bought a Z3C today, which means I didn't have to downgrade or worry about wiping. First thing I did with my new phone was follow your guide, and it worked for me.

I am unable to enter recovery, though, not by using buttons at startup or using an app called Quick Boot. Is that normal?

Also, my phone tells me a system update is available, although I'm currently on 5.0.2. Can I safely update without losing root?

Last question, and it's probably not a very good one: I noticed that the uploaded 23.1.A.0.690 firmwares have "_Customized_US" in their title. Would that be a problem for a European user like myself? I did flash those firmwares and can't say I noticed anything wrong, but would like to check just to make sure.
[Xperia Z3 Compact General] qbdx:
is there a new updated Sony RIC Defeat flashable app for .726?

The currently linked one doesn't seem to flash in recovery for me.
[Xperia Z3 Compact General] Train2104:
Have either of you figured this out? I followed the exact steps in the OP using this "latest firmware" and encountered a bootloop. Rebooted into flashmode and repeated procedure, no real help.

Presently downloading stock to try to render device usable again.
[Xperia Z3 Compact General] grockstar:
Possible Bootloop Solution (Lollipop)

I had the same bootloop problems many people have reported. I solved them using the procedure below - I'm now up and running with no issues.

If you're attempting to upgrade to Lollipop and are trying to use the ready-baked rooted firmware downloads mentioned at step 26, note that the instructions in the OP do not include a link to the non-pre-rooted Lollipop firmware that's required at step 43 (took me ages to figure this out).

I used the stock Russian Lollipop (23.1.A.0.726) FTF image (http://xdaforums.com/showpost.php?p=60044680&postcount=903), and pre-rooted it with PRFC to create the flashable zip.

If it helps anyone I've uploaded the pre-rooted flashable zip based on this image to Mega at https://mega.co.nz/#!bApxySwZ!pfpbwR04xG3odtCk0HGsJcpK4kxNO5gkMqDigTxaIOo

Use that zip to copy to your internal storage at Step 33. Then use the stock Russian FTF image at step 43.

Hope this helps someone!
[Xperia Z3 Compact General] Train2104:
Thank you very much, it worked!

As I'm in the US, I used this pre-rooted and this stock.

Now, my question turns to future updates. When we would like to update the pre-rooted ROM, do we need to completely redo the above procedure? Just flash the new ROM in recovery? Flash and then reflash the stock minus system over it?
[Xperia Z3 Compact General] Javier Mema:
Hi everyone here, excuse me, can we help me??

Now I flash my D6603 with step by step in the first page but I used the US version .726 and the recovery 2.8.1 but this not work :(

Why??

Can I get root access now I'm done, I withheld a step?

---------- Post added at 10:18 PM ---------- Previous post was at 10:17 PM ----------

Errata: can I get recovery now I'm finish?
[Xperia Z3 Compact General] gegu2:
Try xzdr 2.8.12, it should work.
[Xperia Z3 Compact General] Amplifiction:
XZDR?
[Xperia Z3 Compact General] gegu2:
XZDualRecovery by nut
[Xperia Z3 Compact General] Amplifiction:
Please help!

I don't have recovery, and only partial root. (Says app "GT Data Recovery".)

I followed the entire how-to, with the downgrade being the exception as my Z3C is brand new and was on the lowest FW out of the box.

For the first flash (using XZDR installer .bat ; step 38) I used the first link in the quote. The installer version I used is 2.8.10. I don't know if this corresponds with the version in the flashable.zip from the first link.

For the second flash (using Flashtool ; step 43) I used the second link in the quote.

What did I do wrong? How do I get recovery and full root?

EDIT: I plan on repeating most of this how-to with different firmware. Question on PRFCreator: do I leave all options unchecked? (Include Kernel, 3 other include options and "Sign zip")
[Xperia Z3 Compact General] chris5s:
To get full root access to /system, did you try this (from OP):

FAQ

- Some root apps don't work, because /system can't be remounted rw, what's up with that?

Sony has a special in kernel protection that disallow remounting /system read-write, even for root. Flash this in recovery (copy it to the sdcard and reboot in recovery with volume UP pressed, then install it): https://github.com/dosomder/SonyRICD.../RICDefeat.zip

It worked for me when I only had partial root.

Peace.
[Xperia Z3 Compact General] Amplifiction:
While I have seen that solution, I can't try because I have no recovery. Can I just flash recovery without changing my ROM?
[Xperia Z3 Compact General] chris5s:
I would say yes, go ahead and follow steps to install recovery only. It shouldn't affect your ROM installation.

However I have little experience of this device up to now, so obvious caveats apply! The worst that could happen though is you will have to start over from scratch, so you don't stand to lose much.

I would follow installation of recovery carefully, especially the output of the installation to look for any error messages, in case you missed something first time round.

Good luck!

Peace.
[Xperia Z3 Compact General] gegu2:
Unistall xzdr 2.8.10 using xzdrremoval tool, then install xzdr 2.8.12 and check if you will be able to run recovery. Older recovery may not work/run properly due to some issues.

All necessary files are available at nut's web page (link available in 1st post of this thread).
[Xperia Z3 Compact General] nataelj:
Downgrade fail despite reading all the forums

I have a D5803 that I'm trying to revert back to 4.4.4 to root. I am getting stuck at the downgrade step though and no fix I've read anywhere corrects the issue! Here's my Flashtool log:

19/005/2015 14:05:55 - INFO - (FlashJob.java:34) - Please connect your device into flashmode.
19/006/2015 14:06:00 - INFO - (MainSWT.java:141) - Device disconnected
19/006/2015 14:06:15 - INFO - (MainSWT.java:145) - Device connected in flash mode
19/006/2015 14:06:15 - INFO - (USBFlashWin32.java:20) - Opening device for R/W
19/006/2015 14:06:15 - INFO - (X10flash.java:486) - Start Flashing
19/006/2015 14:06:15 - INFO - (X10flash.java:239) - Processing loader.sin
19/006/2015 14:06:15 - DEBUG - (X10flash.java:240) - loader.sin : header size : 1024
19/006/2015 14:06:15 - INFO - (X10flash.java:218) - Checking header
19/006/2015 14:06:15 - DEBUG - (X10flash.java:222) - Sending part 1 of 1
19/006/2015 14:06:15 - ERROR - (X10flash.java:254) - Processing of loader.sin finished with errors.
19/006/2015 14:06:15 - INFO - (X10flash.java:546) - Ending flash session
19/006/2015 14:06:15 - ERROR - (X10flash.java:519) -
19/006/2015 14:06:15 - ERROR - (X10flash.java:520) - Error flashing. Aborted
19/006/2015 14:06:16 - INFO - (MainSWT.java:145) - Device connected in flash mode

At that point, nothing happens anymore. I have reinstalled Flashtool (twice), upgraded my Java, rerun the driver installation from Flashtool, downloaded the firmware again (this was the firmware from the post at the start of the thread), tried a different firmware option (23.0.1.A.5.77 - Unbranded - USA (1289-7524) this time), and downloaded the Support Zone in PC Companion. All to no avail. What else can I try?

Alternatively, does anyone know if there's a way to just root Lollipop directly without a downgrade? I mostly just want root access for TitaniumBackup and Tasker. Is a direct Lollipop root on the way?
[Xperia Z3 Compact General] Amplifiction:
OK, will try to uninstall and reinstall recovery only tomorrow or the day after that.

What about Sony updates? Is it safe to apply those without losing root?
[Xperia Z3 Compact General] chris5s:
System

updates will lose root ;) App updates won't.

At least, that was my experience...
[Xperia Z3 Compact General] Amplifiction:
In that case, scratch the recovery only part! Will try to compile new flashable.zip consisting of

- SuperSU 2.46

- 23.1.A.0.726 firmware

- XZDR 2.8.12

Which are all the latest versions, as far as I know.

Will try to uninstall current XZDR first.

When compiling using PRFCreator, leave all options unchecked? Options being include kernel, fotakernel, modem and ltalabel. Also sign zip.
[Xperia Z3 Compact General] botty67:
Eveything works prefectly now but my camera doesnt work since. Im on build 23.1A.0.690.

Camera just comes up with error, camera no availible. It was tested and working just before i did the final firmware upgrade.

Should I try reflashing the firmware? Has it happened anybody else?? I seen it happened to [MENTION=1747200]lyingit[/MENTION] but not solutions was given..

Thanks
[Xperia Z3 Compact General] cid1001:
Thanks for this guide :). Time consuming but worked like a charm.
[Xperia Z3 Compact General] Amplifiction:
Good news: OTA updates might just not affect root.

I just tried doing an OTA update. I had 23.1.A.0.690 after following this how-to and updated to 23.1.A0.726 by tapping "Install now" in Sony's notification. Since I only had partial root and no working recovery to begin with, I figured I could take the risk. After the update, Root Checker tells me I'm still rooted. Recently, an app that requires root access to modify the right softbutton (running/recent apps) seems to be working, too. ES File Explorer can't initiate the option Root Explorer, however. Had that problem before the update, probably due to partial root.
[Xperia Z3 Compact General] zezadas:
If someone interested, I have made a quick translation of the Backup-TA from DevShaft , so it can be LINUX COMPATIBLE.

Feel free to test.

It seems that backup is working fine.

I haven't tested restore. (as on original version, proceed at your own risk)

https://github.com/zezadas/Backup-TA.git
[Xperia Z3 Compact General] Train2104:
What's odd is that I can't even find the "Software Update" option in the settings menu anymore, once I rooted the phone.
[Xperia Z3 Compact General] Amplifiction:
Mine is under Settings > About phone > Software update.

Should pop up under notifications if app or system update is available.
[Xperia Z3 Compact General] Train2104:
Not there. Maybe because I debloated with this: http://xdaforums.com/z3-compact/general/wip-debloat-lp-690-correct-functioning-t3076161
[Xperia Z3 Compact General] Amplifiction:
I never used that tool, so I'm afraid I don't know.

---------- Post added at 12:27 PM ---------- Previous post was at 12:22 PM ----------

Internal memory wiped

I never backed up my internal memory (SD 0) before following this procedure. Figured I didn't have to because my Z3C was brand new.

Now I realize I might have deleted important files/nice extras/...

Any way to restore this? Am I missing out on anything?
[Xperia Z3 Compact General] istux:
This is true only for minor updates, because they don't make big changes into system...
[Xperia Z3 Compact General] chris5s:
I had that problem with ESFE. Did you restore from the market or Titanium backup?

Also, did you try the zip from the first FAQ (https://github.com/dosomder/SonyRICDefeat/raw/master/RICDefeat.zip) to see if this gives ESF full root?

Cheers

---------- Post added at 02:51 PM ---------- Previous post was at 02:48 PM ----------

So upgrading from .690 to .726, kept (partial?) root? This is LP->LP right?

However, when I installed an earlier version of KK (the latest one that allowed the root exploit), then updated to the last (latest) version of KK via System Update, I lost root altogether. Only a "minor update"?
[Xperia Z3 Compact General] Codrea:
Hi I am installing busybox and can not get to recovery.

But I can not uninstall this busybox..

Any idea?
[Xperia Z3 Compact General] Amplifiction:
You solved the system mount rw problem? Can you please let me know how?
[Xperia Z3 Compact General] botty67:
It doesnt matter which lollipop firmware I flash at the last stage the camera will not work.

I eventually had enough and requested the bootloader, but now that wont even write to the phone for some reason!!

Shoe, phones, wall, smash, finally happy.. until tomorrow..
[Xperia Z3 Compact General] Amplifiction:
Ok, progress...

CWM Recovery asked me if it should fix root upon exiting it, which I allowed. Solved ES FE Root Explore issue.

I've been able to install RICDefeat, not by flashing it from recovery but by using ADB thanks to this tool:

http://xdaforums.com/z3-tablet-compact/general/ftf-sgp621-lollipop-23-1-0-690-noba-ftf-t3058400

No improvement.

Managed to flash Recovery error-free thanks to command line instructions listed here:

http://xdaforums.com/z3-compact/development/stock-firmware-23-1-0-690-generic-t3056413

(Speaking of flashing recovery, sdcard1 being read-only was simply due to it not being in my phone.)

Even flashed ROM with built-in R/W fix from that same thread.

Still. Partial. Root. :(

I'm starting to think that either most people claiming to have successfully followed how-to's such as these only think they are fully rooted, or the two apps that are still giving me problems are wrong.

Problem is I've known those exact apps (same versions and settings) to work on my Xperia V, running CM11 (KitKat). SMS Backup for instance now claims it can't write to external SD due to permission restrictions from Android 4.4 onwards, but like I said, I've known it to do so on 4.4.

Anyway, I have spent hours searching the XDA forums, and I think I'm out of options. I'm just sharing this information in case it's useful to others. Thanks again to everyone who helped!
[Xperia Z3 Compact General] chris5s:
Just a thought, have you flashed one of the apps available that will fix KitKat sdcard write permissions?

You may not have had to do that with a CM ROM as the fix was already included in the ROM, but a stock Sony ROM will need this fix to give write permissions to apps for the sdcard.

Cheers

Although just remembered you're on lollipop, so maybe scratch that...
[Xperia Z3 Compact General] MafiaSpaghetti:
Hi guys ! Super noob here. Non native speaker. Can't boot anymore. Help ! [D5803]

So I followed the step by step instructions with the first alternative (pre-made pre-rooted image, Lollipop - fw 23.1.A.0.690) and I skipped the step 37(the "mount -o remount,rw /system" part) because I didn't know how to open the command prompt. It all worked well and after that I updated to 23.1.A.0.726 normally, in the android system. But I was in read-only mode and wanted to change that by installing the RICDeafeat.zip but I was unable to boot into TWRP (I tried everything).

Then, into Flashtool, I flashed the old 23.0.A.2.93 in flashmode with system excluded, hoping I will be able to do something.

And now when I start the phone, it does multi boots (Sony Xperia welcome screen on, off, on....) with the LED being green. However now I can enter into TWRP with the vol button.

Is there anything I can do know to arrange the situation ?
[Xperia Z3 Compact General] Jonky0:
Hello,

I have some doubts on this point:

"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."

So, given that I have downloaded the flashable.zip, should I download a non-pre-rooted from this page?

If yes, is 23.1.A.0.690 - Unbranded - Italy (1289-4008) ok?

Thank you for yout replies :)
[Xperia Z3 Compact General] istux:
If you upgrade to Lollipop normally, you lose the root because the system have been changed.

And TWRP recovery for KitKat can't work on Lollipop too.

The right way is to upgrade with PRFC (from point 27 of the tutorial onwards) ;)

Flashing back the old 23.0.A.2.93 with excluding the system, is wrong because the kernel of KitKat can't work with the system of Lollipop. That's why you got bootloops (the endless on-off).

When you experience bootloops, just press power botton + volume.up until the device turns off.

Flash 23.0.A.2.93 with Flashtool and begin again the tutorial...

It's ok :good:
[Xperia Z3 Compact General] NeLk:
I created a post with the steps I followed ;)

http://xdaforums.com/xposed/install-xposed-z3compact-t3019176
[Xperia Z3 Compact General] Amplifiction:
Actually, I tried NextApp SDfix. Where Titanium Backup previously reported unsufficient space when trying to backup to external SD, it now backs up just fine.

SMS Backup& Restore still has no access to external SD, however.
[Xperia Z3 Compact General] Jonky0:
Thank you for the reply. Anyway, where are the power off options i TWRP? I see only the button "Reboot" D:

Edit:

Nevermind. For the noobs (like me) out there, you have to press the button "Reboot" in the main menu to enter a new menu where you can press the button "Power Off".

Edit x 2:

The guide was succesful, but it seems I can't uninstall every app I want :/

Anyway, thank you, OP, for this tutorial. Very good indeed, even for noobs like me :D
[Xperia Z3 Compact General] charliebigpot:
has anyone tried the 2.8.14 recovery by nut? Is that LP only or does it also work on KK?

---------- Post added at 04:11 PM ---------- Previous post was at 03:58 PM ----------

you can use Titanium also for backing up SMS, call logs and WIFI passwords ;)
[Xperia Z3 Compact General] MafiaSpaghetti:
I could not expect a better answer. Thanks a lot ! :good:
[Xperia Z3 Compact General] Amplifiction:
You're not alone. I actually spent some time looking for power off as well :laugh:

I followed this (and other) guide(s) to get recovery and root on locked bootloader. I'm not able to uninstall everything either. Possibly caused by partial root. I haven't found an app I can't at least disable, however. I know it's not the same as removal, but it's an acceptable workaround for me.
[Xperia Z3 Compact General] basti2909:
Thanks for ur Guide. Runs great
[Xperia Z3 Compact General] alwaysbelieve1:
I just want to say THANK YOU, THANK YOU, THANK YOU for this thread, mainly the first post in it, for the A-M-A-Z-I-N-G instructions to follow to get root, save DRM, and come out the other side successfully. I do have a question though, if I want to flash a custom rom, such as CM 12.1, can you please point me in the right direction to follow a great step by step instruction list just like you have here in post 1 that will help me with this. It seems like the methods for this are either outdated or all scattered. I do not have my bootloader unlocked so is that necessary?
[Xperia Z3 Compact General] Roye_V:
followed the steps but I don't have a recovery and I don't have write permission on system folder, running lollipop 726.

should I try again? which specific steps should I do in order to not go through the whole process again?
[Xperia Z3 Compact General] akincisor:
Lose recovery after loading 23.1.A.0.690

I followed the directions, but I seem to lose the recovery after flashing 23.1.A.0.690. I still have root, but neither adb reboot recovery nor rebooting with the volume up button seem to work. Any ideas what I might be missing?

Edit: I should add that I used the prerooted image and skipped to step 33 (rather than trying to build it myself).
[Xperia Z3 Compact General] Arturiuz!:
- if this would help??? :o

http://xdaforums.com/showthread.php?t=2983716

---------- Post added at 06:43 AM ---------- Previous post was at 06:38 AM ----------

try running the 'installer' recovery script.

---------- Post added at 06:47 AM ---------- Previous post was at 06:43 AM ----------

you still have root,right?if so,run the recovery 'installer' again.it should work. ;)
[Xperia Z3 Compact General] akincisor:
Thanks for the quick response. Does that imply running the install.bat from the dual recovery installer?
[Xperia Z3 Compact General] Arturiuz!:
yep!
[Xperia Z3 Compact General] akincisor:
It worked, thanks! However RICDefeat.zip flash failed (it said aborted). Any idea why that might happen?
[Xperia Z3 Compact General] Arturiuz!:
possibly a corrupted file you got there..i only flash it if only i am not able to gain write access to sdcard..check it first though?if you still can't,download the RICDefeat.zip again(keep it in internal)then flash it..it should work..atleast in my case. ;)

D5833 LP5.0.2 23.1.A.0.726
[Xperia Z3 Compact General] leigh1625:
hi I just want to ask anyone rooted success on 23.0.1.a.1.49

It seems that this version of system is elder than what is required....

anyone have idea? the device is D5833
[Xperia Z3 Compact General] akincisor:
I downloaded it again and verified that it wasn't corrupted. It just doesn't seem to work. Oh, well. I'll live without it for now. Thanks!
[Xperia Z3 Compact General] Duv'orynn:
Same here and my phone won't boot anymore. It goes to bootloop and the LED changes color to red (if that counts for anything)
[Xperia Z3 Compact General] Arturiuz!:
did you have enough battery on phone upon doing this thing?how was it now?

> rooted stock D5833 LP5.0.2 23.1.A.0.726
[Xperia Z3 Compact General] nahsha:
Hi guys, I've followed the tutorial and updated to the latest one via ota. The device is still rooted as I was able to use titanium backup but when I try to update adblocker it fails to copy files. Any help?