Created
June 8, 2011 19:06
-
-
Save celesteburke/1015108 to your computer and use it in GitHub Desktop.
Bash script that uninstalls/installs builds to android devices
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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