اعتبارًا من 27 آذار (مارس) 2025، ننصحك باستخدام android-latest-release
بدلاً من aosp-main
لإنشاء AOSP والمساهمة فيه. لمزيد من المعلومات، يُرجى الاطّلاع على التغييرات في AOSP.
دليل السماح بالوصول إلى منفذ USB في المحاكي
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
توضّح هذه الصفحة كيفية تفعيل الأجهزة الطرفية التي تتضمّن بلوتوث باستخدام ميزة "النقل المباشر عبر USB" لبرنامج emulater لنظام التشغيل AAOS.
استخدِم محوِّل USB-BT400 Bluetooth 4.0 من Asus لإعداد اتصال USB عبر مهايئ USB. ينطبق ذلك على نظام التشغيل Android 13 والإصدارات الأحدث.
- وصِّل وحدة التحكم الصغيرة بالجهاز المضيف الذي يعمل بنظام التشغيل Linux.
للتأكّد من أنّ الجهاز يعمل على النحو المطلوب، شغِّل الأمر lsusb
.
يتم عرض قيم VendorId(0x0b05)
وProductId (0x17cb)
لمحوِّل Asus
BT-400.
$ lsusb
Bus 001 Device 010: ID 0b05:17cb ASUSTek Computer, Inc. Broadcom BCM20702A0 Bluetooth
شغِّل المحاكي باستخدام معلومات نقل البيانات عبر منفذ USB.
$ emulator -cores 4 -memory 6144 -usb-passthrough vendorid=0x0b05,productid=0x17cb
وحدات التحكم التي تم اختبارها هي:
قد تعمل أجهزة الإقران الأخرى، ولكن لم يتم اختبارها.
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2025-03-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-03-26 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# Emulator USB passthrough guide\n\nThis page describes how to enable Bluetooth peripherals with USB passthrough for\nthe AAOS emulator.\n\nUse The Asus USB-BT400 Bluetooth 4.0 USB adapter to set up the USB passthrough\nconnection. This applies for Android 13 and higher.\n\n1. Connect the dongle to the Linux host machine.\n2. To confirm the device functions as intended, run the `lsusb` command.\n Values for the `VendorId(0x0b05)` and `ProductId (0x17cb)` of the Asus\n BT-400 adapter are displayed.\n\n $ lsusb\n\n Bus 001 Device 010: ID 0b05:17cb ASUSTek Computer, Inc. Broadcom BCM20702A0 Bluetooth\n\n3. Launch the emulator with the usb-passthrough information.\n\n $ emulator -cores 4 -memory 6144 -usb-passthrough vendorid=0x0b05,productid=0x17cb\n\nThe dongles tested are:\n\n- [ASUS USB-BT400 USB Adapter](https://www.asus.com/us/Networking-IoT-Servers/Adapters/All-series/USBBT400/)\n\nOther dongles may work, however, not tested."]]