termux / termux/termux-api

error while using termux-location

Open
#776 0 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
The error in the log file (may be linked to the fact that termux-location takes about 1 minute to respond, which is strange as Google Maps works fine and definitely updates more frequently
Steps to reproduce

Copy this cmd, paste it into termux and press enter:

log="termux-location_log.txt"
echo "" > $log
while true;
do 

	termux-location -p network
	termux-location -r last -p network
	echo $(date -Is)

	termux-location -p gps
	termux-location -r last -p gps
	echo $(date -Is)
done >> $log

Expected behavior
No errors

Additional information

  • termux-api application version: 0.52.0
  • termux-api package version (installed through apt): wasn't able to find this info, but I'm sure it's somewhere in the log file I attached
  • Android OS version: 14
  • Device model: Huawei FIG-LX1

termux-plugin_execution_command.log

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 reviewing the attached termux-plugin_execution_command.log and reproducing the loop with termux-location using the commands in the issue. Trace the termux-location entry point and compare network, GPS, and last-location responses on Android 14. Done means the reported errors are explained and the commands complete without errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, shell
Domain
cli, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.