This is my first Automate flow and my first community submission. I just
started to learn Automate. I already pushed to the community but for discussion I keep this thread in parallel:
Description:
I keep a dictionary of
trusted Wifis. The VPN tunnel is only established for untrusted Wifis. I
trust my mobile connections. This flow is only comparing SSIDs, not
BSSIDs, and not safe against spoofed network names.
For now I like to
keep it simple, compact and understandable without 100s of SQL blocks,
according to my basic skill, which might increase in the future...
Open points, questions and things not working:
*
I like to check against trusted SSIDs via a dictionary setting value 1
for each key. Is that a good approach? How would I implement a way to
have "SSID is like MYNET*" because all my network names are starting
with the same name prefix?
* Starting VPN via shortcut opens the OpenVPN app in foreground, can I do that in background?
* Disconnect VPN activity for shutting down VPN does not work. I get an exception with
com.android.server.wm.ActivityStarter.executeRequest(Unknown Source:673)
I also don't see a shortcut option for shutdown.
Best regards,
Mo