yashsingh1/xdaforums huggingface dataset:
[Xperia Z2 General] ZOHAIBAR:
thanks for the awesome and quick guide, i was worried before that coz of new 4.4.4 problems might arise as some fellow members mentioned using other methods, but this rooted stock rom really works a charm.

I only got one issue that i cannot use my recovery, i tried using some mentods by using some applications from market to go to recovery as by default the down or up volume buttons does not tend to go to recovery but just start the phone as normal.
[Xperia Z2 General] Hipsi:
no problem. I just re-downloaded the ftf and it now has the system.sin. dunno what happened there.
[Xperia Z2 General] Obibwan:
Thanks!

Just wanted to say thank you Norti for the very helpful guide.

Just upgraded to 4.4.4 on my Z2 with no problems at all. Thanks!!!!!

:good::good:
[Xperia Z2 General] Jiyeon90:
Instructions were detailed and quick to follow so thank you OP!

now I'm finally rocking 4.4.4 rooted!!
[Xperia Z2 General] crazynewfie:
Just wanted to say that your instructions are clear and i created my rooted 4.4.4 with recovery and with no issues. Thank you!
[Xperia Z2 General] romdroid.:
I dont really quite get this, how do I root when I am on 4.4.4? I update directly from 4.4.2

I am on 23.0.1.A.0.167

I dont have recovery!

you say "you obviously need rooted phone" lol how can I have a rooted phone when I am on 4.4.4?! please explain to me...step 1.1

---------- Post added at 09:55 PM ---------- Previous post was at 08:59 PM ----------

Dude u need to be more specific in your instructions. If I am already on 4.4.4 23.0.1.A.0.167 can I root it or no? You say you need recovery...how can I have recovery when I am not rooted? You need to state in first post that you 1. Need to be on 4.4.2 in order to use this method. Am I correct or no?

if yes, how do I downgrade?
[Xperia Z2 General] ffarber:
Point 1.1 of the OP in bold states you need to be on a 4.4.2 ROM so it is not a good idea to blast the poster for your not reading carefully.

I believe you need to go to this thread: http://xdaforums.com/showthread.php?t=2759934 and download the appropriate ftf for your region. Install it with the flashtool and then put the appropriate recovery for that ROM, the link for that is in the OP of this thread. You can then follow the OP instructions to wind up with a 4.4.4 rooted installation, it has worked for most of the rest of us.

Hope that helps.

Fred
[Xperia Z2 General] romdroid.:
Yes thanks I didn't blast op he needs to be more clear in his posts for noobs
[Xperia Z2 General] romdroid.:
So which of these should be included? You are not very clear in your instructions

[ ] BOOTBUNDLE

[x] PARTITION

[x] TA

[ ] KERNEL

[ ] FOTA

[ ] BASEBAND

[x] SYSTEM

[ ] ELABEL

What do you mean by limited? Should we include fotaelable and baseband or no? and if we don't what happens?
[Xperia Z2 General] bdithug:
No offence bud, but just look at the last page and the amount of comments / compliments on how easy and detailed this guide is. There's nothing wrong with the instructions at all. They are clear and detailed. I had no issues following them.

Your quote shows exactly what you need to do. Just follow the instructions and you'll be fine.
[Xperia Z2 General] nadimsoze:
Step 10 is a little unclear to me. Should you reboot after clearing Cache/Dalvik? So step 11 is after the phone has rebooted into the OS? Alternatively should you shutdown and do step 11 with the phone powered off?

"10. Install flashable.zip in recovery. After finished DO NOT REBOOT !!! Clear Cache/Dalvik only and go back to Home and choose Reboot/Power off."

Edit: Since everyone is busy with a hissy fit. I chose to shutdown. Everything worked perfectly. Thanks to the OP.
[Xperia Z2 General] Svid:
Works with no issues at all.
[Xperia Z2 General] romdroid.:
But should I check or uncheck kernel? I dont get it...
[Xperia Z2 General] _mysiak_:
Instructions are very clear and easy to follow and everything works fine on the first try, thanks!

[MENTION=2785859]romdroid.[/MENTION] your attitude is very strange for a senior member. Instead of politely asking for help you shout at helpful people that YOU do not understand very simple instructions. How come is it their fault..? :)
[Xperia Z2 General] romdroid.:
What does my status have to do with this? He says "never exlucde kernel" what? Should I check it or uncheck it? exclude = to shut or keep out; prevent the entrance of. And then in his guide he hasn't checked kernel. it's contradicting

I check kernel, system and parition and the phone got stuck in bootloop. There was no TA option in my FTA file
[Xperia Z2 General] _mysiak_:
Well, it is common that newbies are sometimes rude, but it is not really expected from senior members.

I am sorry to say, but it is crystal clear. Just as others said, just follow what has been written in instructions, everything is there, also what you have to check or uncheck in flashtool.

Basically, flash pre-rooted system via CWM and then flash everything from FTF except (exclude) system.
[Xperia Z2 General] romdroid.:
Just because you are senior droid doesn't mean you know everything about every device. Even senior droids can ask noob question. No one wants to brick their phone due to (for me) unclear instructions.
[Xperia Z2 General] _mysiak_:
[MENTION=2785859]romdroid.[/MENTION] - I am not speaking about your knowledge, but approach to the OP. He provided good and useful information. If you are new to Xperia devices, please read generic FAQ first as most of your questions are covered there (flashtool, ADB, drivers, ...).

Even if you would choose reboot, the worst thing which could happen is bootloop due to incorrect kernel. If this happens, just shut down the phone by HW button and flash the kernel as described in the next step.
[Xperia Z2 General] RedSkyRoad:
[MENTION=838895]norti[/MENTION],

I used the patched dual recovery zip but my system/bin is R/O. How can I fix this?

How do I get rid of this Dual recovery after flashing the ROM ? I want to install TWRP 2.8.1.0 but this dual recovery is stuck like **** on a wool blanket

I also get insufficient storage space when trying to make Titanium Backups...

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

[/COLOR [MENTION=838895]norti[/MENTION],

Can I create a rooted ROM without adding the recovery?
[Xperia Z2 General] Haminjuri:
Good work thanks
[Xperia Z2 General] norti:
I will add a new patched recovery tomorrow, that will work with recently released firmware versions 23.0.1.A.3.12, 23.0.1.A.4.44 for the Z2 and Z2 tablet. Maybe I'll do the rickiller patch separately if I'll have some time...
[Xperia Z2 General] norti:
I'm sorry but if I am a noob I don't mess with the things that require advanced knowledge or at least some reading on the whole topic. Rooting is not just a click anymore you need to understand the whole process, firmware versions and with Sony also how to disable the ric.
[Xperia Z2 General] norti:
I don't know if the standalone TWRP really works on locked bootloader. Dualrecovery works and you'll need it for future updates too. You don't need to use it every day and I don't see the point of using the latest TWRP version if a working one is already included with Dualrecovery.

Follow the steps in the OP exactly and tell me which step fails on your phone, maybe I can help then.
[Xperia Z2 General] RedSkyRoad:
I unlocked my booloader. The only way to get twrp 2.8.1.0 is to flash a CM11 boot.img. I wish I could get it on a stock ROM. Please can you release an update bootloader with twrp 2.8.1.0

---------- Post added at 08:13 AM ---------- Previous post was at 08:11 AM ----------

Nothing fails. I just want to create a flashable zip with the latest twrp. Or help me remove the dual recoveryso I can flash it afterwards (if at all possible)

PS: What will happen if I do not include the dual recovery when creating the ZIP
[Xperia Z2 General] norti:
This tutorial is for LOCKED BOOTLOADER and STOCK roms. Only Dualrecovery works properly on locked bootloader, you can't use other recoveries on it. With any other combination you will most probably fail the process. You can find roms, kernels and recoveries in the original dev subforum for unlocked bootloader.

I'll make this clear again in the OP.
[Xperia Z2 General] RedSkyRoad:
I apologise for wasting you time...
[Xperia Z2 General] BanziBaby:
So this way of updating wont work on a device with a unlocked bootloader? Has anyone with unlocked bootloader successfully used this method to update?
[Xperia Z2 General] _mysiak_:
It works fine also with unlocked bootloader, but it is not necessary as you can fastboot custom kernel with recovery and then flash SU package from CWM/TWRP.
[Xperia Z2 General] RedSkyRoad:
This works irrespective of whether you have locked or unlocked... I created my ZIP without the Dual recovery selected so that I can flash my own recovery (unlocked BL) (TWRP 2.8.1.0)
[Xperia Z2 General] norti:
I only guarantee that this is working on locked bootloader. People on locked bootloader don't have the luxury of flashing a rooted custom kernel, they need this. It's fine if you are experimenting with the process on an unlocked bootloader (I don't and won't support or recommend this), but I don't know why you would do that because you already can flash custom kernels with root and other recoveries. I just don't see the point doing this if you have better solutions on UB.
[Xperia Z2 General] RedSkyRoad:
Because I prefer stock, ODEX ROMs with my local Baseband. Some devs tweak the living crap out of the stock ROMs and thus introducing bugs. I unlocked for the sake of trying CM11 but I still prefer stock with all the added Sony stuff. The fact that I'm unlocked gives me the change to keep up to date with the latest recoveries.

This method makes life SO much easier in creating my OWN custom ROM, that suits just me :)

Thanx again for your work :)
[Xperia Z2 General] kamalmawa:
hey [MENTION=838895]norti[/MENTION].. here I have added the compatibility for those two firmwares, so you can update the OP with this file.. ;)
[Xperia Z2 General] BanziBaby:
Flashed with the zip file created with PRFCreator & wiped cache & dalvik, when phone rebooted I ran the Nextapp SD card fix & rebooted again & almost every app was crashing, rebooted again & it seemed fine so I then changed the DPI to 370 but that seems to mess up the quick settings panel as there is now a big gap on the right hand side of it. Have attached a screen recording of the issue in the zip file.

Anyone know how to fix that without having to increase the DPI or install xposed?

Made a backup with Philz recovery before I updated but due to the issue with quick settings & also the removal of xloud that has made ringtones & notification sounds much quieter I might restore the back up if those issues cant be fixed.
[Xperia Z2 General] kiyu727:
EDIT: After doing sd-permission fix and installing tons of apps on a new sd I suddenly got recovery back o0. I swear I restarted my phone many times and it didnt have recovery before...

Thx for easy guide though. I was afraid first but it was easy to follow. Maybe add that if youre not fast enough in flashmode, the phone will reboot on its own ... at that moment it would be stuck in a bootloop which scared me as noob.

OLD:

Ok, Im not sure if it is supposed to be like this:

I followed all steps as written, but there was no [ ] TA in flashtool for me to exclude in step 11.

So in the end I have 4.4.4, it has superuserapp which says its active (so I guess its rooted).

But theres no recovery ... I just wanted root for the sd-permissions fix, do I need TA or should I be fine ?

Maybe Im missing something and I dont want to find out in the long run ..

I used 23.0.1.A.0.167 Germany - unbranded - 1281-4640 and downloaded all files as written in OP.

I checked the flashable and it contained everything as stated.

(PS: Maybe this is important. First time I did this, PRF didnt include dualrecovery for some reason and it messed my system UIDs up :crying:, so I used Flashtool to flash to old firmware and redid everything)
[Xperia Z2 General] norti:
FYI: I removed firmware version checking from the rickiller installer script, it's universal now (but may be broken with future Android versions, like 5.0, if the ric behaviour is changed by Sony), reuploaded the patched recovery installer and made some changes in the OP (mostly more WARNINGS).

I cannot repeat more myself: this topic is for those who want to create a pre-rooted stock update package with Dualrecovery for already rooted sytems with working Dualrecovery on locked bootloader. No other combinations (unlocked bootloader, other recovery than [NUT]'s) is supported here by me. Thanks for understanding!
[Xperia Z2 General] BanziBaby:
Does anyone have any ideas on how to fix the quick settings tiles being all squashed to the left before I restore my backup?
[Xperia Z2 General] ffarber:
Not having this problem.

Fred
[Xperia Z2 General] BanziBaby:
Have you changed the DPI from the default? If I change it back to 480 the quick setting tiles are fine but everything is too big & widgets get truncated.
[Xperia Z2 General] romdroid.:
I wont lose root if I factory reset the phone after this procedure, right?
[Xperia Z2 General] XenoZirrka:
no idea when my phone should be on or off xD

hi there....

so lets start my noobing session....

I am not this much into rooting as this is my first real smartphone and I cant even remember how I managed root exactly....

I do know that I was also using batch-files and then somehow installed this tripple recovery for my 4.4.2 firmware, then I had some problems as the tutorial I followed didnt work correctly after those points as I had to flash SU from recov.... anyhow some hours later it all worked I dunno what I did xD

now Im beeing annoyed daily by this focked "new update available" messages -.-

so I want to follow ur tutorial but yeah as I really dont have so much expierience it happens often when I follow ur instructions I dont know wich state the phone should be at those moments....

could you state this more clearly in this tutorial? or can I just ask my questions to the specific points here in the replys?

a little help would be apprechiated as Im really affraid of one day, just blind clicking my phone and let install this update and all my nice stuff will be broken and look like stock and so on....

oh yeah and the general question. I use xposed framework and without this I would hate the phones GUI.... if Id manage the tutorial and install my own update, will this stuff wich I modded with xposedframework stay the way it is now?

also I deleted a lot of unnescesiary google aswell as sony tools, will this crap come back then?

(why I need root: I can not accept to have any commercial-**** on my phone, I cant accept the large unmodded UI-Buttons-and-so-on...... I would rather throw my phone away instead of using it with this deadugly stock interface!!! so there is no way for me to use an unrooted phone anymore!)

I hope u guys can help me learn doing this!

best regards zirrka =)
[Xperia Z2 General] ffarber:
No, I did not play with the DPI.

Fred

---------- Post added at 05:04 PM ---------- Previous post was at 04:48 PM ----------

Happy to try and help. First a question for you. I see that you have a rooted phone have you also installed a custom recovery? It is required that you do this before you start. You should also know how to boot the phone into recovery (there are a lot of xposed modules that will allow you to boot into recovery as a choice after a long press of the power button, install one of these before you start if you want, if you have not installed a custom recovery then this will boot to the stock recovery which will not have all the features needed in steps 9 & 10).

As far as phone state and the instructions go:

Steps 1-7

have nothing to do with your phone and should be done on your phone.

Step 8

your phone should be running normally and plugged into your computer. You need to be able to copy a file from your PC to the phone.

Steps 9 & 10

- Your phone should be booted into recovery and not plugged into the PC. Using recovery is pretty straightforward, FOLOW THE INSTRUCTIONS in these steps perfectly.

Step 11

is on your PC until where it says to plug in your phone into your PC, right after you push the flash button on your PC. This is a litlle scary the first time you do it but it works perfectly. If you have followed the instructions...

As far as the changes all of your xposed modules should still be intact but you will have to go to xposed and reactivate/install the framework. This is straightforward.

You will have to re-delete all of the bloatware that you have already deleted. No way around that unless you want to modify the flashable zip before you install it. Not recommended.

By the way, if all you want to do is get rid of the notification you can go to settings/apps, choose the update center and unckeck the 'show notifications' checkbox. Much more straightforward, no chance of screwing anything up but you won't have the update.

I hope this helped.

Fred
[Xperia Z2 General] hendry:
i followed this tutor.

any next tutor on how to deodexed it ?
[Xperia Z2 General] mato.balentovic:
Used your guide to root my D6503. Had absolutely no problems. First I had to downgrade to 4.4.2 though, but everything worked like a charm and right now I'm enjoying rooted .167 with my T-Mobile HR carrier customization.

Big thanks!
[Xperia Z2 General] wuhrz:
Just to give some feedback:

This Tutorial doesn't work for me with

* D6503_17.1.2.A.0.314_Generic DE.ftf (pre-installed, rooted and with the provided patched TWRP recovery)

* D6503_23.0.1.A.0.167_Customized_DE.ftf (used for creating flashable.zip)

and the files provided in the first post.

I can flash everything according to the tutorial, but I get stuck in a boot loop after flashing flashable.zip (yes, I wiped the caches afterwards). Even after a factory reset, I'm still in the boot loop.

I'm not looking for much advice here. Just want to point out, that it doesn't always work. If you want some more information on my setup, just ask me ;)
[Xperia Z2 General] ravdo:
11. Start Flashtool and with the Flash device icon flash the kernel and other baseband files from the FTF in Flashmode.

Did you do that yet?
[Xperia Z2 General] wuhrz:
Now I can see a mistake in my steps: I didn't boot into Flash Mode right before step 11. I thought I needed to turn on the phone to be able to flash it from Flashtool.

Now it works. Thank you!
[Xperia Z2 General] Skye Menjou:
To get this right, one must downgrade before being able to do this? I am kinda confused.
[Xperia Z2 General] ffarber:
I am not precisely sure myself but it is a mode where firmware can get directly flashed from the computer as opposed to from recovery. Therefore, when your computer is set up to flash a phone and the phone itself is in the proper state (read the instructions carefully) the flashing will occur when you plug in the phone. Note, do NOT reboot after flashing the flashable zip from recovery. This will make sense when you are doing it. Make sure you follow the instructions in step 11 perfectly.

Fred
[Xperia Z2 General] Dzyans15:
So am I. I found found YouTube on downgrading the z2 specifically so I'm going to do that and root, recovery, see how I like 4.4.2 and come back to this (my phone came with 4.4.4) if I want. I'm really just chasing root access for now, I only text, browse and play games.
[Xperia Z2 General] ianrobbie:
Just wanted to jump on and say thanks!

I'm now sitting with an Xperia Z2 with full root on the latest firmware!

Followed the inctructions to the letter and had no problems whatsoever.

Thanks again!
[Xperia Z2 General] festimcahain:
Everything explained perfect

Dude its 12/14/2014, I have Xperia Z2 D6503. Just did this, everything seems to work perfect. Thank you in advance
[Xperia Z2 General] thiagostocco:
I did all the steps, used the patched zip but I can't get to recovery anymore.

Is there a way to fix this? I've been unsing android for just a few months now so I'm kind of a noob at this :p

Thanks in advance
[Xperia Z2 General] ZOHAIBAR:
+1.

I tried all methods i thought were possible, including all free apps that let you get to recovery and using volume buttons trick at start.
[Xperia Z2 General] B-L:
OTA and still rooted

Thanks for the tutorial guys but I got stuck on step 9. Boot your phone into recovery (TWRP recommended)..

I didn't understand what this meant or how to do it.

I had done everything as per the tutorial up until step 9 and since I was tired of reading through the thread pages I just said stuff and OTA here I come.

Rebooted my phone once the update was done and then just decided to do a Root Check again and guess what....I still have root.

So i don't know what step is the cause of this but i did everything till 9 and then OTA and I am still rooted.

So thank you none the less!:D
[Xperia Z2 General] norti:
You should have an NDR Utils app on the phone, launch that, choose TeamWin Recovery Project as primary and push the Reboot to Primary Recovery button.
[Xperia Z2 General] norti:
[MENTION=4904057][NUT][/MENTION] updated the XZDualRecovery to v2.7.155-BETA, that includes the rickiller/root fix for latest Z2 fw versions and TWRP is updated too to 2.8.2.0 for your pleasure ;)

I updated the OP with this, but included a patched version anyway for other not widely distributed and future firmwares.
[Xperia Z2 General] ZOHAIBAR:
I dont know how many times i tried that NDR app and used all recoveries option inside, but couldnt get to the recovery.
[Xperia Z2 General] norti:
If you have root, try to install the latest 2.7.155 recovery again with the PC installer from the ZXDualRecovery download site (Z2-lockeddualrecovery2.7.155-BETA.installer.zip (24.2MB)).
[Xperia Z2 General] ZOHAIBAR:
Thanks for the quick response. I have root thats confirmed, but do i need the patched recovery as provided by you or the one you just mentioned?

Edit: oh i got it, the pc installer files are included in the installer version provided by NUT
[Xperia Z2 General] norti:
Try the installer one I mentioned above, the patched can be used only in working recovery ( hence flashable ;) )
[Xperia Z2 General] ZOHAIBAR:
Thanks a lot brother, worked like a charm. Now i got working recoveries.
[Xperia Z2 General] thiagostocco:
Tried the NDR Utils method and it didn't work, but then used the recovery installer and it's working now. I didn't know I could use the installer, that's why I asked how to do it.

Thanks again! :)
[Xperia Z2 General] norti:
Because you couldn't use it until today (the root is fixed only in the latest version), that's why I recommend it only now :good:
[Xperia Z2 General] rfilipoiu:
Actually this is what we get:

Directory of D:\Xperia\Root\PRFCreator_v0.7\flashable

18/12/2014 22:23 <DIR> .

18/12/2014 22:23 <DIR> ..

18/12/2014 16:46 8,359,047 dualrecovery.zip

18/12/2014 22:22 <DIR> META-INF

18/12/2014 16:41 4,000,729 SuperSU.zip

18/12/2014 21:57 2,671,771,648 system.ext4

18/12/2014 22:22 <DIR> utils

3 File(s) 2,684,131,424 bytes

4 Dir(s) 22,956,060,672 bytes free