Mulai 27 Maret 2025, sebaiknya gunakan android-latest-release
, bukan aosp-main
, untuk mem-build dan berkontribusi pada AOSP. Untuk mengetahui informasi selengkapnya, lihat Perubahan pada AOSP.
Konfigurasi Global Federasi Perdagangan
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Konfigurasi Global Trade Federation (TF) adalah file yang dimuat satu kali
setelah inisialisasi TF. File konfigurasi ini digunakan untuk menentukan
lingkungan untuk instance TF tersebut.
Memuat file Konfigurasi Global
File Konfigurasi Global TF adalah file XML dan dapat ditentukan dengan menetapkan
variabel lingkungan lokal TF_GLOBAL_CONFIG
. Jika TF_GLOBAL_CONFIG
tidak ditentukan, TF akan mencoba menemukan file bernama tf_global_config.xml
di
jalur kerja saat ini. Jika gagal, TF akan memuat file Konfigurasi Global default. Misalnya, Anda dapat meluncurkan TF dengan konfigurasi global kustom melalui perintah berikut:
TF_GLOBAL_CONFIG=/path/to/my/custom/good_tf_global_conf.xml tradefed.sh
Contoh file Konfigurasi Global
<configuration description="Example Global Config">
<device_manager class="com.android.tradefed.device.DeviceManager">
<option name="max-null-devices" value="10" />
</device_manager>
</configuration>
Contoh di atas menetapkan jumlah placeholder "null-device" ke 10, bukan
nilai default yang ditentukan di DeviceManager
.
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-27 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-27 UTC."],[],[],null,["# Trade Federation Global Configuration\n\nThe Trade Federation (TF) Global Configuration is a file that is loaded once\nupon TF initialization. This configuration file is used to define the\nenvironment for that instance of TF.\n\nLoad the Global Configuration file\n----------------------------------\n\nThe TF Global Configuration file is an XML file and can be specified by setting\nthe local environment variable `TF_GLOBAL_CONFIG`. If `TF_GLOBAL_CONFIG` is\nnot specified, TF will try to locate a file named `tf_global_config.xml` in its\ncurrent working path. If that fails, TF will load the default Global\nConfiguration file. For example, you can launch TF with your custom global\nconfiguration via the following command: \n\n TF_GLOBAL_CONFIG=/path/to/my/custom/good_tf_global_conf.xml tradefed.sh\n\nExample Global Configuration file\n---------------------------------\n\n \u003cconfiguration description=\"Example Global Config\"\u003e\n \u003cdevice_manager class=\"com.android.tradefed.device.DeviceManager\"\u003e\n \u003coption name=\"max-null-devices\" value=\"10\" /\u003e\n \u003c/device_manager\u003e\n \u003c/configuration\u003e\n\nThe example above sets the number of \"null-device\" placeholders to 10 instead of\nthe default value define in the `DeviceManager`."]]