Documentation
¶
Overview ¶
Query Bluetooth adapter status and scan for BLE devices via binder.
Demonstrates:
- IBluetoothManager proxy: adapter state
- RegisterAdapter → IBluetooth proxy: GetBluetoothGatt, GetBluetoothScan
- IBluetoothScan proxy: RegisterScanner, StartScan, StopScan
- BLE scan callback delivery
Build:
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o build/bluetooth_status ./examples/bluetooth_status/ adb push build/bluetooth_status /data/local/tmp/ && adb shell /data/local/tmp/bluetooth_status
Click to show internal directories.
Click to hide internal directories.