I want to programmatically switch on/off Connect to open networks
and Open network notification
from the android settings:
https://source.android.com/devices/tech/connect/wifi-infrastructure
How can I do this? Do I have to use ConnectivityManager
/ WifiManager
?
The reason for this is that I am annoyed by my phone telling me about "open" telekom wifi/hotspot when I am outside. Also I cannot find the settings page to turn these settings off on my Samsung Galaxy S7.
Update
As I have not found a viable solution programatically I have solved the problem the following way: Remove public hotpots that I do not want to connect to from my "Saved WiFi Network" list. Use MacroDroid/Tasker to disable WiFi when I am leaving my home.