#!/bin/bash #run export JAVA_HOME=/usr/lib/jvm/jdk1.8 #export ANDROID_SERIAL=emulator-5554 #export ANDROID_SERIAL=emulator-5556 #export ANDROID_SERIAL=emulator-5558 #export ANDROID_SERIAL=80A354043040572010 #Huawei #export ANDROID_SERIAL=C8D15E30D541 #Sony #export ANDROID_SERIAL=YT910P2F2F #Samsung #export ANDROID_SERIAL=0c402b35 ant clean ant release #ant installr adb devices for ANDROID_SERIAL in $(adb devices | grep -v List | cut -f 1|egrep -v "^$"); do echo dododo $ANDROID_SERIAL ant installr done