Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I easily obfuscate an Android app when using IntelliJ IDEA?

I imagine there are two options:

  1. Build a parallel ANT script and bypass the IDE (seems pretty inefficient when the IDE is so good)

  2. Somehow integrate Proguard/yGuard or similar with IntelliJ

I've tried installing plugins for Proguard/yGuard into IntelliJ but neither seem to be working (installed ok, but don't appear under Facets), and actually I'm not 100% sure these plugins will help me obfuscate or whether they just provide a de-obfuscation facility for debugging.

I figure ANT is the best route, but would appreciate your thoughts. I just want a way to reduce the chances of someone reverse-engineering apps, but without spending hours setting it up.

like image 463
Ollie C Avatar asked Oct 14 '22 20:10

Ollie C


2 Answers

I'd vote for 1st option - write an ANT script. This has the advantage of being independent of the IDE, even a build server can run it easily.

like image 159
Mot Avatar answered Oct 19 '22 23:10

Mot


One thing you could do is just open the project in Eclipse by creating a new project from existing sources. The two IDEs play quite nicely with each other. Many teams use both and go back and forth between them.

like image 22
Ken Fehling Avatar answered Oct 20 '22 01:10

Ken Fehling