tracker-control-android icon indicating copy to clipboard operation
tracker-control-android copied to clipboard

Option to disable on certain Wi-Fi networks

Open sthyregod opened this issue 4 years ago • 7 comments

Great app and definitely looks like something I'll support in the long run. One thing I'd like to do is automatically disabling the service on certain Wi-Fi networks. I've currently got a LAN network at home with servers that I'd like to directly connect to, which is of course blocked when using the VPN service. By making a list of whitelisted networks, this should be possible to automate and a Pi-hole should be able to take over at that point.

sthyregod avatar Dec 22 '20 11:12 sthyregod

This is an excellent suggestion! However, this would require the location permission on recent Android versions. Would you find this suspicious?

https://stackoverflow.com/questions/21391395/get-ssid-when-wifi-is-connected

kasnder avatar Dec 23 '20 20:12 kasnder

Maybe, the better option would be to disable TC on WiFi altogether.

kasnder avatar Dec 23 '20 20:12 kasnder

Note that PiHole might not give the same blocking accuracy than TC because the Android sees to what app trackers belong.

kasnder avatar Dec 23 '20 20:12 kasnder

May I ask why you would use PiHole, if it might block fewer things from your Android device?

kasnder avatar Dec 23 '20 20:12 kasnder

Sorry about the delay, I'm quite busy at the moment.

The reason for using a service like PiHole is that it would function a bit better in conjunction with the rest of my network as it provides better LAN connectivity (this is of course with blocking accuracy as trade off).

So if it detects "MyPersonalWiFi", it would disable so that the PiHole runs blocking, thus enabling LAN connectivity.

I will admit that in general terms, asking for location would be suspicious (didn't know currently connected SSID access needed that), but if the prompt were made only in a setting specific to this scenario I'd think it's defendable. Somewhat like "Click 'disable on specific WiFi', prompt saying 'This feature requires access to read your currently connected SSID, which is given by the Location permission. Press OK to continue. A permission prompt will be shown'"

That way it's pretty transparent what the permission is used for and those who wouldn't trust it, doesn't need to enable it.

I'd imagine problems would arise when disabling it on WiFi altogether as 'MyWorkWiFi' also would disable it, which doesn't need to for LAN stuff nor provide the PiHole backup solution.

sthyregod avatar Jan 15 '21 11:01 sthyregod

I like that! Transparency is key.

kasnder avatar Jan 22 '21 11:01 kasnder

I can' t geht WLAN call (VoWiFi) working having TC enabled. (And yes I enabled subnet routing and disable on phone calls). The requested option sounds like a possible solution. At home I also have a piHole running anyway. So disabling TC at home would not harm much but gets me wlan calling working, at least at home... What do you think?

tgaertner avatar Jun 12 '22 17:06 tgaertner