Reputation: 751
In android How to protect android source code while uploading app in to playstore, I'm using progaurd then also we can extract code through APK Decompiler
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
Upvotes: 4
Views: 14443
Reputation: 14896
Well actually we will never get 100% security on our code. But we can do some stuff to make the life of a potential malicious user a little bit more difficult:
Optimizing and obfuscating the code with ProGuard it this first step to take which works with byte code targeted at Android's Dalvik VM.
Also Proguard it's the suggested method by the official docs, and it ships along with the SDK Tools since Android 2.3
Integrated ProGuard support: ProGuard is now packaged with the SDK Tools. Developers can now obfuscate their code as an integrated part of a release build.
Proguard, Android, and the Licensing Server
Securing Android LVL Applications
Upvotes: 2
Reputation: 181
You can't protect your code from reverse engineering to 100%. What you can do is make it harder for a hacker to change your code though.
You can also follow some of these steps mentioned in this thread to avoid security issues.
Hope this helps.
Upvotes: 3
Reputation: 3083
After doing Reverse Engineering in many application. I got the point that to secure your application use all string value, network call URLs in string.xml
file. Your class
files convert into java
file. And resources got encrypted in other file.
You can use proguard to shrink your code and resources.
Upvotes: 2