Skip to content

Instantly share code, notes, and snippets.

@thisgeek
Created January 20, 2012 02:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thisgeek/1644669 to your computer and use it in GitHub Desktop.
Save thisgeek/1644669 to your computer and use it in GitHub Desktop.
Install on Android Devices
#!/bin/bash
APK=$1
if [ ! -f `which adb` ]; then
echo 'You need to install the Android SDK before running this script.';
exit;
fi
if [ ! -c $APK ]; then
echo 'Please provide an .apk file to install.'
else
for d in `adb devices | ack -o '^\S+\t'`; do
adb -s $d install -r $APK;
done
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment