自 2025 年 3 月 27 日起,我們建議您使用 android-latest-release
而非 aosp-main
建構及貢獻 AOSP。詳情請參閱「Android 開放原始碼計畫變更」。
在 Tradefed 中建構供應者
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
TF 中的建構供應工具會以 IBuildProvider
介面表示。
任何介面實作項目都可以用於測試設定。這項彈性設計可與任何類型的系統互動。
建構供應器會建立建構資訊,並填入設定和測試所需的所有資源。
本機建構供應工具
在本機執行時,有幾種可能的設定:
設定
使用物件標記 build_provider
。例如:
<build_provider class="com.android.tradefed.build.BootstrapBuildProvider" />
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。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,["# Build providers in Tradefed\n\nBuild providers in TF are represented by the [`IBuildProvider`\ninterface](https://android.googlesource.com/platform/tools/tradefederation/+/refs/heads/android16-release/src/com/android/tradefed/build/IBuildProvider.java).\n\nAny implementation of the interface can be used in a test configuration. This\nflexible design allows interacting with any type of system.\n\nA build provider creates [build\ninfo](/docs/core/tests/tradefed/architecture/build-provider/build-info)\npopulated with all the resources needed by the setup and tests.\n\nLocal build providers\n---------------------\n\nWhen running locally, several possible configurations exist:\n\n- Find and use a locally built device image: [`LocalDeviceBuildProvider`](https://android.googlesource.com/platform/tools/tradefederation/+/refs/heads/android16-release/src/com/android/tradefed/build/LocalDeviceBuildProvider.java). This is typically used to flash a locally built Android image before running its tests.\n- Find and use locally built test cases: [`BootstrapBuildProvider`](https://android.googlesource.com/platform/tools/tradefederation/+/refs/heads/android16-release/src/com/android/tradefed/build/BootstrapBuildProvider.java). This is typically used to run tests against an already flashed and ready device. This is the provider used by [Atest](/docs/core/tests/development/atest) during local testing.\n\nConfiguration\n-------------\n\nUse the object tag `build_provider`. For example: \n\n \u003cbuild_provider class=\"com.android.tradefed.build.BootstrapBuildProvider\" /\u003e"]]