Skip to content

Instantly share code, notes, and snippets.

@untalfranfernandez
Created April 3, 2014 19:38
Show Gist options
  • Save untalfranfernandez/9961325 to your computer and use it in GitHub Desktop.
Save untalfranfernandez/9961325 to your computer and use it in GitHub Desktop.
Bash script to find out how many methods your .apk file will contain. (Original idea from @rochoa)
#! /bin/bash
if [ $# -ne 1 ]; then
echo
echo " Usage: dex-methods.sh [dex file to explore] "
echo
echo
else
NUMBER=`cat $@ | head -c 92 | tail -c 4 | hexdump -e '1/4 "%d\n"'`
echo "The number of methods found is: " $NUMBER
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment