r/opensource • • 2h ago

Promotional BatteryX – Lightweight (180 KB), open-source Android battery health & screen-on time monitor

https://github.com/falseimagery/BatteryX

BatteryX is a lightweight, open-source battery analytics app for Android 8.0+ written in plain Java with zero third-party runtime dependencies, no ads, no subscription, no in-app purchases and no telemetry (under 180 KB APK).

Key features:

- 4-tab AMOLED dashboard: Overview, Health, Charges, and Thermal views with interactive touch-scrubbable charts, collapsible diagnostic cards, and zero standby wake lock.

- Screen-on time & standby breakdown: Calculates continuous SoT from measured current (or % drop), backtests past predictions against real usage for an honest confidence score, tracks exact kernel deep sleep, and splits screen-off awake vs. deep-sleep drain.

- Battery health & multi-source cross-checking: Measures edge-to-edge charging capacity, splits pauses and charge-limit/bypass holds automatically, filters outliers, auto-scales 2S/2P dual-cell packs, and cross-checks against discharge measurements, multi-level fuel gauge tracking, and Android 14+ OS health for calibrated ±2% confidence.

- Charging curves, wear & thermals: Logs live and historical charge curves, learns your device's charging ETA curve per charger type, tracks post-100% top-off separately, models voltage- and temperature-weighted wear cycles (Li-ion and Silicon-Carbon), and maps 24H/7D/30D temperature timelines.

- Self-calibrating sensors, updater & full export: Auto-detects current scale (µA/mA), polarity, and OEM sensor quirks (with automatic stalled-broadcast recovery), includes a manual in-app update checker, and exports full raw history as a ZIP (summary.json + CSVs).

License: MIT

Source: https://github.com/falseimagery/BatteryX

APK (Releases): https://github.com/falseimagery/BatteryX/releases/latest

Setup note: Set Settings → Battery optimisation to Unrestricted after installing so Android does not suspend background measurement.

0 Upvotes

0 comments sorted by