Add enabled_accessibility_services to batch file command

Viewed 27

I am making a batch file that installs some apps for the user by using adb. Some of the apps need accessibility services enabled, so it runs command: adb shell settings put secure enabled_accessibility_services package.name/service.name

the problem is, when I change the value of enabled_accessibility_services it ruins the user's existing services, as they are no longer listed as enabled services.

I can get the currently enabled services using adb shell settings get secure enabled_accessibility_services.

Is it possible to make The output of that command insert itself into the command to enable services so the command would look like: adb shell settings put secure enabled_accessibility_services com.package.name/service.name:{current value} {current value} should be the output of adb shell settings get secure enabled_accessibility_services. Thanks!

0 Answers
Related