Chapter    5

Decompiler Design

The next two chapters focus on how to create the decompiler, which is in fact a cross-compiler that translates bytecode to source code. I cover the theory behind the relevant design decisions as they arise, but the intention is to provide enough background information to get you going rather than give you a full-blown chapter on compiler theory.

Don’t expect your decompiler, DexToSource to be more comprehensive or better than anything currently on the market; to be honest, it’s probably closer to Mocha than Jad or JD-GUI. As with most things, the first 80–90% is the easiest, and the last 10–20% takes much longer to complete. But DexToSource shows you in basic steps how to write a simple Android decompiler that ...

Get Decompiling Android now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.