Motorola usually releases the kernel sources in just two weeks of the phone's launch, but this time around, the Lenovo-owned company took a little bit more time than the usual. Nevertheless, the company has released the code and developers can start working.
The kernel sources are available in the tar.gz file extension and also in the form of a .zip file. If you're interested in developing a custom ROM for Moto X4, the go ahead to Github and download the kernel sources and set it up in the Android Kitchen.
The Moto X4 is the latest mid-range smartphone from the company packing decent specifications such as the Snapdragon 630 SoC, 3000mAh battery, Android Nougat, and a Dual Rear Cameras.