Tasker app configuration

To configure automatic start (or stop) of Adguard for Android in Tasker app you have to do the following steps:

1. Add Task(s)

to start protection:

Send Intent
Action: android.intent.action.SEND
Cat: None
Mime Type:  
Data:  
Extra: ACTION:2
Extra:  
package: com.adguard.android
Class: com.adguard.android.ServiceManager
Target: Service

 

to stop protection: 

Send Intent
Action: android.intent.action.SEND
Cat: None
Mime Type:  
Data:  
Extra: ACTION:4
Extra:  
package: com.adguard.android
Class: com.adguard.android.ServiceManager
Target: Service

As a result, you will have two tasks ready to use:

Add profiles that will use these tasks

For an example, you can configure autostart for Adguard for Android upon switching to mobile networks and autostop upon connecting to Wi-Fi: