Skip to content

Instantly share code, notes, and snippets.

@tmelz
Last active December 29, 2015 22:14
Show Gist options
  • Save tmelz/98fd93c532013bcd29d5 to your computer and use it in GitHub Desktop.
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.
#!/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