Skip to content

Instantly share code, notes, and snippets.

@jerrellmardis
Created March 27, 2014 14:13
Show Gist options
  • Save jerrellmardis/9808460 to your computer and use it in GitHub Desktop.
Save jerrellmardis/9808460 to your computer and use it in GitHub Desktop.
Counts the number of methods in a list of jars
for file in jars/*.jar; do
echo $file; /Applications/Android\ Studio.app/sdk/build-tools/19.0.3/dx --dex --output=temp.dex $file 2> /dev/null
cat temp.dex| head -c 92 | tail -c 4 | hexdump -e '1/4 "%d\n"'
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment