yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Compact General] ArmaghRed:
Sorry, I am genuinely a complete and utter newb at this, I am literally just following the steps on the 1st page.

I dont have TWRP installed, can i just do that via the TWRP manager app?

Just to clarify, i now skip to step 33, and copy the zip file (your rom) to my sd card (I am not sure what the bits in the brackets in step 33 means) and then follow on through the rest of the steps?

Or do I just install TWRP and then install your rom via that, and ignore all the rest of the steps?

Sorry, I am a bit confused at the moment!

Thanks!!
[Xperia Z3 Compact General] chris5s:
Yes, install twrp from link above (I edited my post cos I hadn't seen your request for the link) then use twrp recovery to install my zip.

---------- Post added at 11:16 PM ---------- Previous post was at 11:05 PM ----------

The files originally linked in the op don't exist any more but you can get it as I stated above.

The bits in brackets in post 33 are just telling you to put the .zip onto your sdcard ;)
[Xperia Z3 Compact General] ArmaghRed:
Installed TWRP, installed your ROM from zip, seemed to be successfull but now i'm stuck in a bootloop. I tried clearing the cache but no luck, any suggestions?
[Xperia Z3 Compact General] chris5s:
Reboot into recovery, wipe data, cache and dalvik. If that doesn't work, wipe system, reboot into recovery (ignoring warnings about no OS installed) then reflash zip. That should do it.

Peace
[Xperia Z3 Compact General] ArmaghRed:
Wiped the system, I chose boot in to recovery, ignored the warnings and now it wont boot into recovery, it just shows the sony logo and is stuck there. Any ideas?
[Xperia Z3 Compact General] chris5s:
Does the phone vibrate shortly after showing the Sony boot logo? This men's custom recovery is installed. If it vibrates then hold volume down and this will take you into recovery. Then reflash zip.

Otherwise, if twrp isn't there (and I don't know why it wouldn't be) I'm afraid you may have to start from scratch again...
[Xperia Z3 Compact General] ArmaghRed:
No, it doesn't, also no led lights.

How do i start from scratch again? Computer no longer even connects to / recognises the phone.

Thanks.

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

Does it sound like my phone is completely done for / bricked?

EDIT: Ignore me, got it flashed back to the default firmware, anyway, thank you very much for the help and apologies for wasting your time. I'll have another crack at it tomorrow, wont let it beat me!!
[Xperia Z3 Compact General] chris5s:
Ok, good stuff :good:

Once you've rooted it and installed dual recovery, boot in and out of recovery to make sure it's been flashed properly. Sometimes these things go wrong for no apparent reason!

Also, make sure the download of the ROM you want to flash is good. For example, try extracting it on your PC. A bad download won't extract properly.

Going from KitKat to Marshmallow, I wiped cache, dalvik, data and system, then reboot into recovery and flashed MM ROM . That should stop any bootloops.

The important thing is to make sure you have a good download of the ROM you want to flash. Try a different ROM than mine if you want, but it worked on my Z3C.

Good luck :good:

Peace
[Xperia Z3 Compact General] ArmaghRed:
I'm at step43 now, do I need to do step 43-46 if i used your rom at step 40?

I have not yet turned on the phone after step 41/42.

Thanks!

EDIT: If i do need to do steps 43-46, could you please link me to the non-pre-rooted fw I should be using for those steps?
[Xperia Z3 Compact General] ArmaghRed:
I went ahead and done steps 43-46 with D5803_23.5.A.0.575_NCB which has worked perfectly. Thanks for all your help!
[Xperia Z3 Compact General] phoenix31121:
hello people, i know this is not the place to ask the question, its just that ive been through this thread that i posted here.

i have this problem out of the blue where my phone wont stop vibrating even after turning the phone off and soft reset. i popped off the back plate and disconnected the battery but it starts again after i join the connector. ive never got water on the phone nor have done anything bizarre with it. it just started vibrating out of nowhere when it was on the table. ive never had any problems with the phone ever in the past

does anyone ever have this problem? does anyone know how to solve it?

i googled about this and nobody seems to have had a solution so far. there are 3-4 posts on xda for z, z1, z ultra and also no solutions
[Xperia Z3 Compact General] phlegmian:
Hello. I'm up to step 43 and am also stuck about where to get 23.1.A.0.690 from? Can anyone help?

Other than that, thanks for the great guide so far!

Ian
[Xperia Z3 Compact General] M1chiel:
It's here http://xdaforums.com/z3-compact/general/list-stock-firmwares-d5803-d5833-t2906706 (Android 5.02), but I think you can omit this step if you decide to flash a newer ROM anyway.
[Xperia Z3 Compact General] phlegmian:
Ok, so I can just flash the latest safe rom from that link? Soz for the questions!
[Xperia Z3 Compact General] M1chiel:
No, in this step you should flash the same build number as the prerooted rom you installed earlier. But I would install a prerooted 5.1 or a 6.0 rom in the first place.
[Xperia Z3 Compact General] phlegmian:
Thanks again I was getting confused with all the different version updates! All done so thanks all!

One last question, if I want to upgrade to a later version (I used 690), do I have to use ROMs, and not Sony OTA updates if I want to preserve the root?
[Xperia Z3 Compact General] Harkebe:
Hi everybody,

Im stuck at the step 20 :

I have done all the previous steps with success :

My phone came back to KitKat 4.4.4 android version (fw 23.0.1.A.5.77)

The point is, when I run the install.bat, it starts the root, but then it says : "Error : Seems your kernel/device is not supported" and then I have to press any key to end...

Where is the problem ? I don't know what to do... :(
[Xperia Z3 Compact General] M1chiel:
Well, the OP indicates you have to downgrade to a kitkat version PRIOR to the one you installed...
[Xperia Z3 Compact General] Harkebe:
Oh yeah, sorry I am not english and this little word has escaped to my mind, thank you very much man :)
[Xperia Z3 Compact General] Harkebe:
EDIT : No problem anymore, i did all the tutorial from the beginning and now it is alright
[Xperia Z3 Compact General] compactor:
I just noticed that there seem to have been made a change with the NUT tools from step 30 and 34.

When creating a pre rooted firmware I used the zip as well as I unpacked it in order to use it for step 34.

However, I'm not sure if my pre rooted firmware is pre rooted at all.

After completing all steps, no su is available. Neither is SuperSU. Recovery is gone as well.

TWRP offers me to install SuperSU but the log from flashing the file tells me to ignore this. I wonder if I just should let TWRP install SuperSU anyway.

The quote above also seems to indicate that I could flash the NUT tools from recovery. Maybe I should do this as well?

Another note: When not unplugging the USB cord (step 42) prior to powering off the device from the recovery, the phone will switch on immediately again before I can perform step 43 - 46

---------- Post added at 05:28 PM ---------- Previous post was at 04:44 PM ----------

Just noticed something else:

Whilst flashing the pre rooted fw I got this.

******************
Boot image patcher
******************
-Finding boot image
--- Boot image: /dev/block/mmcblk0p14
- Extracting ramdisk
--- Failure, aborting

Getting SuperSU installed via TWRP didn't help.

To create the pre rooted FW I used:

D5803_23.5.A.0.575_1293-2052_R5D.ftf (found this via XperiFirm)

UPDATE-SuperSU-v2.76-20160630161323.zip

Z3C-lockeddualrecovery2.8.26-RELEASE.combined.zip

What else could I try to get a rooted MM?
[Xperia Z3 Compact General] fijasko:
you can now install recovery and root directly on unrooted stock .575 for D5803

see here: http://xdaforums.com/z3-compact/general/recovery-root-mm-575-lb-t3418714

and download SuperSu from here: https://download.chainfire.eu/969/SuperSU/UPDATE-SuperSU-v2.76-20160630161323.zip
[Xperia Z3 Compact General] Harkebe:
I have a little problem : I can't convert an app to a system app : "Could not remount /system"
[Xperia Z3 Compact General] HearseRider:
Hey, thanks for the link to direct root for Marshmallow. I tried the link you provided but on running the install.bat I get the error message "Device not supported".

I have the D5833, can you please suggest if there is any other method to root my phone? I'm completely new to rooting and so confused by all these different threads pointing in different directions. My only reason to root is so that I can delete the Sony bloatware from the phone. Your opinion on this matter would be highly appreciated.
[Xperia Z3 Compact General] HearseRider:
God bless you my friend. This boot loop made me **** my pant. Hoping to flash properly this time.
[Xperia Z3 Compact General] dellortoPL:
Hi, after step 26 where i succesfully made the backup I skipped to step 34 and installed dualrecovery, but without all that command prompt skipped to step 38. It installed and is working correctly, now I have stock android 4.4.4 with superSU and dualrecovery, can I install some custom pre-rooted rom like that one

http://xdaforums.com/z3-compact/development/rom-slimm-t3359831

straight from sd card without all the other steps?

EDIT: apparently when you can do it like I did, from step 1-26, then step 34, 38 and after that just flash stock pre-rooted 6.0.1, that's it. Hope it helps folks.
[Xperia Z3 Compact General] MatheusArmada:
When I was gonna backup the drm keys I denied superuser access by mistake and the access keeps being denied to the backup app everytime without giving me the option. Can anyone tell me how to fix that?

Thanks in advance.
[Xperia Z3 Compact General] ValeV008:
Open supersu app, go to setting and check there the options there, they are easy to understand.
[Xperia Z3 Compact General] SonofUgly:
Got stuck in a bootloop when I went to turn my D5803 on after flashing.

Used D5803 Global generic 23.0.A.2.93 (1286-9917) as the link in the OP is down.

Here's the log from flashtool: Pastebin

What do I do now?
[Xperia Z3 Compact General] ValeV008:
Check FAQ in first post in this thread.
[Xperia Z3 Compact General] MatheusArmada:
Ok, so even though I'm granting access I'm having this problem, which I don't understand seeing as the phone has been rooted correctly.

Does anyone know what could be the problem and how to solve it? Thanks.
[Xperia Z3 Compact General] ValeV008:
Do you have USB debugging ON?
[Xperia Z3 Compact General] MatheusArmada:
Yes, I didn't turn it off. I literally just finished rooting and started the process of doing this backup like the tutorial tells you to. I'm still in airplane mode, but I don't think this could be the problem.
[Xperia Z3 Compact General] ValeV008:
Googling the problem is the first thing you should do. For instance:

http://forums.androidcentral.com/an...daemon-not-running-adb-server-didn-t-ack.html

http://stackoverflow.com/questions/5703550/my-eclipse-adb-server-didnt-ack-failed-to-start-daemon

I honestly dont know the answer to your problem.
[Xperia Z3 Compact General] MatheusArmada:
Eh, that's fine, I thought I'd ask here because I know people do that and sometimes other people have a quick solution, and do my research at the same time.

I really have no experience doing this stuff and now I'm wondering if my phone has even been rooted. I didn't have any problems in the process and I have supersu, but I recall reading that same message about daemon not running and adb not acking when I was running giefroot.
[Xperia Z3 Compact General] ValeV008:
Fair enough. Try this app: https://play.google.com/store/apps/details?id=com.joeykrim.rootcheck

It will tell you if your phone is rooted or not.
[Xperia Z3 Compact General] SonofUgly:
Tried reflashing it quite a few times, reinstalled flashtool's drivers, and tried the other 23.0.A.2.93 global firmware, still stuck though.
[Xperia Z3 Compact General] ValeV008:
Try different firmware, I think generic global didnt work for me either. Pick one from closest country to you.
[Xperia Z3 Compact General] SonofUgly:
Welp, tried 13 different 23.0.A.2.93 firmwares and none of them worked... Luckily I was able to go back to its original firmware though.
[Xperia Z3 Compact General] L.Lmar:
For marshmallow 6.0.1 on step 40 must flash flashable firmware and RecRootV4 otherwise you loose recovery and root
[Xperia Z3 Compact General] mtsalheen:
Flashing New firmware 23.5.A.1.291

Hi, I'm on D5803_23.5.A.0.575 rooted with RecRoot v4.0 and bt locked, would this method work for New firmware 23.5.A.1.291?
[Xperia Z3 Compact General] toxic-hero:
yes, i did it without problems. you only need to uninstall Xposed (if you have it on your system) prior to flashing new ROM (you can flash it back later).

you also don't need to wipe user data and this method will work with all future 6.0.X Android versions.
[Xperia Z3 Compact General] bilboa1:
you don't really need recroot, its just a helper script (but you can use it if you want)

I updated the OP with MM instructions, though they're pretty much the same as the previous version.

On the bright side theres plenty of prerooted roms and dualrecovery has good scripts now which makes the process a lot faster/easier for new comers
[Xperia Z3 Compact General] toxic-hero:
hey!

i used RecRoot because the method that worked for KK and LP didn't work for MM. i wasn't the only one that lost root doing it with Dualrecovery on MM. are you sure what you are saying is true, have you tried to do it yourself?
[Xperia Z3 Compact General] bilboa1:
yes, i always try as i make the update to the post just to be sure i dont miss anything - did use latest dualrec though i dont know if theres been updates

also tested the drmfix which works quite well, so im guessing people could almost root the "regular way" nowadays btw

edit: looked this up a bit, depending how you install supersu it may not show up in apps without fixes. you can also just install it from the google play market instead, since the su binary is there things will work - both ways are ok (edited faq as well)
[Xperia Z3 Compact General] Matteo Mazzu:
I lost my DRM. I've installed .93, rooted, and now I'm trying to restore my DRM backup, but every time I try to, it comes out "Find.exe - Impossible finding point of ingress" (not sure is the correct traduction). My backup it's there and fine, I didn't touch anything from when I did it. Any idea what I should do??

EDIT: SOLVED
[Xperia Z3 Compact General] Flamefire:
Hi bilboa1

thanks for the tutorial which I used some time ago and also made pre-rooted images after updates.

I still find myself wondering how to recreate a pre-rooted image after there was an update. I don't want to follow the tutorial completely as I already have root. But when I look on creating a pre-rooted FW the tutorial says one only needs SuperSU, PRFCreator and XZDualRecovery.

But looking at other threads I find people mentioning TWRP, recRoot, bloated, odexed etc. I also read (although I can't find where anymore) that XZDualRec is deprecated/should not be used anymore

Could you dedicate a part of the tutorial on updating from a rooted device for current versions?

I think it would also be great to state something more about OTA, as e.g. (to my understanding) an OTA will most likely erase root and requires the whole down- and upgrading to regain it.

Also: XZDR is now combined. No flashable and installer anymore which could be confusing for new users.
[Xperia Z3 Compact General] varxx:
How can I replace DRM keys and get all the way back to 23.5.A.1.291?

I've finally settled on stock 23.5.A.1.291. I think I prefer it to Concept, though Concept is good.

My question: how can I follow this tutorial but get all the way back to 23.5.A.1.291? Do I really have to revert to KitKat to do the DRM key "repair" (I realize it's not restoring the keys).

Thanks.
[Xperia Z3 Compact General] fabiosirigu:
At step #40 I'm supposed to flash the non-pre-rooted fw with "system" deselected, but the fw is a zip file therefore I cannot do it through Flashtool. So I just skipped this step, system is rooted and working fine but I haven't got recovery! How can I get recovery back? Thanks :)
[Xperia Z3 Compact General] L.Lmar:
If system is rooted you can try TWRP dd Install Method described here https://twrp.me/devices/sonyxperiaz3compact.html

or if you on Windows, run install.bat from here http://xdaforums.com/z3/general/recovery-root-mm-575-291-lb-t3435214

or install.bat of RecRootV4 from this post http://xdaforums.com/showpost.php?p=66691018&postcount=578 gives you recovery back (works on .575 firmware)
[Xperia Z3 Compact General] bobbychivescu:
Does it work on D5883?

I'm on D5883 with .291 with marshmallow. Does this work to downgrade to a rootable D5803 fw?
[Xperia Z3 Compact General] rochian_adrian:
Wrong post. sry
[Xperia Z3 Compact General] tahir501:
A question about DRM Keys restore

I had made DRM keys backup of my Xperia z3 compact. at that time my xperia was running android 4.4. and now i am on android 6.0.

Can I restore those DRM keys backup on Android 6.0 ???

Thanks in advance.
[Xperia Z3 Compact General] fluffi444:
I made my backup with KK also and restored it once on LP without issues....

I guess it works also with MM.

But no 100% proven because not tested by myself...
[Xperia Z3 Compact General] EdenC996:
Whenever I try and downgrade my firmware (following the instructions COMPLETELY) I just end up with a boot loop. I've factory reset the phone too, yet I still get this problem.

Currently on 6.0.1 Marshmallow on a D5803
[Xperia Z3 Compact General] yigit84:
---------- Post added at 10:46 AM ---------- Previous post was at 10:42 AM ----------

I tried to root my device but I could not. I followed many things but nothing worked. So I tried to install prerooted firmware. Android 6.0.1 - 23.5.A.1.291 version

I got this error message.

[/COLOR]Step3 : Setup of dual recovery.

=============================================

Look at your device and grant supersu access!

Press any key to continue AFTER granting root access.

/system/bin/sh: /system/xbin/su: not found

Press any key to continue . . .

/system/bin/sh: su: not found

I don't get any message on my device about granting root access.

I have xperia z3 compact D5803, Android 6.0.1 - 23.5.A.1.291 UNROOTED version. I want to root my phone and I followed the steps but as you see above there is an error message. I can't continue other steps because of this interruption.

Can you help me for rooting my device?

33- Copy resulting "pre-rooted" fw to /sdcard0 on your phone (it means copy flashable.zip from the PRFC directory to the "internal storage" directory of the phone)

34- Get Dual Recovery installer this time, from http://nut.xperia-files.com/ you want Z3C-lockeddualrecoveryX.Y.Z-RELEASE.installer.zip notice how thats 'installer' this time, not the same file as in 30!

35- Unzip it

36- start install.bat and follow instructions (hit 1 (allow adb/root on the phone as needed)

I could not pass beyond step 36.

Main reason for trying to root my device is when I got the latest update 6.0.1, my phone's volume gone low. Call ringtone volume and video volumes, message tone volumes are very low. I searched it why and found that I have to wipe cache. But I can't because my device is not rooted. That's why I am trying to find a solution.

Can you help?
[Xperia Z3 Compact General] b4b4.4l1:
Hey guys, this could be the wrong place, but I don't know where to ask this.

Ftf file I downloaded is not seen in flashtool. I have flashtool 0.9.22.3 installed on win7 32bit system. Put the ftf file in .firmwares folder already, but nothing. I have downloaded 2 different ftf files, so I think it's not the issue.

Any help please? I've searched the forum and also did googling, but nothing at all :(
[Xperia Z3 Compact General] nri_tech1183:
Guys is there any root available for Xperia z3 DUAL models: 6688 and 6633.

My two friends want to root their dual sim z3 phones. Please suggest as to what root method is available for dual sim Z3 models on XDA.
[Xperia Z3 Compact General] NotOverHere:
Follow this for rooting new marshmallow firmware

http://xdaforums.com/z3-compact/general/recovery-root-mm-575-lb-t3418714
[Xperia Z3 Compact General] brodo:
Try this: Check 'USERDATA' in the section 'wipe' in Flashtool before flashing the downgrade version.
[Xperia Z3 Compact General] tomzzi:
I will ask here...

How to deodex rom .291? I have created prerooted .291 CE1 but i dont know how to deodex...
[Xperia Z3 Compact General] nri_tech1183:
Is there similar Root method available for Xperia Z3 D6653 model? I dont want to unlock bootloader.
[Xperia Z3 Compact General] fijasko:
http://xdaforums.com/showthread.php?t=3435214

There are other methods too, if you're on LP, but you should check them out in the Z3 forum.

This is for Z3 Compact only.
[Xperia Z3 Compact General] nri_tech1183:
Can someone post rooted ftf/zip for D6653?

I have rooted my phone on kitkat and works good.

But whenever I flash this MM rooted http://xdaforums.com/z3/general/6-0-1-z3-23-5-1-291-prerooted-recovery-t3432722 my phone stucks on sony logo.

This happens to others users as well ad the OP doesn't reply. Seems its only binded to AU fw.
[Xperia Z3 Compact General] grinna:
This procedure on page 1, the end of the whole process, the bootloader will be unlocked or locked? and the camera's image quality is compromised?
[Xperia Z3 Compact General] ilfavi:
I followed the procedure in the opener 2 times with 2 different prerooted roms and both times I ended with an updated, rooted phone but without recovery installed on. I noticed that after step 38 (DO NOT REBOOT) the phone always tries to reboot even I select "power off" in recovery and I have to manually force the power off via power+vol up. I don't know how to install the recovery.
[Xperia Z3 Compact General] Ponteral:
problem with root

Hi guys,

I ahve problem with this method. I made it many times for KitKat and every time it was okey. Now when I made step by step by manual on first page. I'm trying it on 6.0.1. .291 fw. I have problems. When I flash my own pre-rooted fw or from xda pre-rooted and I flash fw exlude system I got my system without SuperSu (root) and also without dual recovery. Can somebody help me and tell me, where I make mistake, or what I do wrong?

I started to be flustrated. I tried it maybe 50 times from yesterday, but without succes. Thank you for help in advance.
[Xperia Z3 Compact General] mulp:
Hello, Is there maybe some one that will do root "exploit" for new 6.0.1 android (23.5.A.1.291) using the new Dirty COW bug ?

https://github.com/timwr/CVE-2016-5195.
[Xperia Z3 Compact General] raisinmeister:
Fallen at the first hurdle! *facepalm*

Hi there,

This is the first time I'm venturing into rooting etc and I seem to have failed very early on! I am having real trouble downloading the flashtool... Any suggestions or alternatives?

Also, as I am attempting to root a brand new phone that I haven't used yet, is there anything I need to do differently or don't need to worry about?

Cheers all, and please be gentle with me, I'm new to this world! :eek:
[Xperia Z3 Compact General] NotBad4U:
root then backup, and not remove bootloader?

it is necessary for when you have done the backup, and then remove the bootloader. I'm just interested to root my Xperia m5. with super su ?? in the settings it says that "rooting satus: Bootloader unlock allowed: yes" so it means that i can root my phone with super su zip file?? and still have the keys after unroot?

will the backup work whit my phone whit windows vista? or mac?

phone: xperia m5
[Xperia Z3 Compact General] sgr1:
Hi, I successfully rooted my phone with this method, however, my notification bar is not working anymore (can't pull it down). Any ideas ? Using KitKat 23.0.1.A.5.77. Thanks !
[Xperia Z3 Compact General] Neutrino1986:
Same here. It used to work for updating to Android 5. But for 6.0.1 I always end up without root. NDR Utils are installed in 6.0.1, but crashing on starting the app. I also tried to exclude SYSTEM and PARTITION when reflashing the unbranded firmware via flash tool.

Any ideas?