O'Reilly logo

Bulletproof Android™: Practical Advice for Building Secure Apps by Godfrey Nolan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Looking into the classes.dex File

The structure of the classes.dex file is published by Google. You can find the complete specification at https://source.android.com/devices/tech/dalvik/dex-format.html. You can see a simple schematic of the file format in Figure 2-1.

Image

Figure 2-1 Format of a classes.dex file

An excellent way to do your own deep dive into the classes.dex format is to use some sort of classes.dex viewer such as the one provided by the 010 Editor. You’ll need to follow these steps:

1. Unzip an APK by renaming the extension to zip and then unzipping. If you can’t find one, check the online source code for this chapter.

2. Open classes.dex ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required