I am currently new to Android development. I need to develop a secure Android application so that I can save it from getteg pirated.
For application security, I used RMS in J2ME. In J2ME, I use the following steps:
- generate a serial number (some random number)
- save this number in rms, the next time you start the application, display the same serial number on the screen and ask the user to enter a valid activation code, then if the user enters the correct activation code, the application is activated and the flag is set to true, and I save the value of this flag in other rms
- If the flag value is true, then the home screen is displayed to the user when the application starts, the activation page is displayed again.
I want to implement this concept in android .. Please explain to me how to do it. Or tell me if any authority knows which way to do this in Android.
Secondly, I want to obfuscate the apk file before releasing the application. After I looked for 2 days, I found that this can be done with proguard. But I do not understand how to obfuscate the code. Please help me sort both problems.
thank
source
share