Last active
March 3, 2023 07:00
-
-
Save acrookston/6894900 to your computer and use it in GitHub Desktop.
Script to execute an adb command on all connected devices. eg: adb-all uninstall com.example.test
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
#!/bin/bash | |
DEVICES=`adb devices | tail -n +2 | cut -f1` | |
for DEVICE in $DEVICES | |
do | |
RUN="adb -s $DEVICE $@" | |
echo $RUN | |
${RUN} | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment