Documentation
¶
Overview ¶
Enumerate paired/bonded Bluetooth devices and query adapter info.
Demonstrates:
- IBluetoothManager: GetState
- RegisterAdapter -> IBluetooth: GetName, GetBondedDevices, GetSupportedProfiles, GetRemoteName, GetRemoteAlias, GetBondState
- AttributionSource for authenticated calls
Build:
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o build/bluetooth_inventory ./examples/bluetooth_inventory/ adb push build/bluetooth_inventory /data/local/tmp/ && adb shell /data/local/tmp/bluetooth_inventory
Click to show internal directories.
Click to hide internal directories.