How to secure Android App Code from Reverse Engineering
In this technology revolution every one has there style to do code. As Android is open source than every one can have access of your code by reverse engineering also.
I am also a developer and I also worry about that if anyone get my code, so what the security of my app and my content.
If you are a Android Developer, so you must heard about proguard.
Proguard is launched in 2002 and ten millions developer used this. ProGuard is a open source optimizer for Java bytecode.
Proguard do shrinker, optimizer, obfuscator, and preverifier of Java class. It detects and removes unused classes, fields, methods, and attributes. It optimizes bytecode and removes unused instructions. It renames the remaining classes, fields, and methods using short meaningless names. ProGuard is useful for making code more compact and more efficient, on the desktop, on tablets, on smartphones, and on embedded devices. It also makes code more difficult to reverse engineer.
For enable proguard you should use it in relase build like this:
Here you need to add proguard rule in proguard-rules.pro :
Proguard is open source and every one knows about, but there is another tools also for Securing Android Application. DexGuard provides advanced security features for Android operating system. It offers protection against static analysis (code hardening). DexGuard used for APK by reverse engineering, editing by using obfuscation.
Proguard vs Dexguard
Link: Proguard vs Dexguard
- ProGuard is a generic optimizer for Java bytecode.
DexGuard is a specialized tool for the protection of Android applications.
- ProGuard offers basic protection against static analysis.
DexGuard protects applications against static and dynamic analysis.
- ProGuard provides minimal obfuscation.
DexGuard applies multiple layers of encryption and obfuscation.
- ProGuard focuses on the bytecode.
DexGuard processes all the components of an application.
- ProGuard is an open source tool.
DexGuard is a commercial, enterprise-grade product.
For checking about more about Dexguard check
At the end of this, I want to say that if you are developer and your code have some privacy materials and you dont want that anyone can spy in your code and misuse that one or editing your app, so you need to add Dexguard instead of Proguard due to its high security.
If my post is helpful for you please clap for me.