Skip to content
Create a gist now

Instantly share code, notes, and snippets.

A bash script that let's you issue adb commands to multiple devices at once
# Script adb+
# Usage
# You can run any command adb provides on all your currently connected devices
# ./adb+ <command> is the equivalent of ./adb -s <serial number> <command>
# Examples
# ./adb+ version
# ./adb+ install apidemo.apk
# ./adb+ uninstall
adb devices | while read line
if [ ! "$line" = "" ] && [ `echo $line | awk '{print $2}'` = "device" ]
device=`echo $line | awk '{print $1}'`
echo "$device $@ ..."
adb -s $device $@

Just wanted to let you know I'm using this, works great; Thanks.


Hi, I have created the windows version of the same at ADB+.BAT!


Still using it thanks Mr. Chris P.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.