Android DEX

From XentaxWiki
Jump to: navigation, search

Back to index | Edit this page

DEX

  • Format Type : Android Bytecode
  • Endian Order : Little Endian / Big Endian
  • Signature : 64 65 78 0a 30 33 39 00 / dex\n039\0


Format Specifications

//header
8 bytes (char) - signature // 64 65 78 0A 30 33 35 00 / "dex\n035\0"
                           // 64 65 78 0a 30 33 39 00 / "dex\n039\0"
4 bytes (uint32) - adler32 checksum of the rest of the file (everything but magic and this field)
20 bytes - SHA-1 signature (hash) of the rest of the file
4 bytes (uint32) -  size of the entire file
4 bytes (uint32) -  size of the header  // 0x70 / 112
4 bytes (uint32) - endianess  // 78 56 34 12 - little endian
                              // 12 34 56 78 - big endian

// TODO

MultiEx BMS Script

Not written yet.

Notes and Comments

  • This file format occurs in all Android games. It contains Android bytecode.
  • DEX files can be disassembled to smali files or decompiled to Java source code.
  • Usually DEX file is called classes.dex and it is placed in root directory of Android APK file.

Games

List of games using this file format:

  • all Android games...

Compatible Programs