

So instead of having bytecode that is interpreted by a virtual machine, it now has native code that can be executed natively by the processor. The result is essentially an elf file that is then executed natively. This is very similar to the original dex file, except that it uses some optimized opcodes, like the optimized invoke virtual instruction.ĭex2oat takes a dex file and compiles it. The result of dexopt is an odex (optimized dex) file. It does things like replacing a virtual invoke instruction with an optimized version that includes the vtable index of the method being called, so that it doesn't have to perform a method lookup during execution.


Dexopt does some optimizations on the dex file.
