编程知识 cdmana.com

Android kernel development turns to "upstream priority" strategy

Android The system used to contain a large number of patches from downstream and Various suppliers / The kernel tree of the device has been criticized , Because these downstream patches increase the difficulty of maintenance and the fragmentation of the operating system .

But in recent years , Google changed its strategy , More code is merged upstream , Google is also turning to  Android Generic Kernel Image (GKI) As the basis of all its product cores , To further reduce fragmentation . Looking forward to the future , Google is now talking about adopting “ Upstream priority ” The strategy of —— Introducing features to Android Push it to the upstream mainline kernel before the system .

Google engineers Todd Kjos stay Linux Plumbers Conference (LPC2021) The summit Talked about Google's GKI plan , He said , With Android 12 And based on Linux 5.10 Of GKI Mirror image , They have reduced fragmentation to “ Almost eliminate ” The degree of . stay Android 12 GKI in , Most suppliers /OEM Kernel functions are either introduced upstream Linux kernel , Or isolated in the supplier module / hook (hooks) in , Another is to be merged into Android Common Kernel.

Google in GKI Good progress has been made in , It also ensures that vendors adapt to new methods to reduce kernel confusion . But perhaps the most exciting thing is their understanding of 2023 to 2024 Prospects for further reduction of technology debt in . Google Will pursue “ Adopt upstream priority development model for new functions ”, Make sure the new code enters the mainline first Linux kernel , Instead of merging goals directly into Android In the source tree .

Google also promises “ Try to make Android Common Kernel  All in out-of-tree The patch is uploaded upstream ”.

See slides for more details .

( writing / Open source in China )    

版权声明
本文为[Programming China News]所创,转载请带上原文链接,感谢
https://cdmana.com/2021/10/20211002145819453t.html

Scroll to Top