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

[FEATURE] - Use of auto-tunneling without location/gps (with root) #322

Closed
gabriel20xx opened this issue Aug 21, 2024 · 13 comments
Closed
Assignees
Labels
enhancement New feature or request

Comments

@gabriel20xx
Copy link
Contributor

Is your feature request related to a problem? Please describe.
The app regularly checks background location for the auto-tunneling feature. This uses additional battery in the background.

Describe the solution you'd like
Instead of getting the connected network name/ssid via the android location permission, it should get the current connected network name/ssid via root if available. This removes the use of the gps module and saves battery.

Describe alternatives you've considered
Maybe this would also work with lsposed module or via shizuku.

Additional context
No additional context.

@gabriel20xx gabriel20xx added the enhancement New feature or request label Aug 21, 2024
@burny0202
Copy link

+1 for this

@zaneschepke
Copy link
Owner

Hello! Yeah, I think this would be a really neat feature. I'll look into it.

@don-dolarson
Copy link

This would be awesome...
...and skip the green diode/bar indicating use of location services on top of that, when connected to a trusted Wi-Fi network.

@zaneschepke
Copy link
Owner

zaneschepke commented Oct 18, 2024

Anyone has any ideas on the command for getting this info from a root shell on android?

--edit-- nvm, this seems to work

dumpsys wifi | grep -o "SSID: [^,]*"

@segln
Copy link

segln commented Oct 18, 2024

Would you be able to implement it using Shizuku to get the same result? Thank you very much!

@zaneschepke
Copy link
Owner

Would you be able to implement it using Shizuku to get the same result? Thank you very much!

Hello! Can I have more context? I don't know what this is.

@gabriel20xx
Copy link
Contributor Author

Shizuku is an app that acts as a middleman for providing root permissions to apps. It can be used with an adb command (or root too). With it you can use root apps without having to root your device.
https://github.com/RikkaApps/Shizuku

@segln
Copy link

segln commented Oct 18, 2024

Shizuku is a tool that allows apps to gain access to system-level APIs without needing root.

With Shizuku you can interact with WifiManager freely without root access, as it enables apps to bypass certain restrictions.

@segln
Copy link

segln commented Oct 18, 2024

You might be able to execute command dumpsys wifi using Shizuku as well!

@burny0202
Copy link

I'm also having trouble getting this to work with Magisk root - Though after some testing it may be my wifi names.....

Can you confirm if _ (underscore) is a wildcard, also ? I have access points with just an underscore and number - They seem to be treated the same, even if I only add one as trusted

@zaneschepke
Copy link
Owner

zaneschepke commented Oct 18, 2024

I looked into Shizuku. It looks very cool and promising. Thanks all for sharing!

I want WG Tunnel to work without being dependent on another app, but I think adding optional support for Shizuku could be a really cool feature. Would someone open a new issue for this?

@zaneschepke
Copy link
Owner

I'm also having trouble getting this to work with Magisk root - Though after some testing it may be my wifi names.....

Can you confirm if _ (underscore) is a wildcard, also ? I have access points with just an underscore and number - They seem to be treated the same, even if I only add one as trusted

Yeah, there are a few issues with special characters since the wildcard changes. You could try using the wildcards yourself and see if that fixes the issue.

I'll work on a fix for this.

@burny0202
Copy link

I'm also having trouble getting this to work with Magisk root - Though after some testing it may be my wifi names.....
Can you confirm if _ (underscore) is a wildcard, also ? I have access points with just an underscore and number - They seem to be treated the same, even if I only add one as trusted

Yeah, there are a few issues with special characters since the wildcard changes. You could try using the wildcards yourself and see if that fixes the issue.

I'll work on a fix for this.

Brilliant, this would be great. For now I have changed to always on

Let me congratulate you on a great app

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

No branches or pull requests

5 participants