Reputation: 9044
I have an android app that needs to be Activated to work on devices. The process of Activation is by sending an encrypted key by sms and getting an encrypted reply by sms to activate the app. Assume that encryption/decryption is safe. The problem is that I have to store the app status (activated/not activated/activation failed) and read it on each start up to see that app is activated or not. preferences and sqlite database are not secure. What is the best approach to save this state?
Upvotes: 2
Views: 338
Reputation: 1007321
Keep the activated state on your server, and check it on startup.
There is no truly secure storage on Android devices. Users can get to, and modify, whatever they want, given modest technical skills. If you do not want users messing with the data, do not put it on their device.
Upvotes: 6