Skip to content

Instantly share code, notes, and snippets.

@zasadnyy
Created March 8, 2016 10:51
Show Gist options
  • Save zasadnyy/1f96a4f9680d303b5d7d to your computer and use it in GitHub Desktop.
Save zasadnyy/1f96a4f9680d303b5d7d to your computer and use it in GitHub Desktop.
Check method count for all jars in folder
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