termux-api-package icon indicating copy to clipboard operation
termux-api-package copied to clipboard

android 11 termux API hangs

Open pulketo opened this issue 2 years ago • 1 comments

I have already installed both termux-api AND android app. It's a fresh termux installation from f-droid. I have issued termux-setup-storage AND granted android full permissions to termux API on android settings. Then every intent to execute any termux API command, It justo hangs.

Steps to reproduce 0. Using Android 11 with termux AND termux API installed from f-droid

  1. Grant permissions to both android apps
  2. Install termux-api package
  3. Issued any command like: termux-torch on
  4. It hangs

Expected behavior Light on

Additional information

Application version: 0.118.0 Packages CPU architecture: arm Subscribed repositories:

sources.list

deb https://packages-cf.termux.org/apt/termux-main/ stable main Updatable packages: All packages up to date Android version: 11 Kernel build information: Linux localhost 4.14.193+ #1 SMP PREEMPT Mon Oct 25 11:40:37 CST 2021 armv7l Android Device manufacturer: ZTE Device model: ZTE Blade A5 2020

I Will do any further testing.

pulketo avatar Mar 08 '22 01:03 pulketo

Run logcat command over adb from pc (not as termux user) and see if an exception or error is being thrown since it may tell you exactly why it is hanging.

https://developer.android.com/studio/command-line/logcat

Also delete all app data of Termux:API and try enabling Auto Start for Termux:API and disable all battery optimizations.

https://dontkillmyapp.com/xiaomi

sumithemmadi avatar Mar 23 '22 23:03 sumithemmadi