Skip to content

Instantly share code, notes, and snippets.

@mtrl
Created May 3, 2014 16:55
Show Gist options
  • Save mtrl/cbed8af39ba58daa5a00 to your computer and use it in GitHub Desktop.
Save mtrl/cbed8af39ba58daa5a00 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]
@iaubain
Copy link

iaubain commented Aug 8, 2017

I will try it and see what it gives

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment