Is it possible to check whether an application was installed via Android market (Google Play Store) or by other means?
Basically what I want to know is whether an application is genuine or not. If the source of installation of an app is Play Store, then we know that the application named com.dropbox.android is the actual dropbox application but if the source is not Play Store, then anyone could have created an android app with same package name and installed it on device.
This might be the same question as in How to know an application is installed from google play or side-load?
Try and see if the provided solution works for you.