termux-api-package
termux-api-package copied to clipboard
android 11 termux API hangs
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
- Grant permissions to both android apps
- Install termux-api package
- Issued any command like: termux-torch on
- 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.
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