start vpn only on mobile data

roughnecks

Active member
Hello,

is there a way to do such a thing?
Thanks

P.S. I have ADB hacks but not root. Running Android 9 and Wireguard
 

Winny57

Member
"It should be correct; I do have a confirmation of activation. However, when I go into the settings, there is no change."Screenshot_20240128-102842.png
 

Endercraft

Moderator (& bug finder :D)
The app itself has to activate its VPN. I've never seen this setting start it, it could be that it just protects the selected VPN app from being killed.
However it is possible to enable wireguard through intents.

 

roughnecks

Active member
Hello, I wasn't able to make the intent work (first time for me) and I'm getting the following error:

MacroDroid: Send Intent Failed
No Activity found to handle Intent { act=com.wireguard.android.action.SET_TUNNEL_UP flg=0x10000000 }

What should I write in all these fields?

1706442139214.png
 

Endercraft

Moderator (& bug finder :D)
Hello, I wasn't able to make the intent work (first time for me) and I'm getting the following error:

MacroDroid: Send Intent Failed
No Activity found to handle Intent { act=com.wireguard.android.action.SET_TUNNEL_UP flg=0x10000000 }

What should I write in all these fields?

View attachment 8395
Have you tried the macro in the attached thread link from @Dimlos (not the image, the .macro file)?
 

Dimlos

Well-known member
Both applications need to be settings.
Also, the tunnel name needs to be set in a local variable.
 
Last edited:
Top