Start/Stop Adguard protection
Moderator: Martin
-
- Posts: 33
- Joined: 08 Mar 2013 12:45
Start/Stop Adguard protection
Hi... I need help, i tried so many ways to figure out how to convert this tasker intents to automagic but no luck.. Im noob in programming...Sorry for my english...
- Attachments
-
- Screenshot_2015-09-02-10-29-59.jpeg (409.1 KiB) Viewed 15048 times
Re: Start/Stop Adguard protection
Hi,
Please try the following (I'm no expert in reading the Tasker definitions but I hope I got it right).
You can use action Start Service to send an intent to a service.
Configuration:
Action: android.intent.action.SEND
Explicit Component: checked
Package: com.adguard.android
Class: com.adguard.android.ServiceManager
Extras: putInt("ACTION", 2);
the same to stop but with:
Extras: putInt("ACTION", 6);
Let me know if it works so I can add the two configurations to the built-in examples.
Regards,
Martin
Please try the following (I'm no expert in reading the Tasker definitions but I hope I got it right).
You can use action Start Service to send an intent to a service.
Configuration:
Action: android.intent.action.SEND
Explicit Component: checked
Package: com.adguard.android
Class: com.adguard.android.ServiceManager
Extras: putInt("ACTION", 2);
the same to stop but with:
Extras: putInt("ACTION", 6);
Let me know if it works so I can add the two configurations to the built-in examples.
Regards,
Martin
-
- Posts: 33
- Joined: 08 Mar 2013 12:45
Re: Start/Stop Adguard protection
Sorry for the late reply... Automagic rocks.. Thank you martin, it flowlessly works!
Re: Start/Stop Adguard protection
Great! I'll add the two configurations it to the examples.
Re: Start/Stop Adguard protection
Hi all,
I tried following the instructions of Martin..ma not working. Use Marshmallow 6.0.1 and 1.30.0-dev (2016-01-09).
In addition, the "Class: com.adguard.android.ServiceManager" I wrote it by hand because it does not present among the services available.
Solutions?
Xml of this flow?
Thank you
I tried following the instructions of Martin..ma not working. Use Marshmallow 6.0.1 and 1.30.0-dev (2016-01-09).
In addition, the "Class: com.adguard.android.ServiceManager" I wrote it by hand because it does not present among the services available.
Solutions?
Xml of this flow?
Thank you
Re: Start/Stop Adguard protection
Hi,
Did you use action Start Service (not Start Activity)? Please share an empty flow containing just your action so I can check where the problem might be.
Regards,
Martin
Did you use action Start Service (not Start Activity)? Please share an empty flow containing just your action so I can check where the problem might be.
Regards,
Martin