Skip to content

Instantly share code, notes, and snippets.

@christopherperry
Created July 30, 2012 16:12
Show Gist options
  • Save christopherperry/3208109 to your computer and use it in GitHub Desktop.
Save christopherperry/3208109 to your computer and use it in GitHub Desktop.

Revisions

  1. christopherperry revised this gist Jul 30, 2012. 2 changed files with 1 addition and 21 deletions.
    20 changes: 0 additions & 20 deletions adb
    Original file line number Diff line number Diff line change
    @@ -1,20 +0,0 @@
    #!/bin/bash
    # 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 com.example.android.apis

    adb devices | while read line
    do
    if [ ! "$line" = "" ] && [ `echo $line | awk '{print $2}'` = "device" ]
    then
    device=`echo $line | awk '{print $1}'`
    echo "$device $@ ..."
    adb -s $device $@
    fi
    done
    2 changes: 1 addition & 1 deletion adb+
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    #!/bin/bash
    # Script adb+
    # Usage
    # You can run any command adb provides on all your current devices
    # 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
  2. christopherperry revised this gist Jul 30, 2012. No changes.
  3. christopherperry revised this gist Jul 30, 2012. 1 changed file with 20 additions and 0 deletions.
    20 changes: 20 additions & 0 deletions adb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    #!/bin/bash
    # 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 com.example.android.apis

    adb devices | while read line
    do
    if [ ! "$line" = "" ] && [ `echo $line | awk '{print $2}'` = "device" ]
    then
    device=`echo $line | awk '{print $1}'`
    echo "$device $@ ..."
    adb -s $device $@
    fi
    done
  4. christopherperry created this gist Jul 30, 2012.
    20 changes: 20 additions & 0 deletions adb+
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    #!/bin/bash
    # Script adb+
    # Usage
    # You can run any command adb provides on all your current devices
    # ./adb+ <command> is the equivalent of ./adb -s <serial number> <command>
    #
    # Examples
    # ./adb+ version
    # ./adb+ install apidemo.apk
    # ./adb+ uninstall com.example.android.apis

    adb devices | while read line
    do
    if [ ! "$line" = "" ] && [ `echo $line | awk '{print $2}'` = "device" ]
    then
    device=`echo $line | awk '{print $1}'`
    echo "$device $@ ..."
    adb -s $device $@
    fi
    done