Search code examples
androidsecurityapkdecompiling

how to secure apk from java decompile


Possible Duplicate:
How to prevent My apk from decompiling

as you probably know - decompiling APK file is too easy: extract the apk as zip - reviles compliltly the manifest and all resources.
using simple decompiling software - reviles all the source code (only with not the original variables names..)

I would like to know if there is a way to secure somehow APK file from been decompile.

I assume that reason I need this is obvious to all of you - I don't want people to read the source code or any part of it, from security reasons...

thanks in advance


Solution

  • Use proguard. It shrinks, optimizes, and obfuscates your code by removing unused code and renaming classes, fields, and methods with semantically obscure names. The result is a smaller sized .apk file that is more difficult to reverse engineer.