Accessibility has to be set for a service within a app, not for a app.
I’ll be using powershortcuts as an example
Step 1
open the AndroidManifest.xml (using mt manager or a APK analyzer)
step 2
look for android.permission.BIND_ACCESSIBILITY_SERVICES (it should be towards the bottom, not in the permission list in the beginning)
step 3
the permission should be in a service (in between <service and
</service>)
step 4
you should see a name variable in the service, take the value (in this case its com.ss.launcher.utils.MyAccessibilityService) and…
step 5
..run this command
adb shell settings put secure enabled_accessibility_services com.ss.powershortcuts/com.ss.launcher.utils.MyAccessibilityService
breakdown
adb shell settings
put
one of two options, put or get
secure
one of three options:
secure= settings readable by apps (apps cant set them)
global= applys to all users
system=misc
enabled_accessibility_services
setting name
com.ss.powershortcuts
package name (of service in question)
/
foward slash
com.ss.launcher.utils.MyAccessibilityService
service name
service=
android component that doesnt have a user UI (backround) or a long running task