OpenVPN Macro

Bentheimer

New member
Hello ,
I'm trying to control my Openvpn connection via Macrodrid, when I leave a secure WIFI the VPN connection should start.

When I turn off Wifi and the VPN should start I get an error.

Unable to find exclicit activity class { net.openvpn.openvpn/netopenvpn.unified.MainActifity); have you declared this in your Android Mainfest.xml?.

I also post the config screen shots. Can anyone help me?
 

Attachments

  • Screenshot_20211216-082455_MacroDroid.jpg
    Screenshot_20211216-082455_MacroDroid.jpg
    318.8 KB · Views: 66
  • Screenshot_20211216-082501_MacroDroid.jpg
    Screenshot_20211216-082501_MacroDroid.jpg
    319.8 KB · Views: 54

tanutanu

Well-known member
Hello ,
I'm trying to control my Openvpn connection via Macrodrid, when I leave a secure WIFI the VPN connection should start.

When I turn off Wifi and the VPN should start I get an error.

Unable to find exclicit activity class { net.openvpn.openvpn/netopenvpn.unified.MainActifity); have you declared this in your Android Mainfest.xml?.

I also post the config screen shots. Can anyone help me?
It seems have net.openvpn.openvpn.CONNECT as the intent action:unsure:
 

Dimlos

Well-known member
The only item to set in my macro is the local variable profile_name, do not change anything else.

It seems that you have modified the macro, so delete it and import it again, and if the Profile Name in OpenVPN Connect is mainde, try setting the local variable to mainde.

When testing a macro, tap the action item and run it in a test action.

If you run it in a trigger, it will execute connect and disconnect.
 

Attachments

  • LocalVariables.jpg
    LocalVariables.jpg
    224.6 KB · Views: 49
  • OpenVPNConnect.jpg
    OpenVPNConnect.jpg
    110.4 KB · Views: 48
  • TestAction.jpg
    TestAction.jpg
    175 KB · Views: 47
Last edited:

Dimlos

Well-known member
VPN connection takes a long time, OpenVPN Connect is changing color to orange, so if I just wait, won't it connect?
You want to eventually get it to work with triggers, but could you try it first with a test action like the one I wrote?

I will also upload a video of it working.
 

Dimlos

Well-known member
I have tried with the instagram trigger, but it certainly does not seem to provide a stable connection.
This probably cannot be solved by automatic connection by intent.

I don't know of a good solution, as being able to control the intent and having it work with triggers are two different issues.
 

Nixon23

New member
VPN connection takes a long time, OpenVPN Connect is changing color to orange, so if I just wait, won't it connect?
You want to eventually get it to work with triggers, but could you try it first with a test action like the one I wrote?

I will also upload a video of it working.
so everything works correctly but I want to make it work with a trigger when I run instagramm
 

Nixon23

New member
I have tried with the instagram trigger, but it certainly does not seem to provide a stable connection.
This probably cannot be solved by automatic connection by intent.

I don't know of a good solution, as being able to control the intent and having it work with triggers are two different issues.
thank you for your help
 

brunoli

New member
Hello,

Thanks for all explanations but still have the following error :

"Unable to find exclicit activity class { net.openvpn.openvpn/netopenvpn.unified.MainActifity); have you declared this in your Android Mainfest.xml?"

Android13 problem ?
 

brunoli

New member
I tested it and it works on Android 13. Are you using my macro and using the OpenVPN Connect app?
Triggered activation seems to be unstable, so please try it with a test action for now.
Yes. Using OpenVPN connect app.
and yes, try with test action but without success 😕

PS : tried with tasker plugin and ok but I'd prefer to use Intent...
 
Top