Android Emulator and Virtual HCI socket connection issue
- Dominant language
- Python
- Stars
- 555
- Forks
- 138
- Avg merge
- 3d 15h
- Merged PRs (30d)
- 9
Description
Hi,
I am trying to connect android emulator to Bluetooth controller created using btvirt (https://manpages.debian.org/unstable/bluez-test-tools/btvirt.1.en.html).
OS: Ubuntu
Android Emulator: v34
Steps:
1. I created a virtual Bluetooth controllers using command `sudo btvirt -d -l3`. It has working virtual BLE devices which communicates with each other

2. I am trying to connect android emulator to that virtual environment over hci using bumble hci bridge
`sudo capsh --caps="cap_net_admin+eip cap_setpcap,cap_setuid,cap_setgid+ep" --keep=1 --user=$USER --addamb=cap_net_admin -- -c "$(which bumble-hci-bridge) android-netsim:_:8880,mode=controller hci-socket:2"`
`emulator -avd Android1 -accel auto -gpu auto -packet-streamer-endpoint localhost:8080 -no-snapshot-load`
However, the android emulator shows missing Bluetooth adaptor and I am not able to turn it on in emulator (Note: The Android app works with a physical Bluetooth dongle, so the issue lies with the virtual dongles created using btvirt.)
Do you know what might be the issue?




Contributor guide
Assessment
This issue has not been assessed yet.