自 2025 年 3 月 27 日起,我们建议您使用 android-latest-release
而非 aosp-main
构建 AOSP 并为其做出贡献。如需了解详情,请参阅 AOSP 的变更。
GKI 开发
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本指南简要介绍了 GKI 开发。
查看现有文档
在开始 GKI 开发之前,请先阅读以下文档:
构建、监控和测试
构建、监控和测试 GKI 实现时,请遵循以下准则:
按照补丁流程操作
在创建和发送补丁之前,请先向上游发送补丁到 LKML。
如果无法先向上游发送补丁,请在相应 bug 中说明原因。如需详细了解如何修补,请参阅为 GKI 开发内核代码。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-03-26。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-03-26。"],[],[],null,["# GKI development\n\nThis guide provides a high-level overview of GKI development.\n\nReview existing documentation\n-----------------------------\n\nBefore you begin GKI development, read the following documents:\n\n- For an overview of the GKI project, read\n [GKI project](/docs/core/architecture/kernel/generic-kernel-image).\n\n- For an explanation of how Android Common Kernels (ACKs), GKI kernels, and\n KMI relate, read [Android Common Kernels (ACK)](/docs/core/architecture/kernel/android-common).\n\n- To learn how to contribute to the kernel, read\n [Developing kernel code for GKI](/docs/core/architecture/kernel/kernel-code),\n [Contribution guidelines](https://android.googlesource.com/kernel/common/+/refs/heads/android-mainline/README.md)\n for Android Common Kernels, and\n [Linux kernel coding standards](https://www.kernel.org/doc/html/latest/process/).\n\n- To learn about GKI and vendor modules, read\n [Kernel modules overview](/docs/core/architecture/kernel/modules) and other\n documents in the modules section.\n\nBuild, monitor, and test\n------------------------\n\nWhen building, monitoring, and testing your GKI implementations, follow these\nguidelines:\n\n- [Use the hermetic build process and LLVM toolchain](/docs/core/architecture/kernel/stable-kmi#hermetic-build-process).\n\n- Submit your [KMI symbol list](/docs/core/architecture/kernel/stable-kmi#managing-symbol-lists) to the\n appropriate ACK.\n\n- Set up a\n [continuous ABI monitoring system](https://android.googlesource.com/kernel/build/+/refs/heads/main-kernel/abi/)\n in your internal kernel development workflows. For additional details, see\n [Maintaining a Stable KMI](/docs/core/architecture/kernel/stable-kmi).\n\n- Run full system validation tests with GKI. If you experience any\n regressions in power and performance and don't have mechanisms to address these\n issues in the ACK code, email\n [kernel-team@android.com](mailto:kernel-team@android.com) for help.\n\nFollow the patch process\n------------------------\n\nBefore creating and sending a patch,\n[send patches upstream to LKML](https://www.kernel.org/doc/html/latest/process/submitting-patches.html).\nIf the patch can't be upstreamed first, explain the rationale\n[in a bug](https://issuetracker.google.com/components/1124381). For further\ninformation on patching, see\n[Develop kernel code for GKI](/docs/core/architecture/kernel/kernel-code).\n\nHow to file a kernel bug or contact us\n--------------------------------------\n\n- To report a bug, click the **Kernel (GKI) File a bug** link on the\n [Reporting bugs](/docs/setup/contribute/report-bugs) page.\n\n- If you have GKI or kernel-related questions, email the\n [kernel-team@android.com](mailto:kernel-team@android.com)."]]