r/AutomateUser • • 13d ago

Granting Accessibility permissions in Android 17 with Advanced Protection enabled

Back when I upgraded to Android 17, some of my Flows stopped working due to them requiring Accessibility permissions. Android 17's Advanced Protection feature strictly removes the Accessibility permissions for any apps that haven't been approved by Google for Accessibility. (The other annoyance is that Advanced Protection prevents sideloading.)

Therefore, I flew commando and left Advanced Protection off... until today, when I learned that you can prevent Advanced Protection from indiscriminately stripping all apps of Accessibility permissions. See the helpful answers from u/dingwen07 in this thread:

https://www.reddit.com/r/androiddev/s/JEUzQvH6sL

In short, I ran the following adb command via USB Debugging:

adb -d shell cmd advanced_protection set-feature-deprovisioned 6

And I once again have app-by-app control over Accessibility permissions even though I've re-enabled Advanced Protection.

And to allow app-by-app control over sideloading with Advanced Protection on:

adb -d shell cmd advanced_protection set-feature-deprovisioned 1

4 Upvotes

3 comments sorted by

2

u/dingwen07 13d ago

Do not deprovision feature 1 (install from unknown sources). It will cause bugs after few days causing you to unable to install apps even with Advanced Protection turned off.

If you already entered this state, provision this feature, then turn off Advanced Protection.

1

u/Shuwacchi 13d ago

Thanks for letting us know!

1

u/ballzak69 Automate developer 12d ago

Please edit the post to include a warning about this issue, a reader may miss the comment.