Skip to content

Instantly share code, notes, and snippets.

@solipa365
Created July 24, 2024 13:38
Show Gist options
  • Save solipa365/161598b16e7ccbb5bf29fc1ceb5d6e43 to your computer and use it in GitHub Desktop.
Save solipa365/161598b16e7ccbb5bf29fc1ceb5d6e43 to your computer and use it in GitHub Desktop.
enableTalkbackAll() {
for device in $(adb devices | grep 'device$' | cut -f1)
do
adb -s "$device" shell settings put secure enabled_accessibility_services 'com.google.android.marvin.talkback/com.google.android.marvin.talkback.TalkBackService'
adb -s "$device" shell settings put secure accessibility_enabled 1
done
echo "Talkback enabled on all devices."
}
disableTalkbackAll() {
for device in $(adb devices | grep 'device$' | cut -f1)
do
adb -s "$device" shell settings put secure enabled_accessibility_services 'null'
adb -s "$device" shell settings put secure accessibility_enabled 0
done
echo "Talkback disabled on all devices."
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment