Is there a way to get a list of all classes from a .dex file?
问题 I have a .dex file, call it classes.dex . Is there a way to "read" the contents of that classes.dex and get a list of all classes in there as full class names, including their package, com.mypackage.mysubpackage.MyClass , for exmaple? I was thinking about com.android.dx.dex.file.DexFile, but I cannot seem to find a method for retrieving an entire set of classes. 回答1: You can use the dexlib2 library as a standalone library (available in maven), to read the dex file and get a list of classes.