Documentation
¶
Overview ¶
Manage Bluetooth A2DP audio connections via binder.
Demonstrates:
- IBluetoothManager: GetState, RegisterAdapter
- IBluetooth: GetProfile (A2DP profile ID = 2)
- IBluetoothA2dp: GetConnectedDevices, GetActiveDevice, GetSupportedCodecTypes, GetConnectionState
- AttributionSource for authenticated calls
Build:
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o build/bluetooth_audio_routing ./examples/bluetooth_audio_routing/ adb push build/bluetooth_audio_routing /data/local/tmp/ && adb shell /data/local/tmp/bluetooth_audio_routing
Click to show internal directories.
Click to hide internal directories.