Last active
March 25, 2024 13:54
-
-
Save rallat/cfc9832c8d4aedbffbdf to your computer and use it in GitHub Desktop.
Android Dex Method Count more sophisticated scripts that gives you method cound by package @JakeWharton https://gist.github.com/JakeWharton/6002797 and @tsmith https://gist.github.com/tyvsmith/6056422
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
You can add this to your shell profile and then use it as dexcount file. | |
This file should have a classes.dex in order to work, that means it has to be a android lib project or android apk. | |
count(){ | |
mkdir temp >/dev/null | |
cp $1 temp/$1+copy > /dev/null | |
unzip temp/$1+copy -d temp/ > /dev/null | |
cat temp/classes.dex | head -c 92 | tail -c 4 | hexdump -e '1/4 "%d\n"' | |
rm -R temp > /dev/null | |
} | |
alias dexcount='count' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Gracias! tienes toda la razón. He actualizado el código, además era el que estaba usando ya en mi profile