yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Compact General] ValeV008:
Hey all,

I am new to rooting phones, and I managed to come to

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

I downloaded "23.5.A.0.575 - Unbranded - Italy (1289-4008)" (I'm not from Italy) and did as guide said. But when I opened phone with holding volume down button + putting in usb cable, flashtool didnt want to flash the phone - it said something about access denied for file named "fota-reset.ta".

Can anyone help me with this error? Did I download the wrong fw?

(currently I flashed back to downgraded version (kitkat) to have access to basic functions)

logs from flashboot:

EDIT: I fixed it, it was a problem with windows and my permissions to file "fota-reset.ta".
[Xperia Z3 Compact General] pedro5148:
I am now coming to the forum, is to root on 6.0.1 ??

tried this process and not worked, the apk supersu installed this however does not work the root
[Xperia Z3 Compact General] Klunst:
Hi. I've followed all the insrtructions above and now have a 5.0.2 Rooted Android on my phone. But the things is, I'd like Marshmalow. I've downloaded a stock, pre-rooted MArshwmalow (or so I think) : http://xdaforums.com/z3-compact/development/d5833-lollipop-pre-rooted-xzdr-2-8-14-t3091372.

I thought it would work on my bootloader-unlocked Z3 Compact, but I cannot access to recovery (I just understood it's kinda not possible), And I don't know if I can flash it with FlashTool. Can someone please enlight me about it ? Is it possible ?

Thanks in advance.
[Xperia Z3 Compact General] limited experience:
Lazer 72

Help was grealty appreciated all works fine thanks on Z3 up running using.

My T9 tablet which i did same preiously unlocked it placed into developer mode and usb ect and rooted it. Would i be correct in the assumption that it is the same procedure as you described for Z3, in as much i can use the same flashtool from http://www.flashtool.net/downloads.php but i need to find the .ftf firmware file for tablet from somewhere else.

Do i also need the Chinese bits and pieces or could i just do tablet as a basic tablet using a stock android system, i read somewhere on here you can download a package to install that gives all basic google stuff.

T9 Currently runs on version 4.4.4 and they doing no updates and explained i need to arrange myself :(

Model version T9 Tablet, V1.08_20150326 if helps

I noticed also on the T9 an option exists for a local update, it reads

1. The update package named update.zip, stored in the SD card root driector.

2. Click {confirm}

Then below that two buttons, confirm or quit.

Is this possibly a flashtool auto built in

thanks

N
[Xperia Z3 Compact General] ValeV008:
I succesfully rooted my z3 compact to marshmallow 6.0.1 (build number: 23.5.A.0.570). I got the pre-rooted firmware from here. Just follow guide in on first page and use pre-rooted image from given link.
[Xperia Z3 Compact General] Lazer72:
Glad you got it working.

FlashTool is only designed to work with Sony devices.

If you want to flash a ftf you'll have to find the respective tool.

Doing the built in update should work fine.
[Xperia Z3 Compact General] subtop:
Does the method first post still work ? My fw is 5.1.1, build 23.4.A.1.264.

If I understood correctly, in the end, you still got sony official fw, but with root permissions ?

Thx !
[Xperia Z3 Compact General] Lazer72:
Correct
[Xperia Z3 Compact General] mastastealth:
So I just followed everything here but I think I screwed it up along the way. :(

On step 40, once I'm in the recovery (TWRP it looks like, but I thought i installed XZ? Are they the same?) and flash the zip, when I went to the power off option it said I didn't have root (which I know I did before as I saw the SuperSu icon). It told me to swipe to install, but it seemed to have quickly powered off instead (unless the install is that fast). After booting into my newly flash, supposedly pre-rooted ROM which even has NDR Utils installed (of which I used Marshmallow, FWIW) I see that I do not actually have root. -_-

Is there no way to add it back or do I really have to start over and how do I prevent this from happening again?
[Xperia Z3 Compact General] Dany1800:
I guess I made a mess

:( I've really tried to do my best to have a most useful OS on my phone, I tried to follow all the instruction but nothing. I think I DELETE everything from my phone even the undeleteble stuff :( I don't know what to do know, my z3c in not turning on anymore, it keeps loading on the blue flow page, anyone can help me? I wanna go back to marshmellow :S
[Xperia Z3 Compact General] Lazer72:
What you want is just to flash the stock firmware, you have no need of root. You will lose all data that is not backed up.

This is what you need to do;

You must have access to a windows pc.

1. Download the .ftf firmware file for your phone from here:http://xdaforums.com/z3-compact/general/list-stock-firmwares-d5803-d5833-t2906706

Choose the Stock 6.0.1 for the D5803 or D5833 depends on which phone you have, country doesn't matter.

2. Download and install Flashtool onto your pc from here http://www.flashtool.net/downloads.php

3. Place the downloaded .ftf file into C:\Flashtool\firmwares folder on your pc.

4. launch Flashtool and wait for it to complete the sync, then click the lightening symbol, click ok, then select the firmware in the list.

5. Check all the boxes in the WIPE catagory

7. click flash and follow on screen instructions.

8. wait for it to finish and tada, new phone.
[Xperia Z3 Compact General] eranyanay:
Reached step 40, selected Power off and removed USB cable, but device simply started rebooting instead, and nothing else can be done.

I can load recovery but that's CWM (When did I install CWM?) and that's it. I can only repeat the process but it ends up the same way.

What am I doing wrong?

It'll boot, Show the SONY logo and vibrate twice. Thats all.
[Xperia Z3 Compact General] kuebk:
While booting when the green LED is on, when you press: volume up = CWM, volume down = TWRP.
[Xperia Z3 Compact General] Dany1800:
System.sin error

I followed all the instruction but close to the end of the process comes up a red error saying SYSTEM.SIN FINISHED WITH ERRORS, it can be an unlocking issue I one yesterday? I just want to get back a the very beginning with root and everything, thanks for reply. With this error the for is stuck on the main SONY XPERIA page, black and white.

INFO - Processing system.sin

12/029/2016 14:29:43 - INFO - Checking header

12/029/2016 14:29:43 - INFO - Flashing data

12/030/2016 14:30:30 - ERROR - Processing of system.sin finished with errors.

12/030/2016 14:30:30 - INFO - Flashing finished.
[Xperia Z3 Compact General] Dany1800:
Managed!

I managed to put the 4.4.4. Firmware which is listed as D5803_23.0.A.2.98_Generic IT but it does not update to the latest firmware now :S SO stressful .
[Xperia Z3 Compact General] Dany1800:
SORTED!

I finally found a compatible 4.4.4. to reset completely my phone and after some try I put back the 6.0.1, looks ok, thanks.
[Xperia Z3 Compact General] Ostrya:
How did you manage that, might I ask?

I tried to do the same but when it comes to flashing of SuperSU I get the message:

****************

SuperSU installer

*****************

- Mounting / system / data and rootfs

- Extracting files

- Detecting system compatibility

- System-less mode, boot image support required

- Creating image

- Mounting image

- Creating paths

- Removing old files

- Placing files

******************

Boot image patcher

******************

- Finding boot image

--- Boot image: / dev / block / mmcblk0p6

- Extracting ramdisk

--- Failure, aborting

******************

So, what's up with that?
[Xperia Z3 Compact General] ValeV008:
I have no idea, I had no knowledge of rooting prior to this guide. I just followed it and it workes. Hopefully someone else from this forum can help you with this error.
[Xperia Z3 Compact General] Ostrya:
Oh, I see. Myself, I followed the steps in this guide. Could it be that you used the steps detailed in the prerooted fw-thread?

Anyway, I'm feel inclined to use this guide for it as I'd like to avoid unlocking the bootloader seeing as it would **** with the DRM.

Is there a way of rooting marshmallow properly w/o touching the bootloader? :confused:
[Xperia Z3 Compact General] ValeV008:
No, I followed this guide and it worked, no problems. So if you follow it, you should be able to root it.
[Xperia Z3 Compact General] Ostrya:
Ok, that's weird. Which version of SuperSU did your pre-rooted firmware have?
[Xperia Z3 Compact General] ValeV008:
Not sure, I think SuperSU 2.71.
[Xperia Z3 Compact General] phoenix31121:
nut's dual recovery doesnt seem to be compatible with 6.0.1 atm, serajr's is difficult to follow as v2 starts with "How to uninstall this and the previous version" which assumes that v1 is installed, and v1 is far from my understanding. is nut's dual recovery on the way?
[Xperia Z3 Compact General] commander-keen:
I successfully applied the tutorial to downgrade from 6.0.1 to 4.4.4 and update to 6.0.1 (patch level of february from the linked thread with the stock ROMs).

When Sony offers to update the system now (probably patch level for March or so), can I take that over the air or will root be lost because it flashes a complete new image?
[Xperia Z3 Compact General] commander-keen:
Did you preserve root?

I already lost root after flashing 6.0.1.

The whole thing went fine when I upgraded to Android 5.

Anyone succeeded with root to 6.0.1?
[Xperia Z3 Compact General] chris5s:
Yes root is available for 6.0.1

Search this forum for RecRoot v4, use pc to install.

Or download pre-rooted ROM and flash.

It's out there!
[Xperia Z3 Compact General] fango_vk:
.. where? .. I see pre-rooted Austria-Mobilkom-A1_PREROOTED_D5803_23.5.A.0.575_1289-9111_R2D, but where is pc root option?

thanks!
[Xperia Z3 Compact General] :
Im RecRoot it says that root is a prerequisite for using it. Am I misimterpreting you? Sounded that root can be achieved by recroot?

Gesendet von meinem D5803 mit Tapatalk
[Xperia Z3 Compact General] chris5s:
Sorry, am confusing myself lol.

Made my own pre rooted ROM using RecRoot, SuperSu and TWRP with 6.0.1 firmware and lost root/recovery after updating busybox binary. Got it back by conneecting phone to PC and running install.bat from zip file. So yeah, maybe not strictly true but can still get/make rooted 6.0.1

BTW, I came from rooted LL ROM, this helps too :good:
[Xperia Z3 Compact General] ValeV008:
I have a problem.

I successfully rooted and upgraded back to latest firmware, but DualRecovery isn't installed. I installed app NDR Utils and it says too, that I need XZDualRecovery. For firmware I used 23.5.A.0.570 - Unbranded - Germany (1289-4696) - SuperSU 2.71 + XZDualRecovery ~made by [MENTION=7485925]TomFree[/MENTION].

Why watsn't DualRecovery installed?
[Xperia Z3 Compact General] chris5s:
Not sure but I have read that dual recovery doesn't work with Marshmallow. You have to use TWRP.
[Xperia Z3 Compact General] ValeV008:
Trying it now. I'm stuck at points 34 - 38 (installation of dualrecovery). Since I wont install it, do I install TWRP? If yes, how? Or do I just flash pre-rooted zip (point 40) ?
[Xperia Z3 Compact General] chris5s:
Either make your own pre-rooted zip, or flash a ready made one.

This is mine here - Nordic Unbranded .575 with TWRP and SuperSu.

Peace.
[Xperia Z3 Compact General] ValeV008:
So how do I get to recovery mode, to flash pre-rooted zip?

EDIT: I tried this guide, but it said "something went wrong".
[Xperia Z3 Compact General] chris5s:
You have a rooted rom? Did you try this?

"dd Install Method (Requires Root):

Download the latest image file (.img) from the download link above. Place it in the root of your /sdcard folder and rename it to twrp.img. Run the following commands via adb shell or a terminal emulator app:

su

dd if=/sdcard/twrp.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel"
[Xperia Z3 Compact General] ValeV008:
I have rooted now, yes. Do i try that on downgraded fw (23.0.A.2.93) or on MM?
[Xperia Z3 Compact General] chris5s:
If you have root on MM, you could try that.

Or if you have RecRootV4_Combined, unzip it on a pc, and run install.bat with your phone connected and in usb debugging mode etc. Have the screen open when you run it and accept the prompt that pops up. With rooted rom it should work - that's what I did after losing recovery when I updated busybox....
[Xperia Z3 Compact General] ValeV008:
I just found out that my bootloader is locked (from here, mine says "bootloader unlock allowed: yes"), but I have phone rooted. Is it even possible to install TWRP with bootloader locked? Or does TWRP do exactly that - unlock bootloader?
[Xperia Z3 Compact General] chris5s:
My bootloader is locked, and not possible to unlock. So TWRP can be installed with bootloader locked, and it does not unlock it.

However, if yours can be unlocked, you may have more possibilities for installing different custom ROMs, once you have TWRP installed.

Peace.
[Xperia Z3 Compact General] ValeV008:
I understand, thank you.

So I tried dd install method and it looks like it worked:

shell@D5803:/ $ su
su
root@D5803:/ # dd if=/sdcard/twrp.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel
ard/twrp.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel <
24772+0 records in
24772+0 records out
12683264 bytes transferred in 1.681 secs (7545070 bytes/sec)

But I dont TWRP manager still says I dont have TWRP installed, so I'm not sure what it did.

If I try to install TWRp via TWRP manager, it says "to avoid and issues, make sure your bootloader is unlocked.". So I have to unlock it? How? I also read that if I unlock bootloader, camera quality is worse, which I dont want.
[Xperia Z3 Compact General] chris5s:
Have you tried rebooting the phone? If it vibrates on the Sony splash screen, press volume down and it will take you to TWRP if it installed correctly.

As I said, you don't need to unlock your bootloader. The other option is to use RecRootV4 as I mentioned above.

If this all fails, check you actually have root?

Peace.
[Xperia Z3 Compact General] ValeV008:
Oh, I did this and I'm in TWRP now. So what does this mean? That everything is ok? How do I install custom ROM now? (I mainly want to debloat it)
[Xperia Z3 Compact General] chris5s:
Well done, you have custom TWRP recovery installed :laugh::good::good:

Head on over to the development section of this forum and check out some ROMs!

If you leave bootloader locked, there are some to choose from in the Android Development section.

Otherwise if you want to unlock your bootloader, google it and see if its something you want to do, and how its done.

Peace.

---------- Post added at 12:10 PM ---------- Previous post was at 12:09 PM ----------

Or download a pre-rooted flashable zip and customise it yourself :good:
[Xperia Z3 Compact General] ValeV008:
Thanks a lot for your help, couldn't have done it without you, I really appreciate it. Will go check out development section right now. :)
[Xperia Z3 Compact General] Lazer72:
You can only flash a custom ROM onto a locked bootloader if it is based on the stock kernel.
[Xperia Z3 Compact General] TomFree:
I included the extracted Recovery Zip from a pre-rooted image (Unbranded - Gerneric Australian (1288-4214)[/URL] - SuperSU 2.71 + TWRP 3.02-0 ~made by [MENTION=5997713]nzzane[/MENTION]) and included it when I created my own german pre-rooted ROM using the PRFCreator.

However, it might be the TWRP. I just checked the zip (it has the name dualrecovery.zip hence my wrong deduction) and it includes a file called "boot_twrp_recovery.sh" and "install_twrp_recovery.sh", so it might as well be the original TWRP image.
[Xperia Z3 Compact General] kuebk:
07-04 22:51:38.905 W/ric ( 9815): type=1400 audit(0.0:1194): avc: denied { read } for path="/system/bin/sh" dev="mmcblk0p23" ino=985 scontext=u:r:ric:s0 tcontext=u:object_r:shell_exec:s0 tclass=file op_res=-13 ppid=1 pcomm="init" tgid=1 tgcomm="init"
07-04 22:51:43.935 W/ric ( 9816): type=1400 audit(0.0:1195): avc: denied { read } for path="/system/bin/sh" dev="mmcblk0p23" ino=985 scontext=u:r:ric:s0 tcontext=u:object_r:shell_exec:s0 tclass=file op_res=-13 ppid=1 pcomm="init" tgid=1 tgcomm="init"
07-04 22:51:48.975 W/ric ( 9818): type=1400 audit(0.0:1196): avc: denied { read } for path="/system/bin/sh" dev="mmcblk0p23" ino=985 scontext=u:r:ric:s0 tcontext=u:object_r:shell_exec:s0 tclass=file op_res=-13 ppid=1 pcomm="init" tgid=1 tgcomm="init"

Something like these spams my logcat every 5 seconds, the file seems to be somehow root related. Is it really required for this to launch every 5 seconds?
[Xperia Z3 Compact General] RaXelliX:
Same here: http://xdaforums.com/apps/supersu/supersu-related-boot-issue-long-boot-t3343405

Only in my case this happens to cause me to be stuck on boot. I havent checked logcat while running but if i remember correctly this did not happen while the phone was up and running.
[Xperia Z3 Compact General] chocowilliam:
I have a Z3C Docomo locked. If I flash an FTF will it unlock and can use a different sim?
[Xperia Z3 Compact General] ArmaghRed:
error when rooting

Hi,

Wondering if anybody can help me, I'm completely new to this stuff and i'm trying to root my Sony Xperia Z3 Compact. After running the install.bat at step 20 the following comes up after "sending files to device":

Error: Seems your kernel / device is not supported

error: only position independent executables (PIE) are supported.

Press any key to continue . . .

Any idea how I can fix / get past this so I can root my phone?

Thanks.
[Xperia Z3 Compact General] chris5s:
It's been a while since I did this but seem to remember getting that error when I used the wrong version of KitKat.

Have you downloaded the right ROM for rooting?

Peace.

---------- Post added at 08:06 PM ---------- Previous post was at 08:04 PM ----------

No, it won't unlock your phone to use different sim :)
[Xperia Z3 Compact General] ArmaghRed:
Any chance you could point me to a download link of the one I should be using? UK

Would much appreciate it
[Xperia Z3 Compact General] jassi0709:
To the person in charge, I would suggest to edit the guide like following:

7. Just select the name of the fw you downloaded and click on "Flash". Note: select both wipes in case you are coming from different android version.

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.

Thank you for the help!

Have a nice day.

Jaski
[Xperia Z3 Compact General] chris5s:
Hi, not at my PC just now, but pretty sure this one (UK version .105) is what I used :good:
[Xperia Z3 Compact General] ArmaghRed:
Thanks for that! Also, one last question, I am going to follow this guide from scratch with the rom you linked me to, should my bootloader be locked or unlocked? Sorry, like I said, completely new to this stuff.
[Xperia Z3 Compact General] chris5s:
No worries. Locked bootloader is fine (mine is locked and now running on rooted MarshMallow)

:good:

Peace.
[Xperia Z3 Compact General] ArmaghRed:
Great, thanks for the help!

---------- Post added at 09:21 PM ---------- Previous post was at 08:38 PM ----------

[MENTION=1795513]chris5s[/MENTION]

Sorry, another question! After "sending files" (during rooting), it says:

Running exploit

Make sure you have enabled "Allow mock locations"

in Developer Settings

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

Please wait for the device to reboot

Is it supposed to reboot the device by itself (over 5mins passed now and it hasnt) or should i reboot the phone (turn it on then off?)?

Allow mock locations is on.
[Xperia Z3 Compact General] chris5s:
IIRC, it should have rebooted itself...watch for any adb access prompts that come up on the phone screen.
[Xperia Z3 Compact General] ArmaghRed:
Nothing has came up and it still has not rebooted on it's own, should i go ahead and turn it off and on myself?
[Xperia Z3 Compact General] chris5s:
Sure, go ahead. You have followed all steps in the original post? Airplane mode, USB debugging etc all allowed?

It's easy to miss something in all those instructions. Just take your time and read everything carefully :good:
[Xperia Z3 Compact General] ArmaghRed:
Yep, every step, i will turn it off and on now

EDIT: It after manual restart it now says error, device not rooted, i will try it again.
[Xperia Z3 Compact General] chris5s:
If that doesn't work, run the exploit again. It may need a couple of runs to work.
[Xperia Z3 Compact General] ArmaghRed:
@ chris5s

Same thing again:

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

= =

= giefroot v3.1 =

= created by zxz0O0 =

= =

= Many thanks to: =

= - [NUT] =

= - MohammadAG =

= - Keen Team =

= =

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

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

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

Waiting for Device, connect USB cable now...

Make sure that you authorize the connection

if you get any message on the phone

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

Device found

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

Sending files

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

15 KB/s (259 bytes in 0.015s)

1399 KB/s (22360 bytes in 0.015s)

14 KB/s (237 bytes in 0.015s)

13 KB/s (13592 bytes in 1.000s)

1 KB/s (1716 bytes in 1.000s)

2153 KB/s (34473 bytes in 0.015s)

5098 KB/s (4016989 bytes in 0.769s)

5224 KB/s (657704 bytes in 0.122s)

47 KB/s (752 bytes in 0.015s)

Invalid APK file: exploitServiceApp.apk

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

Running exploit

Make sure you have enabled "Allow mock locations"

in Developer Settings

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

Please wait for the device to reboot

Press any key to continue . . .

Error: device not rooted

Press any key to continue . . .

Doesn't auto reboot after "Please wait for the device to reboot", and "Error: device not rooted". Any ideas?

I see it also says "Invalid APK file: exploitServiceApp.apk" under "sending files".

Thanks for all the help!
[Xperia Z3 Compact General] chris5s:
Where is that apk coming from? Maybe try downloading giefroot again if it's part of that. If you immediately run giefroot again do you get same error? (without manually rebooting)

---------- Post added at 10:14 PM ---------- Previous post was at 10:03 PM ----------

Also checkout the giefroot thread itself. Some have same problems, solutions posted. Use the "search this thread" box and input "invalid" and check the results :good:
[Xperia Z3 Compact General] ArmaghRed:
Brilliant, thank you, seems to have worked now. I re-downloaded giefroot, this time from giefroot.org and disabled antivirus etc before extracting the zip. Thanks so much for all your help. Time to start step 22!

---------- Post added at 10:33 PM ---------- Previous post was at 10:16 PM ----------

Any chance you could link me directly to the file needed in step 30?

Thanks mate!
[Xperia Z3 Compact General] chris5s:
Cool. Once rooted, you can flash any ROM that uses the stock kernel (ROMs here will usually state locked or unlocked bootloader (LB or UB)), go for ROMs for locked bootloader :good:

Here is my own pre rooted MarshMallow ROM, runs like a dream once debloated ;)
[Xperia Z3 Compact General] ArmaghRed:
Thank you!! Am I right in thinking, because I have your ROM now, I can skip to step 33?
[Xperia Z3 Compact General] chris5s:
Once you have twrp recovery installed (it's dual recovery wth kk right? But doesn't matter) then you can go ahead and install any custom ROM. With mine it will install only twrp recovery (that's all that works with Android MM) and pre rooted ROM :good:

Short answer - yes! :)

---------- Post added at 10:57 PM ---------- Previous post was at 10:50 PM ----------

Z3C-lockeddualrecovery2.8.26-RELEASE.combined.zip from here