termux / termux-api-package

Termux package containing scripts to call functionality in Termux:API.
MIT License
1.04k stars 321 forks source link

android 11 termux API hangs #149

Open pulketo opened 2 years ago

pulketo commented 2 years ago

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

  1. Using Android 11 with termux AND termux API installed from f-droid
  2. Grant permissions to both android apps
  3. Install termux-api package
  4. Issued any command like: termux-torch on
  5. 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.

sumithemmadi commented 2 years ago

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