automate accessibility services?

cska133

Member
is it possible to somehow automate the accessibility services, for ex. restart or start if turned off?
 
Last edited:

Jacob L

Moderator (Lawsonator)
There's an action called accessibility service. It allows you to enable or disable certain services. You could toggle them by turning off and then wait before next action and then turn them on again
 

cska133

Member
hm, what exactly mean with your last answer. Could you please explain easier, sorry my English is not my native langunage. Thanks
 

Endercraft

Moderator (& bug finder :D)
hm, what exactly mean with your last answer. Could you please explain easier, sorry my English is not my native langunage. Thanks
It means that you can enable or disable any accessibility service you want using the action (see for yourself in that action).

Also check the "keep accessibility services on" section in MacroDroid settings.
 

cska133

Member
It means that you can enable or disable any accessibility service you want using the action (see for yourself in that action).
wow, that sounds good. maybe I can automate the Avast accessibility service so that it toggle off and than on. My goal of doing this is Android to stop disabling the Avast service and so its Webshield. If I get it toggle is off and on for example every day , than I hope that the Webshield stays all the time active.

Also check the "keep accessibility services on" section in MacroDroid settings.
This is also interesting. That MD setting will keep all accessibility services on or I can choose which one i want (in my case only Avast service)?
 

cska133

Member
Follow steps at dontkillmyapp.com for Avast if you want to keep it running
no, these all doesnt solve that behaviour unfortunatly. Have tried so much on my deviced, but still the Avast Webshield keeps stopping . Even in Avast forum there is no help.
So thatswhy i came up to the idea with MD to automate. I also made a MD macro to lunch Avast Mobiule app everyday, but that didnt help. So I want to try to automate the accessibility service of Avast.

Also check the "keep accessibility services on" section in MacroDroid settings.
This is also interesting. That MD setting will keep all accessibility services on or I can choose which one i want (in my case only Avast service)?
 

cska133

Member
Well, starting the "keep accessibility services running" option i get a hint that this is only possible with Root or Adb hack. Since i dont have root I can not use that option, right?

There's an action called accessibility service.
As i can see this action also needs root :-(
So chance? Or what is adb hack?
 
Last edited:

Endercraft

Moderator (& bug finder :D)
No root needed!

Thread 'ADB Hack - Granting extra capabilities via the ADB tool'

 

cska133

Member
Ah, ok it means i have to make preparations before.

Do i need to execute both commands or only the first one, because in MC only the first one is mentioned:
adb shell pm grant com.arlosoft.macrodroid android.permission.WRITE_SECURE_SETTINGS

followed by:

adb shell pm grant com.arlosoft.macrodroid android.permission.CHANGE_CONFIGURATION
 

Endercraft

Moderator (& bug finder :D)
For this action you only need write secure settings, but you might need the other permissions for other actions so allow them all.
 

cska133

Member
i know it doesnt belong here, but I read about MC Helper. What is that? A separate help tool for MD, what for?
 

Endercraft

Moderator (& bug finder :D)
 
Top