I am planning to use in-app billing to enable some features after user paid. I would like to do the following steps:
- Follow google example to add in-app purchase on it.
- After user paid, add a boolean flag in private SharedPreferences.
- Do not recheck if user paid or not in future.
I would like to know more about the security of in-app billing. My question is:
- That is a easy crack (just download a program and executed, done) for android licensing library, is that similar problem for in-app billing?
- Is private sharedPrefences secure enough? hashing the boolean variable seems to be useless?
- Is it easy to hack the apk file, for example, just decomplied the apk, find the boolean logic to 1>0, i.e. alway true, and then recompile the apk?
I found there was AndroidBillingLibrary for easy implementation, but it is outdated. Is that any good alternative?