[Xperia Z2 Android Development] arul20be:
[Stock][Lollipop 5.0.2][Root & Recovery][LB/UB] D6502/03 23.1.A.0.726 | CompleteGuide

As per many requests for d6503 variant, I have included the D6503 files too.

Hai friends, here is the complete guide to root your Xperia Z2 D6502/6503 lollipop 5.0.2 with build number 23.1.A.0.726.

And its for both Locked and unlocked bootloaders.

What are we going to do?

1. We need to downgrade your firmware to the rootable one (17.1.2.A.0.314).

2. Then root it and, install dual recovery

3. Then flash the latest 23.1.A.0.726 zip file, which is pre rooted.

4. For the safer side, i didn't include the kernel with the zip. So, we have to flash the ftf for the kernel

5. That's all!!

Requirements

1. Flash tool

2. adb setup

3. Root toolkit for .314 rooting

4. Nut's dual recovery installer

5. 17.1.2.A.0.314 ftf firmware file

6. Flashable zip of 23.1.A.0.726 firmware

7. 23.1.A.0.726 ftf firmware file

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

If you are on a custom ROM or If do you want all your apps and data are untouched/Remain follow the simple guideline below.

Steps to keep your apps and data

1. Copy the flashable.zip into memory card/external sd card

2. Boot into recovery and flash the flashable.zip

2.1 Now, try to switch on the phone.​

2.2 If the phone is switched on,​

2.2.1 Backup all your apps using the backup application (Use the backup application, found on the Tools folder from App drawer/Menu)​

2.3 If the phone is not turning on or Bootloop Occurs,​

2.3.1 Switch off the phone by pressing Power button and Volume Up button simultaneously​

2.3.2 Then follow the steps from, 23​

2.3.3 Then, Backup all your apps using the backup application (Use the backup application, found on the Tools folder from App drawer/Menu)​

3. After the backup done, Do a fresh installation by following all the given steps.

4. Then Restore the backed up things.

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

That'all!

You can download everything from the below link.

Common files needed for both D6502/6503

1. Flashtool

https://drive.google.com/file/d/0B9q-KszuHW9JWHFtNFl5a1d6RkE/view?usp=sharing

2. Adb Setup

https://drive.google.com/file/d/0B9q-KszuHW9JZEhoQ2dZZGFNYXc/view?usp=sharing

3. Root toolkit

https://drive.google.com/file/d/0B9q-KszuHW9JalZKOGVOV1BqNFE/view?usp=sharing

4. Nut's dual recovery installer

https://drive.google.com/file/d/0B9q-KszuHW9JbWdkSFhvbGMyYWc/view?usp=sharing

Firmware files for D6502

5. 17.1.2.A.0.314 ftf firmware file for d6502

https://drive.google.com/file/d/0B9q-KszuHW9JQ0VlNDd3M3V0R00/view?usp=sharing

6. Flashable zip of 23.1.A.0.726 firmware for d6502

https://drive.google.com/file/d/0B9q-KszuHW9JcHhPRlR5N2pXQWc/view?usp=sharing

7. 23.1.A.0.726 ftf firmware file for d6502

https://drive.google.com/file/d/0B9q-KszuHW9JVXVkcTkyNGxIV2s/view?usp=sharing

Firmware files for D6503

5. 17.1.2.A.0.314 ftf firmware file for d6503

You can get this 314 firmware file from the following thread

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

6. Flashable zip of 23.1.A.0.726 firmware for d6503

https://drive.google.com/file/d/0B9q-KszuHW9JZ3NROXptVHBQX1E/view?usp=sharing

7. 23.1.A.0.726 ftf firmware file for d6503

https://drive.google.com/file/d/0B9q-KszuHW9JelNGZ1NyVlo0YVU/view?usp=sharing

Steps

Make sure you have atleast 70% charge on your phone

1. First we need to setup our computer with all the pre required tools and drivers.

So, install the adb-setup-1.4.2.exe

2. Install the flashtool

3. Go to the flashtool installation directory and, go to drivers folder (C:\Flashtool\drivers by default).

Double click on Flashtool-drivers.exe and install the required Z2 drivers.

4. Now, copy the 17.1.2.A.0.314 ftf file into, C:\Flashtool\firmwares folder

4.1 Enable debugging mode in mobile and enable unknown sources installation​

4.1.1. To enable debugging mode in your phone, tap on build number ( Settings->About Phone-> Build number) continuously for 7 times​

4.1.2. To enable unknown sources installation, go to Setting-> security and enable it​

5. Copy the flashable.zip to your external sd card and remember the location, where its been copied. And, Switch off your phone

6. Open flashtools from Computer's menu

7. Now, click on the lightning symbol on top left of flashtool

7.1. Select flash mode​

8. Now select the .314 firmware, and if u don't want your data are deleted, uncheck the APPSLOG, CACHE and DATA under wipe section

9. Click on flash (Bottom Right corner) and wait until it asks you to connect the phone.

10. Now, press the volume down button and connect the phone, the above dialog box disappears and, flashing will be started.

11. Once flash is done, switch on your phone. (Close the flashtool)

12. Again, enable debugging mode and unknown sources.

13. Now open the Xperia root tool kit.

14. Double click on install.bat and connct your phone. Once rooting is done, it will automatically restart your phone.

15. Now we have to install dual recovery, open Z2-lockeddualrecovery2.7.154-BETA.installer.zip and extract.

16. open the extracted folder and double click install.bat

17. Command prompt will open. Select the option 1 and press enter

18. Dual recovery will be installed and the phone boot into recovery for the first time.

19. Keep it in recovery and select install.

20. Select the copied flashable.zip

21. Swipe to confirm flash

22. After the flashing done, clear cache/dalvik and switch off the phone. Do Not Switch on

23. Keep the phone off and, copy the .726 ftf into C:\Flashtool\firmwares directory

24. Open the flashtool and, select the .726 ftf from left side, and uncheck all from wipe section like below.

25. Under the Exclude, check the PARTITION,TA and SYSTEM like below,

26. Click the flash button from, bottom right corner.

27. Once, it asks to connect the phone, press volume down and connect it. When the process started, release the volume button.

28. After flashing finished, disconnect the cable and start the phone.

Voila!! You have successfully installed the pre rooted lollipop of 5.0.2 with build number, 23.1.A.0.726 for your D6502/6503 version of Xperia Z2

If you feel, its quite helpful there is a thanks button.