yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 General] nri_tech1183:
I have already rooted my D6653 previously using this but somehow had to remove the root.

Today when I tried following the steps as before, I always kept encountering this error:

In fact after 6th line it never automatically went ahead so had to press <enter> then it moved bit further and again had to press <enter> then it kept giving error.

The phone did booted into TWRP but it gave error:

I still went ahead and installed SUpersu and then twrp prompted would you like to install twrp into system or something like that....

I would like to know is my phone rooted? Or did something went wrong??

First of all why I kept encountered such error once i did Install.bat ??
[Xperia Z3 General] casouzaj:
And what seems to be the problem? This is the first screen. Just mark the box that says to never show this screen again and, if you plan to keep the system partition read-only, tap the corresponding button. Otherwise, slide the bar at the bottom.
[Xperia Z3 General] nri_tech1183:
Obviously the problem is that the install.bat never went smooth for no obvious reasons.

I want the exact cause to know that.
[Xperia Z3 General] casouzaj:
From the screenshots you posted, if TWRP is installed, then the tool worked, and, thus, you have root access. Have I missed something?
[Xperia Z3 General] styropian:
I follow this instruction and I'm not able to past step #6 ( Flash .575 kernel ) my errors on atteched picture.

My device is D6603 ,Kernel -June28, Build 23.5.A.1.291

Bootloader is locked.

Please help
[Xperia Z3 General] shoey63:
Try a few times.
[Xperia Z3 General] styropian:
Shoey, my conclusion for getting an error is my kernel is from Rogers Canada.

Please kindly edit my kernel so I will be able to continue this project.

https://drive.google.com/file/d/1pqWKS1NeOVNbn6Jv2gyw-Ap-6eu5xXNA/view?usp=sharing

thanks

Adam
[Xperia Z3 General] styropian:
edit: I was able to connect and flash z3.The problem was the driver did not install properly.1

After flashing few times D6603-6653_23.5.A.0.575_kernel.zip I'm still on .291 but kernel date has been changed to April from June.

I'm now in recovery backing up everything.

I'm not sure if I should proceed and flash superSU since my kernel is not 575, but I try many times with 2 different comp win 7.

Please let me know if ok to go ahead with super Su ,also at the end should I go and download D6603-6653_23.5.A.0.291_kernel.zip and update my z3 or leavit since is still .291?

Thanks
[Xperia Z3 General] shoey63:
575 kernel is April. 291 kernel is June. Flash 291 kernel and proceed with root.
[Xperia Z3 General] styropian:
Shoey,

I rooted successfully.

Question: since after executing step # 6.I never get this (Turn on and now we should be in .575!)

Instead, I'm still on .291 with kernel date April 22.I proceed with the root which finishes successfully.

Please take a look at the photos.

What should I do now?

1.Leave as it is.

2.Overwrites existing .291 with the one from a 1st page? after flashing this one I should get the date change back to June?

D6603-6653_23.5.A.0.291_kernel.zip

D6633_23.5.A.1.291-kernel.zip ---this one !!

edit: I checked DRM keys: *#*#7378423#*#*

It says [Key OK][Active] for all items.

Please advise.

Thanks
[Xperia Z3 General] shoey63:
291 in settings is the build number of the rom, not the kernel and won't change regardless of what kernel is flashed. As said repeatedly, if your kernel date is April, you are on 575 kernel, if June it is 291 kernel. Flash the 291 kernel for your variant, (in your case the 6603-6653 one.) You wont lose root or recovery.
[Xperia Z3 General] FardeenTGO:
Since the kernel and recovery are in the same partition in xperia devices wilI flashing a custom rom remove the recovery?
[Xperia Z3 General] shoey63:
Locked bootloader roms should come with with their own recovery. For unlocked bootloader, twrp can be flashed to the FOTAKernel (recovery) partition and accessed by holding power plus volume down when turning on the phone.

This tool uses a hacked system file to boot to twrp, so yes, it will be overwritten when flashing a rom.
[Xperia Z3 General] Aphex33:
Hi, just wondering if this method works for the Dual Sim version D6633?
[Xperia Z3 General] shoey63:
Of course. That's why kernels for it are in the first post.
[Xperia Z3 General] kensaundm31:
I get Device not supported error after running install.bat, but its a Sony Z3?

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

Error: Device not supported

Device name: D6603

Kernel version: Linux version 3.4.0-perf-gc14c2d5 (BuildUser@BuildHost) (gcc version 4.9.x-google 20140827 (prerelease) (GCC) ) #1 SMP PREEMPT Tue Jun 28 11:15:51 2016

Finished!

Rebooting into TWRP recovery ...

Press any key to continue . . .
[Xperia Z3 General] casouzaj:
You still have the 291 kernel in place. Flash the 575 kernel beforehand, and the 291 one back, at the end, after having successfully run this tool.
[Xperia Z3 General] kensaundm31:
Thanks, but after trying to flash it again from flashtool it doesnt see the 575 kernel. I think it is sbecause adb is not working because it says

"adb server version (32) doesn't match this client (36)"

This is all very confusing!
[Xperia Z3 General] casouzaj:
Is Flashtool, Xperia Companion or any other program which make use of adb running, even in background? If so, kill it and try running this tool again.
[Xperia Z3 General] kensaundm31:
Yes, that was the problem, thanks to you and to the op, it all seems to have worked! I mainly just wanted to get rid of all the bloatware, so thanks.
[Xperia Z3 General] clvelizq@gmail.com:
Someone knows if this method works for bootloader unlock allowed: no
[Xperia Z3 General] Licaon_Kter:
Works fine. Follow the steps.
[Xperia Z3 General] Andresilent:
How you do that

i'm experiencing the same issue and i don't have any idea on how to solve it

Would you explain me how yo managed it to work? you say you used your own adb tools but how is that?

thank you in advance :D
[Xperia Z3 General] clvelizq@gmail.com:
works!

It worked! root + twrp, I have a question if I delete the rom stock and install lineages will there be any problems?
[Xperia Z3 General] casouzaj:
If you read 'Bootloader unlock allowed: no' in the Service menu, then you won't be able to run any firmwares which come with their own kernels. That includes all the cooked Nougat and Oreo builds available. Sorry!
[Xperia Z3 General] bhant10:
hey how i root android dpn 4 for z3
[Xperia Z3 General] shoey63:
By asking in the right thread. And please don't cross post.
[Xperia Z3 General] orangzeb:
Will it work on :

Android 6.0.1 Stock Sony

D6603

23.5.A.1.291

Bootloader can be unlocked : Yes
[Xperia Z3 General] casouzaj:
Yes, but you have to flash the 575 kernel, prior to running this tool, and flash the 291 one back, as the last action.
[Xperia Z3 General] orangzeb:
Thanks and where it says : " * Make sure you have ADB set up correctly."

What does it exactly mean?
[Xperia Z3 General] casouzaj:
This tool comes with its own adb deamon. Nevertheless, your phone has to be detected. Go to C:\FlashTool\drivers and run Flashtool-drivers.exe. Install the first two drivers in the list, plus the one which is specific to your phone (towards the end). Note: If you are running Windows 8, 8.1 or 10, you'll have to disable drivers signature during init, prior to installing the drivers. Google for the specific procedures for your particular Windows version. And enable USB debugging (in Developers settings) on your phone.
[Xperia Z3 General] orangzeb:
Thanks, that clears alot, I thought it was something to do about booting into fastmode etc.

Thanks again.
[Xperia Z3 General] 22070338:
magisk

How to swich to magisk?

I have finished all the steps,but now i want to switch from SuperSU to Magisk.

Are there have any ways to swich,after finished all the steps?
[Xperia Z3 General] nri_tech1183:
My D6653 got bricked due to a rom so i flashed STOCK D6653_23.5.A.1.291_1288-8717_R2D

Then tried your method and this is whats its greeting me with:

ERROR - The bundle does not match the connected device

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

23/054/2018 17:54:02 - INFO - Flashtool Version 0.9.24.4 built on 01-02-2018 22:15:00

23/054/2018 17:54:03 - INFO - Searching for a web proxy

23/054/2018 17:54:03 - INFO - No proxy found, using direct connection

23/054/2018 17:54:03 - INFO - Syncing devices from github

23/054/2018 17:54:03 - INFO - Opening devices repository.

23/054/2018 17:54:03 - INFO - Scanning devices folder for changes.

23/054/2018 17:54:07 - INFO - Pulling changes from github.

23/054/2018 17:54:08 - INFO - Devices sync finished.

23/054/2018 17:54:09 - INFO - Loading devices database

23/054/2018 17:54:09 - INFO - Loaded 101 devices

23/054/2018 17:54:09 - INFO - Starting phone detection

23/054/2018 17:54:12 - INFO - Device disconnected

23/054/2018 17:54:21 - INFO - Selected Bundle for Sony Xperia Z3(D6603). FW release : 23.5.A.0.575. Customization : Kernel Only

23/054/2018 17:54:21 - INFO - Preparing files for flashing

23/054/2018 17:54:21 - INFO - Please connect your device into flashmode.

23/054/2018 17:54:49 - INFO - Using Gordon gate drivers version 3.1.0.0

23/054/2018 17:54:49 - INFO - Opening device for R/W

23/054/2018 17:54:49 - INFO - Device ready for R/W.

23/054/2018 17:54:49 - INFO - Reading device information

23/054/2018 17:54:49 - INFO - Phone ready for flashmode operations.

23/054/2018 17:54:49 - INFO - Opening TA partition 2

23/054/2018 17:54:49 - INFO - Current device : D6653 - BH906DRR1E - 1288-8717_R2D - 1282-2729_23.5.A.1.291 - APAC-LTE_23.5.A.1.291

23/054/2018 17:54:49 - INFO - Closing TA partition

23/054/2018 17:54:49 - ERROR - The bundle does not match the connected device

23/054/2018 17:54:49 - INFO - Ending flash session

23/054/2018 17:54:55 - INFO - Device disconnected

23/054/2018 17:54:56 - INFO - Device connected in flash mode

23/055/2018 17:55:04 - INFO - Device disconnected

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

What to do now? How shall I root my D6653.

I have done it many time previously using your mod but I dont know on what firmware I was on.
[Xperia Z3 General] shoey63:
Try going back to an older version of Flashtool. Might be a new feature (or bug)[emoji39]

Edit: I have moved on from Z3 to XZ Premium, so hopefully others can help with your issue.
[Xperia Z3 General] nri_tech1183:
Yup the new flashtool sucks. I already googled and reverted to old tool and it worked as before.
[Xperia Z3 General] RoyFAR:
Yup same with me, the latest Flashtool 0.9.24.4 was not working when flashing "575 or 291 kernel" but flashing any stock firmware has no problem with that latest Flashtool. I also reverted and use old Flashtool 0.9.18.6 and voila it worked :) I use Z3 D6653 too. Thanks nri_tech1183 and shoey63 if not because of you said before to use old flashtool I would give up doing this...again and thanks alot to shoey63 :good: ;) for this easy tool to instal recovery+root on latest marshmallow 291 with Z3 D6653.
[Xperia Z3 General] orangzeb:
I'm on UB / 7.1 N Carbon.. Link for recovery and Root plz? Thanks
[Xperia Z3 General] RoyFAR:
I think the procedure from this thread is install stock MM.291 then flash MM advanced kernel via fastboot with flashtool...now you have TWRP, last install Carbon. But I don't know if this procedure will work if Carbon is already installed.

Another link for MM advanced kernel: https://xdaforums.com/z3/development/kernel-advanced-stock-kernel-t3345880
[Xperia Z3 General] seanp25:
Helpful thread, thanks!
[Xperia Z3 General] ysf-666:
when i start install.bat it gave me : no such file or directory
[Xperia Z3 General] RoyFAR:
You need to install adb z3 driver first and run as admin for install.bat file. If you install Sony Flashtool from flashtool.net then you will have adb z3 driver installed.
[Xperia Z3 General] juniper1982:
presumably install.bat is a windows script? If one is on linux, how does one do this?

Also, the MM file link on the first page seems to be broken. I am on the 291 kernel, stock MM, d6603. So, I assume this should work with the instructions on the first page, but I don't have a windows machine.
[Xperia Z3 General] Licaon_Kter:
You just edit the .BAT like this (install ADB from your repos first!):

#!/bin/sh
cd files

adb kill-server
adb start-server
adb wait-for-device

echo Device Detected!
adb devices

echo Cleaning up for fresh install ...
adb shell "rm -rf /data/local/tmp/mm_twrp_recovery_install"

echo Installing ...
adb shell "mkdir /data/local/tmp/mm_twrp_recovery_install"
adb shell "chmod 755 /data/local/tmp/mm_twrp_recovery_install"
adb push boot_twrp_recovery.sh /data/local/tmp/mm_twrp_recovery_install
adb push busybox /data/local/tmp/mm_twrp_recovery_install
adb push byeselinux.ko /data/local/tmp/mm_twrp_recovery_install
adb push chargemon.sh /data/local/tmp/mm_twrp_recovery_install
adb push install_twrp_recovery.sh /data/local/tmp/mm_twrp_recovery_install
adb push iovyroot /data/local/tmp/mm_twrp_recovery_install
adb push modulecrcpatch /data/local/tmp/mm_twrp_recovery_install
adb push recovery.twrp.cpio.lzma /data/local/tmp/mm_twrp_recovery_install
adb push wp_mod.ko /data/local/tmp/mm_twrp_recovery_install
adb shell "chmod 755 /data/local/tmp/mm_twrp_recovery_install/busybox"
adb shell "chmod 755 /data/local/tmp/mm_twrp_recovery_install/install_twrp_recovery.sh"
adb shell "chmod 755 /data/local/tmp/mm_twrp_recovery_install/iovyroot"
adb shell "chmod 755 /data/local/tmp/mm_twrp_recovery_install/modulecrcpatch"
adb shell "/data/local/tmp/mm_twrp_recovery_install/iovyroot /data/local/tmp/mm_twrp_recovery_install/install_twrp_recovery.sh"

echo Finished!
echo Rebooting into TWRP recovery ...
adb reboot
adb kill-server
pause

All those 5 links work. Which one?
[Xperia Z3 General] juniper1982:
must have been down when I first looked. It is up now.

So many questions as flashing on this phone is so much harder than others.

Flashtool: From my reading above, this provides adb as well. I have adb installed from the ubuntu repositories. I guess, to avoid a silly conflict, I should uninstall my ubuntu version, and download the flashtool for linux. Than use the install.bat posted by Licaon (thanks!).

Ok. I think this is doable.

Also, at the end of the first page, I have twrp installed, correct? So, which file actually contains TWRP? also, is that an up to date TWRP, or should I update it right away?
[Xperia Z3 General] Licaon_Kter:
No, use the one installed, it's newer mostly.

No need to update anything.
[Xperia Z3 General] NatsumeNomura:
How do I delete the TWRP when it's already installed on my device? just flash using flashtool?
[Xperia Z3 General] Licaon_Kter:
What do you want to do exactly? You can't just "delete TWRP"...
[Xperia Z3 General] vBRoioV:
i get these 2 errors when i use the tool, i have followed every step stated in the post with no success to get into the recovery

* server not running *

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

* daemon started successfully *

Device Detected!

List of devices attached

CB5A24NHTW 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

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

Finished!

Rebooting into TWRP recovery ...

Press any key to continue . . .

thank you
[Xperia Z3 General] Licaon_Kter:
Disable your antivirus, redownload the file.......reextract it....iovyroot is actually an exploit....hence...yeah... :) it's useful to you for rooting your device, but it can be used to harm others.
[Xperia Z3 General] Bernard2243:
Can't enter recovery

i can't enter recovery by pressing volume down
[Xperia Z3 General] Licaon_Kter:
Retry retry retry...
[Xperia Z3 General] Bernard2243:
Do i need to turn off verify apps over usb option?
[Xperia Z3 General] Licaon_Kter:
Not sure what you mean, the button pressing at device start does not care about that.
[Xperia Z3 General] Bernard2243:
I mean when, injecting the recovery do i need to do that?
[Xperia Z3 General] Licaon_Kter:
Just follow the steps.
[Xperia Z3 General] dianemc65:
Bootloader

Hi,

Do I need to unlock bootloader to root with this method?

Thanks
[Xperia Z3 General] Ubus99:
flashing problem

i need some help with this guide:

i try downgrading to kernel.575, but it never works.

flashtool just tells me to check my phone, and nothing has changed. it still says june 2016...
[Xperia Z3 General] casouzaj:
Does Flastool's flashing process of the 575 kernel ends up successfully? Do you see June 2016 in the kernel build date, under Settings > About phone afterwards?
[Xperia Z3 General] Ubus99:
it should have...

my log:

dropbox.com/s/vh1ciyf5bq7e6cd/Flashtool-log-part.txt?dl=0

after the flashing, i rebooted the device and looked at the device information:

securitypatch: may,1,2016

kernel-version: 3.4.0-perf-gc14c2d5; BuildUser@Buildhost #1; tue jun 28 11:15:51 2016

Build-number: 23.5.A.1.291 (i know this wont change)

I have tried it at least 15 times, but it never worked out, so i assume there must be a problem with the process.

it might also be noteworthy that my Z3 does not have the normal sony android-fork, but the sony-vodafone fork.
[Xperia Z3 General] casouzaj:
Is your phone completely powered off, and you hold the volume down button on your phone whilst connecting it to your PC only when the animated connection request window is up on your PC?
[Xperia Z3 General] Ubus99:
yes
[Xperia Z3 General] Ubus99:
?

so? any idea what is going wrong?
[Xperia Z3 General] shoey63:
Use old Flashtool 9.18.6
[Xperia Z3 General] amlecuatro:
hi, i have install this twrp in my z3 without problems, but when i wanted update it the lastest i can´t. i install the twrp img in twrp but it doesn´t change always says 3.0.2-0. how can i update to instal the omni rom 8.1, anyone can help me?
[Xperia Z3 General] kool.shwetank12345:
I have tried flashing the .575 kernel using flashtool but it's not working, saying the bundle selected doesn't match with the device. I also tried verifying it and the problem is the file only contains kernels for D6603 version of phone and my phone version is D6653. Hence it's not matching. Kindly tell what to be done.
[Xperia Z3 General] jasonhtt:
Same here. Not possible to update to latest twrp recovery. Anyone?
[Xperia Z3 General] jasonhtt:
Finally I succeded!

Unlocked bootloader.

Flashed .291 official ROM.

Installed this TWRP recovery https://xdaforums.com/z3/development/recovery-twrp-3-2-3-0-leo-t3837167.

Flashed CarbonROM https://xdaforums.com/z3/orig-development/8-1-x-carbonrom-cr-6-1-t3771546.

Everything works and an old Z3 D6603 has a new life!
[Xperia Z3 General] seyrarms:
Hello Sir Can you make in this tutorial in Sony Xperia Z3+/Z4. Appreciate if you build for that thanks
[Xperia Z3 General] shoey63:
Z3 was the last Sony device where root and twrp was possible without unlocking the bootloader. Can't help. Sorry.
[Xperia Z3 General] seyrarms:
Hmmm... It's for me now. Thank's for answer sir but if you can and give optional it's very thanks
[Xperia Z3 General] shoey63:
Try here

https://xdaforums.com/xperia-z5/development/root-automatic-repack-stock-kernel-dm-t3301605
[Xperia Z3 General] seyrarms:
I done read that. But need Unlock Bootloader. Sir can you teach me how I can build stock kernel and instal.bat for my device this?

---------- Post added at 01:45 AM ---------- Previous post was at 01:32 AM ----------

I get link this https://www.google.com/amp/s/xdafor...3-e6553-stock-kernel-build-32-4-t3690631/amp/

What do you think? Can I possible root no unlock this bootloader?
[Xperia Z3 General] shoey63:
You can't flash anything but a pure, unmodified stock kernel on locked bootloader.

And you can't modify /system on z3+/z4 either. It won't boot.

If you want root and recovery, unlocking is the only option.
[Xperia Z3 General] seyrarms:
Can't unlock this because this from japan
[Xperia Z3 General] shoey63:
Sell it and get one you can unlock
[Xperia Z3 General] seyrarms:
Hmm... Thank's that option. Maybe I will sell this.
[Xperia Z3 General] casouzaj:
Launch the phone app and dial in *#*#7378423#*#* and, on the service menu which comes in, tap on Service Info > Configuration, and see what reads under 'Bootloader unlock allowed'. If it shows 'Yes', you'll be ready to unlock it. If so, prior to doing it, make a backup of your phone's TA partition, in order to prevent all its DRM keys from being lost for good. I'm afraid your phone' firmware should be Marshmallow, for the backup TA tool to be effective.
[Xperia Z3 General] seyrarms:
I Done Try that's but can't do. Thank's your option but this phone from japan so hard open this bootloader I will be try from lolli until nougat not happen can open this bootloader :(
[Xperia Z3 General] casouzaj:
The ROM version is important only for the backup TA tool. It won't change anything regarding the ability to unlock the bootloader. If, under 'Bootloader unlock allowed' you see 'No', I'm afraid you won't be able to unlock it. There's no point in backing up your TA partition if you won't unlock your bootloader afterwards.
[Xperia Z3 General] jamaljmys:
Thank you for guide

If my bootloader unlock status = no and i followed this method could i flash custom rom such carbon or lineage?

Thank you for help
[Xperia Z3 General] Licaon_Kter:
Nope, that's the catch....
[Xperia Z3 General] jamaljmys:
Thank you

But i still can root it and get recovery to flash exposed as example or so?

---------- Post added at 09:09 PM ---------- Previous post was at 09:04 PM ----------

Thank you

But i still can get root and recovery to use xposed and so?
[Xperia Z3 General] Licaon_Kter:
Yes, on stock ROM or stock ROM customized. Hence, Android 6.0.1 only...
[Xperia Z3 General] jamaljmys:
Yes i have stock 6.0.1 build 291 . Shall i follow the method in this thread?

Thank you bro.

---------- Post added at 08:13 PM ---------- Previous post was at 07:25 PM ----------

You are great man thank you you made my day my z3 now rooted with twrp if i cannot get oreo i can customize mm now as much as i can. Tanks again
[Xperia Z3 General] williamsGs:
no me funciono,en modo desarrollador solo la opción de depurador usb tengo, la opción desbloqueo eom no aparece .. no puedo hacer para para parpadear otras rom, mi bootloader esta desbloqueado

---------- Post added at 10:47 PM ---------- Previous post was at 10:44 PM ----------

no me funciono, en modo activado solo la opción de depurador usb tengo, la opción desbloqueo eom no aparece .. no puedo hacer para parpadear otras rom, mi bootloader esta desbloqueado
[Xperia Z3 General] ecksdeeay:
Relock bootloader