Last active
December 29, 2015 22:14
-
-
Save tmelz/98fd93c532013bcd29d5 to your computer and use it in GitHub Desktop.
dexdump doesn't include all dex files for multidex apps. here's a bash hack that does.
This file contains hidden or 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
#!/bin/bash | |
# Usage: multidexdump apk [dexdump args] | |
# Example utility: | |
# multidexdump myapp.apk | grep 'Class descriptor' | |
temp=$(mktemp -d -t "dex") | |
unzip -qq $1 -d $temp | |
# Toss apk argument. | |
shift | |
for dex in $(ls $temp/*.dex); do | |
dexdump "$@" $dex | |
done | |
rm -rf $temp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment