Last active
November 30, 2021 01:15
-
-
Save sz-alpar/0cbb98561a3d126368f5604970799156 to your computer and use it in GitHub Desktop.
Send adb commands to all connected devices. Kudos to http://stackoverflow.com/questions/8610733/how-can-i-adb-install-an-apk-to-multiple-connected-devices
This file contains hidden or 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
#!/bin/bash | |
# | |
# Send adb commands to all connected devices. | |
# | |
# Usage: adb-all COMMANDS | |
# | |
adb devices | tail -n +2 | cut -sf 1 | xargs -I {} adb -s {} $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment