termux / termux-api

Termux add-on app which exposes device functionality as API to command line programs.
https://f-droid.org/en/packages/com.termux.api/
2.25k stars 449 forks source link

actively trigger wifi scan #678

Open 37eex9 opened 4 months ago

37eex9 commented 4 months ago

Feature description

I'd like to have a termux-wifi-scan command to actively trigger the OS to start a wifi scan. This would make termux-wifi-scaninfo more powerful, as one could grant that the last scan happened in recent past. Currently, sometimes termux-wifi-scaninfo shows wifis I did not see for several minutes (up to 15 min).

Reference implementation

Have you checked if the feature is accessible through the Android API?

Do you know of other open-source apps that has a similar feature as the one you want? (Provide links)

I assume it is not very likely to add a feature based on a deprecated API call. Anyway, I think it is worth giving it a try.

Thanks in advance ;)