-
-
Save jlcarvalho/ee762ef0f8c5cf910a5e to your computer and use it in GitHub Desktop.
This file contains hidden or 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