Skip to content

Instantly share code, notes, and snippets.

@jlcarvalho
Forked from mtrl/gist:cbed8af39ba58daa5a00
Last active August 29, 2015 14:27
Show Gist options
  • Save jlcarvalho/ee762ef0f8c5cf910a5e to your computer and use it in GitHub Desktop.
Save jlcarvalho/ee762ef0f8c5cf910a5e to your computer and use it in GitHub Desktop.
#!/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