Metehan Toksoy
Metehan Toksoy

Reputation: 1935

Detecting if application is installed from Huawei AppGallery

I would like to detect the app installation source.

We can use two approaches on Android to detect the installation source: PackageManager#getInstallerPackageName(String) or PackageManager#getInstallSourceInfo(String). Both of those calls will return a package name of the installer application. For example:

My question is, what does this method returns for applications installed from Huawei AppGallery?

Upvotes: 6

Views: 1250

Answers (1)

ΓDΛ
ΓDΛ

Reputation: 11060

You can check "com.huawei.appmarket" using the same method.

Upvotes: 5

Related Questions