[Xperia Z Android Development] athanne09:
This i have written in a PM to someone needing help, thought it might be useful to more then just him, so here it is:

To download in preparation:

1.	DooMKernel v18

2.	The 2.67 FTF for either the C6603 or the C6602

3.	The latest Flashtool

4.	OPTIONAL: The files for my 'update to' package

The guide:

1.	Put the DooMKernel zip on the external SDCard;

2.	Install flashtool and put the FTF you downloaded in the X:/Flashtool/firmwares folder (where X is the drive you installed it on);

3.	Create a folder called 'kernels' inside the Flashtool folder;

4.	Inside X:/Flashtool/drivers you will find the Flashtool driver package, install the drivers for the Xperia Z;

5.	Open the zip from doomkernel and extract the boot.img into the 'kernels' folder you just created;

6.	Make sure you have a backup of everything you wish to keep on you phone, this process will destroy everything on your phone;

7.	Connect your USB lead to your PC ONLY;

8.	Turn off your phone, leave it disconnected for now;

9.	Start flashtool, click on the lightning rod and choose 'fastboot mode';

10.	Click on 'Select kernel to flash';

11.	Browse to X:/Flashtool/kernels and change the file type selector to '.img'. Select the boot.img we put in there but WAIT with pressing OPEN;

12.	Now connect your USB lead to your phone, while HOLDING the VOL-UP button;

13.	Once you hear your PC register the phone (and maybe install a driver) press OPEN (This will flash DooMKernel to your phone);

14.	Disconnect your phone from the PC when you see the Flashtool main screen say that flashing went OKAY;

15.	Now turn on your phone, when you see the purple LED, press VOL-DOWN once, this will start TWRP;

16.	Tap 'Wipe';

17.	Tap 'Advanced Wipe';

18.	Tap to Tic everything in the list except the external_sd, then 'Swipe to Wipe';

19.	Once done, your phone will NOT boot, as it will be empty, go back to the main menu and through the menu option 'Reboot' choose 'Power Off';

20.	In flashtool, close the fastboot toolbox and open the lightning rod again, now go to flashmode;

21.	Select the FTF we put inside the 'firmware' folder;

22.	Under 'Exclude' exclude the KERNEL, leave the rest as it is;

23.	Press 'Flash' and wait for the screen where you get instructed to connect the USB lead;

24.	Connect the USB lead while HOLDING the VOL-DOWN button;

25.	You will notice flashtool will start flashing your device;

26.	Once done disconnect the USB cable;

27.	Power on the phone, at the purple LED press VOL-DOWN to enter TWRP;

28.	Tap 'Install' and on your external_sd find DooMKernel, install it (This will install WIFI drivers and firmware);

29.	Reboot your phone and let it boot;

30.	Setup your phone walking through the basic settings and all (similar to when you first got it);

31.	The following procedure is optional but will also root your ROM

o	OPTIONAL: Put the 'C660x.flashable.67.zip' you downloaded on the external_sd card;

o	OPTIONAL: Reboot your phone and enter TWRP again;

o	OPTIONAL: Tap Install, search for the flashable package and install it, do not reboot;

o	OPTIONAL: Install DooMKernel again through recovery, this will again install the WIFI driver and firmware;

o	OPTIONAL: Reboot your phone.

32.	Be a happy camper, because you are DONE!

Long list of stuff to do, but it will work

If you have any questions, do not hesitate to ask