Created
March 8, 2016 10:51
-
-
Save zasadnyy/1f96a4f9680d303b5d7d to your computer and use it in GitHub Desktop.
Check method count for all jars in folder
This file contains 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
totalmethods=0 | |
for jar in `find . -type f -name "*.jar"`; do | |
echo $jar | |
dx --dex --output=temp.dex $jar 2> /dev/null | |
jarmethods=$(cat temp.dex | head -c 92 | tail -c 4 | hexdump -e '1/4 "%d\n"') | |
echo $jarmethods | |
totalmethods=$(($a+$totalmethods)) | |
#echo $totalmethods | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment