battery_health

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: 9 Imported by: 0

Documentation

Overview

Query battery health from the system battery properties service.

Uses the generated IBatteryPropertiesRegistrar proxy via the "batteryproperties" binder service. Falls back to sysfs if binder access is denied.

Build:

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

Jump to

Keyboard shortcuts

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