Sony is enhancing its reputation as a ROM-friendly maker. It added AOSP code for the Sony Xperia Z2, Xperia Z1 and Xperia M2 to the SonyXperiaDev GitHub. The company denied making AOSP ROMs and this indeed isn't it - the camera and the modem have been disabled (so you can't make calls), really not a daily driver. Sony did announce unified kernels though - the above three devices plus all Qualcomm MSM8974-based devices (that's Snapdragon 800) will be based on the same kernel, which will make custom ROM development easier. Before each device had a separate branch for the kernel, making things harder for device maintainers. It's not just custom ROMs either, the company says this change will make contributing to the official kernel easier. MSM8974-based devices include the Xperia Z1 Compact and the Xperia Z Ultra (which also had a Play Edition version at one point). Interestingly, the Xperia M2 (and its dual-SIM and Aqua versions) are based on MSM8926, Snapdragon...
Source: http://www.gsmarena.com/sony_adds_xperia_z1_z2_m2_to_aosp_unveils_unified_kernel-news-9951.php