yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Compact General] yigit84:
I did it but cmd screen gived a lot of errors about deamon. Nothing changed. My device is still unrooted :(

I will try to install prerooted firmware 6.0.1 from http://xdaforums.com/z3-compact/development/list-pre-rooted-firmwares-6-oct-2015-t3218820

Prerooted fw is in .zip file extension. How can I flash it? I am using flashtool. Flashtool can't find the file in .zip format. I changed it to .ftf but nothing changed. Extracted the file and still nothing changed.

How can I install prerooted firmware 6.0.1 zip extension file to my device by using flashtool?
[Xperia Z3 Compact General] casouzaj:
If you had Flashtool running in background whilst launching install.bat, you, most probably, faced some problems. Kill Flashtool entirely beforehand. By the way, you need a custom recovery, such as TWRP, to install a ROM which comes in zip format. That's exactly what we are trying to accomplish here!
[Xperia Z3 Compact General] paleee:
Thanks! That was the solution for me, I extacted both zips and tried to flash only kernel.sin file. :$ Maybe first post should be updated with this info for noobs like me. :D

Anyway, when I started the script, got an ADB error: adb server version (32) doesn't match this client (36). So I copied adb*.* from flashtool's x10flasher_lib folder over files folder, it solved that mismatch error. :)
[Xperia Z3 Compact General] russel5:
Please read careful, what i wrote in first post long time ago :p

* added stock kernel for FlashTool (see attach). just change .zip to .ftf
[Xperia Z3 Compact General] b4b4.4l1:
Hey guys, this could be the wrong place to ask, but please answer if anybody knows.

Installed flashtool on 32bit win7, flashtool version 0.9.22.3, but ftf file is not shown. I've tried two different files, but still nothing.

I've tried searching the forum and also googling but none. Please help :(
[Xperia Z3 Compact General] Eule1408:
You have to copy the ftf to the firmware folder of flashtool.
[Xperia Z3 Compact General] b4b4.4l1:
Ofc I've done that. Tried reinstalling and also had Java installed properly. Nothing yet so far.

What did I miss? :(
[Xperia Z3 Compact General] yigit84:
http://www.androidpolice.com/2014/10/02/unlocking-the-bootloader-on-sonys-xperia-z3-and-z3-compact-causes-poor-low-light-camera-performance-thanks-to-drm/
[Xperia Z3 Compact General] Dworkin5578:
Hello guys, a question

I'm .575 with root & recovery, from which steps should follow
[Xperia Z3 Compact General] casouzaj:
I suppose you want to upgrade to the 23.5.A.1.291 build and keep root and recovery, right? I see two ways:

1 - use Flashtool to flash a 291 ftf, but exclude the kernel. Then, boot your phone up, enable USB debugging and run the install.bat. Once booted into TWRP, install the SuperSU zip and, optionally, other zips as well. Just disconnect your phone from your PC to keep it turned off, and flash the 291 kernel back. Boot it up and you're done!

2 - since you already have recovery in your current 575 setup, you could simply install a pre-rooted 291 ROM.

Your choice!
[Xperia Z3 Compact General] Dworkin5578:
"suppose you want to upgrade to the 23.5.A.1.291"

Yes, thats what im talking about ----> thanks very much dude!
[Xperia Z3 Compact General] Akatsuki8897:
Hi i ve successfuly Rooted using this method and thanks alot but i don't want twrp can i remove it
[Xperia Z3 Compact General] casouzaj:
TWRP is the best recovery, IMHO! Besides, it's the only one available for our devices with Marshmallow!
[Xperia Z3 Compact General] pajos.gabros:
Hello,

I have new z3compact with .291, want it root it so:

1) download .575 kernel.zip and extract it

2) flash via flashtool kernel.sin (.575)

After flash, would I get recorvery or I should flash it?

3) download .291 kernel.zip and extract it

4) flash via flashtool kernel.sin (.291)

After flash, would I get recorvery & root, or I should flash it?

That's all? Or not?

Can you give step-by step guide?

Thank you ☺
[Xperia Z3 Compact General] b4b4.4l1:
Anyone please? :(
[Xperia Z3 Compact General] casouzaj:
You have to simply rename .zip to .ftf, in the kernel extension, not unpack it, and place it in C:\Users\your_ user\.flashTool\firmwares. Flashtool will detect it.
[Xperia Z3 Compact General] b4b4.4l1:
The files I downloaded are already in .ftf, downloaded from the thread firmwares list right here on xda.

I've read and known about where to put the file in, so it should be something else :s
[Xperia Z3 Compact General] casouzaj:
The only zip you must unpack is the rooting tool. The kernels extension must simply be renamed from zip to ftf (not unpacked). The install.bat file from the unpacked rooting tool will only succeed if the kernel in your phone is the 23.5.A.0.575 one. So, if you are currently running the 23.5.A.1.291 ROM, you must use Flashtool to flash the 575 kernel before running install.bat. Whilst in TWRP (you'll get there automatically if the rooting process was successful) you must install the SuperSU zip. You can also install the Xposed zip, if you wish, as well as other zips you are used to. Then, just disconnect your phone from your PC, to keep it turned off. Prepare the 291 kernel in Flashtool and flash it. At the end, just boot your phone up.
[Xperia Z3 Compact General] pajos.gabros:
thank you
[Xperia Z3 Compact General] robertrobi:
everything was ok,but on the end..this error

no devices / emulators found ????

help

z3 D6603 6.0.1

23.5.A.0.575

---------- Post added at 10:01 PM ---------- Previous post was at 09:39 PM ----------

ok...install without administrator..
[Xperia Z3 Compact General] robertrobi:
maybe this!!??

09/022/2016 22:22:03 - INFO - For flashtool, Unknown Sources and Debugging must be checked in phone settings

what the hell am i doing wrong?

Plz help

---------- Post added at 10:51 PM ---------- Previous post was at 10:49 PM ----------

and my question is...is that same for z3 compact and normal z3 or not?!
[Xperia Z3 Compact General] paetzi287:
For flashtool, Unknown Sources and Debugging must be checked in phone settings

Unknown Sources is checked in the safety tab

Developermode is enabled and usb debugging is connected
[Xperia Z3 Compact General] b4b4.4l1:
Ok guys, got it. So it's the flashtool. Tried older version from the website, it works now.

Thanks for those who replied me :)

Oh yeah, thanks OP for this method :D
[Xperia Z3 Compact General] defiantlibra:
when I flash, with flashtool, kernel 575 i do a wipe on flashtool? sorry for my english
[Xperia Z3 Compact General] :
No need to wipe data.

Gesendet von meinem D5803 mit Tapatalk
[Xperia Z3 Compact General] defiantlibra:
ok thanks, but I have a problem...when I rename the zip file in "kernel575.ftf" the extension of file remain zip and when I put it in flashtool firmware the flashtool doesn't recognize "kernel575.ftf"
[Xperia Z3 Compact General] spixy:
Hi, is this root systemless? Because new Pokemon GO cannot run on rooted devices.
[Xperia Z3 Compact General] Ministry87:
Pokemon Go is running for me ^^

Russel5 root + SliMM 3.1

EDIT: Didnt know about the Update.

Its not working.
[Xperia Z3 Compact General] :
You may try root cloak module from exposed to hide root towards ookemon go. Maybe there is even a special root hide module for pokemon go s well. E. G boon payment works in rooted devices if you use root cloak or xBoon module (both hide root towards boon)

Gesendet von meinem GT-P5210 mit Tapatalk
[Xperia Z3 Compact General] blichtbg:
[MENTION=4688377]russel5[/MENTION] and all in-the-know

thanks again for the tools and help. As I wrote I was able to root my Z3C with .291 firmware without problems, though with the previous version of russel5's root script.

So if I want to update it to the new changes

What is the most convenient way to do it? Simply reflash the kernels and repeat the root procedure? Or is there a better way to update TWRP and other components?

Or better leave all as it is (never change a running system)?
[Xperia Z3 Compact General] russel5:
[MENTION=2304435]blichtbg[/MENTION] just download new zip, extract recovery.twrp.cpio.lzma and pull in your phone with replace at /system/etc/mm_twrp_recovery/

do the same with new busybox

if you want new busybox in your system, you are need delete and install it again.

first, delete all in /system/xbin folder except daemonsu, dexdump, su, supolicy (delete very careful)

second, pull new busybox in /system/xbin folder and set permissions to 0755

and the last, connect your phone to computer and open cmd shell. usb debbug must be on.

adb shell (ENTER)
su (ENTER and confirm on your phone)
cd /system/xbin (ENTER)
mount -o remount,rw /system (ENTER)
./busybox --install -s /system/xbin (ENTER)

That's all.
[Xperia Z3 Compact General] norberto_:
Hi Guys,

I need to send my phone to repair. So i would like to remove the root and the recovery.

How to uninstall?
[Xperia Z3 Compact General] :
Reinstall a stock ftf via flashtool.

Gesendet von meinem GT-P5210 mit Tapatalk
[Xperia Z3 Compact General] norberto_:
I would like to keep all data and apps as it is. I just want to unroot and uninstall the custom recovery.
[Xperia Z3 Compact General] M1chiel:
Then make a backup on an sd card in TWRP, keep it on a safe place and recover it when you receive your phone back. Usually the repair centers wipe your phone anyway.
[Xperia Z3 Compact General] NotOverHere:
The repair will wipe your phone, they do it by default as part of the process.

I think using flashtool, and making sure that wipe user data is not checked, should do what you want. But you will still lose all your data when it goes for repair anyway.
[Xperia Z3 Compact General] spixy:
Hi, if I already have root and maybe busybox too (I dont know), but I dont have TWRP, can I run that whole script again? :D
[Xperia Z3 Compact General] russel5:
You can try
[Xperia Z3 Compact General] kudo77:
Hi, strange think happens to me. I am on .291 LB and I have flashed ( with .575 kernel) your tool to have root & Twrp recovery. After the reboot, I got TWRP and was able to flash Mx ROM|V8.6.0 . After reboot, I still have root, but no possibility to boot to Twrp ( neither Power + Vol p keys, neither adb, neither fastboot ). I dowloaded TWRP Manager and it indicates that twrp is installed but when i chose reboot to recovery, the phone just reboots to rom. Any idea how to get back recovery?
[Xperia Z3 Compact General] casouzaj:
The only way to enter TWRP after the automatic entry right after the rooting tool instalation is to pay attention to the boot up sequence. Right after the first Sony Xperia screen, the led will light up in green color, along with a vibration. At that moment, press the volume down button. The led will be turned to violet and TWRP will come up.
[Xperia Z3 Compact General] kudo77:
Absolutley right casouzaj !!!

I tried with Volume Up ;-(

Thank you, it works :)
[Xperia Z3 Compact General] kwstas 13:
sending 'boot' (11328 KB)...

OKAY [ 0.359s]

writing 'boot'...

FAILED (remote: Command not allowed)

finished. total time: 0.362s

15/002/2016 19:02:54 - INFO - Please check the log before rebooting into system

15/003/2016 19:03:28 - INFO - Device disconnected

What am i doing wrong?! i installed .291 via Xperia Companion, and when i try to install kernel .575 from Flashtool this message appears and I can't go on
[Xperia Z3 Compact General] casouzaj:
Have you selected fastboot mode in Flashtool? If you have a locked bootloader, do it using Flashmode instead.
[Xperia Z3 Compact General] kwstas 13:
Yes, i tried both ways! same thing happens and when I boot my phone up it's still on .291 firmware
[Xperia Z3 Compact General] casouzaj:
The 23.5.A.1.291 code is for the ROM, not the kernel. Take a look at the kernel's date, at Settings > About phone. If it's dated April 2016 then it's from the 575 ROM.
[Xperia Z3 Compact General] kwstas 13:
Yes it's April but recovery install.bat would not let me install recovery! It fails again and again. Writes something about 32.
[Xperia Z3 Compact General] casouzaj:
Would it be possible for you to post the command window output?
[Xperia Z3 Compact General] petr232:
Make sure to close FlashTool.
[Xperia Z3 Compact General] kwstas 13:
Tomorrow i'll try with Flashtool closed. If it doesn't work i'll annoy you again! Thanks for your help!

---------- Post added at 07:20 PM ---------- Previous post was at 07:19 PM ----------

Will try tomorrow! Thanks!

EDIT: It worked guys...I should have closed the Flashtool before trying! thank you
[Xperia Z3 Compact General] ervin.fernandez@gmailcom:
Hi gentlemen.

I was not able to flash the 575 kernel.

Could you guide me?

This is my log:

15/012/2016 23:12:04 - INFO - Device disconnected

15/012/2016 23:12:06 - INFO - Device connected in fastboot mode

15/012/2016 23:12:11 - INFO - Now plug your device in Fastboot Mode

15/012/2016 23:12:34 - INFO - Selected kernel (boot.img or kernel.sin): C:\Flashtool\kernel.sin

15/012/2016 23:12:34 - INFO - Flashing selected kernel

15/012/2016 23:12:35 - INFO - sending 'boot' (11328 KB)...

15/012/2016 23:12:35 - INFO - OKAY [ 0.373s]

15/012/2016 23:12:35 - INFO - writing 'boot'...

15/012/2016 23:12:35 - INFO - FAILED (remote: Command not allowed)

15/012/2016 23:12:35 - INFO - finished. total time: 0.382s

15/012/2016 23:12:35 - INFO - FASTBOOT Output:

I apreciate your help.
[Xperia Z3 Compact General] casouzaj:
With locked bootloader, you have to flash an ftf file in flashmode, not fastboot mude! If dowloaded from the OP, just rename zip to ftf (do not unpack it!) and try again.
[Xperia Z3 Compact General] alexaka1:
Already have 575, flash 291 or normal OTA?

Hi guys

Tl dr, i'm still a noob when it comes to rooting.

I currently have the 575 root on my phone, I did that in June. I'd lile to upgrade to 291. Should I just let my phone do the OTA update or download this zip and flash it in recovery? And just to be sure, flashing the update would keep all my apps and data right?
[Xperia Z3 Compact General] M1chiel:
If you do the OTA you will lose root. Easiest is to install a prerooted 291 zip in twrp. If you do not wipe anything your data and apps are fine, but it is a good practice to make a backup on your sd in twrp before you start installing anything. If you cannot find a prerooted zip you do the OTA and follow the instructions on the OP.
[Xperia Z3 Compact General] kwstas 13:
I installed recovery, with .575 version but when I try to update back again on. 291 i get this error!
[Xperia Z3 Compact General] ervin.fernandez@gmailcom:
Hi.

Thanks for the information.

I did which you told me and now I can see the Kernels. I selected the 575 kernel, and press the flash button, then, the system ask me to connect the device in "flashmode", I developed the procedure (unplug, power off, volume DOWN and connect it again) and watch the blue led in my phone with the screen off but the flashtool keeps asking me for flashmode ("Wait for flashmode") and the process does not begin.

This is my log:

16/046/2016 13:46:32 - INFO - Device connected with USB debugging off

16/046/2016 13:46:32 - INFO - For 2011 devices line, be sure you are not in MTP mode

16/046/2016 13:46:34 - INFO - Device connected with USB debugging on

16/046/2016 13:46:36 - INFO - Connected device : Sony Xperia Z3 Compact

16/046/2016 13:46:36 - INFO - Installed version of busybox : N/A

16/046/2016 13:46:36 - INFO - Android version : 6.0.1 / kernel version : 3.4.0-perf-gc14c2d5 / Build number : 23.5.A.1.291

16/046/2016 13:46:36 - INFO - Root access denied

16/047/2016 13:47:11 - INFO - Selected Bundle for Sony Xperia Z3 Compact(D5803). FW release : 23.5.A.0.575_R3D. Customization : stock kernel

16/047/2016 13:47:11 - INFO - Preparing files for flashing

16/047/2016 13:47:11 - INFO - Please connect your device into flashmode.

16/047/2016 13:47:27 - INFO - Device disconnected

16/048/2016 13:48:11 - INFO - Device connected in fastboot mode

16/049/2016 13:49:00 - INFO - Flash canceled
[Xperia Z3 Compact General] casouzaj:
The log shows you are connecting your phone in fastboot mode. You are pressing and holding the volume up button. You have to press and hold the volume down button, instead. The led will flash in green color, not blue.
[Xperia Z3 Compact General] bussi2010:
I would say thank you for this! twrp, Root and super su is running. Great, thanks a lot for your work.
[Xperia Z3 Compact General] NotOverHere:
What would be the eariest way to unroot, is there something available to undo it easily or is it just having to flash an ftf and not wipe user data?

I dont know whether I will be doing so yet, but I am having to decide due to pokemon go blocking root users and just want to check.
[Xperia Z3 Compact General] Chamelleon:
Hi, I recently updated to MM. I flashed 291, then 575 kernel, installed TWRP from 1st post, installed SuperSU and flashed 291 kernel back. All completely without any problems. For last week I was installing all apps etc. to make my best config and now I tried to backup it but... but I can't boot into TWRP. I checked and apps like TWRP manager sees installed TWRP but I can't boot it. When I'm rebooting phone there is no green led and short vibration as it should be.

I spend like 10 hours to make whole config again after wipe and it would be nice to make backup. Any clue how to make it boot into TWRP?
[Xperia Z3 Compact General] casouzaj:
I have noticed this behaviour too. For no apparent reason, I could not boot into TWRP anymore. Had to flash the 575 kernel again, run the tool and flash the 291 kernel back. Hope to be able to notice the conditions at the time, if it happens again.
[Xperia Z3 Compact General] Chamelleon:
No need to wipe or did You noticed any problems after reflashing kernel?
[Xperia Z3 Compact General] ervin.fernandez@gmailcom:
Hoooo...

You were right!!

Thank very much for your help.

Now I have my Z3c rooted :)
[Xperia Z3 Compact General] kwstas 13:
Make sure you 've installed the drivers for your device.
[Xperia Z3 Compact General] petr232:
Nice, I'm tempted to switch back to official MM from Concept and finally try a root.

Quick question - if I'll do the root, how can I restore the phone back to a default state if I'll change my mind? Simply flashing the official .ftf with a Flash Tool is enough?
[Xperia Z3 Compact General] M1chiel:
Yes you can simply flash the official ftf to return to the unrooted version.
[Xperia Z3 Compact General] bitingshark:
sorry for my stupidity, its my first time rooting.... this works for D5803 6.0.1 MM 23.5.A.0.575 and it will give me root acces without losing any files at all?

if it gives root acces why is it named recovery?

on a sidenote i have no idea what the stuff in the 2nd paragraph means, is a supersu included in this?

thanks in advance
[Xperia Z3 Compact General] damif:
ADB: stopped by CTRL+C

Hi

I try this method on my Z3C

but when I run the install.bat on Windows Xp, I received a lot of messages like" ADB: stopped by CTRL+C" .

At the end I cannot enter the recovery mode (the notification LED will never be pink)

...

what was wrong?
[Xperia Z3 Compact General] AndriyeZ:
what fw version 5833 dude? 570 or 575? i used 575, and it does'nt work at all...:(

---------- Post added at 08:44 AM ---------- Previous post was at 08:43 AM ----------

+1
[Xperia Z3 Compact General] nepo1992:
If you won't reflash then you won't lose any files.

It only means that package allows you to have root access and also grants you recovery

I did mine by going back to LP then rooting by KingRoot (not encouraged) then install TWRP then install flashable zip (MM + SuperSU + RecRoot)

I would suggest you to go back to .93 (oldest FW) then root then install TWRP then install flashable zip (MM + SuperSU + RecRoot)

Z3 Compact Firmware List

Root using old FW
[Xperia Z3 Compact General] AndriyeZ:
hmm..not sure about kingsroot exe. would doing well, i just tried from the beginning downgrade to KK-flash to MM Zip. made by me with PFRC, but getting bootloop, so i just flash fw MM with flashtool, just try enjoying my Z3c without root for a while until i get an right step to root the device..:D
[Xperia Z3 Compact General] franklinzero:
Yes u did, in my post i say i i've flashed my D5833 with D5803 firmware and then used the installer. Fw that i've used is that D5803_23.5.A.0.575_1289-7524_R5D, wich can be downloaded from XperiFirm direct from flashTool. All works flawlessly till now, root, Xposed and all things...

I'm not fluent in English, i hope u have understood.
[Xperia Z3 Compact General] AndriyeZ:
thanks mate, just back to old rules by flashing custom ROM, SLim 2.0 anyway...:D
[Xperia Z3 Compact General] M1chiel:
A good intro to recoveries is here: https://wiki.cyanogenmod.org/w/All_About_Recovery_Images. The Sony Z3c stock ROM does not have a recovery. Once you have installed a recovery (TWRP in this case) for our device only the 'manual method' allows you to load TWRP (press volume down, or press the volume rockers a few times during boot, until the green led turns pink). With TWRP you can root your device (check: https://download.chainfire.eu/696/supersu/), install ROMs (for the Z3C only stock (based) ROMs if the bootloader is locked), Xposed and many more useful tools; and you can easily back-up and restore your device (system and data).
[Xperia Z3 Compact General] Antwanster:
mkdir: '/data/local/tmp/mm_twrp_recovery_install': File exists
cannot stat 'boot_twrp_recovery.sh': No such file or directory
cannot stat 'busybox': No such file or directory
cannot stat 'byeselinux.ko': No such file or directory
cannot stat 'chargemon.sh': No such file or directory
cannot stat 'install_twrp_recovery.sh': No such file or directory
cannot stat 'iovyroot': No such file or directory
cannot stat 'modulecrcpatch': No such file or directory
cannot stat 'recovery.twrp.cpio.lzma': No such file or directory
cannot stat 'wp_mod.ko': No such file or directory
chmod: /data/local/tmp/mm_twrp_recovery_install/busybox: No such file or directory
chmod: /data/local/tmp/mm_twrp_recovery_install/install_twrp_recovery.sh: No such file or directory
chmod: /data/local/tmp/mm_twrp_recovery_install/iovyroot: No such file or directory
chmod: /data/local/tmp/mm_twrp_recovery_install/modulecrcpatch: No such file or directory
/system/bin/sh: /data/local/tmp/mm_twrp_recovery_install/iovyroot: not found

solved it... sorry for the stupid post! :D
[Xperia Z3 Compact General] MelficeF:
And how did you solve it? I have the same problem xD
[Xperia Z3 Compact General] 0nyx:
Hi! Just managed to root my wife's D5803 like described in OP. Thanks [MENTION=4688377]russel5[/MENTION] for that!

Which version of xposed did you use? Myself using SGS5, so don't have any idea about xposed versions for Sony devices.

Thanks in advance!
[Xperia Z3 Compact General] franklinzero:
I dont know much about xposed too, i'm using the xposed-v86-sdk23.zip pack with XposedInstaller_3.0_alpha4.apk installer which i found in another topic of D58X3. Btw they are attached on this reply.
[Xperia Z3 Compact General] onedr0p:
Don't run the script as Admin
[Xperia Z3 Compact General] Sydnelson:
Anyone try this with D5833 without use D5803?

What the problems I can have if I istall D5803 FW in a D5833 cellphone?
[Xperia Z3 Compact General] nzzane:
IS there a possibility to make this work with Concept?

I know its a lot harder to get root to work on concept, but if you could that would be great :)
[Xperia Z3 Compact General] gbossley:
I've tried several different methods to reboot to recovery, and they all fail - phone always boots normally, there is no LED light before the splash (?) screen at startup. Does my phone need an unlocked bootloader like I read somewhere, or am I missing something else?

The phone is rooted, and I believe I've lost my DRM keys.