自 2025 年 3 月 27 日起,我們建議您使用 android-latest-release
而非 aosp-main
建構及貢獻 AOSP。詳情請參閱「Android 開放原始碼計畫變更」。
Android 驗證開機程序
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Android 8.0 以上版本包含驗證開機程序的參考實作項目,稱為 Android 驗證開機程序 (AVB) 或驗證開機程序 2.0。AVB 是與 Project Treble 架構搭配使用的驗證啟動功能版本,可將 Android 架構與底層供應商實作分開。
AVB 已與 Android 建構系統整合,並透過單一行指令啟用,可負責產生及簽署所有必要的 dm-verity 中繼資料。詳情請參閱「建構系統整合」。
AVB 提供 libavb,這是在啟動時用於驗證 Android 的 C 程式庫。您可以實作 I/O 的特定平台功能、提供信任根目錄,以及取得/設定回溯保護中繼資料,藉此將 libavb 與引導程式整合。
AVB 的主要功能包括為不同分區委派更新、用於簽署分區的通用頁尾格式,以及防範攻擊者將系統回溯至 Android 的安全漏洞版本。
如需詳細實作說明,請參閱 /platform/external/avb/README.md
。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。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,["# Android Verified Boot\n\nAndroid 8.0 and higher includes a reference implementation of Verified Boot\ncalled Android Verified Boot (AVB) or Verified Boot 2.0. AVB is a version of\nVerified Boot that works with [Project Treble](/docs/core/architecture#hidl)\narchitecture, which separates the Android framework from the underlying vendor\nimplementation.\n\n\nAVB is integrated with the Android Build System and enabled by\na single line, which takes care of generating and signing all necessary dm-verity\nmetadata. For more information, see [Build System Integration](https://android.googlesource.com/platform/external/avb/+/android16-release/README.md#Build-System-Integration).\n\nAVB provides libavb, which is a C library to be used at boot time for\nverifying Android. You can integrate libavb with your bootloader by implementing a\n[platform-specific functionality](https://android.googlesource.com/platform/external/avb/+/android16-release/libavb/avb_ops.h) for I/O, providing the root\nof trust, and getting/setting rollback protection metadata.\n\n\nAVB's key features include delegating updates for different\npartitions, a common footer format for signing partitions, and protection from\nattackers rolling back to a vulnerable version of Android.\n\n\nFor more implementation details, see [/platform/external/avb/README.md](https://android.googlesource.com/platform/external/avb/+/android16-release/README.md)."]]