termux / termux/termux-api

termux-battery-status hangs on Android Go 8.1

Open
#558 3 comments 0 reactions 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

Problem description
termux-battery-status does nothing, it just hangs until I hit ctrl-c.

Steps to reproduce
Get your hands on a Android Go 8.1 device such as this one: https://www.amazon.com/Tel%C3%A9fono-Android-desbloqueado-desbloqueo-Smartphones/dp/B09D7DM2TG

Install Termux app, Termux-Api app and termux-api package.

Enter termux-battery-status in termux command line. Stare at screen.

Expected behavior
termux-battery-status should immediately report battery info.

Additional information

  • termux-api application version: 0.44
  • termux-api package version (installed through apt): 0.57 (? not sure, how do I get this info)
  • Android OS version: Go 8.1.0 / Security update: April 1, 2019
  • Device model: KXD 6A
  • Termux app version: 0.101

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 by reproducing the hang with termux-battery-status on Android Go 8.1 using the reported Termux and termux-api versions. Trace the command into the termux-api application and compare its battery-info behavior on that Android version. Done means the command immediately reports battery information instead of waiting indefinitely.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.