Josh Josh - 1 year ago 66
Android Question

Android, Obfuscate a Jar library?

I have a Jar library developed in Eclipse ADT. I want to share it to customers but before that, I have to obfuscate my Android Jar library. I have searched enough but no clear answer was found. How can I do this?

I have tried Proguard inside and outside Eclipse but failed to get result!
Also tried to get information by communicating with Guardsquare company, but no clear result yet!
Any help is appreciated.
Thanks in advance!

Answer Source

So I ended up using native c++ code for important parts of my library. Now I have to share an .SO library beside my Jar library so users import both. Not so bad! At least Android Studio decompiler won't decompile my .SO file.

Advice: Don't waste your time securing your Jar file! It'll be reverse engineered like a piece of cake! The .SO file also can be decompiled, but it would be much harder and result won't be same as the source code!

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download