yashsingh1/xdaforums huggingface dataset:
[Xperia Z2 General] don't try:
From root

Many thanks for your awesome job

I have a question?

I have root in my device but I don't have Recovery is there any way to copy it without using Pc because I don't have one right now

Thanks
[Xperia Z2 General] biellongx:
I need a port to D6543 (Xperia Z2 Brazilian w/ TV).

Pleease heeelp me
[Xperia Z2 General] iXaidyiu:
Download TWRP official app on Play, and install recovery with that.
[Xperia Z2 General] Laskr1999:
Hello!

Can anyone help me? I installed the previous kernel then tried to run the recovery script. Says installing then says unsupported device: D6503

After this says finnished... Restarting to recovery but then the phone starts normally.
[Xperia Z2 General] Pramodkumawat:
hay it's not working on my 6502 bat file showing adb server version (32) doesn't match this client (36); killing...
[Xperia Z2 General] Fredwuz:
First close Sony company then go in task manager and close adb.exe and then try again now it should work
[Xperia Z2 General] raper171:
D6543

I tried to flash the D6543 but it doesn't work... Could you guys remake the dev for this model? That would help a lot of brazilians!!! Thanks!
[Xperia Z2 General] pbgapski:
Sorry, posted to wrong thread
[Xperia Z2 General] GoldPunch:
Any advice?

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 directory
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 Z2 General] ashtawn:
Does it work for D6502?
[Xperia Z2 General] raminta:
Yes
[Xperia Z2 General] don't try:
First I really want to thank you about this wonderful job

I used and it was working 100%

But yesterday I format my phone and update it to the last update and try to rooted again but it doesn't work any more it just restarted without any recovery can you make update so it can work again please
[Xperia Z2 General] iXaidyiu:
The method is based on .291 fw. Retry the whole process to make it work again.
[Xperia Z2 General] don't try:
What do you mean (fw) 291 fw

And my software number is 35.5.A.1.291
[Xperia Z2 General] iXaidyiu:
This tool is based on the same firmware (fw) as yours, so you can directly use this guide to root and install recovery.
[Xperia Z2 General] don't try:
I used but it doesn't work any more it just restarting without any recovery

In the instructions step number 4

*-start the device and connect it with pc and run the tool and wait till it finish then the device will boot into recovery automatically

After it finish the phone reboot but there is no recovery mod and just start in system mod

Is there any hope ???
[Xperia Z2 General] darknessmc:
Try to put "install.bat" inside "files" folder and run it from there.
[Xperia Z2 General] ashtawn:
It worked! Thanks a lot :D
[Xperia Z2 General] braj bhushan singh:
unable to boot into twrp

does not boot into recovery after launching the recovery tool.

says error: device not supported.

please help:crying:
[Xperia Z2 General] light001:
Model D6543

It says my device is not supported because I have the model D6543, but the thing is everything that works with the models D6502 and D6503 works with my model. Can anyone make the tool also accept my model, please?
[Xperia Z2 General] Fredwuz:
I had the same problem because I allowed my pc storage permission when you unlocked your phone or allowed storage permission just test ist without it (sry for my bad English)
[Xperia Z2 General] light001:
Model D6543

[MENTION=4702982]rocker00[/MENTION]
[MENTION=5674828]moman2000[/MENTION]

Can you help me with that, please?
[Xperia Z2 General] braj bhushan singh:
Thnxx but my problem is solved
[Xperia Z2 General] Mhb2009:
i did every thing and thats work but after 2 days the recovary is disapper
[Xperia Z2 General] Gargamel_JR:
I did this, but i have only root now, not recovery on my D6503.
[Xperia Z2 General] donjewan56:
plsssss help me

i lost mixer_paths.xml files xperia z2 D6503 Android 6.0.1

pls anyone send to me the original file

Thank you very much
[Xperia Z2 General] pausanjim11:
it says device not supported and reboots, there is no recovery, any ideas?

Error: Device not supported

Device name: D6503
[Xperia Z2 General] Cluey:
Thanks for this.

I got bootloops after the SuperSU update from the play store, I was expecting I'd have to go way back and rebuild the phone from the exploitable kitkat firmware.

Thankfully I didn't because of this thread. :)

The only part which wasn't completely clear was flashing the .291 kernel is done from Recovery, not via Flashtool like the .575 version is.
[Xperia Z2 General] mahesh911:
deleted
[Xperia Z2 General] rbond007:
Thanks very mutch! Rooting succesfully!

:good:
[Xperia Z2 General] deusexe:
I did everything and I have root but I cant go to TWRP. Can you tell me how?
[Xperia Z2 General] deusexe:
No one? Maybe could I flash kernel .575 ->

"* - start the device and connect it with pc and run tool and wait till it finish then the device will boot into recovery automatically

* -flash supers then" -> flash PREROOTED 23.5.A.1.291
[Xperia Z2 General] eric-200:
pefect thanks :o
[Xperia Z2 General] Albarn:
I've follow the guide line,still fail to get root access.what should i do?
[Xperia Z2 General] Fredwuz:
Whats the name of your device?
[Xperia Z2 General] Albarn:
Giving up

Xperia z2 MM 6.0.1
[Xperia Z2 General] Fredwuz:
You get any errors while the porgress
[Xperia Z2 General] Albarn:
Mine xperia z2 d5603 with MM 6.0.1. 291
[Xperia Z2 General] Fredwuz:
Do you mean D6503?
[Xperia Z2 General] Albarn:
No errors at all.while reboot,no effects and,.291 still remained..please help

---------- Post added at 01:54 PM ---------- Previous post was at 01:52 PM ----------

Yes,sorry my bad
[Xperia Z2 General] iXaidyiu:
Locked or unlocked bootloader?
[Xperia Z2 General] Fredwuz:
That mean you tryed to flash the .575 kernel and nothing happens? BTW sry for bad English I'm german
[Xperia Z2 General] Albarn:
It's unlocked bootloader
[Xperia Z2 General] iXaidyiu:
Then why not flash a custom kernel, that's the fastest way.
[Xperia Z2 General] Albarn:
The issue is i can't load into recovery mode,even it's still not rooted yet.

No errors during flash,but everything remained same.

That's why i'm wondering & confused
[Xperia Z2 General] Fredwuz:
Just use flash tool and reboot in flash mode (just hold down the volume down button (the device must be shut down ) and plug it in the computer) after that flash tool shows something like device connected in flash mode then flash the kerne

---------- Post added at 02:06 PM ---------- Previous post was at 02:04 PM ----------

Just use flash tool and flash the kernel with that first download flash tool then turn off your device then plug your device in with flash mode ( just press the volume down button while plugging it in) then flash the kernel
[Xperia Z2 General] Albarn:
My bad again,it's still locked but unlocked is capable.means i need to get locked bootloader first before re do everything?
[Xperia Z2 General] iXaidyiu:
The easier way is to through UBL, but you will loose a few DRM-dependent features.
[Xperia Z2 General] Albarn:
Could i stand with LBL status?
[Xperia Z2 General] iXaidyiu:
Then you have to stick with this method since nothing can be flashed using the FASTBOOT protocol.
[Xperia Z2 General] Albarn:
Will redo again..thanks for your kind help

---------- Post added at 03:17 PM ---------- Previous post was at 02:26 PM ----------

There's only 1 error.

ERROR - root : this bundle is not valid
[Xperia Z2 General] Fredwuz:
In flashtool:?
[Xperia Z2 General] deusexe:
Can anyone answer my question about disappearing recovery?
[Xperia Z2 General] Fredwuz:
I think the recovery has something to do with the kernel and after you flash the normal kernel and restarted your phone some more the recovery goes away

But that's just a guess
[Xperia Z2 General] Albarn:
Yes,in a flashtool
[Xperia Z2 General] Fredwuz:
That is not so important you can just flash when you in flash mode
[Xperia Z2 General] Albarn:
Redo flashing for kernel. 575 but after reboot nothing changes,still no recovery mode
[Xperia Z2 General] Fredwuz:
Than reboot your phone and just connect it to your PC without giving storage permission just do nothing and when it's connected start the recovery script
[Xperia Z2 General] omar_ehab:
ADB update

please tell me how to update my ADB version 31 to version 36.

i don't know how to update it :(
[Xperia Z2 General] Fredwuz:
I dont think you have the wrong ADB version you just have another ADB server running just go into the task manager and force close adb.exe and then it should work (BTW you also should close sony company when it's open )
[Xperia Z2 General] omar_ehab:
thank you :)

i did it already
[Xperia Z2 General] maxxx83:
Just download ADB V36 and install it on your pc.Run .exe file.
[Xperia Z2 General] hmmhm:
Recovry not working on. 291 kernel

Just working on. 575

Any one have trouble flash. 575 kernel only and install recovery
[Xperia Z2 General] habib25130:
flashtool not work

[IMG="ou est le probléme"]http://www13.0zz0.com/2017/07/07/20/105815039.png[/IMG]
[Xperia Z2 General] Fredwuz:
You must put the kernel in the firmware folder
[Xperia Z2 General] jabr1G:
Done root with twrp 291,,nice tutorial,,
[Xperia Z2 General] mlipocky:
Sorry, but I can't see flashtool attached.
[Xperia Z2 General] Fredwuz:
Just Google for "flashtool" or here is the download link to the official site I think http://www.flashtool.net/downloads.php
[Xperia Z2 General] engoengo:
Sony Z1 C6903

we can use this for z1 c6903 to unlock bootloader ???
[Xperia Z2 General] dumdeedum:
You a fukn hero man!!!

your .bat worked like a charm ( its all caps just so you feel how grateful i am.:d:d:d:d:d:d:d:d:d:d:d
[Xperia Z2 General] iXaidyiu:
Z1C and Z2 do sounds different, right?
[Xperia Z2 General] nckflow:
El sistema no puede encontrar la ruta especificada.

* server not running *

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

* daemon started successfully *

Device Detected!

List of devices attached

CB5A20VBQU 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

plese help me
[Xperia Z2 General] LTTG:
How do I flash the .575 kernel with flashtool? Fastboot mode or flash mode?
[Xperia Z2 General] Fredwuz:
Flash mode you can enter when you pressing volume down button when pluging in the USB Cable in the phone (phone must be turned off)
[Xperia Z2 General] Mustangvst:
I am trying to do magisk systemless root, because after doing this i cant install any bank apps.

i was under the impressing the update su included in tutorial might be systemless, but checking su settings shows its installed as system . Also bank apps are detecting the root and force closing.

anyway, may i please have boot.img

i am getting an error when installing magisk,

says

cannot restore from internal backup

ramdisk restoration incomplete

repacking bootimage

unable to repack boot image

although i should be specifically asking this in magisk forum, there i see an instruction that if u ever have rooted, u must unroot and , flash boot.img

i perhaps need this boot.img flashable file. As they keep insisting it wont work on custom rom.

i think the .521 kernel downgrade perhaps has something that isnt compatible with magisk?

closest i understand is i need a stock boot.img

i could be completely offtrack,

i really need a systemless root that wont be detected by banking apps.

i thank you for this lovely article. It took me weeks to finally spot this and get it working so easily!

however the bank apps closing down on me is such a nono.

If anyone , could please write their success story for sony z2 on magisk or anything similar (allows root to be hidden). i be forever grateful .
[Xperia Z2 General] Adriano-A3:
Ask for help in Magisk thread

Maybe you get a better and faster help there
[Xperia Z2 General] Camachos:
Thank you so much :good:
[Xperia Z2 General] iXaidyiu:
You need a patched Magisk for stock Sony ROMs. See screenshot.
[Xperia Z2 General] dnak47:
Pls check for me:

11/004/2017 11:04:29 - INFO - Selected Bundle for Sony Xperia Z2 (D6503). FW release : 23.5.A.0.575. Customization : Customized MEA

11/004/2017 11:04:29 - INFO - Preparing files for flashing

11/004/2017 11:04:30 - INFO - Please connect your device into flashmode.

11/004/2017 11:04:31 - INFO - Opening device for R/W

11/004/2017 11:04:31 - INFO - Reading device information

11/004/2017 11:04:31 - INFO - Phone ready for flashmode operations.

11/004/2017 11:04:31 - INFO - Current device : D6503 - BH910U8H16 - 1281-2115_R6D - 1278-4770_23.5.A.0.575 - GLOBAL-LTE_23.5.A.1.291

11/004/2017 11:04:31 - INFO - Start Flashing

11/004/2017 11:04:31 - INFO - Processing loader.sin

11/004/2017 11:04:31 - INFO - Checking header

11/004/2017 11:04:31 - INFO - Flashing data

11/004/2017 11:04:31 - INFO - Processing of loader.sin finished.

11/004/2017 11:04:32 - INFO - Loader : S1_Root_9c84 - Version : MSM8974AB_27 / Boot version : S1_Boot_MSM8974AB_LA3.0_M_3 / Bootloader status : ROOTABLE

11/004/2017 11:04:32 - INFO - No bootdelivery to send

11/004/2017 11:04:32 - INFO - Processing kernel.sin

11/004/2017 11:04:32 - INFO - Checking header

11/004/2017 11:04:32 - INFO - Flashing data

11/004/2017 11:04:34 - INFO - Processing of kernel.sin finished.

11/004/2017 11:04:34 - INFO - Ending flash session

11/004/2017 11:04:34 - INFO - Flashing finished.

11/004/2017 11:04:34 - INFO - Please unplug and start your phone

11/004/2017 11:04:34 - INFO - For flashtool, Unknown Sources and Debugging must be checked in phone settings

When i restart phone, it is still .291
[Xperia Z2 General] iXaidyiu:
Seems only kernel is included in the bundle, redownload one using XperiFirm.
[Xperia Z2 General] Mustangvst:
Omg thank you!! Will chase that and later write how it went by

Love you!!!

---------- Post added at 04:33 PM ---------- Previous post was at 04:29 PM ----------

It won't say you are on 575, because it's just kernel.

But your kernel has downgraded to 575. U can confirm this by,

Running the tool that will install twrp custom recovery,on your mobile after u have downgraded. It won't install otherwise if you are on.291

The tool is on the first post.
[Xperia Z2 General] parthhadiya:
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

Plz help!!
[Xperia Z2 General] light001:
Im still waiting someone to help me with that. It shouldnt be a very difficult thing. Please anyone?
[Xperia Z2 General] shoey63:
- Flash .575 D6502 or 6503 kernel

- Root

- Flash D6543 kernel back again.
[Xperia Z2 General] preci0us:
error: device not supported
[Xperia Z2 General] iXaidyiu:
More elaboration will be much appreciated, such as phone model, bootloader state, Windows info, etc...
[Xperia Z2 General] preci0us:
Thank you for your interest

Phone: D6503, 23.5.A.291 And: 6.0.1, locked BL, windows 10 64x

Need more information?
[Xperia Z2 General] iXaidyiu:
Flashtool version?

Anyway, use v0.9.18.6 for Z2 or any 2014 line devices.
[Xperia Z2 General] preci0us:
Flashtool 0.9.23.2
[Xperia Z2 General] shoey63:
Did you successfully flash. 575 kernel first?
[Xperia Z2 General] :
There is nothing saying "device not supported"

You need to close Flashtool first, and then run install.bat
[Xperia Z2 General] :
Thanks a lot for everything

it works !!!!!!!!! :)
[Xperia Z2 General] mellowbug:
Apparently im a morron, because i cant figure out how to flash only the .575 kernel. Ive read a decent amount of tutorials and watched alot of tut. videos but they all asume you can fastboot. My device wont let me fastboot the kernel and when i try to flashmode the kernel it doesnt see the .tft. Can somebody please push me in the good direction? I already had to do a software repair with the sony campanion software and lost somehow the 4g functionality.:eek:

greetings. mellowbug.

Figured it out. Thnx anyway.
[Xperia Z2 General] zoultrex:
Could you elaborate on how you managed to finally do it?
[Xperia Z2 General] iXaidyiu:
Use flashtool by androxyde and check only KERNEL.
[Xperia Z2 General] zoultrex:
I was not able to flash back to .291 since the install option in TWRP could not find the image file.

I was able to flash supersu and get root, but once I select install, and change it to image install, TWRP install screen is not able to locate the ftf file for .291

BTW I did donwload the Z2_23.5.A.1.291_Marshmallow_Kernel_Flasher.zip file from the attachments on this thread and I did rename it to .ftf

Anyone have any idea?

Thanks!

EDIT: Figured out that the .291 kernel must still be in zip format to flash from recovery, so it's all good.
[Xperia Z2 General] mellowbug:
I followed another guide on xda which for some reason worked at first try. Don't know though what was the reason why it wouldn't work with this one. Maybe I just had a clear moment:eek:
[Xperia Z2 General] jianwen89:
Hello guru,

My Z2 also unable to boot to revcovery mode.

I've flash the kernel 575.

02/056/2017 15:56:49 - INFO - Selected Bundle for Sony Xperia Z2(D6503). FW release : 23.5.A.0.575. Customization : Customized MEA

02/056/2017 15:56:49 - INFO - Preparing files for flashing

02/056/2017 15:56:49 - INFO - Please connect your device into flashmode.

02/056/2017 15:56:55 - INFO - Device disconnected

02/057/2017 15:57:10 - INFO - Device connected in flash mode

02/057/2017 15:57:10 - INFO - Opening device for R/W

02/057/2017 15:57:10 - INFO - Reading device information

02/057/2017 15:57:10 - INFO - Phone ready for flashmode operations.

02/057/2017 15:57:10 - INFO - Opening TA partition 2

02/057/2017 15:57:10 - INFO - Current device : D6503 - BH90EYXW16 - 1281-1977_R3D - 1278-4770_23.5.A.0.575 - GLOBAL-LTE_23.5.A.1.291

02/057/2017 15:57:10 - INFO - Closing TA partition

02/057/2017 15:57:10 - INFO - Start Flashing

02/057/2017 15:57:10 - INFO - Processing loader.sin

02/057/2017 15:57:10 - INFO - Checking header

02/057/2017 15:57:10 - INFO - Flashing data

02/057/2017 15:57:11 - INFO - Loader : S1_Root_9c84 - Version : MSM8974AB_27 / Boot version : S1_Boot_MSM8974AB_LA3.0_M_3 / Bootloader status : ROOTABLE

02/057/2017 15:57:11 - INFO - Max packet size set to 512K

02/057/2017 15:57:11 - INFO - USB buffer size set to 512K

02/057/2017 15:57:11 - INFO - No flash script found. Using 0.9.18 flash engine

02/057/2017 15:57:11 - INFO - Disabling final data verification check

02/057/2017 15:57:11 - INFO - Disabling final verification

02/057/2017 15:57:11 - INFO - Opening TA partition 2

02/057/2017 15:57:11 - INFO - Writing TA unit 00002774. Value : 01

02/057/2017 15:57:11 - INFO - Closing TA partition

02/057/2017 15:57:11 - INFO - Opening TA partition 2

02/057/2017 15:57:11 - INFO - Closing TA partition

02/057/2017 15:57:11 - INFO - Opening TA partition 2

02/057/2017 15:57:11 - INFO - Closing TA partition

02/057/2017 15:57:11 - INFO - Opening TA partition 2

02/057/2017 15:57:11 - INFO - Closing TA partition

02/057/2017 15:57:11 - INFO - Opening TA partition 2

02/057/2017 15:57:11 - INFO - Closing TA partition

02/057/2017 15:57:11 - INFO - Opening TA partition 2

02/057/2017 15:57:11 - INFO - Closing TA partition

02/057/2017 15:57:11 - INFO - Opening TA partition 2

02/057/2017 15:57:11 - INFO - Writing TA unit 00002725. Value : 32 30 31 37 2D 30 39 2D 30 32 20 31 35 3A 35 37 3A 31 31 00

02/057/2017 15:57:11 - INFO - Writing TA unit 00002774. Value : 00

02/057/2017 15:57:11 - INFO - Closing TA partition

02/057/2017 15:57:11 - INFO - Ending flash session

02/057/2017 15:57:11 - INFO - Flashing finished.

02/057/2017 15:57:11 - INFO - Please unplug and start your phone

02/057/2017 15:57:11 - INFO - For flashtool, Unknown Sources and Debugging must be checked in phone settings

02/057/2017 15:57:12 - INFO - Device connected in flash mode
[Xperia Z2 General] mustafamohd:
My device unlocked. Root not access. Because I m in marshollow version. I try so many methods. I can't access. Is it possible any new method
[Xperia Z2 General] nazzier5463:
hello. everything is done and my device is rooted. but i can not boot into recovery ? any idea why ?
[Xperia Z2 General] rbond007:
Hi [MENTION=4765888]nazzier5463[/MENTION] ! If you have rooted ans already installed recovery, when you are booting the phone, you must see a green light upside of the Sony logo, if it is the case, immediately press the vol down button for 3 sec or the vol up, try the two you will get into recovery.
[Xperia Z2 General] nazzier5463:
thanks its worked
[Xperia Z2 General] stonegroover:
Worked for me, thanks :)
[Xperia Z2 General] stonegroover:
Also worked for me too, thanks :)
[Xperia Z2 General] rince1990:
Is there any way to pass the safetynet after installing those kernels? because im not able to play pokemon GO after this steps
[Xperia Z2 General] iXaidyiu:
Install Magisk then enable Magisk Hide.
[Xperia Z2 General] rince1990:
but this will only hide magisk, no? the thing is that even without installing magisk safetynet fails because ( the kernel is not a stock kernel?, i dunno) furthermore, I've tried to install magisk 14 with TWRP without sucess, it tells me something about using adriandc boot bridge, but i've tried also to use it without success, because after a "correct" instalation with that bootbridge, I got the magisk manager in my apps but without any root access. Any idea why?

Will with magisk hide also pass the safetynet fail cuz of the kernel?

thanks in advance
[Xperia Z2 General] iXaidyiu:
Download the patched version of Magisk if you are on stock ROM and after enabling Magisk Hide it should be able to fake SafetyNet no matters what kernel and what ROM you are on.
[Xperia Z2 General] rince1990:
ok, ill give a try... but not right now because ill have to do a backup and all the stuff. Thank you for your answers and for sharing your knowledge
[Xperia Z2 General] AWahab:
Do I need to backup my applocations and data for this process? Or they are going to be untouched?