Frage

I know that there is a way to prevent a user to extract APK of our applications, but I don't know how to do this.

Do you know how?

For example, if I use Astro File Manager to extract the APK of an app, for some apps it works, but for other apps I can't use it.How can I protect my applications?

Please show me the code.

War es hilfreich?

Lösung

I agree with @Meirav about that there is not 100% protection, and it is hard to protect you code with high level of security. But there is a very fast way to obfuscate you code. This means that only you can see a clean code, the others who will decompile your apk will see an obfuscated code very hard to read an understand what is doing

you can do this by adding

proguard.config=proguard.cfg

in /project.properties

if you want to read more (here)

Andere Tipps

There's no actual way to do so. When you upload your app to the 'Play' store (bad name...) Google ask you for the app to be only on phone or on SD. this is a very lousy protection.

You need to write your app's code in a way that no one will understand.(if you afraid of stealing your app idea) this is the only way... no 100% protection.. there's lots of disadvantages in a way like this, for example: upgrading your app will be a tough mission... this is not worth it ! The money (time) you'll lose on your efforts of protection and security, will cost you more than the 'damage' that can be made by stealing your code...

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top