I will show you how to relock the bootloader of XZ
Flashtool version used: flashtool-0.9.10.2beta
Download the latest Flashtool ( found in OG android development forum)
Install the Flashtool drivers found in the drivers folder
Connect phone in Flash-mode (phone shut down, volume down + power)
Press the BLU button
Press the relock option
Put a stock .tft firmware in the Flashtool firmwares folder (this is required!!)
Flash the firmware (this is required!!)
You will now have a locked stock xperia z
Extra info by Flashtool developer:
A litte explanation :about relocking / unlocking :
When relocking the device, I save the unlock code into custom\DEVICESERIAL\unlock.txt
If ever you relocked using another method than BLU from FT (with a custom ftf for example), then you must create this file by hand to be able to unlock the device again.
This file must contain the unlock code. One line only, no carriage return.
i am not responsible for bricked devices