-
Notifications
You must be signed in to change notification settings - Fork 92
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
Cannot select Wi-Fi networks to whitelist on Android 10 #514
Comments
Hi, I'll see if I can reproduce that on the 10 emulator. Otherwise I need to wait until my physical device gets 10. Will keep it open. Thanks for telling about the issue. Note: https://medium.com/google-developer-experts/exploring-android-q-location-permissions-64d312b0e2e1 |
Looking at this page Google changed the permissions required for wifi scanning with android 10. |
|
@LordSushiPhoenix Ok - but what makes me clueless at that point is that we don't do wifi scanning. We only ask Android which wifi SSID are already known because the user connected to them before. |
This looks like GOOGLE broke the whole thing for us: |
Sounds like Google... Would it be possible to add the option to type SSIDs that you'd like to whitelist? Similar to how setting the SSID for a wifi connected state works in Tasker if you've used that. You can either type the SSID or click a button which returns a list of currently available networks. |
This project has the same issues with Android 10. |
@LordSushiPhoenix Basically possible, I need to learn how the UI is done for that (I'm not good at UI development :) |
There would probably be some back end to deal with specifying by text too, depending on how syncthing currently compares networks at least. Might be easiest to just provide the list of networks from a scan instead of from configuration on android 10 for now. |
From scan would clutter the prefs in three ui places a lot with every network found in the past scans... I'd prefer learning mode, so you connect WiFi, the app learns the current ssid and stores it and then offers it to you on UI. Less pollution as long you don't delete a lot of wifi configurations from your phone afterwards. The user confusing part in scanning is one could tick a wifi by error without having access to it and then wonder why it doesnt sync. |
…) (#515) * Update AndroidManifest.xml * FirstStartActivity: Update permission check for location access * FirstStartActivity: Ask for background_location permission * WifiSsidPreference: More log output * Request permission.ACCESS_FINE_LOCATION on Android 10 * RunConditionMonitor/isWifiConnectionWhitelisted: More log * Add tip on location welcome slide for Android 10 users * Auto-learn configured WiFi SSIDs from connected WiFi on API 29+ (fixes #514) * Dismiss Wifi Ssid dialog after permission request * Test on physical device under Android 9 * Revert "Test on physical device under Android 9" This reverts commit 76a8a4a. * Revert "Dismiss Wifi Ssid dialog after permission request" This reverts commit 1833efb. * Update strings.xml * Imported de translation * Remove empty lines
@LordSushiPhoenix |
On Android 10 it does only allow to whitelist the current network. It should offer all recently connected networks. True? |
No, Google doesn't allow to query them. Connect to each network, go to run condition Whitelist setting and then you'll be offered checkboxes for one, two, ... networks. |
Ah OK, will do tomorrow. |
Description of the issue
Opening the "Select Wi-Fi networks" menu to whitelist networks shows no networks.
![Screenshot](https://user-images.githubusercontent.com/19640845/66967813-3fcd9b80-f050-11e9-817c-ebcb978daa3b.png)
![Screenshot_20191016-200544](https://user-images.githubusercontent.com/19640845/66967881-74d9ee00-f050-11e9-9685-bd133300d6eb.png)
![Screenshot_20191016-200604](https://user-images.githubusercontent.com/19640845/66967883-76a3b180-f050-11e9-8960-d2c69ab47904.png)
Reproducer
Enabling "Run on specified Wi-Fi networks" leads the status tab to state "Android locations services are currently turned off. According to android restrictions, Syncthing cannot determine the current WiFi network name to decide if it should run" despite location being enabled.
Syncthing-fork has permission to use location while using the app (with no option to allow location access all the time).
Version Information
Android Log
The text was updated successfully, but these errors were encountered: