Kể từ ngày 27 tháng 3 năm 2025, bạn nên sử dụng android-latest-release
thay vì aosp-main
để xây dựng và đóng góp cho AOSP. Để biết thêm thông tin, hãy xem phần Thay đổi đối với AOSP.
Vòng đời phát hành
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Mã AOSP di chuyển qua nhiều nhánh trước khi được kết hợp vào một bản phát hành chính thức. Hình 1 cho thấy các bước trong vòng đời phát hành này:
Hình 1. Vòng đời phát hành AOSP.
Sau đây là các bước trong vòng đời:
Người đóng góp bên ngoài có thể tải xuống và sửa đổi nhánh phát hành mới nhất cho thiết bị của họ, cũng như đề xuất thay đổi mã cho phiên bản AOSP tiếp theo trên nhánh này.
Để biết thông tin về vòng đời của các dự án ngược dòng, hãy xem phần Vòng đời của dự án ngược dòng.
Google xem xét và chọn lọc các thay đổi được đề xuất trên nhánh phát hành mới nhất vào nhánh phát triển nội bộ của Google (nếu được chấp nhận). Bạn chỉ có thể truy cập vào nhánh này trong Google và đây là nơi Google thêm các tính năng mới cho bản phát hành tiếp theo.
Theo định kỳ, một nhánh phát hành nội bộ sẽ được tạo từ nhánh phát triển nội bộ. Google có thể chọn lọc các thay đổi vào nhánh phát hành này để giải quyết các bản sửa lỗi và cải thiện hiệu suất .
Tại một thời điểm nào đó, Google sẽ đẩy mã từ nhánh phát hành nội bộ sang nhánh phát hành mới nhất (được chỉ định trong tệp kê khai android-latest-release
) để tạo bản sao chỉ có thể đọc của nhánh phát hành trên máy chủ AOSP công khai.
Vòng đời của dự án ngược
Mã dự án thượng nguồn sẽ chảy vào nhánh phát triển nội bộ và thực hiện các bước 3 và 4 trong sơ đồ trước. Mã nguồn thượng nguồn được phát hành trong nhánh phát hành tiếp theo. Dự án thượng nguồn là một dự án nguồn mở mà AOSP lấy mã từ đó. Ngoài các dự án như nhân Linux và WebKit, Google còn di chuyển một số dự án Android bán tự động như ART, các công cụ SDK Android và Bionic sang AOSP. Bạn có thể đóng góp trực tiếp cho một số dự án thượng nguồn. Để biết thông tin chi tiết, hãy xem bài viết Đóng góp cho dự án cấp trên.
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-07-27 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-27 UTC."],[],[],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)."]]