自 2025 年 3 月 27 日起,我們建議您使用 android-latest-release
而非 aosp-main
建構及貢獻 AOSP。詳情請參閱「Android 開放原始碼計畫變更」。
取得 Android 原始碼
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
如要取得 Google 在 Android 產品中以二進位檔形式發布的第三方元件原始碼 (開放原始碼授權將授予您接收原始碼的權利),請前往 http://android.googlesource.com。如需下載原始碼的操作說明,請參閱「下載 Android 原始碼」。
如果元件的原始碼無法在 http://android.googlesource.com 上取得,您可以提交下列表單,取得原始碼副本:
我們會依據《Google 隱私權政策》使用您的資訊。
我們可能會向您收取費用,以支付處理作業的費用。您必須根據下列適用規則傳送要求:
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-06-12 (世界標準時間)。
[[["容易理解","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"]],["上次更新時間: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."]]