Is there a way to get a list of all classes from a .dex file?

后端 未结 5 652

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 class

5条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-30 17:10

    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 classes.dex | grep 'Class descriptor'
    

    should work.

提交回复
热议问题