Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

actively trigger wifi scan #678

Open
37eex9 opened this issue May 7, 2024 · 0 comments
Open

actively trigger wifi scan #678

37eex9 opened this issue May 7, 2024 · 0 comments

Comments

@37eex9
Copy link

37eex9 commented May 7, 2024

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?

  • in the Android API there is the startScan() method. It is deprecated since API 28, though I know it is used by some Wifi scanners, e.g. WiFiAnalyzer.
  • I can only test it on Android 10 and for me it works. It seems like it is not yet removed from 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 ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant