Search code examples
androidapkdex

Is there any way to see version of libraries (classes) included in a .dex file


When I analyse a .dex file (i.e. using ClassyShark) from an Android app, I see a certain library, for example com.google.firebase (or any other package included). Is there any way to see what version of this package included in this .dex file? Just like, what version of the library is used in the .pom file if it would be a Maven project. Thanks


Solution

  • In short, no. There is no information about the version of the library stored in the apk/dex/resources.arsc. Although it's possible the library itself has a static constant somewhere with its own version.

    In order to figure out the version of the library, you would have to compare the actual bytecode of the library with that from known versions of the library.