Starting March 27, 2025, we recommend using android-latest-release
instead of aosp-main
to build and contribute to AOSP. For more information, see Changes to AOSP.
Trade Federation Global Configuration
Stay organized with collections
Save and categorize content based on your preferences.
The Trade Federation (TF) Global Configuration is a file that is loaded once
upon TF initialization. This configuration file is used to define the
environment for that instance of TF.
Load the Global Configuration file
The TF Global Configuration file is an XML file and can be specified by setting
the local environment variable TF_GLOBAL_CONFIG
. If TF_GLOBAL_CONFIG
is
not specified, TF will try to locate a file named tf_global_config.xml
in its
current working path. If that fails, TF will load the default Global
Configuration file. For example, you can launch TF with your custom global
configuration via the following command:
TF_GLOBAL_CONFIG=/path/to/my/custom/good_tf_global_conf.xml tradefed.sh
Example Global Configuration file
<configuration description="Example Global Config">
<device_manager class="com.android.tradefed.device.DeviceManager">
<option name="max-null-devices" value="10" />
</device_manager>
</configuration>
The example above sets the number of "null-device" placeholders to 10 instead of
the default value define in the DeviceManager
.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-06-12 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-12 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`."]]