Skip to content

Instantly share code, notes, and snippets.

@bols-blue
Forked from zaki50/install-all.sh
Created May 20, 2011 06:20
Show Gist options
  • Save bols-blue/982436 to your computer and use it in GitHub Desktop.
Save bols-blue/982436 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