bluetooth_audio_routing

command
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2026 License: CC0-1.0 Imports: 9 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL