Skip to content

Instantly share code, notes, and snippets.

@mikesorae
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikesorae/3269be9987c99a2555cb to your computer and use it in GitHub Desktop.
Save mikesorae/3269be9987c99a2555cb to your computer and use it in GitHub Desktop.
apk utilityコマンドになる予定
#!/bin/bash
echo apk-util v0.0.1
package-name() {
aapt dump badging $1 | grep "package: name" | sed "s/[^']*'\([^']*\)'.*/\1/"
}
uninstall() {
adb uninstall `package-name $1`
}
"$@"
@mikesorae
Copy link
Author

need to set $PATH to your android build-tools directory

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