General Public Licence v2, better known as GPLv2, mandates every Android smartphone manufacturer to publicly release the part of Linux kernel code that they have shipped on their smartphones. OEMs like OnePlus and POCO are known for providing Day 1 source code release while others often take their sweet time to fulfill their legal obligation. Xiaomi, too, used to be one of the worst offenders of GPLv2 in its early days. But in recent years, it has made great strides in overturning that image. Xiaomi is still not as swift as OnePlus when it comes to releasing and keeping the kernel sources up-to-date, but it's now in a much better position than several of its competitors.

XDA Forums: Redmi Note 9 Pro || Redmi Note 9 Pro Max

The company recently launched its newest phones in the Redmi Note series in India consisting of the Redmi Note 9 Pro (codename: curtana) and Redmi Note 9 Pro Max. Both devices come running Android 10 with MIUI 11 on top. And now the company has released the kernel source code for both phones, allowing the modding community to kickstart the development of custom ROMs and kernels. You can review the code at Xiaomi’s GitHub repository by clicking on the link below.

Kernel Sources for the Redmi Note 9 Pro/Note 9 Pro Max

Alongside this, Xiaomi has also released updated kernel sources for the Redmi Note 8 Pro's Android 10 release. Xiaomi released the kernel source code for the Redmi Note 8 Pro (codename: begonia) on September 10th. This was for the initial Android 9 Pie release which the device was shipped with. Back in late February, Xiaomi rolled out the Android 10 update for the Redmi Note 8 Pro.  However, the kernel source code for the same wasn't made available up until now. Visit the Xiaomi's GitHub page from the link below to inspect or download the code.

Kernel Sources for the Redmi Note 8 Pro || Redmi Note 8 Pro XDA Forums