yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Compact General] Eures:
Not sure about, but if I make Check drivers in Flashtool I get this:

List of connected devices (Device Id) :

05/006/2018 18:06:40 - INFO - - USB\VID_0FCE&PID_51BB&MI_00\6&2B856266&0&0000	Driver installed : true

05/006/2018 18:06:40 - INFO - - USB\VID_0FCE&PID_51BB&MI_01\6&2B856266&0&0001	Driver installed : true

05/006/2018 18:06:40 - INFO - - USB\VID_0FCE&PID_51BB\YT910YC3KN	Driver installed : true

05/006/2018 18:06:40 - INFO - List of ADB devices :

05/006/2018 18:06:40 - INFO - - YT910YC3KN (Device : D5803. Model : D5803)

05/006/2018 18:06:40 - INFO - List of fastboot devices :

05/006/2018 18:06:40 - INFO - - none
[Xperia Z3 Compact General] casouzaj:
This report says your phone is in adb mode, not in flashmode. In order to enter flashmode, your phone must be completely powered off (when you hold the power button and select 'Power Off'' in the pop-up window, then wait a while for the operation to be complete) and, then you must press and hold the volume down button whilst connecting the USB cable, but only when Flashtool's animated connection window is up.
[Xperia Z3 Compact General] Eures:
I apologize for the misunderstanding, I made that check with the phone on, just to show the drivers installed.

This is the report after I plug the phone off by holding the volume down:

05/014/2018 19:14:57 - INFO - Preparing files for flashing

05/014/2018 19:14:57 - INFO - Please connect your device into flashmode.

05/015/2018 19:15:10 - INFO - Device disconnected

05/016/2018 19:16:03 - INFO - Device connected with USB debugging off

05/016/2018 19:16:03 - INFO - For 2011 devices line, be sure you are not in MTP mode

05/016/2018 19:16:55 - INFO - Flash canceled

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

And this is the driver check with the phone off:

5/021/2018 19:21:14 - INFO - List of connected devices (Device Id) :

05/021/2018 19:21:14 - INFO - - USB\VID_0FCE&PID_E1BB\YT910YC3KN	Driver installed : true

05/021/2018 19:21:14 - INFO - List of ADB devices :

05/021/2018 19:21:14 - INFO - - none

05/021/2018 19:21:14 - INFO - List of fastboot devices :

05/021/2018 19:21:14 - INFO - - none

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

How long do I have to keep the button pressed after the phone is plugged?... I keep it for 2 seconds then I release it...
[Xperia Z3 Compact General] casouzaj:
Hold the volume down button until the animated window goes out.
[Xperia Z3 Compact General] Eures:
Yes, done!

Version Kernel 22 April 2016

---------- Post added at 08:16 PM ---------- Previous post was at 08:13 PM ----------

This was the trick: Hold the volume down button until the animated window goes out. Thanks Casouzaj!
[Xperia Z3 Compact General] casouzaj:
You're welcome!
[Xperia Z3 Compact General] Eures:
Does anyone know what is the difference between these files?...

- SuperSU-v2.82-20170528234214-TEST-1.zip 5779k

- UPDATE-SuperSU-v2.82-20170528234214.zip 5779k

- SuperSU-v2.82-201705271822.zip 5776k (Supersu.com)

EDIT: the version with the newest stamp contains a patch, but why is it not listed on the Superuser.com website?

Okay, it does not matter.
[Xperia Z3 Compact General] Cioffaz:
Hi guys, just landed here searching a way to root a Z3Compact (wife's phone so, i'm a bit worried!) and i've a question for you. I've read the thread, almost all pages, but i'm not sure i've understood if drm keys are preserved or not this way.

My wish is to flash a newer rom to try to solve a touchpad issue. Using this method to root and install a custom recovery, can i also flash a custom rom? Is it necessary to unlock the bootloader (losing the drm keys) to flash a custom rom?

Thanks a lot!
[Xperia Z3 Compact General] casouzaj:
This tool won't change your bootloader status, at all, for what your wife's DRM keys will be safe after running it. There are some custom ROMs which are based upon the stock firmware. You'll notice that their threads' title use to come with terms like LB, LBL, or so, in a way that you'll know that it could be flashed without having to unlock the bootloader. Nevertheless, if you plan to flash any Nougat or Oreo based ROMs, you'll have to unlock the bootloader beforehand. Prior to doing it, make a backup of the phone's TA partition (which contains the DRM keys - look here: https://xdaforums.com/crossdevice-dev/sony/universal-dirtycow-based-ta-backup-t3514236) and store the generated img file with care.
[Xperia Z3 Compact General] Cioffaz:
Many thanks!

And the TA partition backup can be restored safely after flashing an Oreo, for example, custom rom with the custom recovery flashed with this tool? I'm in no way interested in rooting the phone so this is not a problem.

Thank again! :good:
[Xperia Z3 Compact General] casouzaj:
If you plan to flash a custom ROM which requires an unlocked bootloader, you don't even have to use this tool. Backup your TA partition, unlock your bootloader, then use a fastboot command to flash an updated TWRP image to your FOTAKernel part

partition. Enter TWRP by holding both the power and the volume up buttons. When it vibrates, as if it was being booted up, release the power button. When the screen lights up, release the volume up button. TWRP should come up. Through it, instal, in this order,l the ROM, the gapps packet and the latest Magisk v15.3. Boot it up once. Return to TWRP and install the old Universal Safetynet Fix v1.10.1. You'll pass Safetynet tests.
[Xperia Z3 Compact General] Cioffaz:
And then reflash the DRM backup?

Thanks!
[Xperia Z3 Compact General] casouzaj:
It won't work for OmniROM (neither for CarbonROM, nor for LineageOS). Nevertheless, you'll be able to pass Safetynet tests, and your device will be shown as certified by Play Store.

Just store the TA partition backup, because it will be wiped off by the bootloader unlocking process.
[Xperia Z3 Compact General] Eures:
I finished the procedure and flashed the kernel 291 again, so now the build is 23.5.A.1.291, Jun 28 2016: rooted! :) But why I still receive notification about a new system update 23.5.A.1.291?...
[Xperia Z3 Compact General] vooR9er:
Maybe a software update?
[Xperia Z3 Compact General] Eures:
He said right "system update 23.5.A.1.291", what is already installed on the phone. But now it does not come anymore, we see that it takes a while to get updated...-)
[Xperia Z3 Compact General] fijasko:
It's not even compatible with the other variant of Z3C D5833, unless you flash D5803 firmware, so it's a no go for D6653
[Xperia Z3 Compact General] Eule1408:
I don't get the recovery to work. I always get the following error message.

What's wrong? Why do I get the problems with saying "no directory"?
[Xperia Z3 Compact General] :
Worked. thanks for this! (done on win 10, but needed to run it twice.

Gesendet von meinem D5803 mit Tapatalk
[Xperia Z3 Compact General] madlive:
Can I ask you what you exactly did to get it working? I just need to enter the recovery once to install a customized ROM.
[Xperia Z3 Compact General] mrrflagg:
[MENTION=4675598]shoey63[/MENTION] Error device not supported then it did a reboot without recovery
[Xperia Z3 Compact General] shintaga3212:
good
[Xperia Z3 Compact General] gbossley:
... you drank too much VB mate! Try a decent beer... :)
[Xperia Z3 Compact General] shoey63:
Too late, I've already bought another 30 can block[emoji482]

But seriously, there must be a line in the script somewhere that can be edited to make it compatible. I just can't see it. Maybe after a few beers....
[Xperia Z3 Compact General] SoulFury:
Just enter adb shell , navigate to /data/local/tmp and do "rm mm_twrp_recovery_install". Then rerun install.bat.

As I said, it enters recovery after install, but after that I cannot enter recovery, led is always green, never pink
[Xperia Z3 Compact General] madlive:
Can you install Slimmrom or something the first time you boot into recovery?
[Xperia Z3 Compact General] AfroMetal:
Turn off your phone, press power button and then smash both volup+ and voldown- with 2 fingers. SMASH IT! Smash it harder than Hulk would. You should see the pink led to blink, after it you can stop smashing, phone should boot to recovery.
[Xperia Z3 Compact General] mqmq0:
New firmware is coming, what if I root my phone with this and install the new version?
[Xperia Z3 Compact General] :
Any clue what works to hide root to get boon. from Wirecard working?

Gesendet von meinem D5803 mit Tapatalk
[Xperia Z3 Compact General] HearseRider:
Do I need to backup TA DRM keys before following these instructions?

Hey guys. I wish to root my D5833 using this method. Can someone please tell me if by following the above process I'll lose Sony features such as Noise cancellation and Low Light Camera shots etc?

Do I need to backup TA DRM keys before following the above mentioned steps? I am currently unrooted and am on 6.0.1, but the Backup Ta.bat did not work for some reason.
[Xperia Z3 Compact General] russel5:
Nope, you lose your DRM and Sony features ONLY when you unlock your bootloader.
[Xperia Z3 Compact General] HearseRider:
Thank you so much man, can't believe I'll finally get an option to get rid of bloatware and still stay on the latest official Sony OS. Appreciate your help! :)
[Xperia Z3 Compact General] SoulFury:
:laugh::good: it worked (and was funny XD)

---------- Post added at 08:34 PM ---------- Previous post was at 08:23 PM ----------

[IMG="****thewhat"]https://i.imgflip.com/12ypgm.jpg[/IMG]

Eeeeee....the important thing is we all survived...don't know what the heck is that XDDDDD

[IMG="Mongrel"]http://41.media.tumblr.com/958f3dd38942e23048bfa60cce04cffb/tumblr_mi4uoqd0BZ1qdl765o4_1280.png[/IMG]
[Xperia Z3 Compact General] Metaception:
So, can we flash a prerooted rom like SLiM (Lolipop version) as soon as it reboots in recovery?

EDIT: Looks like we can! Great script!
[Xperia Z3 Compact General] Jayzufu:
First of all i want to thank russel5 for the script.

It worked first try, but now i don´t know how to move on.

I´m first time rooter and i would like to install cm12.1 with gapps.

Do i have to install the cm12.1 from the TWRP-recovery, or do i have to make some backups first?

Can anyone help me with a decent step by step tutorial to install cm12.1?

Thanks for your help!
[Xperia Z3 Compact General] M1chiel:
You cannot install cm without unlocking your bootloader. At this stage you can only flash stock (based) roms. I would not recommend to install cm on the Z3C at this moment, although I really love cm. The two main reasons are that your camera functions will be much worse on cm and that cm is hardly maintained for the Z3C. I can recommend the SLiMM rom. Alternatively you can install a prerooted stock rom like this and debloat it afterwards, or bake your own stock-based rom.
[Xperia Z3 Compact General] Zero_Sherd:
i really want to know if i just need to flash the MM 575.zip by flashtool? if it is, whe is the fourth used?
[Xperia Z3 Compact General] casouzaj:
Rename its extension from zip to ftf, place it in C:\Users\your_username\.flashTool\firmwares, and flash it by Flashrool, in flashmode. After having successfully run this tool, do the same for the 291 kernel.
[Xperia Z3 Compact General] Boolian:
Re: Unable to boot / install TWRP

After wrestling with this process under Win10, I went to developer settings and also disabled "Verify Apps Over USB"

Next run of "install.bat" was successful and device rebooted into TWRP

Now this may just be co-incidence, but I had run install.bat several times prior to this with no success.
[Xperia Z3 Compact General] Zero_Sherd:
Thanks,guy.
[Xperia Z3 Compact General] Tinyshy:
hey, everytime I do this when it reboots to twrp i just get the sony logo but at max brightness and it gets super hot
[Xperia Z3 Compact General] Matombo:
Propably a noob question: When i want to relock and go back to factory state after using this exploit, is it enouth to reflash the factory image with flashtool? or do i have to remove SuperSu, TWRP and busybox by hand and undo root somehow manually?
[Xperia Z3 Compact General] vooR9er:
Hi.

Stitch any firmware through Flashtool and everything will be as it should be.
[Xperia Z3 Compact General] ugeek:
hi I did it well with my previous Z3 compact but my new one gets a boot loop after flashing the 575 kernel.. How do I solve this, please? (and thanks for all this, it's works great for the other one!)
[Xperia Z3 Compact General] ejstubbs:
I rooted my phone and installed TWRP 3.1.1-0 according to this thread and all was well. I later decided to encrypt my phone, and now although TWRP requests my unlock pattern and I enter the correct one, it seems to be unable to decrypt the data.

Is there anything that can be done about this or do I have to factory reset the phone to clear the encryption, and start over?
[Xperia Z3 Compact General] chopitol:
any help with this?

Device Detected!

Installing ...

[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
adb: error: cannot stat 'iovyroot': No such file or directory
[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
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
[Xperia Z3 Compact General] russel5:
Disable your antivirus and redownload files
[Xperia Z3 Compact General] casouzaj:
What's your kernel build date, under Settings > About phone?
[Xperia Z3 Compact General] ArticK:
Kernel Version Build Date Apr 22 17:27:56 2016
[Xperia Z3 Compact General] casouzaj:
Then you have successfully flashed the kernel from the 23.5.A.0.575 ROM, because the kernel from the 23.5.A.1.291 ROM is dated Jun 28 2016. This naming convention is used by Sony solely for the ROM releases, never for their kernel's.

It means that you are ready to run this tool. After you achieve root access and install the zip files through TWRP, don't forget to flash the kernel from the 23.5.A.1.291 ROM back.

Good luck!
[Xperia Z3 Compact General] ArticK:
flash>root>install twrp done :good:

kernel from the 23.5.A.1.291 ROM is dated Jun 28 2016 is already rollback.

could you inform latest Android security patch level that you have it , because latest Android security patch level that i have is May 1, 2016.
[Xperia Z3 Compact General] casouzaj:
The stock Marshmallow ROM is stuck for long 2 years now . I'm running CarbonROM CR6.1 (Android 8.1.0) for a long time. Its latest release' security patch is dated May, 5 2018.
[Xperia Z3 Compact General] dpraved:
This guide made LLLL_LLLL needs to be added to the 1st post. russel5 edit?

https://xdaforums.com/showpost.php?p=72154197&postcount=660
[Xperia Z3 Compact General] shigit56:
Does this work on z3c d5833 with build number 575?
[Xperia Z3 Compact General] casouzaj:
Yes, it does! If you plan to keep this build, just run the tool and install the root manager zip file (Magisk or SuperSU or phh' superuser) under TWRP, and you'll be all set! You don't have to switch kernels either before or after the procedures.
[Xperia Z3 Compact General] shigit56:
i can't find the root manager zip file ? all i got here is the update_recovery.zip and recovery_for_mm575.zip which has the bat file sorry for being stupid haha it's just my first time rooting and i really don't want to mess this up thnx :o:o
[Xperia Z3 Compact General] casouzaj:
As your bootloader is locked, I guess the way to go is through SuperSU in system mode. Look here: https://xdaforums.com/apps/supersu/stable-2016-09-01supersu-v2-78-release-t3452703.
[Xperia Z3 Compact General] Bierzelter:
Thx for the tutorial.

But at one point I'm stuck.

What zipfile should I downlaod?

If it's the "recovery_for_mm575.zip" than the link is not working 4 me. It redirects me on an endles loop to this thread :-/

If I should find the instal.bat somwhere else, please tell me. :)
[Xperia Z3 Compact General] calinro:
So, I am new in flashing phones but expert in computers and still cannot find a way in this!

First, installing the drivers in Win10 64 is a challenge. You have to start without the drivers signature checking, or you will fail.

Second, FlashTool does not recognize any .zip file. You have to rename them tot .ftf.

It's a real effort to manage FlashTool to recognize the phone in fastboot mode. Power off, connect, drivers, and so on...

I've managed to flash kernel 575 (after 2 hours of net research on how to solve all this issues). Restarted the phone and in About Phone it still says ROM .291 ! .... ?!?!?!?

Then we have to reboot in Custom Recovery... How is that?!? Vol- and Power? Starts the phone normally. Vol+ and Power? Does nothing!

I am aware that this is a community of experts in phone software, but still... spare some patience for the newbies and explain a little more, please.
[Xperia Z3 Compact General] casouzaj:
This has been answered many times on this tread. 22.5.A.1.291 is the ROM naming scheme adopted by Sony, not the kernel's. In order to know which kernel is loaded, head over to Settings > About phone, and check the kernel 's build date. If it shows April 22, 2016, it's from the 575 ROM. Otherwise, if you see June 28, 2016, then it's from the 291 one.
[Xperia Z3 Compact General] casouzaj:
Any other adb users running, like FlashTool, Sony's Xperia Companion, etc, in background? If so, kill them and try again.
[Xperia Z3 Compact General] randoe:
error device null not found, help

in background i will close all, flastoll, sony companion,

I tried again, but the result error device not found

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

* daemon started successfully *

error: protocol fault (couldn't read status): Invalid argument

Device Detected!

Installing ...

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

* daemon started successfully *

error: device '(null)' not found

error: device '(null)' not found

error: device '(null)' not found

error: device '(null)' not found

error: device '(null)' not found

error: device '(null)' not found

error: device '(null)' not found

error: device '(null)' not found

error: device '(null)' not found

error: device '(null)' not found

error: device '(null)' not found

error: device '(null)' not found

error: device '(null)' not found

error: device '(null)' not found

error: device '(null)' not found

error: device '(null)' not found

Finished!

Rebooting into TWRP recovery ...

error: device '(null)' not found

Press any key to continue . . .

---------- Post added at 01:39 PM ---------- Previous post was at 01:28 PM ----------

I tried again, check adb devices the result

Microsoft Windows [Version 6.1.7601]

Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Program Files\Minimal ADB and Fastboot>adb devices

List of devices attached

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

* daemon started successfully *

C:\Program Files\Minimal ADB and Fastboot>adb reboot bootloader

error: no devices/emulators found

C:\Program Files\Minimal ADB and Fastboot>

thank you, sorry my english bad:angel::angel::angel:
[Xperia Z3 Compact General] casouzaj:
Have you enabled USB debugging, under Developers' settings?
[Xperia Z3 Compact General] randoe:
usb debug already enabled, but not permit access, I am confused, driver is already installed, when usb debugging is enabled like no access
[Xperia Z3 Compact General] casouzaj:
Do you have FlashTool installed? If so, have you installed the first two drivers in the list plus the one specific to your phone model, up to the point where Windows itself installs them, by running the executable file present in C:\FlashTool\drivers, and, then, rebooted your PC?
[Xperia Z3 Compact General] randoe:
i have installed flashtool driver, sony companion, sony manual driver, but usb debugging is not detected, and pc is already on reboot, do you have any suitable driver suggestions, thank you

My phone z3 compact d5803, version android 6.01

Versi kernel fri apr 22 17:27:56 2016, / 23.5.A.0.575

Bootloader unlock allowed: no
[Xperia Z3 Compact General] randoe:
thanks, i have succeeded, i did reset my windows, install the driver back, new connection to my device, there is new request permission connection...:laugh::laugh:
[Xperia Z3 Compact General] casouzaj:
Glad that you've managed to sort your problems out!
[Xperia Z3 Compact General] randoe:
Well i suspect against his driver, because there is no request permitt debugging, finally decuded to reset my pc, thanks
[Xperia Z3 Compact General] randoe:
Hii, my device lock bootloader can i flash costum rom?
[Xperia Z3 Compact General] casouzaj:
By keeping your device's bootloader locked, you could flash only custom ROMs which are based on the stock one, with the very same stock kernel. If you were thinking about CarbonROM, LineageOS or the like, you'd need to unlock its bootloader, because those ROMs come with their own kernels. Launch your phone's dialer and dial in *#*#7378423#*#*, go to System info > Customization, and if you read 'yes' under 'Bootloader unlock allowed', then you could unlock it. If so, don't forget to backup its TA partition prior to unlocking it.
[Xperia Z3 Compact General] randoe:
Me bootloader allowed no, so i can't flash costum rom:(:(:(, thank' this info:D
[Xperia Z3 Compact General] trinhhongha90:
Can we install Magisk on locked boot loader?
[Xperia Z3 Compact General] casouzaj:
No, because Magisk patches the ramdisk, which is part of the kernel. With a locked bootlace you wouldn't be allowed to install such a modified kernel.
[Xperia Z3 Compact General] petr232:
Is it possible to somehow decrypt partition with TWRP 3.1.1-0? I tried to remove the device password or change to pin but TWRP always fails...

EDIT: I want to decrypt the data partition because it seems SuperSU cannot be installed without it - mounting /system in TWRP and flashing the .zip does nothing :(
[Xperia Z3 Compact General] n0j0e:
Sry for dump question. Absolutly stock 6.0.1 with Build 23.5.a.1.291. Is it possible to root with this method here from OP without data loss?
[Xperia Z3 Compact General] casouzaj:
Yes! You just need to flash the kernel from the 23.5.A.0.575 ROM, prior to running the install.bat file on your PC, and flash the 291 kernel back, afterwards.
[Xperia Z3 Compact General] emmcZ3C:
WSAPoll, WS2_32.dll, Win XP, adb.exe

Hi, really newbie here...

thx a lot for the good guide!

I've just manage to flash the .575 kernel after loosing hours trying to resolve a "root: this bundle is not valid" error... that finally I simply ignore and everything went well.

Now when run "install.bat" from "recovery_for_mm575" folder I have an error: "The procedure entry point WSAPoll could not be located in the dynamic link library WS2_32.dll." I'm on XP.

Was reading that the most recent adb.exe have problems on XP so the question is: can I simply replace the "adb.exe" in the "recovery_for_mm575" folder with an older one as ie taken from "platform-tools_r16.0.2-windows"?

I think it should it be OK but need a confirmation, please.

Thanks a lot!!!

Edit: PS: I've just tried running "adb devices" in command line using the adb.exe of platform tools 16 and it shows my device while with the adb.exe of the recovery folder of course I get the same WSAPoll error.
[Xperia Z3 Compact General] emmcZ3C:
Finally I can answer by myself... and can be useful for anyone having the same problem.

Yes! No problem to replace the adb.exe with an older version for XP users that have the "WSAPoll" error.

Everything OK without any problem! My Z3C is finally rooted.

Thanks everyone!