yashsingh1/xdaforums huggingface dataset:
[Xperia Z2 General] shoey63:
[MENTION=4702982]rocker00[/MENTION]

Thanks for making this thread:good:

I don't own a Z2, but I have added both D5803 and D5802 to to iovyroot binary.

//Z2 23.5.A.0.575
{ "D6502", "Linux version 3.4.0-perf-g43ea728 (BuildUser@BuildHost) (gcc version 4.9.x-google 20140827 (prerelease) (GCC) ) #1 SMP PREEMPT Fri Apr 22 17:27:56 2016",
{ (void*)FSYNC_OFFSET(0xc1233a70) },
(void*)0xc122848c, (void*)0xc12284b4, (void*)0xc102f200, (void*)0xc1226a30 },
//Z2 23.5.A.0.575
{ "D6503", "Linux version 3.4.0-perf-g43ea728 (BuildUser@BuildHost) (gcc version 4.9.x-google 20140827 (prerelease) (GCC) ) #1 SMP PREEMPT Fri Apr 22 17:27:56 2016",
{ (void*)FSYNC_OFFSET(0xc1233a70) },
(void*)0xc122848c, (void*)0xc12284b4, (void*)0xc102f200, (void*)0xc1226a30 },

It seems to be the same kernel anyway:p

Regarding Z2 TAB support:

[MENTION=5013430]danalec[/MENTION] might be able to help.

Have a look here http://xdaforums.com/xperia-z2-tablet/general/sgp551-xperia-z2-tablet-official-t2871485/post68136137#post68136137
[Xperia Z2 General] rocker00:
i added the link to your thread so everybody can knows the supported devices and keep in touch with your thread.
[Xperia Z2 General] prabasha:
thanks this works
[Xperia Z2 General] patchyfog:
Install.bat?

Hi, the "recovery" zip seems to be empty when downloaded. There is no install.bat file inside that I can see.

Thanks
[Xperia Z2 General] rocker00:
download again everything is included in the zip.
[Xperia Z2 General] patchyfog:
Hi, just downloaded again, still empty
[Xperia Z2 General] rocker00:
try to extract with 7zip or winzip because no any issue with the zip i downloaded 2 times to make sure its ok !
[Xperia Z2 General] BroenGuiraldson:
Hello everyone, tnak you for this solution, but I can't continue until the step *-power the device off and flash .575 kernel with flashtool ( attached ).NOTE: rename the file from .zip to .ftf ( VERY IMPORTANT ) because Flashtool can't see the ftf files :/
[Xperia Z2 General] darknessmc:
To flash a file with flashtool it must be ftf. So just rename .zip to .ftf
[Xperia Z2 General] BroenGuiraldson:
I renamed it already in *.ftf, I tried to eventually drag it but it doen't work, the function isn't supported by Flashtool.

I tried to move the ftf file to an other folder but can't be seen by Flashtool.

I'll try later that day at home because I tried at office, but there is maybe some security locked function on my computer like antivirus (I doubt of that, I desactivate it for the *.bat file for example) or anything else.

Keep in touch.

Edit:

Alright, the issue is solved, I tried from my own computer, it's working fine, I can see ftf files.

By the way, important information /!\ : You must launch the tool *.bat with administrator rights on Windows 10. Without this, there is some errors like "adb server version (32) doesn't match this client (36)" and the phone don't reboot into recovery mode when it's finish.

*-flash supersu then flash .291 kernel with wiping Cache & Dalvik... ==> OK done.

*-start the device ==> OK done.

Edit 2:

At second reboot can't access to recovery, the phone bootloop :/
[Xperia Z2 General] Leehtaeyeon:
Hi, the phone don't go into recovery automatically.

Edit: I got it. Have to create PATH system variable
[Xperia Z2 General] patchyfog:
Hey, yeah 7Zip worked, thanks.
[Xperia Z2 General] karantamboli:
I have Z2 D6502 Can it Work ?
[Xperia Z2 General] SuperMattew84:
phone turn on

the root procedure is successful. I have a little problem: when I put in charging the phone turned off, turns on and refill on.

Tips? I state that I have locked bootloader.
[Xperia Z2 General] rocker00:
[MENTION=7288169]karantamboli[/MENTION] it should work because it's the same kernel so you may give a try

[MENTION=7659646]SuperMattew84[/MENTION] did you flash .291 kernel again after you have done with root ?
[Xperia Z2 General] rakeshbro:
1 - Download flashtool from Here and set it up, If you are using windows 8/10 then I'll suggest you to boot windows using driver signature verification off(If you don't know how to do that, You can ask google about it :p), Otherwise usb drivers from flashtool may not install, And you can find the drivers in drivers folder inside flashtool where you set it up!(Tick adb and z2 devices in Flashtool-drivers.exe to install z2 or any other Xperia Device drivers)

2 - When you are ready to flash the kernel file using flashtool, It'll ask you power off your device and connect your device to pc while holding the volume down button,

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

This info was confusing for me as well, but I've figured it out,

3 - Let me clear you the confusing part for you, (Makes sure to put supersu.zip and .291 kerne file on your sd card) and after you done flashing kernel.ftf using flashtool, Close flashtool on pc (Important)

then extract this file on your pc "Recovery_for_MM575-291" and Double click on "install.bat (Make sure you've admin right otherwise recovery may not be permanent on your device)It'll open a cmd window, Let it do its work and when the process is finished your device will automatically boot into recovery mode,

4. Now flash supersu.zip and .291 kernel.zip and reboot your device,

5. That's it, Now u've rooted Sony Xperia Device with Latest version of Android MM! Peace.

If this info is helpful enough, you know what to do, Good Luck! :good:
[Xperia Z2 General] riane9:
Now this one should be in the first post. LOL. The instructions posted is a little confusing for newbies. No offense to OP, peace.
[Xperia Z2 General] ortaliz:
can i stay on the 575 kernel so that i can keep twrp recovery? will there be any issues if i dont flash 291 kernel back?
[Xperia Z2 General] rocker00:
by the way on 575 or 291 recovery is installed so it doesn't make any sense to stay on 575 kernel.
[Xperia Z2 General] ortaliz:
I can't seem to get recovery to stick on 291
[Xperia Z2 General] gitzz:
Can someone upload just 291 kernel ftf file here, i can only see zip file that work in recovery, i want ftf!? Can anyone upload it

Sent from my Xperia Z2 -rooted -xposed -twrp -lb
[Xperia Z2 General] El-Khishen:
Error using adb

i keep getting this error while using the tool:

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

* daemon started successfully *

error: unknown host service

kindly note that I ran as an administrator and I have flashed the 575 kernel.

also I have a locked BL
[Xperia Z2 General] gitzz:
I also faced the same issue, what I did was, I switched off the auto start of Sony PC companion and then restart and just after restart I run the Tool with usb debugging enabled in the phone and it worked like a charm
[Xperia Z2 General] El-Khishen:
yeah i just used another computer and it worked fine :P
[Xperia Z2 General] ViHarn:
Could you help me I do not know I do it correct?

After I root and recovery finished my previous data did not delete. Is it correct?
[Xperia Z2 General] gitzz:
I have rooted my phone by this thread method, and I hv installed xposed as well, So now I guess, the FOTA update will now fail whenever I will get an update. I just want to know can I remove the inbuilt bloatware via any uninstaller or I need something else?
[Xperia Z2 General] ghilesbiker:
Hello, Can you explain me how to flash. 575 kernel plz??

Can you explain me how to flas.. 575 kernel plz
[Xperia Z2 General] BalamXDroid:
Flash it like as a firmware, flashtool detects the kernel ftf flash file automatically, but is necessary after download the 575 zip, change the extension from zip to ftf to flash with flashtool, after that you didn't see any change in settings-> about (kernel version) but you can proced to next steps. :good:

For those who have the notification update .591 after finished process, is necessary deactivate all connections settings before starts and activate it after finish, at least for me works fine only this way, otherwise the update notification appears unnecessarily :rolleyes:
[Xperia Z2 General] Ghost18_07:
Hi , i was facing a problem about (32/36 adb issue connection) , so what i did is changing the ADB file from the folding that's coming with the "" (NEW)_Recovery_Root_for_MM575-291v5 "" folder , with the one in flashtool folder ( x10flasher_lib ) , so just change the ADB file and it's will work without administrators previlage , i'm running it on windows 10 anniversary , peace
[Xperia Z2 General] keisy1:
Hi,

I would like to ask you. I must backup my data before root? I have for now not rooted mobile phone Xperia Z2 and I

using current MM 6.0.1 23.5.A.1.291. I want to keep my all applications after root.

Thanks for advice.

Regards,

Keisy1
[Xperia Z2 General] md07:
can you port this tool for Linux users
[Xperia Z2 General] tfcarlin:
It appears as though this process is sensitive to the version of Flashtool being used. I was successful twice with 0.9.18.6 and failed twice with 0.9.22.3.
[Xperia Z2 General] iXaidyiu:
Not a necessary, but the most traditional way demands it. If you want to have root without wiping your /Data, you may consider some one-click root tools out there as they may serve your purpose well. Otherwise, you will need to unlock your bootloader, which will wipe your data completely.
[Xperia Z2 General] gitzz:
I have rooted my phone with this trick! Will I be able to do any OTA updates or not?
[Xperia Z2 General] straxxus:
Had this same issue, copying the adb file from the flashtool folder fixed it for me! Thanks!
[Xperia Z2 General] Gerlie gerongca:
Hi there

Hi,

I would like to ask whats the problem if the flashtool cant detect the ftf file. I already change it from .zip. Please help. Tia
[Xperia Z2 General] straxxus:
Make sure to place the ftf file in the .flashtool/firmwares folder, mine wouldn't see it any other way
[Xperia Z2 General] Ghost18_07:
you'r welcome :)
[Xperia Z2 General] gitzz:
Did anyone get this system update? it's just 1.2 mb abd claiming it as maintainence update.
[Xperia Z2 General] Sherry sam:
my xperia is xperia z2 d602 so if i do it with my phn is there any problem.if i flash kernal of xperia z2 d603 in my

d602 is there any problem?
[Xperia Z2 General] iXaidyiu:
Yes there are, but you can flash a patch which convert a D6503 rom to use on a D6502 device. It is on XDA here but I just forgot which post is talking about that patch...
[Xperia Z2 General] ViHarn:
Could you tell me whether I make it correct?

After I root and recovery my phone, my previous data were not deleted. Is it complete?
[Xperia Z2 General] Tommy_PL:
It worked for me on mac as well ! Made on macOS 10.12 Sierra. Used ADB 1.0.36, FlashTool 0.9.22.3 and files attached to firs post in his thread. Just had to rewrite bash script (install.bat). It worked flawlessly.

STEPS:

1. Install X-code in macOS (flashtool might need this)

run terminal and paste command

xcode-select --install

2. On macOS Sierra you need to install homebrew in order to get adb and fastboot.

so here we go again with terminal for homebrew:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

and finally adb

brew install android-platform-tools

3. Get the latest Flashtool 0.9.22.3 for mac

4. Follow the steps from the first post in this thread.

5. Use attached bash file instead of install.bat (dos batch) under some circumstances:

- put the zip file on the main DESKTOP,

- unzip it (you will receive folder "Recovery" containing bash script "skr01.sh" and folder "files") - don't change folder or files names !,

- CLOSE FLASHTOOL! if still running or force to close if not closed properly. Close any other related phone software,

- unplug any other USB devices which are not necessary for adb flashing process,

- open terminal and run

~/Desktop/Recovery/skr01.sh

please include "~" as it will direct to folder working automatically - you can also catch skr01.sh with mouse and push it terminal window

- this will install recovery in phone environment.

- phone will not reboot automatically after flashing so you have to unplug it from mac, reboot it manually and when green light during boot keep pressing volume down rocker till purple led light

6. Finish flashing accordingly with first thread's post.

Have fun.
[Xperia Z2 General] pacchio:
Hey,

I have rooted with this method a while ago, everything works. Now I just need to install xposed, but I remember about the bootloops and stability problems. Which version is working fine now with this phone?
[Xperia Z2 General] umbrodomini:
Quick Charge on this kernel?

Hi Guys,

I was wondering if quick charge can be enabled with along with this Tool?

Thanks.

Dennis.
[Xperia Z2 General] Crexus:
Can you give me a link to download FlashTool Compatible with Z2 D6503
[Xperia Z2 General] rudhraraj:
it worked thanks....
[Xperia Z2 General] Gehn_x:
Hi.. im all done with the process including the flashing of .291 kernel from sd card...and have my z2 checked with root checker and it says that my phone is already rooted.. However, i am notified with a system update (version .291).. Would there be any conflict if I download and install the official update?
[Xperia Z2 General] kirpeace:
worked for me in d6502 using its .575 kernel
[Xperia Z2 General] alm3id4:
Hello. I'm following this video tutorial: youtube.com/watch?v=T17IAnTg9gk

But when I get to the part at 3:22, when you run the install.bat, I get this:

"Error: device not supported"

i.imgur.com/zShEVmR.png

Can anyone please help?

It's an Xperia z2 (D6503) running android 6.0.1 with build 23.5.A.1.291
[Xperia Z2 General] minhnhat0201:
Can i root for D6502 ?
[Xperia Z2 General] kirpeace:
yes i have anwered above. i flashed 575 kernel used the script and in twrp flashed su. Need to flash back 291 kernel also otherwise it will show system update even if you are on 291 firmware. i had flashed 570 kernel and ota was showing update of 575 on 291 firmware.
[Xperia Z2 General] Silvio Scarani:
Xperia Z2 .291 stock, Flashtool 0.9.22.3. Quick and easy, it has done in less than five minutes, just follow the written procedure in your first post. Perfect, thanks. :good: :good: :good:
[Xperia Z2 General] mousis:
Hello, i want to root 291, but i have win 10, and the flashtool, latest version, don't run.

Any idea how to make it work on win 10?

Plz add the first post a link for flashtool

Thanks
[Xperia Z2 General] Rohitdahiya:
Thanks for the awesome work.... Keep it up

Done without any error on my D6502
[Xperia Z2 General] mirok80:
it works without any problemes thanks so muck guys
[Xperia Z2 General] Abinash Stallone:
I follwed the steps. I renamed the zip file to ftf. Flashtool didnt recognize at all. I surfed internet and found a software to change the extension (Total commander). Then flashed using flashtool. the device does not automatically goes to recovery. my phone is working normally. please help. i need to root my device

---------- Post added at 03:46 PM ---------- Previous post was at 03:33 PM ----------

can anyone help ?
[Xperia Z2 General] tetooo:
help

please help.............

i have done all the steps ....but install.bat (cmd) have error

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

how to solve it ??????????????????????
[Xperia Z2 General] Nhocmt:
i already tried this way many time but still can not root my D6502 .

after flash baseband .575 via flashtool. my phone normally start so it still in .291.

this morning when i wack up . my phone notifi that : has an update 580MB ver 23.5.A.1.291.

OMG my current ver of my phone already .291. why need update again ??

someone help me know. what happening with my D6502 ?
[Xperia Z2 General] _Leviathan:
Much confusion

Hi guys,

Well, this is an incredibly confusing thread with several posts after the OP claiming to give the correct instructions.

Now I apologise in advance, I am an absolute Newbie with this.

My build is 23.5.A.1.291 Model is D6503 and Android version is 6.0.1

First the OP wrote this;

So this is the OP.

Then axute wrote this;

And then deepgrass wrote this;

So I have a myriad of possible instructions here. I can't seem to see, within the extensive comments section, if a consensus has been reached as to what actually works and what doesn't.

I'm pretty much falling at the first hurdle. Downloaded the stuff. Moved the flash file onto the SD card on my phone. For love not money can I get this phone into safe mode.

Yes, I've tried turning it off, turning it on and holding down the volume down button when the Xperia symbol comes on and keep it down. The makes the phone restart one it boots and goes back into the normal mode.

Q 1). Can anyone suggest another means of getting this into safemode?

Q 2). When it says Upgrading adb, what does that acronym mean? What is it?

Q 3). When it says "Go flashmode" what does that mean?

Q 4). In the Flashtool it asks for a Scatter loading file, what is that and where do I find it?

Q5). I installed usb drivers, but have no idea how to test if they worked. Can anyone let me know how to check this?

Q6). When I plus in the phone it offers different engagement modes, what modes should I select for the different points in the process?

Any help would be greatly appreciated and very welcome.

THank you to everyone so far that has contributed to this thread, sorry I seem to be struggling.

---------- Post added at 06:23 PM ---------- Previous post was at 05:50 PM ----------

Right ADB seems to mean Andriod Debug Bridge utility. When then leads me to this;

A URL I can't list because of reasons. Apparently I need to post 10 posts before I can post URLS.

Which then leads me to this;

A URL I can't list because of reasons.

Which then leads me to a dead end. There are no SDK only tools as far as I can see. The only option is to download Andriod Studio and there isn't any obvious way to launch the tool the first link mentions. If this is even remotely correct in the first place.

Ah wait, I've found how to launch SDK from within this larger application. But I'm totally clueless what this is, how to use it or what I need it for. All I've got to go on is "Upgrading adb (from android-sdk) - perhaps dont required (32/36 version)"

Has anyone else needed to do this or is this a total red herring?

---------- Post added at 06:55 PM ---------- Previous post was at 06:23 PM ----------

I'm wondering if ADB was to backup the phone? Maybe.

I downloaded the Sony Xperia companion program to backup the phone, would that suffice? Is that insufficient.
[Xperia Z2 General] goldenevil47:
Hey buddy... I renamed .575 kernel from .zip to .ftf andand placed it in C:/users/username/.flashtool/firmware but when I open flashtool it doesn't show any firmware...tell me what's wrong...I'm using latest flashtool and device connection with PC is also good. I'm running windows 10 pro 64bit
[Xperia Z2 General] Chronic2k13:
Personally I have had problems with the latest version of Flashtool!!! I rolled back to version 9.18............ And that one works fine!
[Xperia Z2 General] Nhocmt:
this solution is working as well with D6502.

i already tried and successful .

if anyone dont know how to do . just ask me.

i will really please to help .
[Xperia Z2 General] ceciladams85:
I need help because the kernel flashing won't work

Please help
[Xperia Z2 General] Daldes:
[YOUTUBE]T17IAnTg9gk[/YOUTUBE]

:good:
[Xperia Z2 General] ceciladams85:
I am doing this but for some reason when I run install.bat (with admin rights) it doesn't reboot to recovery and the cmd only shows "server not running" and "daemon started successfully" and then stops (while my phone reboots normally)

Pls help
[Xperia Z2 General] long-life:
Hello

is there a way to install the install.bat file from a mac ???
[Xperia Z2 General] _Leviathan:
Now that looks like a great video, but sadly I don't speak Spanish. :(

Thanks though, it does look like a brilliant guide.

Gracias

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

So I have figured a way around this/

[Youtube]pQL7HGEsHMk[/YOUTUBE]

This video shows how to root with android Lollypop. And this video;

[YOUTUBE]QefbBfLkyCE[/YOUTUBE]

Shows you how to downgrade to Lolly pop.

Frankly I don't want to downgrade, but it's an option if people are struggling getting this to work.
[Xperia Z2 General] _Leviathan:
OKay, from the Spanish video I've figured it out, After running the above it should restart into safe mode and it doesn't.

I can't seem to get into safe mode. Holding down the volume button doesn't work.

---------- Post added at 01:51 PM ---------- Previous post was at 01:42 PM ----------

Right okay, so TWRP is some pre-OS recovery sub OS in order to do other things. That bit isn't working.

I noticed in the script for the TWRP this error;

"Error: Device not supported"

Could it be it didn't work?

---------- Post added at 02:32 PM ---------- Previous post was at 01:51 PM ----------

Ah okay, got it. I had to re-flash the phone and then go through everything again. Don't know why it didn't flash the first time.
[Xperia Z2 General] Nhocmt:
so easy !

you just flash with the kernel and everything of D6503.

flash kernel .575 of D6503 , flash kernel .291 of D6503.

is still ok .

if you have just flash a custom rom ( D6503 ROM)

you must download D6502 path and put your phone onto recovery mode -> flash path D6502 file -> now your phone normal working
[Xperia Z2 General] ceciladams85:
what's the patch and is it for all ROMs?
[Xperia Z2 General] jitz975:
If you guys got already working adb, then delete adb.exe from files folder ((NEW)_Recovery_for_MM575-291v5.zip/files) and then move install.bat into files folder. So now everything is in (NEW)_Recovery_for_MM575-291v5.zip/files folder. Then run install.bat. It will work. ;) :good:
[Xperia Z2 General] legedug:
Have Xperia Z2 Docomo and I've already finished the process smoothly. Here are the step:

1. Flash D6503 version 23.5.A.1.291 from UK (mobile signal disappear, no problem for me) but leave partition exclude.

2. Flash D6503 version .575 and close the Flashtool

3. Rebooting the Xperia and still USB debugging on

4. Run install.bat from PC (Using windows 7)

5. Booting to TWRP directly.

6. Install SuperSU (zip file) make it Root permanently.

7. Install kernel .291 (make it version 23.5.A.1.291 again)

8. Install Baseband Docomo to reappear mobil signal.

9. Reboot system.

And voilla. I have Xperia Z2 Docomo using D6503 Root and TWRP recovery exist.

IAW
[Xperia Z2 General] rakeshbro:
You've to exit from flashtool 1st.
[Xperia Z2 General] Nhocmt:
this path is for D6502 (All rom )

xdaforums.com/xperia-z2/development/d6502-universal-rom-network-patch-t3312959

just flash it and enjoy !

---------- Post added at 10:17 AM ---------- Previous post was at 10:07 AM ----------

no need to run as administrator .

after flash baseband .575 ->unplug usb cab and exit flashtool

->after phone fully boot, check usb debug status again , ensure that its actived .

-> plugging usb cab ( just plug , do nothing ) -> double click install.bat and wait it auto working.
[Xperia Z2 General] gitzz:
What does this link patch exactly do? I flashed D6503 kernel zip of 291 update after rooting(OP method) in my D6502 and I don't have any problem till date.
[Xperia Z2 General] iXaidyiu:
This patch is probably got pushed at the time when there aren't really a modded kernel for .291 got pushed out.
[Xperia Z2 General] gitzz:
So, i shouldn't flash it on my D6502? Its already working fine for me
[Xperia Z2 General] iXaidyiu:
I would recommend you to not flash it since everything's seems working for you now (as you mentioned) and flashing a new thing could make things worse, which is counter intuitive.
[Xperia Z2 General] balasuganth:
need d6502 kernals

can i apply the same methods on my d6502 with d6502 kernals???

if yes....can you please provide kernels for d6502????

thank you...

update:

flashed the d6503 kernels.....followed your methods....

rooted my d6502...

thanks man....
[Xperia Z2 General] rey2gato:
HI, I'm new to Xperia Z2 rooting and development. I just wanted to know if I do this method on my Xperia Z2 with Locked Bootloader it will lost the drm keys?

It is safe to root? Xreality will still be present?

Thanks a lot :D
[Xperia Z2 General] kennean:
You'll won't lose your DRM keys... And X-Reality won't be affected!!! It's safe!!!