yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Compact General] M1chiel:
It is probably a common hardware problem for the Z3c that coincidentally came to the surface while you rooted the phone. Search for 'touch screen' in the Q&A section for more information. If this is the issue you will need to have your touch screen replaced :(
[Xperia Z3 Compact General] hondks:
AWESOME

I have just registered to thank u, it was so simple to do, and now i have my z3c rooted (finally), keep up the good work, Cheers! :good:
[Xperia Z3 Compact General] tomohe:
It seems to have worked for my D5803 (thanks!), but in between flashing .575 and running the batch script i checked the firmware version in the About phone menu and it still showed .291 for the Build number. I flashed .575 one more time, it still showed .291, then carried on anyway. Will the kernel version displayed not change in the phone info?
[Xperia Z3 Compact General] M1chiel:
Check post #500...
[Xperia Z3 Compact General] irfan_hjw:
my device is D5833, but I can't find the kernel for my device,

I downloaded the files in the attachment on first post, but there is only kernel for D5803

is it okay to flash D5803 kernel to my device (D5833)?

or there's another way to root my device?
[Xperia Z3 Compact General] rn_yassar:
I've got .575 firmware on my D5803, locked bootloader. What .bat file do I run? I have giefroot downloaded, is this the correct one?
[Xperia Z3 Compact General] suokki:
Hi there, a long-time lurker but just created an account tonight to resolve my problem (hopefully!). I've downloaded the OP's attachments, extracted them and then repacked them as '.ftf' files, now I have kernel291.ftf and kernel575.ftf in my C:\Users\OLLI\.flashTool\firmwares folder.

When I run Flashtool (on Windows 10 x64) the application recognises my phone as:

10/025/2017 23:25:07 - INFO - Starting phone detection

10/025/2017 23:25:12 - INFO - Device connected with USB debugging on

10/025/2017 23:25:13 - INFO - Connected device : Sony Xperia Z3 Compact

10/025/2017 23:25:13 - INFO - Installed version of busybox : N/A

10/025/2017 23:25:13 - INFO - Android version : 6.0.1 / kernel version : 3.4.0-perf-gc14c2d5 / Platform : 32bits / Build number : 23.5.A.1.291

10/025/2017 23:25:13 - INFO - Root access denied

Now I can go to the Flash menu, choose "Flashmode" and then nothing appears, even though the .FTF files are in the firmwares folder :E

Note: I have installed Flashmode, fastboot and Sony Xperia Z3 Compact drivers from C:\Flashtool\drivers\

See the following screenshot:

http ://i67.tinypic.com/m8ze4g. png //// As a new user, I cannot post functioning links so I've added space after 'http' and before 'png'

I have installed CM12 in the past on my old Nexus 4 and it was way different than what I am doing now.

I feel stupid because I can't figure this one out, any help would be appreciated!

Thanks in advance, happy new year for everyone,

Cheers,

-Olli
[Xperia Z3 Compact General] Strmy:
Locked bootloader

So im familirar with unlocking devices, however im new to sony world.

So i failed at first step, Emma(Flashtool?) it says its locked, so i cant install 575 firmware. It says device is locked, okay so i need to unlock it, okay bootloader unlock isnt allowed, so basicly i cant unlock device or what? Im sure there is a way, but im confused, alot :P

I have .291 MM D5803.
[Xperia Z3 Compact General] M1chiel:
Welcome to the Sony world! I hope you realize that unlocking means losing your DRM keys, which results in much worse camera performance? It can be repaired, but unless you prefer an alternative kernel you better stay locked. Especially, since there's no need to unlock for obtaining root and a custom recovery, as shown by the tool in this thread. Sony Flashtool is a very powerful tool for flashing roms, unlocking your bootloader and many other things.
[Xperia Z3 Compact General] Strmy:
Then how do i flash when flashtool says my phone is locked??

Poslano sa mog D5803 koristeći Tapatalk
[Xperia Z3 Compact General] M1chiel:
There is a separate thread on XDA dedicated Flashtool, you can probably find your answer there. My guess is that you haven't turned on USB debugging and/or allowed the computer to see you phone after you connected it (unlock the phone and give permission).
[Xperia Z3 Compact General] Strmy:
I did it, recovery and root.. Only prob was, installed sony official flashtool emma and not the other one. I think this should be noted, so that new people understand which flashtool needs to be installed
[Xperia Z3 Compact General] xxera:
Worked, thanks a lot!

Just a last stupid question: Can I factory reset the phone without losing root? If not, what would I have to do to regain it, just flash SuperSu again?
[Xperia Z3 Compact General] M1chiel:
Yes, you can factory reset without losing root. It removes your installed apps and associated data, clears dalvik and cache and restores the default settings as far as I know.
[Xperia Z3 Compact General] suokki:
Sorry for quoting myself but I figured it out, when I plug my phone to my PC, the phone asks for the type of connection - I had to choose "Charging only" in order for the Flashtool to recognise the .ftf files so that is solved and I've now flashed the phone to .575.

Now the issue is with the installer.bat, I've ran it as admin and as non-admin, same results:

adb server version (32) doesn't match this client (36); killing...

* daemon started successfully *

Device Detected!

Installing ...

adb server version (32) doesn't match this client (36); killing...

* daemon started successfully *

error: unknown host service

adb server version (32) doesn't match this client (36); killing...

* daemon started successfully *

[100%] /data/local/tmp/mm_twrp_recovery_install

adb server version (32) doesn't match this client (36); killing...

* daemon started successfully *

[100%] /data/local/tmp/mm_twrp_recovery_install

adb server version (32) doesn't match this client (36); killing...

I've tried to Google the resolution for the client matching issue but with no results?

Ideas?

Thanks again.
[Xperia Z3 Compact General] casouzaj:
If Flashtool and/or other programs which make use of adb, like Xperia Companion, for example, are running, close them prior to running the install.bat file.
[Xperia Z3 Compact General] suokki:
Thanks, I actually got the whole thing done after I had posted the last question!

So for others with similar issues, here's a wee checklist:

-Flashtool won't recognise your phone + the .ftf files if you haven't chosen "Charging only" on your phone when you plug it to your computer

-If you're on Windows, do not just Rename the kernel575.zip and 291.zip by hitting F2 or right click -> rename, change the name in Command Prompt (cmd.exe)

---Run cmd.exe

---type 'ren kernel575.zip kernel575.ftf' and 'ren kernel291.zip kernel291.ftf' (without the ' ' obviously) -- Thanks for casouzaj for the tip

When you've gone from .291 to .575 and you're running the install.bat - run it as admin and make sure Flashtool and Xperia Companion are not running, they will block the installation (I guess, I closed them and then the installer.bat worked just fine tho I had to run it twice)

Enjoy your rooted device, i'm loving it <3
[Xperia Z3 Compact General] BigWhoop:
It dosnt work for me :(

16/014/2017 13:14:01 - INFO - Selected Bundle for Sony Xperia Z3 Compact (D5803). FW release : 23.5.A.0.575_R3D. Customization : stock kernel
16/014/2017 13:14:01 - INFO - Preparing files for flashing
16/014/2017 13:14:01 - INFO - Please connect your device into flashmode.
16/014/2017 13:14:15 - INFO - Device connected in flash mode
16/014/2017 13:14:16 - INFO - Opening device for R/W
16/014/2017 13:14:16 - INFO - Reading device information
16/014/2017 13:14:16 - INFO - Unable to read from phone after having opened it.
16/014/2017 13:14:16 - INFO - trying to continue anyway
16/014/2017 13:14:16 - INFO - Start Flashing
16/014/2017 13:14:16 - INFO - Processing loader.sin
16/014/2017 13:14:16 - INFO - Checking header
16/014/2017 13:14:16 - ERROR - Processing of loader.sin finished with errors.
16/014/2017 13:14:16 - INFO - Ending flash session
16/014/2017 13:14:16 - ERROR - Error in processHeader : 1 : Unzulässige Funktion.
16/014/2017 13:14:16 - ERROR - Error flashing. Aborted
16/014/2017 13:14:16 - INFO - Device connected in flash mode
16/015/2017 13:15:16 - INFO - Device disconnected
16/015/2017 13:15:53 - INFO - Device connected with USB debugging on
16/015/2017 13:15:53 - ERROR - root : this bundle is not valid
16/015/2017 13:15:55 - INFO - Connected device : Sony Xperia Z3 Compact
16/015/2017 13:15:55 - INFO - Installed version of busybox : N/A
16/015/2017 13:15:55 - INFO - Android version : 6.0.1 / kernel version : 3.4.0-perf-gc14c2d5 / Build number : 23.5.A.1.291

any hints?

EDIT: I used the wrong driver. The flashmode driver from the flashtool is the correct one!
[Xperia Z3 Compact General] agustinm3:
can someone guide me step by step how to do this? i´m new with this phone

1. ¿how i flash a kernel?

2.where to find a supersu zip?
[Xperia Z3 Compact General] Kucharskov:
[MENTION=4688377]russel5[/MENTION] any way to update installator with new TWRP? Or how to update TWRP manually with locked bootloader?
[Xperia Z3 Compact General] russel5:
I made it yesterday, but only for unlocked bootloader. I need some tests for locked, because I used 7.1 source code for compiling and many many changes in this new version. When I used source kernel 291 for compiling, recovery not work at all, that's a problem
[Xperia Z3 Compact General] dimex:
So I just got the Z3 compact. I was able to get recovery after flashing older kernel to flash SuperSU and Xposed, but after re-flashing .291 kernel and a reboot I lose recovery. It doesn't really bother me as I don't think I'll be flashing anything else (really only care about Xposed), but I'm wondering why recovery doesn't stick.

If I try to boot to recovery via hardware keys or with a root reboot app, it just reboots the phone into android.
[Xperia Z3 Compact General] casouzaj:
The only way to enter TWRP if your phone rebooted after you ran the rooting tool is to pay attention to the reboot phases. Right after the first Sony Xperia screen, the led will light up in green color for 2 seconds, along with a vibration. At that moment, press the volume down button.
[Xperia Z3 Compact General] dimex:
First phone I've had that was so precise with when to push hardware button for recovery. Worked perfect, thanks.
[Xperia Z3 Compact General] wessok:
Will this method work on the Z5 or Z5 Compact?
[Xperia Z3 Compact General] panzerox123:
No... Don't try, you'll mess up your device. Look in your devices forums
[Xperia Z3 Compact General] wessok:
Thanks! Been looking for a root method with an unlockable bootloader for a while. Thought this could be transferred over. I guess the wait continues :)
[Xperia Z3 Compact General] panzerox123:
Look at the link in my signature. It works with all Sony devices. Just get the right twrp for your device if you're on unlocked bootloader :)
[Xperia Z3 Compact General] wessok:
The problem is my bootloader cannot be unlocked on the Z5 Compact. Still waiting for a fix. Thanks for the info though
[Xperia Z3 Compact General] panzerox123:
Oh that way, you can't fix it. Go to a Sony service centre. That can unlock it for a small fee ;)
[Xperia Z3 Compact General] russel5:
Thread updated, Enjoy ;)
[Xperia Z3 Compact General] Wzza:
Hi,

I tried your updated package with the latest TWRP to flash SliMM 3.8. TWRP gives me the following error and kills the process :

uuid link to system partition does not exist

Any ideas on what could be the problem ? Do you think I can install your previous package to get the old TWRP version and proceed with flashing ?

Anyway, thank you for your work.
[Xperia Z3 Compact General] russel5:
Can you share the META-INF folder to look? Thanks
[Xperia Z3 Compact General] Wzza:
Hi,

I'm gessing the updater-script alone is what you need, here it is.

Below is the if loop in question:

if
run_program("/tmp/busybox", "ls", "/dev/block/platform/msm_sdcc.1/by-uuid/F9CDF7BA-B834-A72A-F1C9-D6E0C0983896") != "0"
then
abort("Error: UUID link to system partition does not exist");
endif;

I get the feeling the problem is with busybox... Anyway, I've run your old package and was able to flash SliMM through twrp no problem.
[Xperia Z3 Compact General] russel5:
[MENTION=6530001]Wzza[/MENTION] i found the issue. All things was in incorrect detections of partitions numbers and i don't think that was the recovery problems.

You are need replace one files attached below in your zip/utils folder. After that all installs as it should, i checked and all works fine.

Pls rename .txt to .sh
[Xperia Z3 Compact General] sassocalco999:
Today is possible flash the recovery withouth come back to 575? Doing these step, will I lose my phone's data??

Great work!
[Xperia Z3 Compact General] russel5:
You don't need get back to 575, only kernel. You don't lose your data if not check wipes in flashtool
[Xperia Z3 Compact General] snaky90:
EDIT: Shutdown or reset doesn't work for me, reset always on recovery
[Xperia Z3 Compact General] sassocalco999:
When I try to flash the kernel this appears:

18/042/2017 00:42:07 - INFO - Selected kernel (boot.img or kernel.sin): F:\Documenti\xperiaz\kernel575\kernel.sin

18/042/2017 00:42:07 - INFO - Flashing selected kernel

18/042/2017 00:42:08 - INFO - sending 'boot' (11328 KB)...

18/042/2017 00:42:08 - INFO - OKAY [ 0.357s]

18/042/2017 00:42:08 - INFO - writing 'boot'...

18/042/2017 00:42:08 - INFO - FAILED (remote: Command not allowed)

18/042/2017 00:42:08 - INFO - finished. total time: 0.360s

18/042/2017 00:42:08 - INFO - FASTBOOT Output:

sending 'boot' (11328 KB)...

OKAY [ 0.357s]

writing 'boot'...

FAILED (remote: Command not allowed)

finished. total time: 0.360s

18/042/2017 00:42:08 - INFO - Please check the log before rebooting into system

Can you help me?
[Xperia Z3 Compact General] casouzaj:
Your bootloader is locked. You cannot use fastboot mode. Use Flashmode, instead, thus selecting a kernel in ftf format.
[Xperia Z3 Compact General] sassocalco999:
Thank you
[Xperia Z3 Compact General] Strmy:
So i wiped my /system on phone and i dont have recovery or android system. I flashed fimrware but theres no system in it, where do i get suitable firmware? Note that i have locked bootlader
[Xperia Z3 Compact General] M1chiel:
My guess is that TWRP was not installed properly, so I'd advise you install it again. Either by the TWRP installer or by running the script of the OP again. You do not need an unlocked bootloader to install TWRP or to root (but you do need an unlocked bootloader to flash a non-stock (based) rom).
[Xperia Z3 Compact General] TethisTestis:
Am I that stupid, if I do the following:

How-to:

* you need stock MM .575 firmware

* download zip and extract to your computer

* enable USB-debugging on your phone and plug phone to computer

* run install.bat

I only get the message:

daemon not running. starting it now on port 5037

daemon started successfully

Do I have to paste the files to the phone to make it work or am i missing something huge?
[Xperia Z3 Compact General] M1chiel:
My guess is that you did not install the correct drivers. Did you use Windows 10?
[Xperia Z3 Compact General] OrBy:
Having some trouble with this as well.

Install gives a ton of errors then actually boots TWRP but I can never get it to boot TWRP again without running the install again like its not getting installed all the way.

Log:

* server not running *
* daemon not running. starting it now on port 5037 *
* daemon started successfully *

Device Detected!

Installing ...

mkdir: '/data/local/tmp/mm_twrp_recovery_install': File exists
[100%] /data/local/tmp/mm_twrp_recovery_install/boot_twrp_recovery.sh
[100%] /data/local/tmp/mm_twrp_recovery_install/busybox
[100%] /data/local/tmp/mm_twrp_recovery_install/byeselinux.ko
[100%] /data/local/tmp/mm_twrp_recovery_install/chargemon.sh
[100%] /data/local/tmp/mm_twrp_recovery_install/install_twrp_recovery.sh
[100%] /data/local/tmp/mm_twrp_recovery_install/iovyroot
[100%] /data/local/tmp/mm_twrp_recovery_install/modulecrcpatch
[100%] /data/local/tmp/mm_twrp_recovery_install/recovery.twrp.cpio.lzma
[100%] /data/local/tmp/mm_twrp_recovery_install/wp_mod.ko
iovyroot by zxz0O0
poc by idler1984

[+] Changing fd limit from 1024 to 4096
[+] Changing process priority to highest
[+] Getting pipes
[+] Allocating memory
[+] Installing func ptr
[+] Patching address 0xc1234b68
[+] Start map/unmap thread
[+] Start write thread
[+] Spraying kernel heap
[+] Start read thread
[+] Done
got root lmao

modulecrcpatch (by zxz0O0)

module_layout: patched to 0x2067C442
__aeabi_unwind_cpp_pr1: not found
kallsyms_lookup_name: not found
printk: match
mem_text_write_kernel_word: not found
__aeabi_unwind_cpp_pr0: match

modulecrcpatch (by zxz0O0)

module_layout: not found
__aeabi_unwind_cpp_pr1: not found
kallsyms_lookup_name: not found
printk: not found
mem_text_write_kernel_word: not found
__aeabi_unwind_cpp_pr0: not found

(lots more of this)

modulecrcpatch (by zxz0O0)

module_layout: not found
memcmp: not found
kallsyms_lookup_name: not found
__aeabi_unwind_cpp_pr0: not found
call_usermodehelper_exec: not found
call_usermodehelper_setfns: not found
call_usermodehelper_setup: not found
printk: not found
Installing of installbyeselinux.sh finished

Finished!

Rebooting into TWRP recovery ...

Press any key to continue . . .
[Xperia Z3 Compact General] kimush:
If i replace the Z3C recovery file with the Z3 one will it work on my Z3 on 575 firmware.
[Xperia Z3 Compact General] SoulFury:
Hi there. I'm trying this with mm.575 nordic stock firmware. adb recognice the device correctly, but when I execute install.bat....

[IMG="CMD fail"]https://s32.postimg.org/xb35ra3yt/adb.png[/IMG]

Then phone restart and there is no recovery at all. What am I doing wrong?
[Xperia Z3 Compact General] MechaBouncer:
I just wanted to give a HUGE thank you for this. I'd been on the fence about jumping over the the Concept firmware for a while so that I could get the native Adoptable Storage. Now I can enable it via root among all the other things that I couldn't do without root access. Thank you so much!

EDIT: I just wanted to mention one more thing that might save someone some time.

After trying this number a few times, I realized that it's actually *#*#7378423#*#* to access the Service menu. I had to look it up again because I wasn't able to get in after several tries. But thank you for all the other information. It's been most helpful!
[Xperia Z3 Compact General] madlive:
Can't get this to work:

Get the follow error:

Device Detected!

Installing ...

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/install_twrp_recovery.sh: No such file or directory
chmod: /data/local/tmp/mm_twrp_recovery_install/iovyroot: No such file or directory
/system/bin/sh: /data/local/tmp/mm_twrp_recovery_install/iovyroot: not found

Finished!

Rebooting into TWRP recovery ...

Press any key to continue . . .
[Xperia Z3 Compact General] MechaBouncer:
Quick question for those who are having trouble. Are you you able to transfer files to and from the phone in MTP mode before executing the install script? I have also found that the first time I connect my phone to my computers for debugging that I often have to click an Allow dialog box on the phone for the computer. Once the drivers are installed on the computer and the computer is allowed for debugging by the phone and I can transfer files to and from it in Windows File Explorer, then I haven't had a problem with this even on Windows 10.
[Xperia Z3 Compact General] nzzane:
This is an issue with adb

Try restarting your computer and closing any other programs that might be using adb (flashtool)
[Xperia Z3 Compact General] edtrash:
I'm getting that error too. Is it on the computer side?

Hope someone can help, thx !
[Xperia Z3 Compact General] nzzane:
looks like the fils are missing - usually this is caused by an anti virus.

try disabling your anti virus and re-download
[Xperia Z3 Compact General] TethisTestis:
Thanks alot guys, it actually worked yesterday in the morning before i went to work.

I reinstalled the adb drivers, ran the script and it worked. From on there it was really simple.

Also checked the drm keys all active and ok.

huge thanks [MENTION=5112675]M1chel[/MENTION] and [MENTION=3180403]MechaBouncer[/MENTION] to getting it work and [MENTION=4688377]russel5[/MENTION] for this amazing easy method.
[Xperia Z3 Compact General] madlive:
Unfortunately neither of these seem to be the issue, quite puzzled by it. Don't really want to go back to 5.1.1 do the kingroot trick before installer TWRP. If there are any other tips, they are welcome :)
[Xperia Z3 Compact General] SoulFury:
Indeed, thank you...now I have the other error XD.
[Xperia Z3 Compact General] AfroMetal:
Have you unpacked it properly? As it says, can't find files on proper routes. Download and unpack again, be sure to run the .bat from it's original location.

I haven't problems with installation at all. Rooting took about 2 minutes from finding topic on xda to booting into custom recovery. Now I'm just sad that there are no custom kernels that can be tuned in Kernel Adiutor for lower battery consumption as vanilla 6.0.1 kernel can not be tweaked too much.
[Xperia Z3 Compact General] SoulFury:
I've removed manually the folder, then reinstalled, it worked and entered recovery mode. But after 1 restart, I cannot reénter recovery again, led is always green, never pink :S:S:S
[Xperia Z3 Compact General] mrrflagg:
In the name of science I tried it on a Z3 6653 to no success, just if anyone was curious
[Xperia Z3 Compact General] shoey63:
I have D6653 as well. Was thinking about trying it. What went wrong?
[Xperia Z3 Compact General] Dadovvv:
Error: Device not supported
[Xperia Z3 Compact General] x_one:
Search for XperiaFirm app and download fw for your phone. Then flash it using Flashtool
[Xperia Z3 Compact General] Strmy:
so ive got now 4.4.4 android with .105

can i flash .575?
[Xperia Z3 Compact General] x_one:
You mean full firmware? Yes You can flash full new firmware..
[Xperia Z3 Compact General] Strmy:
didnt work, ended with bootloop
[Xperia Z3 Compact General] x_one:
I don't know what are you doing but if you flash FULL firmware using FLASHTOOL you can't get bootloop.. :confused:
[Xperia Z3 Compact General] Strmy:
i metant flashing .575 from this thread, which is not full :eek:
[Xperia Z3 Compact General] x_one:
Files attached here aren't firmware.. Just kernel... Kernel don't have system partition..

I think you misunderstood something.
[Xperia Z3 Compact General] Strmy:
adb server version (31) doesn't match this client (36)

im getting this error all the time.

.575 is on phone, flashtool is closed.
[Xperia Z3 Compact General] Marília de Oliveira:
Well I will leave the link here from the old twrp.. I realized that dev has updated the thread and made some modification in the same twrp left unstable. Here the link of the old twrp, works perfectly.

Z3C KERNEL'S AND TWRP > https://www.androidfilehost.com/?w=files&flid=139339

credits [MENTION=4688377]russel5[/MENTION]
[Xperia Z3 Compact General] russel5:
How do you realized this? and what are you mean in the same twrp? and what are you mean left unstable? Logs or something what is wrong and unstable or this is just a bla, bla, bla...

This is not the SAME twrp, this is recovery from HERE

For me all works like it shoulld and like in older version. Only one users post here about a problem, i'm checked and fix this.