termux / termux/termux-api

Extra battery information

Open
#258 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
4.3k
Forks
920
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the termux-battery-status entry point and review the linked BatteryInfo.java, CurrentHack.java, and PredictorCore.java implementations for the requested values and predictions. Done means exposing the supported battery information and charge or discharge time predictions for scripts, while accounting for devices where current readings do not work.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
api, mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.