Created
May 3, 2014 16:55
-
-
Save mtrl/cbed8af39ba58daa5a00 to your computer and use it in GitHub Desktop.
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/sh | |
echo "+--------------------------+"; | |
echo "| Uninstalling application |" | |
echo "+--------------------------+"; | |
adb devices | tail -n +2 | cut -sf 1 | xargs -I {} adb -s {} uninstall [com.your.app/.Name] | |
echo "+------------------------+"; | |
echo "| Installing application |"; | |
echo "+------------------------+"; | |
adb devices | tail -n +2 | cut -sf 1 | xargs -I {} adb -s {} install [path-to-apk] | |
echo "+----------------------+"; | |
echo "| Starting application |" | |
echo "+----------------------+"; | |
adb devices | tail -n +2 | cut -sf 1 | xargs -I {} adb -s {} shell am start -a android.intent.action.MAIN -n [com.your.app/.Name] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I will try it and see what it gives