Automatic workaround for Android 11's controller and Accessibility bug

RSF

Well-known member
The Tasker project sets and restores an Android setting: a secure setting called enabled_accessibility_services

  • You can inspect that in MacroDroid via the Set Variable action (set a local variable, use the "..." link to see the list of "magic texts", scroll down to "System Settings (Secure)", then choose "enabled_accessibility_services" on the next screen).
  • You can set that in MacroDroid via the System Setting action, choosing the "Secure" option, then using the "Known settings" drop-down to find it. Note that you'll need to have run through the "ADB Hack" process for MacroDroid in order for that to work.
 

FrameXX

Well-known member
It is surely possible! As @RSF is stating you can use the settings key for enabled accessibility services. Before disabling them (you do so by setting the value empty) you save the current value into string and after you want to turn them ON you restore the value from string.
 
  • Like
Reactions: RSF

Butterfly_Joe

New member
This is definitely more complex than what I have currently done with Macrodroid. Any suggested reading material around saving current values, restoring them, etc.?

Thank you!
 

RSF

Well-known member
Regarding configuring your MacroDroid installation with the "ADB Hack", see this post (for future reference, it's also pinned to the top of this forum's first page). It's easy, but a bit time-consuming as you have to download an Android utility (ADB) onto a separate computer, and use your phone's debugging mode.

Regarding the macro actions, see the sample macro attached. There's also the MacroDroid Wiki, which has good concise descriptions of MacroDroid's actions, triggers, etc.
 

Attachments

  • Disable_accessibility_services_during_USB_connection_.macro
    5.1 KB · Views: 3
Top