Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android install source

Is it possible to get the source of install from an Android app?

I mean, I want to see, if the app is installed from the Play Store, Amazon Appstore or via executing an APK.

PS: I think to see it while my app crashes and I was able to send an bug report, that my app was installed via Play Store. How do I get this value?

like image 755
mars3142 Avatar asked Apr 24 '14 07:04

mars3142


People also ask

How do I find app installed sources?

Find Installation Source/App Store The PackageManager class contains another useful method - getInstallerPackageName(). If you installed the package through ADB, this method will return null . Otherwise it should return the package name of the installer application, which would be com. android.

What is Android installer?

Put simply, it's an app that installs and uninstalls other apps. Every time you install something on your Android device, including third-party apps like Spotify or Discord, APK files, or official software updates, it's Package Installer that makes it happen.


1 Answers

The PackageManager class supplies the getInstallerPackageName method that will tell you the package name of whatever installed the package you specify. Side-loaded apps will not contain a value.

The latest version of the Amazon store finally sets PackageManager.getInstallerPackageName() to "com.amazon.venezia" as well to contrast with Google Play's "com.android.vending".

Source: How to know an application is installed from google play or side-load? For an Example: getInstallerPackageName returns null

like image 117
Mdlc Avatar answered Sep 27 '22 21:09

Mdlc