termux / termux/termux-api-package
termux-battery-status does not give all the information it could.
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 1.7k
- Forks
- 523
- PR merge metrics
- No merged PRs in 30d
Description
BatteryBotPro gives some of extra information including the voltage of the battery, and includes several hacks to get mA (which do not apparently work on all phones, but may still be useful on a number of them). It also includes access to predictions of how much time is left until the battery runs out or finishes recharging, etc. It would be useful to add these features to termux-battery-status for scripts to make use of.
For convenience, here is the mA code, and here is the general battery info code. And here is some battery prediction stuff.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the termux-battery-status entry point and compare the referenced CurrentHack.java, BatteryInfo.java, and PredictorCore.java files. Determine which voltage, current, and battery-time prediction values can be exposed for scripts, then verify that the command reports the agreed additional fields.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- cli, mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100