Motorola Mobility has just published the complete kernel source code for the Android Nougat Operating System version for their smartphones Moto Z2 Play and Moto G5S Plus. Android version 7.1.1 is preloaded with the new Moto G5S Plus and Moto Z2 Play smartphones. As there were no pushing out via OTA, the only way to get the Operating System version was just getting the devices on hand.
By making the kernel source code public, the Motorola has followed the license agreement signed with GNU regarding the GPL Licencing. As the Android Operating System is developed based on Linux Kernel under the GPL license which was treated to be open source and free to access, every OEMs and developers whoever using or developing the Android OS must be ought to publish their Kernel source code on certain cloud-based Git or version control repository platforms like GitHub. It is also very much mandatory to have the kernel source codes from each and every manufacturer on the internet for developers to develop Custom ROMs and firmware. Without a proper Source Code, custom ROMs would go insanely buggy and will malfunction the device.
Motorola had published the complete kernel source code for both the smartphones on their official GitHub profile, to act as the stable substratum for Custom ROM developers.