自 2025 年 3 月 27 日起,我们建议您使用 android-latest-release
而非 aosp-main
构建 AOSP 并为其做出贡献。如需了解详情,请参阅 AOSP 的变更。
获取 Android 源代码
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如需获取 Google 在 Android 产品中以二进制形式分发的第三方组件的源代码(前提是开源许可授予您接收源代码的权利),请访问 http://android.googlesource.com。如需了解下载源代码的说明,请参阅下载 Android 源代码。
如果 http://android.googlesource.com 上未提供组件的源代码,您可以提交以下表单,以接收源代码的副本:
我们将按照 《Google 隐私权政策》使用您的信息。
我们可能会收取费用来支付处理费用。您必须根据以下任一适用规则发送请求:
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-06-12。
[null,null,["最后更新时间 (UTC):2025-06-12。"],[],[],null,["# Get Android source\n\nTo get the source code for third-party components distributed by Google in\nbinary form within an Android product, where the open source license grants you\nthe right to receive the source, go to\n\u003chttp://android.googlesource.com\u003e.\nYou can find instructions for downloading the source at [Download the Android source](/docs/setup/download).\n\nIf the source code for the component isn't available on\n\u003chttp://android.googlesource.com\u003e, you can\nreceive a copy of the source code by submitting the following form: \n\n#### Request source code\n\nYour information will be used in accordance with [Google's Privacy Policy](https://policies.google.com/privacy).\n\nWe might charge you a fee to cover the cost of processing. Your request must be\nsent according to whichever of the following rules applies:\n\n- Within three years of the date you received the product from Google that\n included the component or binary files that are the subject of your request.\n\n- In the case of code licensed under the GPL v3, for as long as Google offers\n spare parts or customer support for that product model."]]