-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
Can't upload or download data via reverse tethering #6044
Comments
I think that this code is related to the issue : Lines 33 to 34 in bf52d5f
Duplicated also here: StreetComplete/app/src/main/java/de/westnordost/streetcomplete/StreetCompleteApplication.kt Lines 229 to 230 in bf52d5f
|
Could it be related to OpenStreetMap.org currently offline. Operations Team are working to restore - 15 December 2024? Or did you tried yesterday? |
I just tried a few minutes ago. |
there is an ongoing outage on OSM servers, I am unable to save anything I think that reverse tethering is unrelated, unless it persists after outage please comment here if you will be still unable to upload/download after https://community.openstreetmap.org/t/openstreetmap-org-currently-offline-operations-team-are-working-to-restore-15-december-2024/122930 is resolved (unless you see bug in code linked at #6044 (comment) ) |
I am able to download data with a regular connection, so my issue is really due to reverse tethering. |
As OSM is in read-only mode: are you 100% sure you cannot read data with reverse tethering while you are able to download something else from internet with reverse tethering? |
Yes, I am 100% sure. |
@alberic89 You can try changing those Does downloading the quests from OSM works then?
True, but the issue claims the problem is with downloading data, which should be working now. And OSM-unrelated apps (F-droid) seem to have that problem for them too. So while the timing seems to be unfortunate, but issue is probably not related to current OSM outage AFAICT. What I am interested @alberic89 is there some (preferably opensource) app which correctly detects online/offline status of that reverse tethering connection (i.e. it does not just blindly try to download and then report error if fails, but checks actual connection status) which works correctly with that reverse tethering solution? |
Making this allowed me to download all the data with reverse tethering. I tried to add a button in advanced settings to allow any user to bypass connection check, but I never used Kotlin or Android, so I add an obscure error: https://github.com/alberic89/StreetComplete/actions/runs/12340718236/job/34438517642#step:5:106 |
Cool, so it is just an "online detection" which is not working in your case @alberic89 ! As StreetComplete is really averse to adding preferences, some automated solution would probably be required1. So if you can pinpoint to some application which detects your reverse tethering as being "online", it could point us to the solution. Footnotes |
Oh, I understand that you prefer avoid too much options. We can try for example to ping the OSM server to test the connection. |
The osm editor vespucci also disable the upload menu without connectivity. The whole thing feels there should be a bug report for gnirethet
|
@alberic89 - is Vespucci network detector working for you? |
The button to download the current view is disabled but I can download the EGM successfully. |
And of course, bypassing all detection in the source code of Vespucci also worked. |
Never heard of reverse tethering. What is the use case for this? I.e. why would it be important (for you) that it worked in StreetComplete? |
OSM is back |
Reverse tethering refers to sharing an internet connection from a computer (laptop/desktop) to a mobile device (like a smartphone or tablet) via USB, Wi-Fi, or Bluetooth. This is the reverse of regular tethering, where the phone shares its internet connection with the computer. |
I wonder if using NetworkCapabilities.hasCapability() with Although that workaround (I guess) might give false positives to other users, e.g. if one has some privacy VPN installed and active all the time (like Rethink) but no actual Internet connection (i.e. mobile data and WiFi are turned off) it would still report that as "has Internet", but attempts to download/upload would fail with error. @alberic89 See possible workarounds mentioned at Genymobile/gnirehtet#567 (comment)
Does those work? |
What is the use case for this? I.e. why would it be important (for you) that it worked in StreetComplete? |
Don't know about @alberic89 (they'll provide their own use case), but if:
then I'd need some way to download/upload quests/map data; which is only possible via in-app download/upload -- which currently doesn't work, thus this issue. Only universal workaround currently seems to be to fork SC and do custom builds with removed checks (or buy an Ethernet switch, USB Ethernet adapter & USB-on-the-go cable for that example situation above). Both workarounds are of course highly inconvenient, costly, or both. I can see why one would prefer to be able to just use regular SC... Footnotes
|
I can't send or receive any data when I am connected via reverse tethering, the app thinks that I am not connected.
I use gnirethet to connect my phone to internet. I checked with my web browser that I am connected.
This app is not the only one to have this problem. For example, the F-Droid client think that there is no connection but is still able to download applications.
How to Reproduce
Expected Behavior
The app try to download data. Even if, at first sight, there is no internet connection.
Versions affected
StreetComplete: v60.0
Android: 14
The text was updated successfully, but these errors were encountered: