Just a quick update of the previous article on “Sony Xperia Z2 upgrading to CyanogenMod 11“.
One thing is that CM now included the custom recovery and you do not need to download any other custom recoveries !
Download the CM 12 ZIP file for Sony Xperia Z2 (sirius) and extract the ‘boot.img’ file
Download link: https://download.cyanogenmod.org/?device=sirius
Get the device into fastboot (bootloader mode)
fastboot -i 0xfce flash boot boot.img
Choose the “Install zip from sdcard –> Install from sideload” option
adb sideload cm-12-20150219-NIGHTLY-sirius.zip
After the install has finished choose the “Reboot system now” option.