Open txoof opened 3 years ago
When run from the device, and not over SSH, termux-wifi-connectioninfo was returning
"ssid": "<unknown ssid>"
from the device, I executed
$ termux-wifi-scaninfo
and was prompted to permit Termux access to location data by Android 11 - I gave the app permissoin "all the time" and now
termux-wifi-connecitioninfo
returns the proper SSID information as expected.
Perhaps this is a permissions issue?
Try unlocking your phone, or even just turning on the screen. I noticed slowdowns and hangups while working with filesystem, but method above worked for me. Wakelock may be helpful too
Problem description Termux-API implementations hang on execution under Android 11 and do not complete when executed from ssh process
Steps to reproduce start ssh service:
ssh to termux device execute on remote remote host
from within ssh session Execute any termux-api command:
The executables do appear to work when executed from the ssh session and do not crash -- executing them with the -h option produces output as expected.
Expected behavior Expect to see output from API process
Additional information
If you are rooted or have access to adb then capture a logcat with
logcat -d "*:W"
, from a adb or root shell. I am not rooted - Stock android 11 on a Google Pixel 3