sensor_reader

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

Read sensor data from the SensorManager HAL.

Lists all available hardware sensors (accelerometer, gyroscope, etc.) and queries the default accelerometer sensor info.

The sensor HAL service is accessed via the HIDL service manager at "android.frameworks.sensorservice.ISensorManager/default", not the standard binder servicemanager "sensor" entry.

Build:

GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o build/sensor_reader ./examples/sensor_reader/
adb push build/sensor_reader /data/local/tmp/ && adb shell /data/local/tmp/sensor_reader

Jump to

Keyboard shortcuts

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