Created
July 24, 2024 13:38
-
-
Save solipa365/161598b16e7ccbb5bf29fc1ceb5d6e43 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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