Search code examples
androidcordovaobfuscationgoogle-playcopy-protection

How to copy protect PhoneGap Android app ? Is Android Market Copy protect feature useful?


I have PhoneGap app in Android. Now I am ready to publish it, but I would like to protect the app from eyes of script-kiddies. I first thought that it is impossible, than I have discovered "Copy protection" feature when publishing the app on the market. So I was excited, but when I turned it ON, it didn't actually does nothing.

I can install the app on the rooted phone with no problem, I can copy it on SD card and see all the sources. I thought that this "Copy protection" feature will not allow people with rooted phones to install the app. Or am I missing something ?

Is there ANY way how to make it at least difficult, if not disable it at all, for people to see all my HTML and JS sources in my app ?


Solution

  • The copy protection feature has been deprecated by Google. Do not use it.

    1. Use ProGuard to obfuscate your code.

    2. Encrypt your assets and decrypt them as you read them.

    3. Use the Licensing mechanism if you have a paid app.