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.
Emulator USB passthrough guide
Stay organized with collections
Save and categorize content based on your preferences.
This page describes how to enable Bluetooth peripherals with USB passthrough for
the AAOS emulator.
Use The Asus USB-BT400 Bluetooth 4.0 USB adapter to set up the USB passthrough
connection. This applies for Android 13 and higher.
- Connect the dongle to the Linux host machine.
To confirm the device functions as intended, run the lsusb
command.
Values for the VendorId(0x0b05)
and ProductId (0x17cb)
of the Asus
BT-400 adapter are displayed.
$ lsusb
Bus 001 Device 010: ID 0b05:17cb ASUSTek Computer, Inc. Broadcom BCM20702A0 Bluetooth
Launch the emulator with the usb-passthrough information.
$ emulator -cores 4 -memory 6144 -usb-passthrough vendorid=0x0b05,productid=0x17cb
The dongles tested are:
Other dongles may work, however, not tested.
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 2024-12-04 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 2024-12-04 UTC."],[],[],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."]]