Skip to content

Instantly share code, notes, and snippets.

@zaki50
Created May 20, 2011 06:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zaki50/982429 to your computer and use it in GitHub Desktop.
Save zaki50/982429 to your computer and use it in GitHub Desktop.
install-all.sh
#!/bin/sh
# 対象アプリのパッケージ名。 org.zakky.memopad とか
pkgname="$1"
# 対象アプリの apk。 bin/MemoPad.apk とか
apkpath="$2"
for i in $(adb devices |grep -v "List of devices" | awk '{print $1;}'); do adb -s $i shell pm uninstall -k "$pkgname"; adb -s $i install "$apkpath"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment