اعتبارًا من 27 آذار (مارس) 2025، ننصحك باستخدام android-latest-release
بدلاً من aosp-main
لإنشاء AOSP والمساهمة فيه. لمزيد من المعلومات، يُرجى الاطّلاع على التغييرات في AOSP.
الإعدادات العامة لاتحاد التجارة
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
الإعدادات العامة لاتحاد التجارة (TF) هي ملف يتم تحميله مرة واحدة
عند بدء تشغيل اتحاد التجارة. يُستخدَم ملف الإعدادات هذا لتحديد
البيئة لتلك النسخة من TF.
تحميل ملف الإعدادات العامة
ملف الإعدادات العامة في TF هو ملف XML ويمكن تحديده من خلال ضبط المتغيّر المحلي للبيئة TF_GLOBAL_CONFIG
. إذا
لم يتم تحديد TF_GLOBAL_CONFIG
، سيحاول TF تحديد موقع ملف باسم tf_global_config.xml
في
مسار العمل الحالي. إذا تعذّر ذلك، سيحمِّل TF ملف الإعدادات التلقائي على مستوى المنظومة. على سبيل المثال، يمكنك تشغيل TF باستخدام الإعدادات المخصّصة الشاملة
من خلال الأمر التالي:
TF_GLOBAL_CONFIG=/path/to/my/custom/good_tf_global_conf.xml tradefed.sh
مثال على ملف الإعدادات الشاملة
<configuration description="Example Global Config">
<device_manager class="com.android.tradefed.device.DeviceManager">
<option name="max-null-devices" value="10" />
</device_manager>
</configuration>
يحدّد المثال أعلاه عدد العناصر النائبة "null-device" على 10 بدلاً من
القيمة التلقائية المحدّدة في DeviceManager
.
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],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`."]]