[Sony Cross-Device General] r3pl4y:
D5308 Working...

I did these step and i've z3c D5308 with rooted .77 fw, with dualrecovery:

Sorry for my bad english!

Maybe I'm not accurate with all step but it will work...

0. Open your dialpad: *#*#7378423#*#* go to Service info/Software info, there is a line Customization Version e.g.: 1289-3731_R16B

1. Download XperiFirm, extract it and open.

Select your device in the left box, and search your Customization Version in the center box, the latest firmware is in the right box, click it, untick the unpack automatically, and download the firmware.

2. Download Flashtool: http://www.flashtool.net/downloads.php

3. Setup Flashtool, and go to directory where you installed, go to drivers dir, and run setup, tick fastboot drivers, flashboot drivers, Xperia Z3 Compact Device Driver.

4. Open Flashtool and go Tools/Bundels/FILESET Decrypt, in the window set the Source Folder to destination where Xperifirm downloaded the 4 files.

The Files will be in the left box, select all files and put to the right box, then click convert. This may take a while, so be patient.

If decrypt done there will be a popup window, double click at the device box and select your device, you can set the Branding, Version if you want.

Bring the files from the left box to the right, except the .ta files. This important i think!! Don't include the files with .ta ends. (2 files).

Click the create button, wait for flashtool make ftf file. The file will be Flashtool/Firmwares dir.

Now you have your original latest firmware!!

5. Download PRFCreator, download SuperSU, and download DualRecovery: D5308:

Z3C-lockeddualrecovery2.8.0-RELEASE.flashable.zip.

Extract the PRFCreator and start it. Browse the ftf file that you created with flashtool, SuperSU zip, and the Recovery zip, tick the four option at the right side: Kernel, FOTAKernel, Modem, LTALablel, and click Create button. The flashable.zip will in the PRFCreator directory. This is your original latest (.77) prerooted firmware, with dualrecovery.

6. Download D5803 Global generic 23.0.A.2.93 (1286-9917) it's very slow, so be patient.

Copy the .93 firmware to Flastool\Firmwares dir.

Power off your phone!

Open Flashtool, then click Flash Device icon, in the popup select flashmode, select the firrmware from the left panel and click the Flash button.

There will be a popup window do the step what is in the instruction... Put your USB cable to the phone, press and hold the volume down, and the power button.

The flashtool will flash your phone with .93 fw, when its done boot your phone, and go to settings/about click more than 5 times at the Buildnumber for get the developer setting.

Go to developer setting and turn on USB debugging, and allow mock location. Put your device to airplane mode.

7: Download giefroot, extact it and connect the usb cable to your phone.

Start the install.bat and follow the instructions. It will root your device, setup SuperSU.

8: Download Backup TA, extraxct it and start it, fallow the instructions for back your security TA partition. If it done, you have your private TA partition with DRMs... save this somewhere!! Now you can restore your TA partition anytime and you will be get back the stock, if you restore your TA partition the bootloader will be locked, like it never been unlocked :). So it is IMPORTANT STEP!!

9: Download Dualrecovery D5308: Z3C-lockeddualrecovery2.8.0-RELEASE.installer.zip

Extract it, and start install.bat this will install the dualrecovery to your device.

After restarted your phone, copy the prerooted latest (,77) firmware zip to the internal storage(sdcard0), open NDR Utils app and reboot into TWRP recovery.

Install the the firmware, when it's done, DON'T BOOT UP YOUR PHONE. POWER OFF IT!!

10. Open Flashtool and flash your original firmware, what you have created with flashtool at the 4. step. IMPORTANT!! Before flash TICK the System in the Exclude box!! and click the Flash. This will flash all the firmware parts except the system, what you flashed it with TWRP.

Boot up your phone, and enable usb debugging, mock location.

11. Now you have the rooted latest firmware but you can't mount system as R/W, so...

Open CMD and go to the \\giefroot_v1\files\ dir.

Copy paste these: Line by line!!

adb push systemrw.sh /data/local/tmp
adb push modulecrcpatch /data/local/tmp
adb push wp_mod.ko /data/local/tmp
adb shell
chmod 777 /data/local/tmp/systemrw.sh
chmod 777 /data/local/tmp/modulecrcpatch
chmod 777 /data/local/tmp/wp_mod.ko
su
cd /data/local/tmp
./systemrw.sh

Now you have the latest firmware with fully working root, and dualrecovery. :)