Skip to content

Instantly share code, notes, and snippets.

@gipi
Created October 17, 2011 09:02
Show Gist options
  • Save gipi/1292237 to your computer and use it in GitHub Desktop.
Save gipi/1292237 to your computer and use it in GitHub Desktop.
Install an APK in all running emulators/devices
# ant clean && ant debug && adbInstallAll
adbInstallAll() {
adb devices | \
sed '1d;/^$/d;' | \
awk '{print $1}' | \
while read device;
do
adb -s $device install -r bin/*-debug.apk
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment