I have a .apk file of my application created using phonegap. I want to know how to prevent my code being seen by anyone who gets my apk so that a person can use it but not be able to see the code. Due to client specific requirements It is not distributed via website or playstore etc. But since the app is in phonegap 99% of the code is in html and js which I can see just by opening the apk file.
Is there any method which allows me to prevent code viewing even if i distribute my apk as it is say for example via pendrive ?
Thanks
AFAIK its Not Completely Possible to Prevent it from being viewed.
There is Basically Not any Trick for Complete Avoidance of your Problem. But you can Still Use Proguard and Make your Code more obfuscation.
If you have the option of including shared libraries then also you can use and integrate it for making it harder to reverse engineered.
you can View HERE for More ways for Preventing your APK file
Hope it will Help.