battery_health

command
v0.0.6 Latest Latest
Warning

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

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

Documentation

Overview

Query battery health from the system battery properties service.

Uses IBatteryPropertiesRegistrar via the "batteryproperties" service to query battery properties via raw binder transact. Falls back to reading 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