Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to protect android source code

Tags:

android

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'


    }
}
like image 358
Rudresh Avatar asked Oct 30 '25 01:10

Rudresh


2 Answers

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.

like image 170
Raheel Avatar answered Oct 31 '25 16:10

Raheel


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.

like image 28
Krunal Kapadiya Avatar answered Oct 31 '25 16:10

Krunal Kapadiya



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!