[Xperia Z1 Compact Q&A, Help & Troubleshooting] Darkly Phoenix:
I had aicp_amami_lp-10.0-RELEASE-20150707 on my phone so far, but because of some bugs and the missing sony-camera app I'd like to go back to stock sony. For that, so I can have a unmodified and completly up-to-date version of it, I wanted to use the sony companion-repair-thing which I used quite a lot of times by now. problem with it is that you need a locked bootloader for that which, so far, was no problem thanks to flashtool. but now, for absolutly no reason, my phone doesn't want to relock. I put some very old sony stock firmware on it and also have twrp, tried everything, debugging is on etc. but nope, when pressing the "relock" button, the next time I'm opening the bootloader thing on flashtool it still says "relock". no error message though, nothing. It just says

08/018/2015 02:18:30 - INFO - Device connected in flash mode
08/018/2015 02:18:33 - INFO - Please connect your device into flashmode.
08/018/2015 02:18:33 - INFO - Opening device for R/W
08/018/2015 02:18:33 - INFO - Reading device information
08/018/2015 02:18:33 - INFO - Phone ready for flashmode operations.
08/018/2015 02:18:33 - INFO - Opening TA partition 2
08/018/2015 02:18:33 - INFO - Current device : D5503 - CB5A21FFPV - 1279-4727_R5B - 1279-1792_14.2.A.1.114 - EURO-LTE_14.2.A.1.114
08/018/2015 02:18:33 - INFO - Closing TA partition
08/018/2015 02:18:33 - INFO - Processing loader.sin
08/018/2015 02:18:33 - INFO - Checking header
08/018/2015 02:18:33 - INFO - Flashing data
08/018/2015 02:18:34 - INFO - Loader : S1_Root_6732 - Version : MSM8974_23 / Boot version : S1_Boot_MSM8974_LA1.04_15 / Bootloader status : ROOTED
08/018/2015 02:18:34 - INFO - Max packet size set to 524288
08/018/2015 02:18:34 - INFO - Opening TA partition 2
08/018/2015 02:18:34 - INFO - Start Reading unit 000008B2
08/018/2015 02:18:34 - INFO - Reading TA finished.
08/018/2015 02:18:34 - INFO - Closing TA partition
08/018/2015 02:18:34 - INFO - Unlock code saved to C:\Users\Thomas\.flashTool\registeredDevices\CB5A21FFPV\ulcode.txt
08/018/2015 02:18:35 - INFO - Relocking device
08/018/2015 02:18:35 - INFO - Opening TA partition 2
08/018/2015 02:18:35 - INFO - Relock finished
08/018/2015 02:18:38 - INFO - Ending flash session
08/018/2015 02:18:38 - INFO - You can now unplug and restart your device
08/018/2015 02:18:39 - INFO - Device connected in flash mode
08/018/2015 02:18:39 - INFO - Device disconnected

after that it just says "relock" again and sony companion doesn't want to repair the device because of changed software which can't get updated (that means "lock you're bootloader or you can't repair it") but that excact thing always worked before, it just doesn't now, and I don't see why.

What's also weird about flashtool:

as you can see in the log above, I have the unlock-code saved in a "ulcode.txt" in the registered devices folder so the unlock-code is always already in the bootloader window. I wanted to try what happens when I delete that file and have to manually place the code in but when deleting the ulcode.txt it just comes back right when pressing the BLU button. How does that work and how can I get that away? It even comes back without internet connection, so it has to be saved in some different folder, right? But even reinstalling it and deleting all flashtool related folders didn't change it (could it be some kind of registry entry?).

I guess I got to stick to AICP until I have a solution for now.