自 2025 年 3 月 27 日起,我們建議您使用 android-latest-release
而非 aosp-main
建構及貢獻 AOSP。詳情請參閱「Android 開放原始碼計畫變更」。
版本生命週期
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
AOSP 程式碼會先經過不同分支,再合併為正式版本。圖 1 顯示這項發布生命週期的各個步驟:
圖 1. Android 開放原始碼計畫發布生命週期。
生命週期中的步驟如下:
外部貢獻者可以下載及修改裝置的最新發布分支,並針對這個分支提出下一個 AOSP 版本的程式碼變更。
如要瞭解上游專案的生命週期,請參閱「上游專案生命週期」。
Google 會審查並挑選最新發布分支中提出的變更,將其納入 Google 的內部開發分支。這個分支只能在 Google 內存取,也是 Google 為下一個版本新增新功能的地方。
內部開發分支會定期建立內部版本分支。Google 可能會在這個版本分支中挑選變更,以便修正錯誤並提升效能。
在某個時間點,Google 會將內部發布分支的程式碼推送至最新的發布分支 (在 android-latest-release
資訊清單中指定),以便在公開的 AOSP 主機上建立發布分支的唯讀副本。
上游專案生命週期
上游專案程式碼會流入內部開發分支,並按照上方圖表中的步驟 3 和 4 進行。上游程式碼會在下一個發布分支中發布。上游專案是 AOSP 從中提取程式碼的開放原始碼專案。除了 Linux 核心和 WebKit 等專案之外,Google 也將部分半自動 Android 專案 (例如 ART、Android SDK 工具和 Bionic) 遷移至 AOSP。您可以直接為某些上游專案做出貢獻。詳情請參閱「為上游專案做出貢獻」。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[[["容易理解","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-07-27 (世界標準時間)。"],[],[],null,["# Release lifecycle\n\nAOSP code moves through different branches before it is combined into an\nofficial release. Figure 1 shows the various steps of this release lifecycle:\n\n**Figure 1.** AOSP release lifecycle.\n\nFollowing are the steps in the lifecycle:\n\n1. External contributors can download and modify the latest release\n branch for their device, as well as propose code changes for the next version\n of AOSP on this branch.\n\n | **Note:** The [Download the Android source](/docs/setup/download) document explains how to download and sync to the latest release branch. To view all of the code in the latest release branch within Android code search, navigate to [`https://cs.android.com/android/platform/superproject`](https://cs.android.com/android/platform/superproject).\n\n For information on the lifecycle of upstream projects, see\n [Upstream projects lifecycle](#up-life).\n2. Google reviews and, if accepted, cherrypicks proposed changes on\n the latest release branch into Google's *internal development branch*. This\n branch is accessible only within Google and is where Google adds new features\n for the next release.\n\n3. Periodically, an internal release branch is created from the\n internal development branch. Google might cherry pick changes into this release\n branch to address bug fixes and performance improvements .\n\n4. At some point, Google pushes code from the internal release branch to the\n latest release branch (specified in the `android-latest-release` manifest)\n to create a read-only copy of a release branch on the public AOSP host.\n\n### Upstream projects lifecycle\n\n*Upstream project* code flows into the internal development branch and\nfollow steps 3 and 4 in the preceding diagram. The upstream code is published in\nthe next release branch. An upstream project is an open source project from\nwhich the AOSP pulls code. In addition to projects such as the Linux kernel and\nWebKit, Google migrates some semi-autonomous Android projects such as ART, the\nAndroid SDK tools, and Bionic to AOSP. You can contribute directly to some\nupstream projects. For details, see\n[Contribute to an upstream project](/docs/setup/contribute/contribute-upstream)."]]