yashsingh1/xdaforums huggingface dataset:
[Xperia Z2 General] przemhb:
Procedure has failed...

For me the procedure failed. I've ran into a bootloop. Sometimes a noise from a speaker was heard. So I eventually had to flash old .314 to recover, as clearing data/cache/applog afterwards didn't help.

I do not know (maybe you could tell me?) what has failed, as I have done everything as was described. Step by step.

Long story:

I have bought just my Z2. It was branded by Polkomtel (Poland). I have allowed OTA update to .314, which has completed successfully.

Then I have rooted it [1] and carelessly rash to OTA update to .169. I left the phone unsupervised for some time. When I get back it's screen was off, so I have turned it on long pressing power button, and saw "Error - installing update failed".

Maybe it was during update process, when I have turned it on, or maybe due to root something went wrong. I don't know.

Anyhow, I have used Flashtool and flashed old .314 [2] back again. Then I have rooted it, installed TWRP Manager from Google Play, used it to apply SD fix, but haven't decided to install recovery. Next I wanted to give OTA one more try. The problem was the update was unable to verify.

I have uninstalled TWRP Manager and ran installer of the .255 DualBoot [3], which completed fine. Afterwards it restarted my phone into recovery. I have restarted it to system. It worked fine.

As OTA still wasn't able to verify I have give the method described here a try, so I have used the [4] files to prepare prerooted FTF. It went fine, so I have rebooted into TWRP recovery and installed it. Afterwards I have cleared Dalvik cache, powered off and followed instructions from the point 11.

Unluckily after restart it ran into a bootloop. I have used TWRP to clear Dalvik Cache, Data, but it didn't help. Then I have powered off the phone and executed step 11 once again, this time clearing Applog, Cache and Data. It didn't help too.

Eventually I have flashed old .314 once again and start to wonder what went wrong. Maybe you will know and shed some light onto it?

[1] "xperia z2 17.1.2.A.314 root.zip"

[2] "D6503_17.1.2.A.0.314_Customized CE1.ftf"; What I have not done is I have not checked CDA. I have just used FTF for Central Europe - CE1.

[3] "Z2-lockeddualrecovery2.7.155-BETA.installer.zip"

[4] "PRFCreator_v0.5.zip", "Z2-lockeddualrecovery2.7.155-BETA.flashable.zip" and "D6503_23.0.1.A.0.167_Generic CE1.ftf".

Is it enough to match CE1 [2] and CE1 [4] or they should have exactly the same CDAs?
[Xperia Z2 General] norti:
This looks good too.
[Xperia Z2 General] norti:
First: do not use the TWRP installer from Google Play if you have a locked bootloader, use the Dualreovery from [NUT].

But if you unlocked your bootloader, this topic isn't for you, sorry.

In any other cases (locked bootloader and working root+recovery on previous firmware) you should follow the steps and won't get bootloops. CDA should match if you do system update only, but if you wipe data and other then you can use other CDA's ftf too.
[Xperia Z2 General] HSD-Pilot:
Hey Guys, just got my Z2 2 hours ago and it's already debranded & rooted on 4.4.4. Thanks for this easy to follow How To!
[Xperia Z2 General] przemhb:
Please kindly note, that I have written I haven't used TWRP Manager to install TWRP recovery. I didn't decided to do so. I have only applied SD Fix and uninstalled TWRP Manager.

I have installed DualRecovery, see note [3]. Please read my post once again - everything was clearly stated.

Could you tell me where I have written I have unlocked my bootloader? I did not unlock my bootloader and I have not written I did.

Despite the fact I do have locked bootloader, working root and DualRecovery, surprisingly it did caused bootloop.

So what exactly I did wrong? Could you pinpoint my mistake?
[Xperia Z2 General] Merlinux:
-delete-
[Xperia Z2 General] tazoman:
On Lollipop

Lollipop will be released beginning of next month will this method work on Android 5.0?
[Xperia Z2 General] rfilipoiu:
BTW: what is that "media" app appearing uninstalled in Titanium Backup after this whole stuff?

XDA Free mobile app
[Xperia Z2 General] mirok80:
everything works fine thanks
[Xperia Z2 General] Lovaz:
so if i have 4.4.4 i must go back 4.4.2, install nut recovery and then i can use this guide right?
[Xperia Z2 General] mirok80:
Read only rootfolder please help what can i do
[Xperia Z2 General] ShinichiYao:
can I remove XZDualRecovery after all of this done?

I don't want any Recovery
[Xperia Z2 General] zxz0O0:
If you read the PRFCreator thread, it says it's optional to include a recovery.
[Xperia Z2 General] dean.lev:
Thank you so much, I'm a noob with this stuff and you are a life saver. Do you think it will be hard for the guys on here to figure out root on 5.0?
[Xperia Z2 General] zxz0O0:
Seems the FTF you selected is corrupt. Does it show up in Flashtool / can you open it with a zip program? If not, try redownloading it or use another firmware.
[Xperia Z2 General] ashcalin:
The ftf was corrupt

Downloaded te ftf again, working now
[Xperia Z2 General] Jetroyz:
The dualrecoveries on NUT's page are updated to 2.7.157. Is it fine to use that new version since you stress the version number so much in the OP?
[Xperia Z2 General] norti:
If you don't want it, then you should install the rickiller fix anyway, because you can't mount the system rewritable without it. It's up to you.

You can use the latest, I updated the first post too.
[Xperia Z2 General] mirok80:
all works but i have no rw support in rootfolder please help
[Xperia Z2 General] zxz0O0:
You can also use my flashable zip to kill RIC if you don't want dualrecovery (see here: https://github.com/dosomder/SonyRICDefeat ).
[Xperia Z2 General] guhvanoh:
I got an error when I tried to flash this on my D6503 running 23.0.1.A.0.167. This was using Z2-lockeddualrecovery2.155/157 with either PhilZ Touch or TeamWIN.

UPDATE: I found out how to get the logs from recovery. Here they are.
[Xperia Z2 General] zxz0O0:
Do you happen to have the log file / error message? Tested it on my Z1C and worked fine.
[Xperia Z2 General] t-r-e:
Hi guys

Can i just flash kernel from old firmaware then root it then reflash the new kernel from the new firmaware ?

This method worked fine on z1 compact
[Xperia Z2 General] guhvanoh:
Unfortunately I don't have a log file. In PhilZ Touch all I get is 'Installation aborted'.

UPDATE: I've updated post #330 with the logs.
[Xperia Z2 General] norti:
You can try it, but I don't think it will work, you'll get bootloop/soft bricked device :cool:
[Xperia Z2 General] Tusnal:
Hi,

I want to root my Stock D6503:

GLOBAL-LTE_23.0.1.A.0.167

Customization version: 1281-4640_R2B

is it possible without downgrade?

Please post a how to guide

Thanks :D
[Xperia Z2 General] norti:
You can't root this fw, you need to downgrade, root, install the recovery and follow the tutorial in the OP.
[Xperia Z2 General] mila4me:
Thanks works like a charm :) TY man
[Xperia Z2 General] guhvanoh:
I've updated my post (#330) with the logs. Please let me know if there is anything else you need.

Thanks & regards...
[Xperia Z2 General] zxz0O0:
The problem is that you downloaded the wrong zip file :D You actually downloaded the source code in a zip file.

To download the flashable zip, select RICDefeat.zip from https://github.com/dosomder/SonyRICDefeat or go to https://github.com/dosomder/SonyRICDefeat/releases
[Xperia Z2 General] hoangps:
I have a question,this guide can make on stock ftf for z3v verizon ?
[Xperia Z2 General] sxz2:
Problem

Hello, i've updated mine to 4.4.4 now I can't boot or install recovery. how do ican dowbgarde it???
[Xperia Z2 General] muhammadnajmi96:
use flashtool
[Xperia Z2 General] outlyer:
How important is it to use the same customization version?

My desired customization (Spain, unbranded 1281-4644) is only available on the latest firmware version, apparently. So I can only downgrade into a different customization to begin with the rooting procedure, and use my desired customization to complete it, I'd think that since everything will be flashed along the way, there should be no problem, but that warning scares me a bit.

EDIT: I've now managed to find the relevant customization FTF, though I'd still like to know how important it is.
[Xperia Z2 General] sxz2:
WTF

WTF , i flashed 4.4.2 firmware using flashtool but my device now isn't booting up . only it shows sony logo and off and again
[Xperia Z2 General] muhammadnajmi96:
you doesn't wipe data thats why bootloop is happening
[Xperia Z2 General] zxz0O0:
It's not really important. The differences are small (4G/LTE icon, NFC icon displayed, pre-installed apps, etc.). I recommend to use something in the same region though (e.g. if you're from spain, stay with european firmwares).
[Xperia Z2 General] outlyer:
Oh I know the actual differences, though they aren't important anyway since the last version for any customization is always easy to get. My "problem" was getting an old version to match the target customization (which I eventually did find).

I was puzzled by the OP's insistence, and wondered wether upgrading from a different customization might break something.
[Xperia Z2 General] edger61:
I ain't gots the testicles..

...to risk my rare new 'phone, although I've flashed Symbian phones I've had, 'till this Z2. It's my being dragged, kicking and screaming to the world of Android. I need a version of Towelroot, that'll work on my installation. I've already gone to Sony, fer the unlock code, 'haven't used it yet. Thanks to the guys who peel apart Android, and find the exploits...
[Xperia Z2 General] outlyer:
The risk is minimal, it's basically the same as with a standard flashing (though twice): most likely the worst case scenario is that you'd end up with a bootlop and would have to do a firmware repair from PCCompanion or Flashtool (which is just a full reflash); you'd end up losing data but that's it.

Unlocking the bootloader (using that code you got) is less involved but it has its own caveats (including the loss of DRM keys, which if you don't have them backed up -root necessary- means you'll lose functionality).

I followed this procedure the same day I got the phone. I screwed up by picking the wrong recovery package (the non-flashable one) with no ill effects, re-flashed the old version, repeated the full procedure, and now I'm enjoying an up to date and rooted firmware.
[Xperia Z2 General] rfilipoiu:
The governors are weird, have you noticed the CPUs load?

XDA Free mobile app
[Xperia Z2 General] Louis235:
Everything worked like charm. Thank you very much.
[Xperia Z2 General] keekxkun:
not working -_-

I tried it multiple times but it's not working, please help me :(
[Xperia Z2 General] Azadfar2009:
Great Job, Thanks,

PRFCreator v0.5 is better, Thanks Again :good:

---------- Post added at 07:32 PM ---------- Previous post was at 07:28 PM ----------

is it have root access in Grant Mode ?? it should be Work :eek:
[Xperia Z2 General] xelemorf:
Working on Xperia Z2 LTE Tablet (SGP521)

Confirmed working on Xperia Z2 LTE Tablet (SGP521), got root on firmwares on 17.1.2.A.0.314 and 23.0.1.A.0.167, using these versions

PRFCreator_v0.8,

UPDATE-SuperSU-v2.45.zip,

TabZ2-lockeddualrecovery2.8.0-RELEASE.flashable.zip.

Many thanks! :good:
[Xperia Z2 General] kunaltyagii:
Will this method remove the dual recovery? no way to get back the recovery without downgrading and flashing recovery again?
[Xperia Z2 General] norti:
It does not remove it, it installs it alongside the rooted system ;) You don't need to flash the recovery again, except if you want to update it to newer version.
[Xperia Z2 General] bulu_bulu:
i just bought my phone. now on firmware 23.0.1.A.0.167 and still not install anything.so no there is no my stuff need to be backup

should i downgrade to other firmware then root the phone or just flash the pre-rooted ftf file that i will create with this tutorial??
[Xperia Z2 General] kunaltyagii:
yup it worked. made a mistake earlier. used z3 recovery instead of z2 :P working great now. thnks a lot.
[Xperia Z2 General] toterkeks:
After 6 hours, i finally managed to get it.

Thank you very much dude :)
[Xperia Z2 General] deepongi:
nice. testing ASAP.

regards.
[Xperia Z2 General] fertsch:
Works Perfect for more than 1 Month now:good:
[Xperia Z2 General] ShiAili:
Upgraded all the way to A.3.12, but broke tethering

Thanks for this! I was able to use this method to upgrade to .167 and then to A.3.12 (by following the same process) on my Taiwanese Z2 D6503. Unfortunately, in both .167 and .12 versions, wifi tethering broke. It just said "error" in the menu. The only way to restore it I have found has been a factory reset. I have tried resetting the APN, as well as using Titanium backup to wipe anything that looks like it might control tethering settings. Titanium Backup crashes on a bulk restore, so I have to restore manually.

This method itself, though, is excellent. Thank you so much for posting it. I'm sure Android veterans know this quite well, but I had never rooted my own ROM before without an exploit tool.
[Xperia Z2 General] siyavash1361:
hi

in this part :

11. Start Flashtool and with the Flash device icon flash the kernel and other baseband files from the FTF in Flashmode.

wich files in ftf we should exclude in flashtools??

tnxx alot
[Xperia Z2 General] yuskhayru:
Anyone here can confirm me that its safe if we skip the step 11 by including those options?
[Xperia Z2 General] norti:
You can safely try it out: include what you want in the PRFCreator, flash it, skip 11, and see if the phone boots normally and everything works. If you get bootloop or the phone doesn't get any signal (no service), then turn it off and follow from step 11. This may fix the baseband and boot issues ;)
[Xperia Z2 General] BanziBaby:
I left the include options all ticked & have had no issues:)
[Xperia Z2 General] Nyssa1104:
OP or anyone else just seen in title that this is for locked bootloader.

My Z2 is not sim locked and has been unlocked (bootloader) via Sony official means and rooted with dual recovery on 4.4.2 would this not work on unlocked bootloader?

Sorry I'm used to flash and working with Samsung devices thank in advance.
[Xperia Z2 General] BanziBaby:
It worked fine on my sony Z2 with unlocked bootloader.
[Xperia Z2 General] Nyssa1104:
Thanks for the confirmation my friend. :good

Edit.

Did the jump all went well no problems ☺
[Xperia Z2 General] hadijalalish:
Thanks!:o

It worked....

But after a few months I can't boot recovery mode:rolleyes:

....when I turn on the phone,green led light doesn't turn on or NDR Utils doesn't work with any primary recovery modes.I tried lockeddualrecovery2.8.1-RELEASE.installer on windows and again it worked correctly:D:D:D:D
[Xperia Z2 General] imsudheer98:
Recovery unbootable

I have tried this process and everything worked good. but after everything is done i am unable to boot into recovery, no matter how many methods i tried i am unable to boot into recovery. Can anyone help?

Thank you
[Xperia Z2 General] norti:
See the post above yours. Just install the latest recovery again with the installer not the flashable zip (root is needed). Something must have changed your boot scripts...
[Xperia Z2 General] imsudheer98:
Yes i have and tried but no use, root permission is denied for dual recovery, i a using locked bootloader
[Xperia Z2 General] norti:
Then you need to flash back a previous fw and root it, then do all the update process again. You lost the root somewhere :rolleyes:
[Xperia Z2 General] imsudheer98:
No, i had the root and when i checked in ROM manager it shows dual recovery was installed and i verified the root too with root checker app, i am just not able to boot into recovery.
[Xperia Z2 General] ljapplebaum:
Upgrading to 4.4.4 removes recovery and causes root errors

I used the PRF creator program to install 4.4.4 over my rooted Z2 with dualrecovery installed. Everything installed and seemed to boot up fine, but then the cooked framework and busybox would not install, and I can't boot into recovery. Does installing the flashing 4.4.4 remove R/W capabilities and the recovery? If so, how do I get them back? If not, how do I fix this? I'm not especially familiar with this kind of thing. Any help is appreciated. Thanks!
[Xperia Z2 General] norti:
If you still have root, than simply install the dualrecovery with the installer. You can find it in its topic/download site beside the flashable version.

Follow the steps in the OP.
[Xperia Z2 General] QuiDC:
THIS IS FOR

LOCKED

BOOTLOADER ONLY !!!

Where is the tutorial for unlocked bootloader? :/​
[Xperia Z2 General] Envious_Data:
This works on unlocked bootloader too

[MENTION=838895]norti[/MENTION] ^​
[Xperia Z2 General] sidali leone:
hi guys i installed the dual recovery but it seem like it desapear after while and have to install it again in order to access the recovery mode ..but every time it desappear ..i have locked bootloader i dont know whats wrong
[Xperia Z2 General] Skye Menjou:
Question, it says always to use your customization version, but I need to downgrade first, and there's no one with the same FTF code for Belgium.

Can it hurt to downgrade to a non customized one and upgrade back to the right one rooted?
[Xperia Z2 General] echooffzack:
Works on Xperia Z2 with Unlocked Bootloader!

I hate to go against the rules of this post, but I took the risk and installed this on my Z2.

Everything is working beautifully.

Thanks for the tutorial, was a lot of work but hey, totally worth it.
[Xperia Z2 General] RedSkyRoad:
I used Flashtool to download the German package (1281-4640) and created the FTF with Flashtool... A created FTF should have no flashing errors if flashed as-is....
[Xperia Z2 General] ruinses:
Same Here
[Xperia Z2 General] RedSkyRoad:
Oh well, I just decided I'll go the (unrooted) .167 OTA update... Wil wait till someone comes up with a proper 167 root method...
[Xperia Z2 General] Ningyou Higeki:
It shouldn't be a broken FTF... How about downloading another one from XperiFirm? Coz you can copy the direct link and paste it into a downloader like IDM. Maybe that makes your download faster and reliable, maybe...
[Xperia Z2 General] bernhardtdrew:
yeah.... i noticed this one too... im unable to activate xposed which means it cannot write to 'system' .... oh and i did not do step 12
[Xperia Z2 General] RedSkyRoad:
I get an error when flashing the FTF. The MUST be something wrong...
[Xperia Z2 General] Ningyou Higeki:
Help! I do as Step 12 but I still can't get my system R/W. Any good ideas to solve it?
[Xperia Z2 General] norti:
Do you have root if you open SuperSU? Did you run the installer version of the dualrecovery, allowed it to have root rights when asked and completed successfully with the device rebooting?
[Xperia Z2 General] norti:
Try to download the ftf for your phone's original customization number/provider/region or do a repair update in Sony PC Companion.
[Xperia Z2 General] nomaj:
6. Uncheck all the Include options [ ], we don't need them, we will flash them with Flashtool after the update. I think it's still safer to flash kernel, baseband, boot and other system critical parts of the firmware from Flashtool.

I just did the different way ... i selected all Include options in this step. Also added FTF downloaded and converted with Flashtool and SuperSU zip.

This way i was created prerooted rom. Flashed with recovery and without reboot flashed recovery.

This way.. all works - - sys - RW even Noise cancelling. ;) Also this way you dont need to flash anything after with Flashtool.
[Xperia Z2 General] RedSkyRoad:
My 314 FTF is perfect. If I flash the 167 FTF, I get errors. If my FTF cant flash (unrooted), then my created ZIP will be broken as well...
[Xperia Z2 General] norti:
So you'll need a good .167, the one you are trying to flash is obviously corrupt.
[Xperia Z2 General] norti:
Yes, that should work most of the time, but how did you get proper root without installing a ric killer? Did you install the recovery with the installer?
[Xperia Z2 General] cuyo11:
what would happen if we dont exclude the TA partition at flashtool? would it be wiped?

im new to xperia devices :)
[Xperia Z2 General] Ningyou Higeki:
When I opened SuperSU, nothing strange happened. I tried to run NextApp SDFix and SuperSU popped up a message of authorization. I confirmed it but SDFix said platform.xml file could not be updated. Seems that I have root but I can't mount /system R/W. And of course I ran the installer and gave ADBshell root rights, but it didn't work. The log said "mount: permission denied (are you root?)".
[Xperia Z2 General] bernhardtdrew:
yes i do have root. however, i noticed upon doing step 12, a few lines say 'cannot write to system'...

im doing another run, this time, i edited NUT's script to include the .167 version. Will let you know if it pushes through.

As a workaround, you can write to system via recovery.

---------- Post added at 11:59 PM ---------- Previous post was at 11:44 PM ----------

hi, can you expound:

i suddenly got lost. hahaa
[Xperia Z2 General] kirpeace:
Need to add the rom version in dual recovery otherwise ric killer does not work after phone starts.
[Xperia Z2 General] Ningyou Higeki:
So how to do it? Can you help me?
[Xperia Z2 General] norti:
If you install the dualrecovery via the PC installer, there is no need to add the version string in the script because it doesn't check it, that's why I put this last step in the process. But I'll check this again later today.
[Xperia Z2 General] RedSkyRoad:
No matter which FTF I download/create with Flashtool, I get the following error when just flashing the FTF straight to my phone

09/048/2014 06:48:22 - ERROR - Processing of system.sin finished with errors.
09/048/2014 06:48:22 - INFO - Ending flash session
09/048/2014 06:48:22 - ERROR - ERR_SEVERITY="MINOR";ERR_CODE="0017";ERR_DYNAMIC="8009001C";

I'm using Flashtool 0.9.18.3...

Amyone using an older version maybe?
[Xperia Z2 General] bacardiandwatermelon:
After installing a new rom you have to install the flashable version of philz touch again. Thus retaining the recovery.
[Xperia Z2 General] zotya112:
Nice!

Köszi! Nagyon jó! Majd kipróbálom, ha lesz egy kis időm! ;)

Thx! It looks cool! I'll try it if I'll have enough time.
[Xperia Z2 General] de.knarf:
4.4.4 with root

Thank you for the detailed guide!

It's been a while since I've been meddling with rooting/flashing/etc. since my HTC Desire HD, but you have helped me do it!

After the first boot, I got a warning about some IUAD files being broken or whatever the message was :angel:

(this caused the screen to turn off and no longer turn on, randomly stop receiving input, randomly closing tasks, etc.)

So I flashed it again, wiping everything, which worked like a charm.

(yay, my first post on the xda forums)
[Xperia Z2 General] norti:
I know, but I can't guarantee it on custom kernels, so it's just a precaution ;)
[Xperia Z2 General] akkufix:
[MENTION=838895]norti[/MENTION]

A big thanks to you for ths tut. Saved me a lot of time. :good:
[Xperia Z2 General] IreshS:
CONFIRMED works on lollipop 23.1.A.0.690. Include the patched latest TWRP
[Xperia Z2 General] kamalmawa:
Have you tested to see that you can mount the System RW ?
[Xperia Z2 General] _mysiak_:
You most probably have to flash RIC killer as well (with modified NUT's dual recovery).
[Xperia Z2 General] IreshS:
Yep i'll check with RIC killer and see
[Xperia Z2 General] adamsmth663:
yep just checked

only partially rooted

cant enter recovery now
[Xperia Z2 General] :
I confirm, even when using TWRP Manager, but it's possible to write on the system partition. I noticed some crashes though (ES Explorer is one these app. Not sure what you meant by partially rooted, but it can be related.
[Xperia Z2 General] _mysiak_:
Have you modified TWRP flash zip file?

edit: twrp_flashable.zip\tmp\installdisableric.sh

Either remove ROMVER check, or replace for example

"$ROMVER" = "23.0.F.1.74"

by

"$ROMVER" = "23.1.A.0.690"

Otherwise the RIC Killer won't be installed and root will most probably fail.