Sony Releases Instructions on How to Compile AOSP 8.0 Oreo for Supported Xperia Devices
Sony is probably one of the most developer-friendly Android OEMs out there. The company not only offers an official way to unlock the bootloader of its Xperia devices, it also provides a step-by-step guide and necessary firmware binaries so that anyone with access to a right set of tools can build their own version of Android from scratch.
With every major Android revision, the company releases software binaries and instructions on compiling the latest version of AOSP for devices that are part of its Open Devices program. Since Android 8.0 Oreo has officially been released for a while now, it would appear that Sony has released AOSP 8.0 Oreo binaries along with a step-by-step guide to build AOSP for its range of supported Xperia devices.
This is really great news as not only users will be able to get their hands on the newest version of Android, it will also make the lives of custom ROM developers much easier.
The list of devices for which Sony has released AOSP 8.0 binaries includes: Xperia XZ Premium, Xperia XZs, Xperia XZ, Xperia X Performance, Xperia X and X Compact.
To get started, you’ll need to have access to a Linux-based system and, of course, a supported Xperia device with an unlocked bootloader —you can find the instructions on unlocking the bootloader here.
The next part is setting up the build environment so that you can compile the AOSP build from the source. For which you’ll need to install Java, some necessary software packages and libraries, Repo Tool to access the source code available on the Sonyxperiadev GitHub, and, finally, Android 8.0 source code tree.
Then follow step-by-step instructions of the guide to successfully compile AOSP images. If everything goes well, you should have the AOSP images ready to be flashed on your Sony device.
However, keep in mind that this guide is intended for advanced users only and not for average users. With that said, if you are feeling adventurous and have a supported device by your side, check out the full post on building AOSP 8.0 by visiting the source link below.