I am developing a game and I would like to include some in-app purchases.
I decided to store the purchased items in a database and adding some checks to it. However, there is still one problem: Wouldn't it be possible to simply disassemble the app, exchange the response codes (eg. USER_CANCELED with OK) so, every time I open the dialogue and abort, my game thinks I bought the item?
I did try it on my app so far, however as I lack experience with baksmali, I didn't work for me. In theory, would be (easily) possible? And if yes, what exactly do you have to change in smali and what are countermeasures?
Thanks!