bluetooth_status

command
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: CC0-1.0 Imports: 12 Imported by: 0

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

Jump to

Keyboard shortcuts

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