اعتبارًا من 27 آذار (مارس) 2025، ننصحك باستخدام android-latest-release بدلاً من aosp-main لإنشاء AOSP والمساهمة فيه. لمزيد من المعلومات، يُرجى الاطّلاع على التغييرات في AOSP.
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
يتيح توافق Android Open Accessory (AOA) للأجهزة الخارجية التي تعمل عبر USB
(ملحقات USB لأجهزة Android) التفاعل مع الأجهزة التي تعمل بنظام التشغيل Android في
وضع الملحق. عندما يكون جهاز Android في
وضع الملحق، يعمل الملحق المتصل كمضيف USB (يشغّل الحافلة ويصنّف الأجهزة) ويعمل جهاز Android كملحق USB.
تم تصميم ملحقات USB لأجهزة Android بحيث يمكن توصيلها بالأجهزة التي تعمل بنظام التشغيل Android.
تلتزم هذه الملحقات بمعيار AOA، ما يتيح لها رصد الأجهزة التي تعمل بنظام التشغيل Android
التي تتيح وضع الملحق، ويجب أن توفّر تيارًا بقدرة 500 مللي أمبير بجهد 5 فولت لشحن الطاقة.
لا يمكن لبعض أجهزة Android التي تم إصدارها سابقًا العمل إلا
كجهاز USB ولا يمكنها بدء عمليات الاتصال بأجهزة USB الخارجية. يتجاوز استخدام AOA
هذا القيد، ما يتيح لك إنشاء ملحقات يمكنها
بدء عمليات الربط والتفاعل مع مجموعة متنوعة من الأجهزة التي تعمل بنظام التشغيل Android.
يتوفّر لبروتوكول AOA إصداران يتيحان أنواعًا مختلفة من الاتصالات:
AOAv1. تتيح هذه الميزة التواصل العام مع الملحقات وتصحيح أخطاء adb.
AOAv2.
توفُّر إمكانات جهاز الواجهة البشرية (HID)
تتوفّر هذه الميزة في الإصدار 4.1 من نظام التشغيل Android (المستوى 16 لواجهة برمجة التطبيقات) والإصدارات الأحدث.
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ 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,["# Android Open Accessory (AOA) support allows external USB hardware\n(Android USB accessories) to interact with Android-powered devices in\n*accessory mode*. When an Android-powered device is in\naccessory mode, the connected accessory acts as the USB host (powers the bus and\nenumerates devices) and the Android-powered device acts as the USB accessory.\n\nAndroid USB accessories are designed to attach to Android-powered devices.\nSuch accessories adhere to AOA, enabling them to detect Android-powered devices\nthat support accessory mode, and must provide 500mA at 5V for charging power.\nSome previously-released Android-powered devices are capable of acting only\nas a USB device and cannot initiate connections with external USB devices. AOA\nsupport overcomes this limitation, enabling you to build accessories that can\ninitiate connections and interact with an assortment of Android-powered devices.\n| **Note:** Accessory mode is dependent on device hardware; not all devices support accessory mode. Devices that support accessory mode can be filtered using a `\u003cuses-feature\u003e` element in the corresponding application's Android manifest. For details, see the [USB Accessory](http://developer.android.com/guide/topics/connectivity/usb/accessory.html#manifest) developer guide.\n\nAOA has two versions that support different types of communication:\n\n- **[AOAv1](/docs/core/interaction/accessories/aoa).** Supports generic accessory communication and adb debugging.\n- **[AOAv2](/docs/core/interaction/accessories/aoa2).** Supports human interface device (HID) capabilities. Available in Android 4.1 (API Level 16) and higher."]]