I have developed an Android project. I want to protect my code from reverse engineering, so i made a .jar file which contains all my class files then obfuscate that .jar file using the tool "Proguard GUI". Proguard obfuscate the .jar file perfectly, Now how can i use and test the obfuscated jar file in my project?
Asked
Active
Viewed 504 times
1
-
What exactly do you mean by "test the obfuscated jar". Just use a Java decompiler of your choice and open the files. You will see that for example class names or methods are obfuscated, replaced or whatever, depending on your ProGuard settings. – Bevor May 10 '17 at 11:51
-
@Bevor The class files are obfuscated successfully. Now i wanna use those obfuscated class files in my android project and build a .apk. I don't know it is possible or not? – Yuvaraj S May 10 '17 at 12:35
-
I'm not sure if this works in this way. Usually these tasks like (obfuscation, signing, zipaligning,...) should be processed in your gradle file. – Bevor May 10 '17 at 15:05
-
Okay, Thank you for your valuable answer. I will try to obfuscate by Android studio gradle file. If you know any tutorials or web references for Proguard, Please send me the link. – Yuvaraj S May 11 '17 at 05:44
-
See this: http://stackoverflow.com/questions/21672409/how-to-configure-proguard-using-gradle – Bevor May 11 '17 at 18:58
-
Thanks a lot @Bevor I have configured proguard in build gradle and obfuscated the project. Its working fine. – Yuvaraj S May 12 '17 at 04:31