RSS

Monthly Archives: April 2018

Obfuscating Android Code with Proguard

By:

First enable minifyEnabled in your build.gradle file, like

minifyEnabled true

After this, add below lines in progurad-rules.txt file

-keep class yourpackage.** { *; }
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-verbose

For checking that its working fine go to:

http://www.javadecompilers.com/apktool website so that you can verify after decompilation.

It will work and your classes will be hidden completely.

Copyfrom: https://stackoverflow.com/questions/17290023/obfuscation-in-android-studio

http://medium/@rakawestu/obfuscating-android-code-with-proguard-d43234df9785

Advertisements
 
Leave a comment

Posted by on April 5, 2018 in Android, Mobile Development