yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 General] shoey63:
Looks like its trying to patch the kernel.elf boot partition, which it can't do.

Try a system mode version https://xdaforums.com/apps/supersu/v2-64-2-66-supersu-mode-t3286120
[Xperia Z3 General] juanpirulo:
Thanks mate, that was the problem, i ve got it with this supersu on system mode. cheers
[Xperia Z3 General] nri_tech1183:
I want to root my brothers D5833 xperia z3 compact.

So is there similar simple method to root D5833 without unlocking bootloader???
[Xperia Z3 General] casouzaj:
This method doesn't require you to unlock your bootloader, at all. For the Z3C phone, the thread in which shoey63 based his work on is this one: https://xdaforums.com/z3-compact/general/recovery-root-mm-575-lb-t3418714. It contains the kernels for your model.
[Xperia Z3 General] Bloodlvst:
[MENTION=4675598]shoey63[/MENTION]

What's the difference between this method and Wolfbreak's RecRoot? Are there any pros/cons from this one versus that one? Just trying to see if there's something that appeals to me to switch :)
[Xperia Z3 General] mrbonine:
Looks like D6616 not supported. Can someone point me to:

1) Method for D6616 locked bootloader (Z3 T-Mobile) to attain 6.0.1 rooted with custom recovery.

and/or

2) Method to unlock D6616 bootloader, then load custom ROM, custom recovery, root intact with known loss of Sony DRM. I'm looking for a ROM with all 6.0.1 functions intact: wifi calling, other T-Mobile specifics like Digits (multi/dup line appearance beta) supported.

Sorry if off topic, everytime I look for a solution as above I seem to go in circles on D6616. I don't g.a.s. about Sony content since the stock camera was bait/bloatware. I decided I give Sony a retry after mixed experience with 5.1/7.1 tuner amps, WTF was I thinking...
[Xperia Z3 General] shoey63:
The end result is the same. (Same recovery, byselinux etc.)The big difference is recroot requires a rooted device to start with, while this method can be run on untouched stock 575/291 MM.
[Xperia Z3 General] shoey63:
First root https://xdaforums.com/showthread.php?p=58956042 Then use recroot https://xdaforums.com/showthread.php?p=65856403
[Xperia Z3 General] Alexdoit:
Install Jaguar Leo LP 5.1.1 Official Hardened

Hi,

First thank you for this great tool, it works fin, bur now I'm not sure what should be my next step.

(2) If I understand everything right I can install a custom ROM after I use the tool and twrp boot , is It right?

(3) Is it also possible to install the Jaguar ROM (https://xdaforums.com/z3/orig-development/rom-jaguar-leo-lp-5-1-1-official-t3482840?nocache=1), I ask at this threat and it's look like it isn't possible, but I understand not enough to be sure. Maybe the only problem will be the vision of twrp --> (3b) is it possible to install another twrp supported by this tool?

(4) My "plan B" is to install SuperSU but I'm not Sure what i have to do. First I must activate root, right? But how? Then I install SuperSU via install button and the apk is an the phone or sd-card - right? :fingers-crossed:

Big thanks to everyone in this forum - I'm not often see people with so much patience, so I hope anyone can help me.
[Xperia Z3 General] ThemGo:
Good to hear! :good:

Which one of the TWRPs from korons AICP thread did you flash? https://xdaforums.com/devdb/project/?id=17990#downloads

Did you have to unlock bootloader?
[Xperia Z3 General] shoey63:
The first thing you should do is open your dial pad and type *#*#7378423#*#* and go to Service info > Configuration, and check your Rooting status. What does it say?
[Xperia Z3 General] Alexdoit:
That say the same like on the beginning of my project: Bootloader unlock allowed: Yes.

I read a few of threads an posts and so I hope I understand it right, bootloader is closed but unlocking is possible. What I don't understand what does it say about Rooting status. Before you ask me that, I think its only mean the Bootloader - I'm confused.

Thank you for your help and your fast answering!!!
[Xperia Z3 General] ThemGo:
Am I getting this right, the normal SuperSU did not work for you?

If so, then how could this happen that the normal SuperSU does not fit? :confused:

And how will I know before if I need the normal SuperSU or the one with system mode?

What is the difference between both versions of SuperSU?
[Xperia Z3 General] ThemGo:
Beside kernel.sin also loader.sin has to be shown, am I right?
[Xperia Z3 General] shoey63:
You are correct. Your bootloader is currently locked, but you can unlock it. If you do, the rooting status will change to "Rooted". This is because you now have access to system files by flashing a custom recovery, even if you haven't flashed a superuser zip.

Just make sure you backup your TA partition prior to unlocking, if that's what you want to do.
[Xperia Z3 General] casouzaj:
Yes!
[Xperia Z3 General] banounraouf:
Root
[Xperia Z3 General] shoey63:
Flash zip
[Xperia Z3 General] HEKER510:
no need to rewrite anything

You can just right click the mouse down to select all the files and up and pulled off a letter .ftf and downloading

been tested and functionally
[Xperia Z3 General] ThemGo:
Now I also did it, I successfully updated and rooted a Z3(D6603) and a Z3TC(SGP621) to Android 6.0.1 (.291) with this guide.

Many thanks, shoey63!

I also installed Xposed (xposed-v87-sdk23-arm.zip / XposedInstaller_3.1.1.apk). And I can recommend Titanium Backup Pro for a seamless continuation - most of the app data, account informations and histories (calls, SMS,...) were restored.

One word to Z3TC: it is no problem if one uses the appropriate kernel for Z3TC, not the one for Z3 - it should currently be still available for download with XperiFirm.
[Xperia Z3 General] OverSu:
Argh, I can't make this work...

This is what I have done :

- Start from a fresh STOCK .291 on Xperia Z3

- Start OK

- Reboot in Fastmode and flash Kernel .575 via Flashtool

- Reboot, phone stucks on logo...

I can't even pass through this in order to reflash the .291 kernel and flash the linuxrom... T.T

Any idea ?
[Xperia Z3 General] shoey63:
It worked for you before https://xdaforums.com/showthread.php?p=71869376. . . .
[Xperia Z3 General] OverSu:
That's right. With that impossible to flash any rom. I tried Linuxrom, ExistenZ ect. So I guessed I have made a mistake.

After that, I decided to start from scratch ;)
[Xperia Z3 General] roy022794:
hi, is there a way to remove this recovery and root or uninstalled from the phone??

D6653 Z3 user
[Xperia Z3 General] shoey63:
You need to flash /system with FlashTool or repair with PC companion.
[Xperia Z3 General] roy022794:
so i just need to flash stock FTF file in the flashtool and it will remove the recovery and root

thanks for the quick reply btw
[Xperia Z3 General] shoey63:
Yep, make sure to exclude userdata from wiping.
[Xperia Z3 General] mrbonine:
Thank You!

My main phone (G900T) hasn't been stable so I haven't attempted this yet. I generally have to redo these steps a few times to get it right, but will try to add another TY when done.
[Xperia Z3 General] Serial Kazama:
Hello after flashed the 575 Kernel and flashed TWRP, touch dos not working. I alrady using the v5 Tool
[Xperia Z3 General] shoey63:
Flash 291 kernel for your device variant back again.
[Xperia Z3 General] Fus Roh Dah:
I used this method once and it worked on my D6653. I installed existenz rom later. I wanted to try another rom so I used flashtool to revert to stock rom. Since then this method can no longer install recovery. After following the steps, cmd says that it has been successfully installed but then my phone just restarts normally. It did not boot to recovery menu. I wonder what I'm doing wrong. Please help me.
[Xperia Z3 General] Licaon_Kter:
Enter recovery manually with VOLUME DOWN on start, it does not work?
[Xperia Z3 General] Fus Roh Dah:
It doesn't work. It boots normally. Led indicator doesn't blink from green to violet. It doesn't blink at all.
[Xperia Z3 General] casouzaj:
Run the install.bat file again. If your phone still doesn't automatically boot into TWRP at the end of the process, please, post the contents of the command prompt window.
[Xperia Z3 General] Fus Roh Dah:
Finally I was able to install recovery. This seems weird but I think the problem is with the version of the .291 ftf that I flashed before trying to install recovery. I installed another variant of .291 ftf then everything worked fine. :D
[Xperia Z3 General] glimmling:
I have the SGP612 with german firmware(.291) and bootloader unlocked. With XperiFirm I downloaded 23.5.A.0.575 Taiwan firmware, the only 575er, which is still online for the SGP612. Then I flashed only the 575 kernel and rebooted the tablet. All ok so far.

With an Hex-Editor I edited the iovyroot binary and replaced SGP621 with SGP612 to support my device and not to abort with an error. The install.bat runs fine, but it doesn't reboot to recovery and there is no led on when booting. Maybe my device needs another patching address?

Here is the 575 kernel.sin for SGP612

Thank you!
[Xperia Z3 General] shoey63:
You don't need to use this method if your bootloader is unlocked. Just flash twrp or a custom kernel with embedded recovery.
[Xperia Z3 General] corpcz:
Hi guys. I made clear installation of .291, then flash kernel.575, after that running Install.bat and phone just reboot. Adb works.

The system cannot find the path specified.

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

* daemon started successfully *

Device Detected!

List of devices attached

CB5A22NPWW device

Cleaning up for fresh install ...

Installing ...

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 dir

ectory

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

Finished!

Rebooting into TWRP recovery ...

Press any key to continue . . .
[Xperia Z3 General] casouzaj:
Have you extracted the downloaded zip file to a folder, or are you running the install.bat from within the zip? Please, extract it!
[Xperia Z3 General] corpcz:
Thanks for your reply. It seems to be a problem in attached Xperia Z3 Rooting Package .291.zip. In adb tool command "adb push..." does not works. Solution was use my own adb tool. !!!
[Xperia Z3 General] kukom6:
I flashed .575 kernel but after started phone, about phone still shows build number .291. In the flashtool log is not any errors. Unknown sources and USB debugging are enabled. Any idea?
[Xperia Z3 General] casouzaj:
That numbering scheme belongs to the ROM. In order to check which kernel is installed, check the kernel build date, under Settings > About phone. If it shows April, 22 2016, it's from the 575 ROM. Otherwise, if it's June, 28, 2016, then it's from the 291 ROM.
[Xperia Z3 General] kukom6:
thx for clarifying :),

However, I have another problem. When mobile phone restarts to TWRP, TWRP asking for a password to decrypt but I don't have any password. I used the pattern for decrypt after the mobile started but I disabled it and this time I don't use encrypt/decrypt anymore.
[Xperia Z3 General] Licaon_Kter:
Ignore that, you don't need /data access for these operations, just put whatever you want to flash in /cache ( don't clean cache before flashing ;)!! )
[Xperia Z3 General] corpcz:
It is just kernel. It does not change build version.
[Xperia Z3 General] marvi0:
Hello any news please on SGP611 root?
[Xperia Z3 General] koekoek91:
[MENTION=4675598]shoey63[/MENTION]

Thank you for this.

I am more used to rooting the Z5 and my current phone the XZ.

My friend has asked me to help him root his Z3. We plan to do this tomorrow, but I just wanna make sure about a couple of things before im gonna do it.

He is on .291 firmware but I am not sure yet if he has his bootloader unlocked already or not.

If I were to use the method of this thread, is it possible with both locked and unlocked bootloader and is the process the same?

Also (this will be a noob question:silly:) I can't seem to change the zip extension from the kernel zips on this thread to ftf. Normally I usually just rename to ftf but it doesn't work now.

Then my second question:I read a couple posts back that if bootloader is unlocked we can just flash a custom kernel and then TWRP or a custom kernel that has TWRP included.

Can you recommend me a file to use, I mean a custom kernel and TWRP for Z3 D6603 on firmware .291 (in case his bootloader is unlocked, so I could go that way IF I wanted).

There are multiple TWRP and kernel files here on XDA for Z3 D6603 but since this is not my own phone I am a little bit more hesitant than I usually am with my own XZ lol so I am affraid I might choose the wrong files.

Again... I don't know if my friend already unlocked his bootloader, but im just trying to find the most hassle free method to get him on a rooted Z3 :p

Thanks for your time and work mate!:good:
[Xperia Z3 General] Licaon_Kter:
The thread title says it's for both ( LB / UB ) ;)

Windows? You need to enable "show extensions" in Folder properties first. You need replace the ZIP in the name with FTF!
[Xperia Z3 General] koekoek91:
Thanks for your reply. I will try.

I was asking about if it would work on LB and UB mainly because I was wondering if the steps to take are the same for both scenario's?

Edit: Changing the extension now worked and flashtool recognizes the kernels, so thanks for that.

The only thing I still want to be sure of first now is if the steps to take using this method would be the same for locked and unlocked bootloader? :o
[Xperia Z3 General] Licaon_Kter:
I don't see any reason not to be.
[Xperia Z3 General] koekoek91:
Okay thanks, I thought so.

It's just.. this phone I'll be rooting is not my own device so I want to be extra careful not to ruin it lol.

Thanks for your help :good:
[Xperia Z3 General] shoey63:
You will be OK.

Just make sure you have ADB and FlashTool set up properly. And yeah, show hidden files and file extensions in Windows file options.
[Xperia Z3 General] koekoek91:
Okay thanks man.

I assume minimal adb and fastboot will be okay to use?
[Xperia Z3 General] koekoek91:
[MENTION=6749263]Licaon_Kter[/MENTION] [MENTION=4675598]shoey63[/MENTION]

It worked fine.

Thanks again for your help guys:good:
[Xperia Z3 General] CM_DEV:
man, you really need to make a video tutorial of the procedure of the D6633 for dummies *ehm*. explain it like im 5 yo
[Xperia Z3 General] Licaon_Kter:
The order is this:

* Update to .291 as usual via OTA from Sony or flashing directly.

* Use FlashTool to flash the attached .575_kernel.zip for your device before running the recovery tool. You need to re-name the zip and change the .zip extension to .ftf before flashing it!

* download that Recovery_for_MM575-291v5.zip from the thread and extract it

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

* run install.bat (as Admin just to be sure)

* after running the tool to get recovery, reboot press volume down on start until you enter TWRP, flash SuperSU 2.82 (do not get the version released by the user SU Release from 20170527 since that has the bootloop for Xperia bug!), put it on the device in or on a USB stick if device is encrypted.

* re-flash the .291 KERNEL back again, without losing root or recovery, with Flashtool using the attached .291_kernel.zip for your device. Again, change/re-name the .zip extension to .ftf first!

This info is there but not in this order, you'll need to read more if any of these don't make sense.

If on Windows, in FolderSettings->Show file extensions to be able to rename from ZIP to FTF.
[Xperia Z3 General] shoey63:
[MENTION=6749263]Licaon_Kter[/MENTION]

added you more comprehensible instructions to the OP. Thanks ?
[Xperia Z3 General] CM_DEV:
thank you

man, i love you that was super clear..
[Xperia Z3 General] SheepWind:
After I've used Flashtool to flash .575_kernel.zip should this show in About > Build number? I've followed this guide but I've not been able to downgrade from MM 291 to 575.

Additionally this guide doesn't work when I use Flashtool to install MM 575 directly. When I run install.bat my device restarts straight to system, so it seems like recovery isn't installed.

I'm not sure what I'm missing. I have a D6653 with an unlocked bootloader. Can anyone help? :)

EDIT: Solution was posted by casouzaj below. I could check to see if the MM575 kernel was flashed by checking the build date was April 22nd 2016. I ran the install.bat again and I was able to boot into recovery. Thanks casouzaj!
[Xperia Z3 General] casouzaj:
To check which kernel is installed in your phone, go to Settings > About phone > Kernel version, and check its build date. If it is April, 22, 2016, it's from the 575 ROM. Otherwise, if it shows June, 28, 2016, then it's from the 291 firmware, instead.

If TWRP didn't come up automatically at the end of the process, run the install.bat file again.
[Xperia Z3 General] Rizaria:
This is all I get when trying to run the .bat.

I've checked and double checked, I'm on the right firmware (D6653_23.5.A.1.291) and I've got the right kernel on (checked via the date posted just above) so I'm at a bit of a loss.

EDIT: Fixed. Installed Minimal ADB and fastboot and replaced the files with those. Worked fine.
[Xperia Z3 General] Chocozell:
Hello!

I've never flashed a kernel. Before to flash .575,I have to put my phone in Fastboot mode?

Edit: Nothing. Once I've flashed the Kernel .575, I should see the .575 in "About the phone"?
[Xperia Z3 General] casouzaj:
No, you have to rename the kennel extension from zip to ftf, place it in C:\Users\your_username\.flasTool\firmwares, and flash it through Flashtool, in flashmode. You should see which kennel is loaded in its build date in Settings > About phone. If it shows April 22, 2016, then it's from the 575 ROM. If you see June 28, 2016, then it's from the 281 one.
[Xperia Z3 General] Chocozell:
I forgot to post. I've done it.

I had to disable the Debug USB and then turn on to flash the recovery.

Thanks :D
[Xperia Z3 General] meidan95:
Hi..i need help

I don't know why but after i flashed the kernel nothing happened, can't get into recovery. even when i get into fastboot to flash any .img it shows that flash is ok but when i turn the phone on it looks like nothing change.

what's the problem? that's strange :\

on .575&UB D6603
[Xperia Z3 General] Chocozell:
I had the same problem. I disabled Debug USB from Devolper options and then it worked for me
[Xperia Z3 General] meidan95:
For me, when I tern USB Debugging off, ADB can't find my phone

Im not using my z3 because I can't get root and recovery and I miss him so much..I used fastboot and adb a lot in the past and that's never happened to me
[Xperia Z3 General] Gu5t4v0:
Friends, somebody help me, please. I'm installing the .575 by Flashboot and it seems to work, but when restarting the cell phone, the information is still in the version. 281

So I try to install recovery and the end the mobile reboot, but restarts normally and not in recovery mode. What do I do?
[Xperia Z3 General] Chocozell:
I had the same problem. Solved by disabling Debug usb

Inviato dal mio D6603 utilizzando Tapatalk
[Xperia Z3 General] Gu5t4v0:
I disabled the debug USB, but the problem continues...:(
[Xperia Z3 General] casouzaj:
Guys, the 23.5.A.1.291 notation is the ROM code, not the kennel's. You must search for the kennel build date, under Settings > About phone. If it shows April 22, 2016, then it's from the 575 ROM. Otherwise, of you see June 28, 2016, it's from the 291 ROM.

If TWRP doesn't come up after running the install.bat, run it again. And USB debugging must be enabled. Otherwise, adb won't detect your phone. If your PC still doesn't detect your phone, look at its screen or notification bar for an authorization popup and grant it.
[Xperia Z3 General] Gu5t4v0:
OK...

Once again I tried to reinstall the install.bat and see what appeared:

* Server not running *

* Daemon not running. Starting it now on Port 5037 *

* Daemon started successfully *

Device detected!

List of devices attached

BY900FCXKZ Device

Cleaning up for fresh install...

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

[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

[+] Allocatable Memory

[+] Func ptr installing

[+] Patching address 0xc12350a8

[+] Start map/unmap thread

[+] Start Write Thread

[+] Spraying kernel heap

[+] Start Read thread

Finished!

Reboot into TWRP recovery...

Error: No devices/emulators found

Press any key to continue...

___________________________________________

So the cell phone rebooted normally, but not in recovery....

:(
[Xperia Z3 General] casouzaj:
Run it again and again. When it works, it throws a lot of messages in the command window and your phone reboots into TWRP.
[Xperia Z3 General] Karlmadur:
I had these same problems and this helped me:

http://www.teamandroid.com/2016/06/15/install-fastboot-adb-google-usb-drivers-windows/

edit:

now I´m rooted
[Xperia Z3 General] proveisso:
I think I`ve already ran install.bat some 20 times, and every single one of them, no boot to recovery.

Checking install.bat, it uses "adb reboot", not "adb reboot recovery" - shouldn't this be used instead?
[Xperia Z3 General] shoey63:
Try another cable, and or USB port.
[Xperia Z3 General] proveisso:
just tried 4 different cables, and 3 different USB ports, same result =(
[Xperia Z3 General] Roy Aldo Y:
04/045/2017 12:45:16 - INFO - Selected Bundle for Sony Xperia Z3(D6603). FW release : 23.5.A.0.575. Customization : Kernel Only

04/045/2017 12:45:16 - INFO - Preparing files for flashing

04/045/2017 12:45:16 - INFO - Please connect your device into flashmode.

04/046/2017 12:46:12 - INFO - Device connected in fastboot mode

04/005/2017 13:05:12 - INFO - Device disconnected

04/008/2017 13:08:26 - INFO - Opening device for R/W

04/008/2017 13:08:27 - INFO - Start Flashing

04/008/2017 13:08:27 - INFO - Processing loader.sin

04/008/2017 13:08:27 - INFO - Checking header

04/008/2017 13:08:27 - ERROR - Processing of loader.sin finished with errors.

04/008/2017 13:08:27 - INFO - Ending flash session

04/008/2017 13:08:27 - ERROR - null

04/008/2017 13:08:27 - ERROR - Error flashing. Aborted

04/008/2017 13:08:27 - INFO - Device connected in flash mode

04/008/2017 13:08:48 - INFO - Device disconnected

i cant flash the kernel.

Please help me,Thanks
[Xperia Z3 General] shoey63:
Try it again. Sometimes it works a second time.