public
Created

Install on Android Devices

  • Download Gist
ioad.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.