yashsingh1/xdaforums huggingface dataset:
[Xperia Z2 General] Apple_sucks:
Using the walk through in post#1 I've managed to root my D6503 without too much difficulty (wish I'd found it two days ago though!) but like many I had a lot of problems with booting into TWRP recovery afterwards but I've finally found the trick !

I'm no expert but on every other Android device I've had the procedure had been to hold power and vol down together but the D6503 is different and doing it that way is the reason many complain of not even getting the green light.

Here's how to do it then:.

Press and hold the power button until you get the green light (be patient). You'll get a vibrate and the Sony logo on the screen but keep holding.

When you get the green light, and without letting go of power, immediately press and hold the down vol button until the light turns purple, then release both.

The phone will boot into TWRP.

I haven't reverted to test the sequence with the stock recovery but I can't think why it wouldn't be the same, maybe somebody can confirm it.

Here's an oddity though and from all I've read something which shouldn't be possible, my bootloader is still locked (screenshot).

I wanted to unlock it and tried but because I hadn't learnt the trick to getting into recovery mode I couldn't get the PC to recognise it.

Next stop, LineageOS :D
[Xperia Z2 General] ElectricB:
nice tool and easy to use worked like a charm

just wondering can i flash custom rom after i did this or i had to unlock the bootloader to do such things ?
[Xperia Z2 General] Apple_sucks:
Once you have the ability to boot into TWRP you can flash what you like, it's getting to that stage which was so problematical.

I meant D6503 in my post of course !

BTW using Quick Reboot Pro and with Recovery set to FlsH in the settings you should be able to reboot straight into TWRP.
[Xperia Z2 General] ElectricB:
tried to flash lineageOS 14 but error occurred same as another Os called RR-N (RR-N-v5.8.4-20170921-sirius-Official) and the same error occurred

so if you have any idea please share me your knowledge

still on stock rom 6 and bootloader closed and devicxe model is D6503
[Xperia Z2 General] iXaidyiu:
Wrong, getting into TWRP on a locked bootloader can only flash stoxk-based ROMs (not kernel).

Simply unlock your bootloader to flash ROMs other than stock-based ones.
[Xperia Z2 General] sembrex:
I follow this guide and realize that kernel flashing from TWRP is possible with locked bootloader.

Now I have root access and TWRP (with usb connected) on my phone without unlocking bootloader
[Xperia Z2 General] iXaidyiu:
Root access concerns /data and /system and TWRP concerns /recovery, your kernel is still intact.
[Xperia Z2 General] sembrex:
If kernel still intact, please explain why uname -a shows latest kernel

Linux localhost 3.4.0-perf-gc14c2d5 #1 SMP PREEMPT Tue Jun 28 11:15:51 2016 armv7l
[Xperia Z2 General] iXaidyiu:
That's same as stock lol...
[Xperia Z2 General] sembrex:
Thats it, i flash this stock kernel from TWRP after downgrading.

It means flashing kernel via recovery is possible
[Xperia Z2 General] iXaidyiu:
Your kernel is not modified lol..., if you didnt unlock your bootloader your kernel is forever kept the same...
[Xperia Z2 General] sembrex:
I flashed custom kernel yesterday and got my device bricked with only red led blink. It means the kernel was changed.

Your statement is completely wrong. The correct is, we can flash any kernel from TWRP on locked bootloader, but only stock kernel would boot.
[Xperia Z2 General] sijobarteam:
Guys you are the best !!! :D

I lost 5 hours of my life to read and search the web to see how to root my Z2 with Marshmallow....trying Kingoroot, easytool root, etc...

And it appeared it was impossible as it was on Marshmallow with this 291kernel.

I was going to drop everything when finally I saw your post! It worked like a charm!!! PERFECT! Now I have the latest official ROM with stock Kernel on Marshmallow and I am ROOTED !!! :D Thank you so much.
[Xperia Z2 General] tibaldiz3:
Z2 6543 failed

please include model D6543 in iovyroot please. :crying:
[Xperia Z2 General] gianlucam:
Hi all,

can i root my Z2 Tablet with this building (23.5.A.1.291) using this guide?

Thanks!
[Xperia Z2 General] 19iceman32:
Thanks for that tip. It worked. I was also wondering how.
[Xperia Z2 General] black__hawk:
I flashed -via flashtool- 6503 23.5.A.0.575 kernel but myXperia Z2 tablet (SGP511 with 23.5.A.1.291 kernel) and the device can't reboot.. It seems completely dead.. :crying::crying::crying:
[Xperia Z2 General] pauloh182:
Try Use Xperia companion to fix your tablet
[Xperia Z2 General] devogie:
sorry but I don't have, fam :(
[Xperia Z2 General] Einsam_Kt:
There's no way to make it work on D6543?

I flashed the .575 kernel from first page without problem.

Them turn on the device and tried to run the 'Recovery_for_MM575-291-Z2' from page 18, which was supposed to work on D6543, but it shows that the device it's not supported.

Full Log:

* server not running *

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

* daemon started successfully *

Device Detected!

List of devices attached

BY900F5ZCE 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

Error: Device not supported

Device name: D6543

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 ...

The device restart, but don't start in TWRP recovery mode, just start normally.

I tried with the Recovery V5 too, same log.

I'm making something wrong?
[Xperia Z2 General] mko716:
Hey,

thanks for the description and the video on YouTube. I'm new to this, but I want to root my Xperia Z2 to delete the preinstalled apps for example.

The flashing works but then when I run the install.bat it's not doing the same as in the video.

It says: adb server version (32) doesn't match this client (36). furthermore: device unauthorized. Please check the confirmation dialog in your device.

The window on the phone, where I could install the supersu and .291 kernel does not appear either.

Can someone help me, a lost newie, please? :)

Thank you ;)
[Xperia Z2 General] Adam15114:
Possible to un-root after? I need my banking apps to work.
[Xperia Z2 General] totzkitotz:
:confused: elow mate, I have a question here, its about the kernel .575, which Ive downloaded in the 1st page but I cant rename it from .zip to .ftf :confused: im using windows 10, can anyone give me some advise , thanks much
[Xperia Z2 General] shoey63:
How about allowing Windows to show file extensions in settings?
[Xperia Z2 General] danzelwarm:
Try to search on Google show hidden file windows 10 it will give you an answer.
[Xperia Z2 General] NAFIZ1:
Does it effect on bootloader???i mean after this process is my phones bl will be unlocked or it will stay locked???sorry for my bad english...
[Xperia Z2 General] NAFIZ1:
I have repeated this step severel times...twrp installed...but after rebooting to twrp the touch not working.....help please....
[Xperia Z2 General] totzkitotz:
:good::highfive: thanks a lot guys, its now working and I just rooted my wifes Xperia, thanks again guys :highfive:
[Xperia Z2 General] Taha_moahammed:
[IMG="i face this problem !!"]https://drive.google.com/open?id=1j9KRV0MK40AQjKIqv3M99l3VbDHeH7ci[/IMG]

---------- Post added at 02:12 PM ---------- Previous post was at 02:08 PM ----------

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

error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: Only one usage of each socket address (protocol/network address/port) is normally permitted. (10048)

could not read ok from ADB Server

* failed to start daemon *

error: cannot connect to daemon
[Xperia Z2 General] AsKaNdRaNy97:
can't reboot in twrp

adb server version doesn't match client plz plz help

edit :

Fixed it <3 you're the best
[Xperia Z2 General] L3ibnitZ:
Hello since my z2 got replaced I didn't root it but I'd like to try a few custom roms (android n / Android o)

Is it possible to root my device this way, then make a backup from my current stock rom and do i have the option to restore my backup?

Thanks in advance :)
[Xperia Z2 General] reelaax:
Is it safe I'm afraid of breaking mu phone and I'm not so used to rooting or every thing elsw

Envoyé de mon D6503 en utilisant Tapatalk
[Xperia Z2 General] Fredwuz:
It should be safe when I used it it worked how it should and when you try it and have questions you can just ask in the forum (sry for bad English) I am trying to answer as fast as possible
[Xperia Z2 General] lehuybao2010:
Hi,

Please give me some advise about : 2 file "Recovery_for_MM575-291" and "Recovery_for_MM575-291v5_NEW"

Thank so much!
[Xperia Z2 General] Fredwuz:
Both files are there to boot your phone in Recovery mode after flashing the kernel but the one with new in the name is obviously a newer version of the tool.
[Xperia Z2 General] Adam15114:
(assuming everything goes to plan)

will I lose any data? I only want to remove some of the annoying sony apps.
[Xperia Z2 General] Fredwuz:
Nope there will be no data lose
[Xperia Z2 General] Adam15114:
Thanks, all done now :)
[Xperia Z2 General] Tako Muro:
"*-flash supersu then flash .291 kernel"

Hi everyone;

Are there any kind person who can explain this step to me?

Well, I think someone need to explain every step of instructions with more details if you ask me. It was written to advanced rooters.
[Xperia Z2 General] Fredwuz:
You Must flash the SuperSu File and after that you must flash the Kernel Back to the normal kernel(.291 Kernel)

---------- Post added at 06:42 PM ---------- Previous post was at 06:40 PM ----------

You flashed before the Other Kernel to Support the Recovery
[Xperia Z2 General] Tako Muro:
Thank you for answers.

Now I know, asked wrong question to you.

1- How can I flash SuperSu.zip and .291 flashable kernel.zip files?

I don't know how to flash files without FlasTool -to be honest I don't even know meaning of flash-. If I remember correctly, we placed `.291 Flashable Kernel.zip` in to SD Card.

NOTE: I flashed .575 with FlashTool succesfully and without problems.
[Xperia Z2 General] Fredwuz:
Now you must start your device and connect it to pc (without giving storage permission just let it stay on charging ) then you must start the script you've downloaded after the script has started your phone should boot into twrp recovery there you must go to flash I think and you must flash super su and the kernel

---------- Post added at 10:22 PM ---------- Previous post was at 10:21 PM ----------

Not flash install
[Xperia Z2 General] Gemy95:
i get an update after rooted can i install it or no ?
[Xperia Z2 General] rocker00:
download the zip and extract with 7zip not with winrar.
[Xperia Z2 General] jijox05:
how do you do that.?

i try several time with no luck.

please share...thx

i do
[Xperia Z2 General] karantamboli:
bro i tried lots of time but no purple led blinks. only once green led blink's and it start normally. what can i do
[Xperia Z2 General] shoey63:
Press volume down once as soon as you see green led and feel a vibration.
[Xperia Z2 General] Leehtaeyeon:
Windows 10:

Install drivers from flashtools files.

Flash 575 kernel.

CLOSE flashtools.

*Create NEW System environment variables (in directory paste the way for abd.exe)

Install recovery

Flash supersu and .291
[Xperia Z2 General] EpicGtab:
How do you install the kernel? I've been trying for days and I'm still stuck on build 291.
[Xperia Z2 General] Anderson302:
root twrp installed on 575 without flashing kernel. two or three attempts .windows 10 anniversary , many thanks.
[Xperia Z2 General] egekonuk:
i have lock bootloop .291 rom can i flash .575 kernel with flashtool is that bootloop or softbrick my phone or is okay to do that ?
[Xperia Z2 General] rocker00:
you can sure without softbrick as the title says (locked & unlocked bl).
[Xperia Z2 General] daxcimix:
just a stupid question, i have to do this steps after flash the firmware .291, right?
[Xperia Z2 General] rocker00:
yes.
[Xperia Z2 General] rocker00:
bro i don't know whats wrong ! flashing the kernel is like any flash process by flashtool ! i uploaded the kernel for you so you don't have to rename anything https://drive.google.com/file/d/0B6I7n-jq2YELdXZLeENXclhXb0k/view just put the file in C:\Users\.....\.flashTool\firmwares ,also if you didn't update flashtool download and install the latest version from here http://www.flashtool.net/downloads.php
[Xperia Z2 General] ThE mUrk:
i have same problem

I've been trying this since last night. Flashing the kernel via flashtool from 291 to 575. Opening up the device and running the tool. Few times I've had problems with the adb and few times it has given me the same screen as above user^^:

chmod: /data/local/tmp/mm_twrp_recovery_install/busybox: Not a directory

chmod: /data/local/tmp/mm_twrp_recovery_install/install_twrp_recovery.sh: Not a directory

chmod: /data/local/tmp/mm_twrp_recovery_install/iovyroot: Not a directory

chmod: /data/local/tmp/mm_twrp_recovery_install/modulecrcpatch: Not a directory

/system/bin/sh: /data/local/tmp/mm_twrp_recovery_install/iovyroot: not found
[Xperia Z2 General] Alt80:
Script Fix

Hello guys, after couple of times trying to fix the issue, i've decided to share my install.bat to anyone. But as a new user I can't share the link, any suggestions ?
[Xperia Z2 General] egekonuk:
can u post it as text ? i really need it now if it is working
[Xperia Z2 General] Alt80:
try this
[Xperia Z2 General] egekonuk:
i get an error like this

---------- Post added at 12:15 PM ---------- Previous post was at 12:01 PM ----------

okay this time it did it but i cant go in recovery it doesnt seem to there
[Xperia Z2 General] Alt80:
just replace the old install.bat with my version, and make sure that "files" folder is in.

---------- Post added at 11:36 AM ---------- Previous post was at 11:34 AM ----------

oh yes don't forget to flash .575 kernel first, or you will get error message "Device not supported"
[Xperia Z2 General] egekonuk:
thanks man i got it now but now i have system wise problem everytime i start an app it reboots . I flash the .291 kernel after rooted idont now why is that happening
[Xperia Z2 General] Fredwuz:
I think you can install it but I'm not sure but I could work because the root app (SuperSU) is marked as a system app is it a big or small update how many mb does it have? Sry for English I'm German
[Xperia Z2 General] ShaziShah:
Here i want to ask as that now i am on stock MM 23.5.A.1.291 on my D6503.

1. Can i save my TA partion after getting root access and before unlocking bootloader on this stock MM rooted Rom?

2. And for this, can i use a small tool Backup TA v.9.11 on this rooted Rom? I have read that this tool works on rooted Rom but they didn't mention the Rom version.

Thanks.
[Xperia Z2 General] Chandi lokka:
will this also unlock boot loader ?
[Xperia Z2 General] z7kazanova:
Please I need help :(

Once I install recovery I got different result " many errors" and once it done my devices has restarted with it self and I kept pressing Down volume key over and over and it didn't start recovery mode, and I have tried to reboot to recovery mode too much time and it doesn't work anymore
[Xperia Z2 General] Uchihi:
Heres the steps written in readable English, for those of you who doesn't understand broken English.

First download attached files.

1. Install stock 23.5.A.1.291 firmware in flashtool

2. Rename the .575 .zip to .ftf. Flash .575 kernel in flashtool.

3. Put supersu zip & .291 kernel .zip in sd card

4. Power on phone, turn on Usb debugging. run recovery script

5. Flash supersu & .291 kernel in recovery. Important to do it in the right order!

6. start device.

On another note, is anyone having trouble going into twrp recovery? I managed to get root, but recovery doesn't work (this is after flashing supersu and the 291 kernel in twrp. Then I lose recovery. running the recovery script or using fastboot to flash twrp doesn't work eiter). Anyone got any ideas? Thanks
[Xperia Z2 General] Kudłaty455:
Sony Z2

gives me information when kernel flashing ... Could not find META-INF/com/google/android/...
[Xperia Z2 General] Hydro21:
Is it ok if I leave the files in the internal memory instead of an SD Card?

Can someone make an English tutorial on how to do this?
[Xperia Z2 General] Prakashnaik765:
How to root sony xperia z2 D6503 Marshmallow

Hi,

Could you please hellp me with step by step how would I root my sony xperia z2 D6503 Marshmallow 23.5.A.1.291.

I have unlocked the boitloader. I sow 4 files to download in your post but confused how to install all files. Please hellp me I will be greatfull to you.
[Xperia Z2 General] uday94:
is this working on D6502
[Xperia Z2 General] mahesh911:
Yes..its working fine on D6502...
[Xperia Z2 General] uday94:
unable to flash file it shows error on D6502
[Xperia Z2 General] mahesh911:
Which version of flashtool are u using?.. Use flashtool 0.9.18. Not the latest one.. Then try flashing again. Also ensure z2 drivers are installed and usb debugging on.
[Xperia Z2 General] uday94:
error showing in adb
[Xperia Z2 General] mahesh911:
Reinstall adb drivers.. Run the tool as administrator.
[Xperia Z2 General] uday94:
thanks for help but revoking adb permission and granting permission again worked for me.
[Xperia Z2 General] babaranghaja5:
Can this work for my device xperia z2 (D6503) android version 6.0.1 build number 23.5.A.1.291, because i have been searching on google and and i can't find file (file cannot download) for root my phone, i need ur help. I'm so newbie for this problem
[Xperia Z2 General] tharwat262:
my phone D6503

it doesn't get into the flash mod when I press the volume down button
[Xperia Z2 General] Fredwuz:
it should work

---------- Post added at 05:52 PM ---------- Previous post was at 05:51 PM ----------

I tried it and it work for me with this manual http://www.android.gs/how-to-enter-sony-xperia-z2-fastboot-mode/ there it is called Download Mode but it is the same as flashmode
[Xperia Z2 General] tharwat262:
[MENTION=7624070]Fredwuz[/MENTION]

I tried to make my fone get into flash mode to flash kernel with flashtool but after I press the down volume there is no vibrate happened just the phone’s LED light appears as a red color for one second and nothing happens after that ... so if I try Download Mode it will make the phone get in the flash mod to flash the kernel in flashtool ?

English is not my native language sorry if there is a mistake
[Xperia Z2 General] tharwat262:
when I try flash kernel 575 with flashtool appear error

ERROR - Device connected in flash mod but driver is too old

my phone

Xperia Z2 D6503 23.5.A.1.291 Marchmelo 6.0.1

and flashtool version is 0.9.25.0

please any solution for that :(
[Xperia Z2 General] TRippeR17:
For the love of the god please help me I'm ripping off my hair because I've been stuck on this problem since I got my hands on a new Z2 phone.

This is the error:

10/016/2018 20:16:05 - INFO - Please connect your device into flashmode.

10/016/2018 20:16:12 - INFO - Using Gordon gate drivers version 3.2.0.0

10/016/2018 20:16:12 - INFO - Opening device for R/W

10/016/2018 20:16:12 - INFO - Device ready for R/W.

10/016/2018 20:16:12 - INFO - Reading device information

10/016/2018 20:16:13 - INFO - Phone ready for flashmode operations.

10/016/2018 20:16:13 - INFO - Opening TA partition 2

10/016/2018 20:16:13 - INFO - Current device : D6543 - BY900E9ZP2 - 1281-5466_R3D - 1278-4524_23.5.A.0.575 - DTV-LTE_23.5.A.0.575

10/016/2018 20:16:13 - INFO - Closing TA partition

10/016/2018 20:16:13 - ERROR - The bundle does not match the connected device

10/016/2018 20:16:13 - INFO - Ending flash session

10/016/2018 20:16:15 - INFO - Device disconnected

I'm not used to post asking help but I can't stand it anymore. Searched through this thread and one guy said that the D6543 module were added but that's not true, at least for me.

This is the main error: ERROR - The bundle does not match the connected device.

Tried everything and failed. Please someone help me, I'm willing to pay a coffee to the useful gentleman who figure it out what to do.
[Xperia Z2 General] Fredwuz:
What version of flashtool are you using?

When you are using the least version of flashtool try to use the previous Version
[Xperia Z2 General] TRippeR17:
I tried to use flashtool 9.18 and 9.25.
[Xperia Z2 General] Fredwuz:
you also have the least drivers for your device? You can update the drives when you go into the flashtool folder and then drivers there should it be
[Xperia Z2 General] TRippeR17:
Yes its all installed and updated: flashmod, fastboot and device driver. The main issue seems to be the version of the phone, D6543. I'm looking for a ftf file of it but its impossible to find.
[Xperia Z2 General] Fredwuz:
i found a post about this but im not sure if its what you are searching https://xdaforums.com/xperia-z2/gen...91-supersu-t3437280/post68650024#post68650024
[Xperia Z2 General] TRippeR17:
I downloaded this version of recovery and tried to install it without flashing the kernel. Looks like it magically worked! Thank you, kind stranger. I'll gladly send you a tip to buy a beer or a coffee where you live, just send me a PM with your wallet ;)
[Xperia Z2 General] ebram96:
My phone is stuck at "Android is starting.. Starting apps" for around ~25 minutes now after installing the kernel using flashtool, is this okay ? what should I do?

EDIT: I rebooted the phone using Vol Up + Power and it started after that without problems.
[Xperia Z2 General] minhduongtrung:
Hello, i'm new here. By this method I have successfully rooted, flashed suppesu and flash .291 kernel again but then I could not boot into twrp. I use the reboot recovery application still not, using the Official TWRP app flash twrp_3.2.1_s.img success but when reboot recovery the phone only reboot the system. Does anyone know why?
[Xperia Z2 General] Fredwuz:
Wasn't the flash successful?

27/038/2018 14:38:28 - INFO - Ending flash session

27/038/2018 14:38:28 - INFO - Flashing finished.
[Xperia Z2 General] zsjabal:
not yet... becoz i can't run TWRP
[Xperia Z2 General] Fredwuz:
When you plug your phone in and run the script do you give storage permissions? Then don't give any permissions just plug the phone in and run the script
[Xperia Z2 General] zsjabal:
wow...... finally i rooted my xperia z2

thanks Bro ;)
[Xperia Z2 General] joegannon:
Thanks.... saved my life so many times lol

really so grateful...! can u help me with DATA ENCRYPTION problem??

ive been trying for 2 days still dont know what to do :( i have no phone but this so can u please guide me?