Sony has officially added the Xperia XZ Premium to its Open Devices program. Users of the latest (and the most expensive) Sony phone can now easily build AOSP for their devices.
If you need a refresher, Sony periodically adds some of its devices to the Open Device program. The company releases device trees, kernel trees, binaries and build instructions to compile AOSP for these devices, allowing users to experiment, learn and create. Xperia XZ Premium repository is now live on GitHub. You can also find a guide for compiling AOSP Nougat 7.1 for it.
In other news, the entire X family is close to having a fully working Linux 4.4 kernel. Currently, it’s available on the Xperia X Performance, Xperia XZ, Xperia XZ Premium, and Xperia XZs. Those devices have 4.4 kernel and binaries ready. Xperia X and Xperia X Compact have kernel 4.4 and binaries (without camera) and need more kernel work. Credits go to Sony’s Community Manager in Developer Relations, XDA Senior Recognized Developer jerpelea, and FreeXperia team supported by XDA Retired Recognized Developer kholk, who put a lot of effort to make it happen.
To build AOSP for Xperia XZ, make your way to the build guide for Android N. You can also jump straight to GitHub to review the code. All contributions are welcome and highly appreciated.