Last active
December 27, 2015 15:49
-
-
Save wangchen/7350716 to your computer and use it in GitHub Desktop.
Simple apk information
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
function apkinfo() | |
{ | |
for part in $(aapt d badging $1 |grep package) | |
do | |
echo $part | |
done | |
echo "size: $(wc -c $1 |cut -d " " -f2)" | |
echo "hash: $(shasum $1 |cut -d " " -f1)" | |
} | |
alias apkinfo=apkinfo $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage