One of our clients has a deal with an OEM. Our Stub app will be preinstalled on their android devices. Stub application will act as a placeholder.I went throught this link to create stub app. I want to differentiate b/w the user who installs full version of the app via stub application and the user who installs directly from playstore.
Users of pre-installed stub app will offer free trial for X months. Other users who do not have stub app preinstalled on their device will directly download from playstore and will not receive any benifits.
The stub app provided to OEM wont be installed as System app, but will come pre-loaded with the device. As my stub app is not system app, it can be uninstalled by the user. I had gone through this link but it is a difference b/w system app and non-system app.
Now how can i differentiate whether the full version of my application is installed via stub app or installed directly from playstore, so that I can give free trail for respective users.
Please guide me in achieving this. As this is my first question on SO, I apologize for any mistakes.