My Android app will be pre-installed. And I want to track preinstalled applications.
To do this, I need to somehow save the key or flag (this means that the application is pre-installed). I will add this key to each request in my internal server and analyze it. I have a problem with this. The problem is related to updating on Google Play.
The standard workflow is as follows:
1) I give the manufacturer a special version of my application that somehow saves the key (for example, in general prefiles).
2) The manufacturer sells the device with the application (special, modified).
3) When the user receives it, there will definitely be the next version of the application (standard, without a special code) on Google Play, so the user may update it without launching (in the worst case).
4) I lost trackability. (the new apk completely removes, never launched the old one, which was special)
To solve this problem, I listened to the ON_BOOT_COMPLETE system broadcast, but it does not work properly on Android 3.1+ .
Do you have any idea how I can do this?
source
share