Advanced code obfuscation with DexGuard

DexGuard is a commercial optimizer and obfuscator tool written by Eric Lafortune (who developed ProGuard). It is used in the place of ProGuard. Rather than targeting Java, DexGuard is specialized for Android resources and Dalvik bytecode. As with ProGuard, one of the key advantages for developers is that source code remains maintainable and testable, while the compiled output is both optimized and hardened.

In general terms, it is more secure to use DexGuard, given that it is optimized for Android and provides additional security features. In this recipe, we are going to implement two of those features, API hiding and string encryption, on the previous recipe's signature verification check:

  • API hiding: This ...

Get Android Security Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.