Skip to content

Instantly share code, notes, and snippets.

@acrookston
Last active March 3, 2023 07:00
Show Gist options
  • Save acrookston/6894900 to your computer and use it in GitHub Desktop.
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
#!/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