I'm working on old project of android which is in eclipse. For this i'm trying to protect the code while doing reverse engineering (I know 100% obfuscation is not possible but trying to give some protection for the source code). To do this i've implemented like this
project.properties
proguard.config=${sdk.dir}/tools/proguard/proguard-project.txt
proguard-project.txt
-dontwarn org.simpleframework.xml.stream.**
-dontwarn roboguice.**
-ignorewarnings
-dontshrink
-dontoptimize
After using this i'm exporting the signed APK file but i'm able to extract the source code from apk file by using these online tools (tool1, tool2). Can anyone give the thought to protect code by using Proguard in Eclipse
100% obfuscation is not possible but we can give some protection as below
Eclipse
Open build.graddle
It'll be in following location in eclipse
And mention
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
It will be inside of android as mentioned here
Android Studio
Open build.graddle (App level not project level)
Mention minifyEnabled true
as said in eclipse