Fix no connection with gnirehtet reverse tethering#462
Conversation
|
Can you be a bit more specific? I use a VPN connection to analyze the traffic with no issue. |
|
Gnirehtet uses a VPN, but does not need WiFi or something else. When you use a VPN, I’m sure you have something else enabled at the same time like WiFi. First case doesn’t work, your case does. Edit: Using Gnirehtet might work on older Android versions, but with my Android 13 phone not anymore. |
|
Okay, tested it on my phone right now and seems to work. |
|
I tried a different implementation here:
I think this implementation is better because the current one is deprecated with SDK >= 29 + the callback can be useful in the future for other things (such as refreshing outdated weather data, once network is available). |
|
There should be a fallback for lower Android versions. Otherwise your implementation seems correct. Edit: Seems like changing the applicationId does not work. |
|
The debug APK from GitHub contains a different signature. Your use case is very specific, especially for a project that is no longer actively maintained. I don't think we need a fix for users of Gnirehtet and Android 6.0 and before. |
True.
I’d still like to have it fixed for every supported Android version nonetheless. I mean, it’s not even like it’s really hard to support older Android versions like Android 6. |
|
Yes, I can understand, it's just that I'm not very fan of your proposition, it looks like a dirty trick to me. You query the VPN connection manager for every user for a specific use case I have yet to understand (using a weather app from a computer connection, why?). But I know I'm being picky, so I will let the developer of this app share his thoughts on the matter. |
Sadly, I haven’t been able to test if it works because of a build error.
But I think this should do the trick.
Edit: Okay, I have been able to build this with Android Studio now, but it seems like it only works partially. I can search for cities, but getting the weather data fails.
Edit 2: I have installed the wrong .apk. Tested it with the correct one right now and everything seems to work as expected.