O'Reilly logo

Decompiling Android 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

Chapter    6

Decompiler Implementation

You’re now at the point where you learn to deal with the individual bytecodes and decompile the opcodes into partial statements and expressions and, ultimately (that’s the plan, anyway), back into complete blocks of source code.

If I’m gauging my audience correctly, this chapter, and possibly the Chapter 5, will appeal to a significant cross section of readers. This is the nub of the problem of how to implement a decompiler using a parser built using ANTLR.

To keep this chapter as practical as possible, you use a test suite of simple programs, each with a different language construct. For each program, you reconstruct the original source gradually, building the decompiler as you go. Each program is first ...

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