[Xperia Z1 Compact General] testman86:
Yes it works, I tested myself.

The next steps are only working with UNLOCKED bootloader http://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/ ! And no warranty ;)

1. It's important to have installed the seperate recovery partition with sonys flashtool emma http://developer.sonymobile.com/201...for-a-range-of-unlocked-xperia-devices-video/ after step

"1. Use the Flash tool for Xperia devices to install the latest generic software on your unlocked device."

I would do a full boot up and afterwards shut down the device. Then connect in flashmode (led blinks shortly first red, then shortly green) again before

"2. Use the Flash tool for Xperia devices to install <device name> (Open devices) TA update."

2. After this boot up again and copy the latest cm-12.1-2015XXXX-NIGHTLY-amami.zip from http://download.cyanogenmod.org/?device=amami on internal memory.

3. Then shut down the phone and afterwards boot into fastboot mode (led should be blue) (here you can find more information about how to get into fastboot mode http://wiki.cyanogenmod.org/w/Install_CM_for_amami#Installing_CyanogenMod_on_Sony_Devices )

Then you can flash the recovery.img seen in post 12 http://xdaforums.com/showpost.php?p=61519700&postcount=12 (after unzip recovery.img.zip) with "fastboot flash recovery recovery.img" (recovery.img.zip md5sum: 5720e5e13cfe841e3663892978217d0e)

4. Afterwards disconnect Z1C from USB-port and use the key combo described here http://developer.sonymobile.com/201...for-a-range-of-unlocked-xperia-devices-video/ to get into recovery.

"1. Turn your device off.

2. At the same time, press the Power button and Volume down until your device vibrates.

3. Quickly release the Power button, but keep pressing Volume down.

4. When you see the screen shown in the image below, release Volume down. You have now successfully entered recovery mode."

Now TWRP should show up on the screen.

5. In TWRP you do "Wipe" -> "Advanced Wipe" and select "/Dalvic Cache" "/System" "/Cache" "/Data" and do "Swipe to Wipe" to make a clean install because you are coming from Stock.

Afterwards go to "Install" and select your copied cm-12.1-2015XXXX-NIGHTLY-amami.zip and "Swipe to Confirm Flash" . If you also want GAPPS flash them directly afterwards like you flashed cm-12.1-2015XXXX-NIGHTLY-amami.zip.

Then select "Reboot System"

After this intsall of CM12.1 and TWRP in recovery partition is complete :)

Issues: If you select "reboot to recovery" from "reboot menu" CWM will start. Seems that CM12.1 boots into its own recovery inside boot.img. To get to TWRP just shut down the phone and use the key combo described above to boot TWRP. Even reboot to recovery in TWRP will bring CWM. So every time you want to boot into TWRP, you have to shut down the phone and use the key combo.

This is rough and not in detail but this is how I did it to have a clean base and recovery partition installed (therefore emma updates are needed) and CM12.1 installed and twrp in recovery partition.

If some points are not clear just ask. Also if there is something to correct/wrong just let me know :)

THANKS go to [MENTION=912474]Dees_Troy[/MENTION] for helping me making this tut and [MENTION=5456406]CoolDevelopment[/MENTION] for making TWRP image for our device