Sony seems to like custom ROMs and anything that has to do with them and now it has released AOSP Lollipop source codes and binaries for its Xperia Z line. After they showed that the Android 5.0 stock version runs on most Xperia Z3, Sony has posted the source code and binaries for the Xperia Z3, Z2, Z1, Z1 Compact and Z3 Compact.
Devs can now use the kernel source to build their own stock Android versions for the aforementioned devices. Of course, they can use the source code to create their own custom ROMs. The binaries include different features and tools to make the hardware work without being dependent to Sony’s custom Android version.
If you’re interested in the source code and binaries, you can go to Sony’s dev page where you will find the ZIP file worth 90 MB. Don’t forget that, in order to flash a ROM to your Xperia, you will have to unlock the bootloader.