Skip to content

About

🔋在管理器模块描述中实时显示电池健康度的 root 模块。 | A root module that shows real-time battery health right in your manager's module description.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

39 stars

Watchers

0 watching

Forks

Latest commit

 

History

305 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

🔋 ChargingRecord Evolution

Battery health written right into your root manager's module description — flash and go, zero configuration

Release Downloads Go Platform License

English | 简体中文(中文说明)

Features | Screenshots | Installation | How it works | FAQ | Build from source | Acknowledgements


Screenshots

The four WebUI pages (Overview / Health / History / Settings) at a glance. The battery data in the screenshots is fabricated demo data, used only to illustrate the UI — it does not represent any real device or any measured result.

Overview Health History · Records History · Trends Settings
Overview page Health page History records History trends Settings page

Features

  • Module description shows kernel and measured health, capacity, cycles and temperature, with shorter labels on narrow screens.
  • Overview shows live charge, progress and time to full, plus the device model and any battery technology or model reported by the device. The health card gives status, accepted samples and update age.
  • Health shows a recent capacity trend, a permanent daily archive, four capacity checks, the evidence behind the latest estimate, and observations such as ICA and CCCT.
  • History filters charge and discharge by 7/30/90 days, reveals rejected estimates on demand, and previews or opens five synchronized session curves. Full curves include screen state when available.
  • Interface offers Miuix and Material 3 navigation, swipe paging, a collapsing header, light/dark/AMOLED themes, host colors, preset and custom accents, a system font option, and English/Chinese.
  • Fully offline, with zero telemetry and on-device records and learning data.

Installation

Download a ZIP from Releases, flash it with Magisk v20.4+, KernelSU or APatch, and reboot (arm64 only). KernelSU, APatch and MMRL can open the WebUI.

Asset Updates
CRecordEvolution-*.zip Stable, with in-app updates
CRecordEvolution_ML-*.zip Experimental, manual flash, -ML version suffix
  • For downgrades or channel switches, press Volume Up to continue or Volume Down to cancel. Confirmation expires after 30 seconds.
  • Normal upgrades verify and preserve the database. Back up before an in-place recovery install. Uninstall the old Charging_Record module before switching.
  • Verify the downloaded ZIP against SHA256SUMS.txt on the release page.

How it works

The app estimates full-charge capacity from charge sessions and checks it against the kernel, mid-charge calibration and discharge differences. A large disagreement is flagged as uncertain.

How it works: sampling → four settlement paths (with session gates and quality check) → aggregation → output

Design capacity

Health is estimated full-charge capacity divided by design capacity on the same measurement basis. Use batteryd design set <mAh> to override automatic detection or batteryd design clear to restore it. Run batteryd once or reboot to refresh.

FAQ

  • Why can health exceed 100%? Actual full-charge capacity can exceed the rated design capacity.
  • How soon will I see an estimate? Usually after a few days of valid sessions. The ML build starts to diverge after 30 valid sessions.
  • What if I replace the battery? Run batteryd battery new --yes to start a new learning profile. Earlier history remains available.
  • Why are there gaps in session curves? Missing readings and long sampling interruptions leave gaps. A confirmed zero current still appears as 0 A and, when voltage is available, 0 W. Earlier records stored some missing current readings as zero, so an older zero without confirmation is treated as missing.

Build from source

pnpm install --frozen-lockfile
pnpm run verify   # build + offline scan + 64 KiB gzip ceiling

go test ./... -count=1
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -trimpath -ldflags "-s -w" -o bin/batteryd ./cmd/batteryd

See AGENTS.md for development, command and release details.

Research

Papers consulted during design (PDF library in docs/):

  • Severson et al., Nature Energy (2019), predicting cycle life from early-cycle data. PDF · Publication
  • He & Shin, ACM e-Energy (2023), voltage-relaxation fingerprinting. PDF · Publication
  • Lin et al., Energy (2022), constant-current charging time (CCCT). SSRN preprint PDF · Published article · SSRN 4018988
  • Fly & Chen, Journal of Energy Storage (2020), the effect of charge and discharge rates on ICA. PDF · Publication
  • Beatty, Strickland & Ferreira, Energies (2024), review of ICA/DVA curve generation methods. PDF · Publication
  • Kenney et al. (2024), capacity fade prediction and uncertainty in probabilistic models. PDF · arXiv v1
  • Zhang, Fu & Pei, ICCK Transactions on Electric and Hybrid Vehicles (2025), background on errors in coulomb-counting SOC estimation. PDF · Publication
  • He & Shin (2017), an early preprint of the same V-Health research. PDF · arXiv v1

The ± shown by the ML build is an RLS relative-uncertainty indicator, not a strict statistical confidence interval.

Contributing

Issues and pull requests are welcome. Read CONTRIBUTING.md for the local build/test commands and commit style, report vulnerabilities privately as described in SECURITY.md, and follow the CODE_OF_CONDUCT.md.

When reporting a battery or estimate issue, attach the redacted batteryd diag output (Settings → Copy diagnostics) instead of screenshots only.

Contributors

f1owkang hcnk3HrzQe

Acknowledgements

  • Design concept: 不会梦游的鱼
  • Install script: 酷安@阿巴酱

Disclaimer

Health, capacity and cycle figures are estimates. Check your manager’s backup and rollback procedure before flashing. For swelling or abnormal heat, seek manufacturer diagnostics.

License

This project is licensed under GPL-2.0.


Made with ❤ by f1owkang

About

🔋在管理器模块描述中实时显示电池健康度的 root 模块。 | A root module that shows real-time battery health right in your manager's module description.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

39 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages