I have a .dex file, call it classes.dex.
.dex
classes.dex
Is there a way to \"read\" the contents of that classes.dex and get a list of all class
Use the command line tool dexdump from the Android-SDK. It's in $ANDROID_HOME/build-tools//dexdump. It prints a lot more info than you probably want. I didn't find a way to make dexdump less verbose, but
dexdump
$ANDROID_HOME/build-tools//dexdump
dexdump classes.dex | grep 'Class descriptor'
should work.