I found out that it’s possible to disable any VPN on Android, by simply going to Network & Internet settings > Advanced > VPN, and tapping the VPN you’re currently connected to.
In my use case, it would be awesome if I could do this using a Tasker action, and without having to rely on simulated inputs or extra plugins.
I tried using the Custom Settings action, but the finder wasn’t able to detect the VPN state change.
Which is insecure. The apps above properly utilize startActivityForResult() and will utilize AIDL to only allow the plugin to start/stop. When you issue the intent from Tasker to OpenVPN app, the AIDL will be wildcard (*/*) thus allowing anything that can send intents, to start and stop your VPN at will.