Skip to content

Instantly share code, notes, and snippets.

@celesteburke
Created June 8, 2011 19:06
Show Gist options
  • Save celesteburke/1015108 to your computer and use it in GitHub Desktop.
Save celesteburke/1015108 to your computer and use it in GitHub Desktop.
Bash script that uninstalls/installs builds to android devices
#!/bin/bash
FILE=$1
PACKAGE=$2
if [ $FILE ]
then
if [ ! -f $FILE ]
then
FILE=./bin/*.apk
fi
else
FILE=./bin/*.apk
fi
echo "Uninstalling: " $PACKAGE
adb -d uninstall $PACKAGE
#adb -e uninstall $PACKAGE
echo "Installing: " $FILE
adb -d install $FILE
#adb -e install $FILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment