27 Mart 2025'ten itibaren AOSP'yi derlemek ve AOSP'ye katkıda bulunmak için aosp-main
yerine android-latest-release
kullanmanızı öneririz. Daha fazla bilgi için AOSP'de yapılan değişiklikler başlıklı makaleyi inceleyin.
Tradefed'de sağlayıcı oluşturma
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
TF'deki derleme sağlayıcılar IBuildProvider
arayüzü ile temsil edilir.
Arayüzün herhangi bir uygulaması test yapılandırmasında kullanılabilir. Bu esnek tasarım, her tür sistemle etkileşime geçmenize olanak tanır.
Derleme sağlayıcı, kurulum ve testler için gereken tüm kaynaklarla doldurulmuş bir derleme bilgisi oluşturur.
Yerel derleme sağlayıcılar
Yerel olarak çalıştırırken birkaç olası yapılandırma vardır:
- Yerel olarak oluşturulmuş bir cihaz resmi bulup kullanın:
LocalDeviceBuildProvider
.
Bu seçenek genellikle testlerini çalıştırmadan önce yerel olarak oluşturulmuş bir Android görüntüsünü flaşlamak için kullanılır.
- Yerel olarak oluşturulmuş test durumlarını bulup kullanın:
BootstrapBuildProvider
.
Bu seçenek genellikle, önceden flaşlanmış ve kullanıma hazır bir cihazda test çalıştırmak için kullanılır. Bu, yerel test sırasında Atest tarafından kullanılan sağlayıcıdır.
Yapılandırma
Nesne etiketini build_provider
kullanın. Örneğin:
<build_provider class="com.android.tradefed.build.BootstrapBuildProvider" />
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-27 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-27 UTC."],[],[],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"]]