android developer
android developer

Reputation: 116402

Is it possible to debug an obfuscated Android app?

Suppose I have the code and the mapping of the obfuscated app. Can I somehow debug this app within Eclipse?

Upvotes: 1

Views: 369

Answers (2)

Hartok
Hartok

Reputation: 2137

In Eclipse, Proguard obfuscation is activated only when the app is exported, aka Release Mode.

Debug information are not added in this configuration, as far as I know.

When you build your application in release mode, either by running ant release or by using the Export Wizard in Eclipse, the build system automatically checks to see if the proguard.config property is set. If it is, ProGuard automatically processes the application's bytecode before packaging everything into an .apk file. Building in debug mode does not invoke ProGuard, because it makes debugging more cumbersome.

Source

Edit:

It looks some like hackish solutions exist. Here are two discussions that may help you:

Upvotes: 2

Mus
Mus

Reputation: 1860

Yes you can. Proguard simply makes it difficult to make sense of it by obfuscating the code.

Upvotes: 0

Related Questions