yashsingh1/xdaforums huggingface dataset:
[Xperia Z2 General] bjorn96:
Yes this will work. Once downgraded, Root with Towelroot, TWRP and flash the zip from PRFCreator.

Yes, will remove all, but you have backed up as you say. :)

Will work, yea. If anything, pm me and ill try help ya out. :)

Sent from my D6503
[Xperia Z2 General] sxtester:
Am I missing something or how do you install a recovery without having root (or an unlocked BL)?
[Xperia Z2 General] bjorn96:
Cant. Have to unlock BL first. You on 4.4.4?? :)

But you can downgrade/upgrade without unlocking too.

But if you want to unlock BL (I assume you have Z.x) then downgrade to 4.4.3, root, backup TA, unlock and enjoy. :D

Sent from my D6503
[Xperia Z2 General] sxtester:
Of course you can't, good that you corrected your own previous post.
[Xperia Z2 General] bjorn96:
Sorry, did not read it fully. ;)
[Xperia Z2 General] jaxenroth:
Took 4.4.4 update

Being there's no root for the latest FW, would I have to somehow downgrade FW via FlashTool, or sit tight until root is avl? Thx, sorry, Im a nexus/htc/ sammy/ 1+ guy. Thx.
[Xperia Z2 General] bjorn96:
You do decide self. If any, pm me. :)

Sent from my D6503
[Xperia Z2 General] ghostofcain:
I think you might be in for quite a wait for root, devs have more pressing issues especially as there is root available via downgrading
[Xperia Z2 General] jaxenroth:
[MENTION=2402872]ghos[/MENTION]t so do the downgrade. This way I could upgrade via flash a 4.4.4 ROM that is rooted?
[Xperia Z2 General] ghostofcain:
Exactly.
[Xperia Z2 General] stubbadub:
Hi,

I have exactly the same problem and have just made a thread about it http://xdaforums.com/xperia-z2/help/unable-to-write-to-t2947101

Did you fix this?
[Xperia Z2 General] jeoleo7:
I did the same
[Xperia Z2 General] ghostofcain:
As posted in your thread running easyroot will solve it, it can't root 4.4.4 but it will install the ric killer which is what is required.
[Xperia Z2 General] sidinvespa:
Ho can i do the root without losing My data? Even i use the metod with The downgrade...
[Xperia Z2 General] noobiedeveloperweeman:
Need to flash recovery for 314 firmware

I can get root I just need to flash a recovery. it always fails! :( Help anyone.
[Xperia Z2 General] sid3091:
will easy root work on .314?
[Xperia Z2 General] funky0308:
Yes...easy root is working on 4.4.2, it's not working on 4.4.4 (Z2)
[Xperia Z2 General] morrislee:
I used D6503_1281-9709_17.1.2.A.0.314_R4A_Customized US.tft and wiped everything. Set it up and root it with easy root, use survival mode enabled under SuperSU and did the OTA. Still rooted!
[Xperia Z2 General] rd74:
Hello everybody!

If I'll downgrade 167 FW (4.4.4) to 314 (4.4.2) to get root, will I lose my current TA partition and DRM keys?

Actually I need root only for TA (DRM) partition backup. Then I plan to unlock bootloader and jump to AOSP river :)

But DRM keys are the issue, I don't want to lose them forever.
[Xperia Z2 General] ghostofcain:
Only unlocking bootloader wipes DRM keys, downgrade wont touch them.
[Xperia Z2 General] noobiedeveloperweeman:
rw using easyroot?.

Boom boom!. Hey,slight newbie here! :-S If i flash 314. Firmware and use easyroot to get root. Then flash the dual recovery and use supersu to keep root after updating 167. Firmware .would the sd be rw so i could edit the sound files and use xposed mods??

---------- Post added at 01:35 AM ---------- Previous post was at 01:30 AM ----------

Okayy. So if i downgrade to 314.,i can use easy root?. Then i can use supersu to keep root afterwards when i update with OTA to 4.4.4 right?. I also wanna know though,if that works will it be rw and will i be able to use xposed mods?

Sorry for all the questions and thanks for any answers.
[Xperia Z2 General] weltwon:
How to ROOT Z2 on 23.0.1.A.0.167 Firmware WITHOUT downgrade!

ROOT your Xperia Z2 Model 6503 on 23.0.1.A.0.167 Firmware WITHOUT having to downgrade firmware!

Here is what I did in SIMPLE terms:

1. Unlock bootloader using SONY method offered FREE on sony website.

2. Turned on USB Debugging (Settings>About phone>Build number click it until it says you are a Developer)

Settings>Developer options check USB debugging

3. With phone attached to PC via USB, download Xperia_Z2_D6503_23.0.1.A.0.167_Root_Recovery.zip ROM and move it to your external SD card of your Z2 phone.

4. Download and install flashtool-0.9.18.2-windows.exe

5. Download Advance Stock Kernel with CWM Recovery v07 (FW: 23.0.1.A.0.167} .

Unzip Z2_DooMLoRD_AdvStkKernel_FW-167-v07.zip then move boot.img file and META-INF folder into your c:\Flashtool folder on your PC.

6. Turn phone OFF, Hold Volume UP button, plug in USB cable that is attached to your PC. If done correctly, you should sign notification light turn to solid BLUE. Your Z2 is then in DOWNLOAD mode.

7. Run Flashtool. It should sense the USB connection to your Z2. If not, it will tell you that you need to install Z2 drivers, which you can also do using Flashtool (scroll down the list of offered drivers until you see Z2). Then use the lightning bolt icon to install boot.img which will also install CWM Recovery on your Z2 phone.

8. Boot into CWM Recovery (As phone boots, when you see logo start repeatedly pressing Volume DOWN key).

9. Wipe Cache and Davlik Cache, then install the Xperia_Z2_D6503_23.0.1.A.0.167_Root_Recovery.zip ROM

DONE!

NOTE: Before you do all this I suggest making a backup of your data and/or customized screen settings using your favorite backup tool or app. Otherwise, you'll be starting from scratch to recreate data, screens, etc when you boot into your now ROOTED Xperia Z2!

P.S. It took me about 7 hours over a 2 day period to figure all this out on my own. If it helps you, all I ask for is a click of your THANKS button.

Glenn ;)
[Xperia Z2 General] andiling:
It's not a big issue to root an unlocked device...
[Xperia Z2 General] GeorgeGlaros:
Hey men,

This is very useful but what happens if root fails?

What should I do?

I mension this because last year I upgraded the firmware of a Sony Xperia S and the proscess went wrong. It stoped while installing the new FW and then I couldn't do nothing.

I couldn't turn it on. The screen was turning saying " Firmware is not finding" ( or something like that).PC couldn't see it also. Then I went to the delegation because I had a guarantee and they fixed it.

Though, thanks a lot.

( sorry if I had some spelling or grammar mistakes. I use English as a secondary language)
[Xperia Z2 General] noobiedeveloperweeman:
wow!!! :-O

Will this method keep the internal storage as rw?

Wow!!! All that is absolutely amazing!! Thanks so much!! Such a huge help. I appreciate your time for the root,post and everything!. Of course i'll be clicking thanks :) oh and i already have an unlocked bootloader from trying to root before baha
[Xperia Z2 General] noobiedeveloperweeman:
one more quick question

..
[Xperia Z2 General] Envious_Data:
rooting wont fail with a unlocked bootloader just because of the instalation method but your national regional spesific warrenty and also your international warrenty is totaly gone :/
[Xperia Z2 General] ashwin333:
Can you make a similar method to root sony xperia z2 D6502 model please
[Xperia Z2 General] Envious_Data:
Rooting D6503 is same as Rooting D6502

No differences exept firmwares you download
[Xperia Z2 General] ashwin333:
Thanks for the reply...

I just needed only root. So without unlocking bootloader any method which works for sony xperia z2.

My model is sony xperia z2 android 4.4.4 (Firmware version is 23.0.1.A.0.167)
[Xperia Z2 General] bjorn96:
No root for that FW yet. [emoji6]
[Xperia Z2 General] sidinvespa:
So?

Why nobody reply?
[Xperia Z2 General] ashwin333:
Guyz... This method is not working for Sony xperia z2 D6502 android 4.4.4 (23.0.1.A.0.167)... Please post a method of one click root access like towel root or easy root as above steps are very complex. You guyz are best in the world... Please make this happen...
[Xperia Z2 General] mato.balentovic:
Downgrade

Right, it seems that bootloader on my D6503 is locked, meaning I cannot unlock it (eventhou I go t the unlock code from Sony).

Is there a way to downgrade to 4.4.2 with locked bootloader? And if there is a way, how?

Thanks in advance.

I just hate 4.4.4 not being able to root easy method. My battery life is utterly low.
[Xperia Z2 General] Envious_Data:
use flashtool to flash a Older Version FTF
[Xperia Z2 General] ashwin333:
Guyz .... I have tried the above method... But the notification light is not turning Blue... Please upload a video of the above steps... It will be useful for everyone please...

My model is Sony xperia z2 D6502 (FW 23.0.1.A.0.167)
[Xperia Z2 General] ianrobbie:
Don't know if it's relevant to this thread or not but I thought I'd share.

I'm sitting with a fully rooted Xperia Z2 with a Locked Bootloader on Firmware 23.0.1.A.3.9 (4.4.4).

I'm assuming 23.0.1.A.0.167 is an older firmware so why stick with an older, rootable firmware?

I followed the instructions here - http://xdaforums.com/xperia-z2/general/4-4-4-creating-rooted-update-package-t2933155

Hope it helps!
[Xperia Z2 General] ashwin333:
Thanks a lot for the information... I will try it and update if i face any issues
[Xperia Z2 General] code2006:
hi guys i need some help

i have sony z2 2301.a.0a167 fw and i want to root it

i followed the instructions but on the sony website it says if your phone says NO under rooting in the hidden menu something like the you can't root it?

any ideas ?

thanks
[Xperia Z2 General] Envious_Data:
If your service menu says no then that means your bootloader isnt unlockable which is how sony expects you to root

You can root 167 by downgrading to 314 and rooting then flashing 167(and root) via 314 and then upgrading everything but system to 167

http://xdaforums.com/showthread.php?t=2775411

There are some rooting methods and info
[Xperia Z2 General] code2006:
thanks for that

sorry didn't see that u provided a link lol

i hope i can downgrade using my mac

thanks
[Xperia Z2 General] Envious_Data:
1. Download Flashtool and a FTF (flashtool.net)

2. Make sure FTF is 314 FTF

3. Install Flashmode/fastboot drivers (windows)

3. Use flashtool to flash 314 FTF

4. Root and install recovery

5. Use recovery to flash 167 rom (and root)

6. Download a 167 FTF

7. Flash FTF and exclude system

:D
[Xperia Z2 General] code2006:
perfect thank u so much

the ftf now

mine is a branded d6503 (on o2)

do i have to download a branded 314 or can i download the unbranded one?

also when i root 314 and recover 167 can i down load an unbranded 167 and can a rooted 167 be downloaded or do i have to re root it again?>

it would be nice to unlock it to any network or 3 network

thanks
[Xperia Z2 General] Envious_Data:
You exclude system when you flash 167 because you rooted the 167 rom we flashed before

And for FTF, you dont need branded, it can be unbranded

It has to be for D6503
[Xperia Z2 General] code2006:
thanks last question ( taking ages to download files lol)

i take it this doesn't unlock phone to any network does it ? prob won't but might as well ask
[Xperia Z2 General] Envious_Data:
Nope, simlock and TA are two partitions that cant be touched :D
[Xperia Z2 General] ghostofcain:
.3.9 is a carrier specific version of .167 there is no real advantage to it over .167 for most users.
[Xperia Z2 General] ianrobbie:
OK. Wasn't aware of that. Thanks for the heads up.
[Xperia Z2 General] ashwin333:
I have rooted my Sony Xperia Z2 D6502 Android 4.4.4(FW 23.0.1.A.0.167) today by following the above instructions. Worked Flawlessly... Thanks a lot..
[Xperia Z2 General] danilodbr:
is there any mod to .167 to reduce the icons? DPI?
[Xperia Z2 General] Haldi4803:
There is an Xposed module called "Xperia Xposed" which can reduce icons DPI
[Xperia Z2 General] sidinvespa:
News?
[Xperia Z2 General] ghostofcain:
What are you expecting? AFAIK there is no active development on rooting .167 due to availability of pre-rooting methodology.
[Xperia Z2 General] sidinvespa:
I expect a metod to root without losing my data and personal files.
[Xperia Z2 General] ghostofcain:
You'll need to backup your data, much of which should be done automatically to Google, bit personal files shouldn't be touched even using the current methods.
[Xperia Z2 General] PC75:
I apologize if this is a FAQ but I was not able to understand if I can root an xperia z2 with 4.4.4.

Are there any instructions somewhere?

Thank you.
[Xperia Z2 General] effective:
Read the first page of the threat please :silly:
[Xperia Z2 General] PC75:
I might be silly but I don't see the answer to my question.
[Xperia Z2 General] effective:
http://xdaforums.com/xperia-z2/development/stock-4-4-4-23-0-1-0-167-bug-free-t2929402

http://xdaforums.com/xperia-z2/general/4-4-4-creating-rooted-update-package-t2933155
[Xperia Z2 General] TomSeitz:
In the very first line of the mentioned tutorial it says:

"1.1 You need obviously an already rooted phone with [NUT]'s DualRecovery installed on a previous firmware version (4.4.2)

If you don't have the recovery, you can install it on version 4.4.2 from here..."

So the problem is: what if there is no phone with 4.4.2, but the update to 4.4.4 has already been made?
[Xperia Z2 General] Messi10:
You need to downgrade to 4.4.2 using flashtool
[Xperia Z2 General] sidinvespa:
Is there no way to do this without losing the data?
[Xperia Z2 General] El.Guaje:
I think it is better to do full wipe :)
[Xperia Z2 General] chesterr:
I don't think TowelRoot will continue to work or develop since George Hotz started working at Google. And yes he's working on security hacks and all,

so the chances of having vulnerabilities and exploits will be very rare.

That means we will have to unlock our Bootloaders to get root. Which means if Sony keeps to mess up with camera and all, we're pretty much screwed lol.

No more TA back ups :p
[Xperia Z2 General] kunaltyagii:
Is it possible that later the DRM keys might be moved somewhere other then the bootloader? on future updates from sony i mean.
[Xperia Z2 General] ghostofcain:
Anything is possible but why would Sony bother? They need to be somewhere where it's impossible that they are inadvertently overwritten as once they are lost that's it.
[Xperia Z2 General] IreshS:
Yes
[Xperia Z2 General] dyepnoodle:
yes that's the other option :D but for now, since there's no prerooted flashable zip yet doinf the unlock thing will help those ROOT hungry users :)
[Xperia Z2 General] dkionline:
I deodexing atm, will try to root later with and start with custom build.
[Xperia Z2 General] funky0308:
I just created prerooted flashable zip.

It'll install 4.4.4, recovery by NUT and latest superuser - 2.16.

It's not deodexed!

I'll start uploading but I don't have high upload speed so it'll take a while...

Important thing is to flash kernel after flashing this zip, you must not restart device but turn it off and flash kernel via flashtool.

Don't wait for me...

Download ftf provided in general section, download tool PRFCreator, superSU and recovery and build your own...

It's easy to build it...

Here's the link

http://xdaforums.com/crossdevice-dev/sony/tool-prfcreator-easily-create-pre-t2859904

For all of you guys who don't know this I'll upload flashable, prerooted rom but I'll need few hours to upload...
[Xperia Z2 General] josephnero:
[MENTION=4816245]funky0308[/MENTION]

Awesome.waiting for it.was going to do it myself but i wasn't sure i would'nt fail.thanks again
[Xperia Z2 General] lanc3lot:
Funky will work also with locked bootloader? I have a recovery installed?

--------------------------

Στάλθηκε από το Xperia Z2 μου,μεσω tapatalk. Πιθανά ορθογραφικά, χαχα την κατανόηση σας!
[Xperia Z2 General] arrrgh:
Just curious why not include kernel? Wouldn't that make an easy single recovery flashable zip just by checking couple more boxes in PRF creator?
[Xperia Z2 General] funky0308:
I'm working on it ...for LB yeah...

We'll do it ?

---------- Post added at 08:54 PM ---------- Previous post was at 08:48 PM ----------

I'm not sure it'll work on LB if there's kernel...

I'll test on my device...

I'm trying to find a reason to buy new phone ?
[Xperia Z2 General] hery.chemo:
how about root at this version?
[Xperia Z2 General] funky0308:
Impossible...

Post above your...man...just one post above and you'll find your answer...
[Xperia Z2 General] V4LKyR:
Dude, I've been looking at your posts, you're a real patient guy lol :D People NEVER read, I guess...

For thousands of time you said the same things :cyclops:
[Xperia Z2 General] funky0308:
Haha...actually... I'm spamming threads with that...

Sorry guys for that...
[Xperia Z2 General] gravtec:
My frenz, can you confirm preroot with prftool working fine and have full root? Because im already try on xperia t2 ultra but system can't mount.
[Xperia Z2 General] dkionline:
:fingers-crossed: hope it works...
[Xperia Z2 General] funky0308:
I'm trying guys...

I'm willing to sacrifice my device to achieve this goal...

I'm just going to flash another version...

I would really need advice from [MENTION=4904057][NUT][/MENTION] if this, second attempt fails...

See ya guys in a few mins, gonna try new version...
[Xperia Z2 General] blackalice:
I tried rolling my own ZIP with PRF, but no luck.
[Xperia Z2 General] gamer649:
Adding the kernel should work on a locked bootloader as it is the stock kernel signed by Sony.
[Xperia Z2 General] Envious_Data:
im making a flashable zip for when a compatible bundled kernel comes along

Rom Contents

-Pre Rooted

-Pre-Deodexed

-Zipalinged

-permissive SE-Linux policy

i had an issue where my device wouldent boot when rooted it :/

if somoene can make this quicker than i can, go ahead!
[Xperia Z2 General] funky0308:
That's not important...

We have problems with PRF...

Can't deal with that right now...

Sorry guys...if no one build rooted rom till tomorrow I'll pre root it manually...

I just don't have time for that right now and script created automatically by PRF is too big to check for errors right now.

Maybe we could use new prerooted rom 167 and use META folder from older rom for which we know it's working...

that could work...

---------- Post added at 09:42 PM ---------- Previous post was at 09:37 PM ----------

I'm having similar problems...

I tried to build prerooted rom and flash kernel through flashtool but got this msg, few times on few different versions...

Don't know what's the problem...

There's one solution left - to build it manually...

we need time for that but it could be done...

I'm glad someone else is on it...
[Xperia Z2 General] arrrgh:
Yeah, pre rooting is failing for me too using PRF.
[Xperia Z2 General] gamer649:
PM me the script created by PRF please? I could take a look at it and see if I can see any errors.
[Xperia Z2 General] Envious_Data:
im making a Flashable Zip

manualy

,

1. i think we may need data on the device before booting it on this firmware

2. it could be a extremly strict linux policy

3. now im out of ideas, ill think of some later
[Xperia Z2 General] funky0308:
Actually, it started to flash but then it failed.

Maybe we have busybox problems but we can't try with other busybox because recovery will break..

I was working with latest recovery 2.7.154, maybe we could try with older recovery.

Or NUT should update recovery...

I'll talk to him later...
[Xperia Z2 General] TheFerhatKing:
Yeah if NUT update his Dualrecovery we will get root because it was included in his installation
[Xperia Z2 General] Envious_Data:
i ran into a problem:

my Device Fails to Respond almost comepletly After installing TWRP Official, i tried with some other recoveries

i posted a reply to doomlord to see if i can get him to update the adv stock kernel so i can start working a tiny bit quicker

---------- Post added at 06:11 AM ---------- Previous post was at 05:58 AM ----------

Doomlord has Posted Advanced Stock kernel

Results:

-Kernel works Fine

-Root works Fine

Progress:0

Rom Rooted

Progress:1

Deodexing- NOW!

Zipalign - Waiting

Busybox - Waiting

Flashable Zip - Waiting

Compressed - Waiting
[Xperia Z2 General] arrrgh:
So if you are using PRFCreator, the script expects to find busybox etc. in /utils directory. At least in my flashable zip they were left to root:

package_extract_file: no utils/busybox in package

package_extract_file: no utils/sgdisk in package

package_extract_file: no utils/create-uuidlinks.sh in package

Got the pre-rooted zip flashed just by editing the zip and copying the files to utils directory.. just finished flashing and verified I had root, got xposed already re-installed so everything looks good.

gg
[Xperia Z2 General] funky0308:
You mean "utils" on device, I don't have folders in flashable zip...

Something is od here...
[Xperia Z2 General] arrrgh:
Nope, I meant the flashable zip created by PRF creator. I edited the zip itself, added the new folder called utils and dropped the three files into it.

So the zip I flashed looks like this:

META-INF [File folder]

utils [File folder]

amss_fs_1

amss_fs_2

amms_fsg

boot.elf

...

the utils dir has the busybox, sgdisk and create-uuidlinks.sh files in it.
[Xperia Z2 General] Envious_Data:
http://scr.hu/2tqx/pt3of

here is a screenshot of my progress

next to do is wait for it to finish, Transfer to device, Test Flash, and finaly fix any problems *finaly finaly is to reflash after fix problems to find more

#blah!!! if your wondering why im ping-ing my localhost is because for some reason ADB Shell wasnt staying active when nothing was happeneing
[Xperia Z2 General] kris555777:
hej będzie prerooted działać na zablokowanym bl?
[Xperia Z2 General] Pandemic:
What [MENTION=5126858]kris555777[/MENTION] ?

Please english !!
[Xperia Z2 General] Envious_Data:
tak to będzie. :D

Staraj się mówić po angielsku .

tutaj w XDA - Developers będziesz otrzymywać więcej pomocy dla nawet spróbować odrobinę angielski .

To Other Users

http://scr.hu/2tqx/gula3

progress

im uploading the Pre-rooted ROm

Features:

Pre-Rooted

Deodexed

Zipaligned

Default SE-Linux policy set to Permissive

based on RU generic Firmware

unfixable problems-

Noise Canceling is broken ~ happens after Deodexing
[Xperia Z2 General] kris555777:
ok thanx a lot , i will wait for your prerooted rom
[Xperia Z2 General] niaboc79:
Which file have you modded or changed inside firmware?

I have also created a zip this afternoon but root doesn't work and I haven't found why.
[Xperia Z2 General] Envious_Data:
i changed all of /system/app, /system/priv-app /system/framework

i ran a deodex Script, i think the app which manages the Noise Canceling needs to be odexed.

ill upload my Zip for people to use and if you can create a fix that would be great :D

root doesnt seem to work unless you run a fix-permissions script
[Xperia Z2 General] niaboc79:
Have you been able to mount system partition with a root explorer?
[Xperia Z2 General] Envious_Data:
yes, i have Full root access and using Xplore app i have been able mount System perfectly fine.

i am in progress in Restoring my Internal Storage so i have to wait for this to be done so i can change the permissions of root from Recovery
[Xperia Z2 General] funky0308:
Damm....I forgot you have Z2 as well...

It's awesome to you here ;)

---------- Post added at 12:12 AM ---------- Previous post was at 12:10 AM ----------

So you successfully root new fw...great...

I'm on stock and will stay on stock for a day or two... I like to test new fw for a day or two...but that's my max to live without xposed xperia and Aneurysm :)
[Xperia Z2 General] Envious_Data:
http://scr.hu/2tqx/tjo43

Rooted :D

:P
[Xperia Z2 General] niaboc79:
Well done ;)

Could you share your updater script only ;)
[Xperia Z2 General] Envious_Data:
https://drive.google.com/open?id=0B7kXPU2Y8c5xbHdFVTlFOG1BZG8&authuser=0

Ding!!!

as said previously this sometimes fails to set permission, it seems to flash best via CWM

not sure what causes it

also if you could help me fix this Noise canceling not working let me know, id be glad to help
[Xperia Z2 General] niaboc79:
Thanks ;)

I am deodexing too ;)

As soon as I have a fix I will share it with you (Maybe tomorrow, soon at bed) ;)
[Xperia Z2 General] Envious_Data:
http://scr.hu/2tqx/h3n73

Uploading mine for now :D

:svetius:

http://scr.hu/2tqx/km217

:(
[Xperia Z2 General] kingofprovince:
I don't receive update 4.4.4 for my sony z2 automatically, how can I get it?

Thanks