What I Have
I have one application A which is fully local and cannot use any INTERNET permission.
Application A needs to have one small important information (say, a license check) from an external server I own
So, I have another license checker application B which has INTERNET connectivity permission and it fetches the license information from the external server
The Problem
I want to pass this data safely and securely from the "license checker application B" to the "base application A". By "safely and securely" I mean that I don't want anyone to get hold of the license data easily. I know theoretically everything can be hacked but I want to make things easy.
The Solutions
I have thought of some solutions but don't know the pros and cons of them.
- Writing the information on a file locally (this is easy to hack I guess)
- Using a common Shared Preference file with encryption
- Using startActivityForResult() and getting the information in onActivityResult() (I think this is the best)
What is the best way to do this? Should I follow one of these or do you have any better and more secure method of communication between two applications?