Detecting if application is installed from Huawei AppGallery
Asked Answered
P

1

6

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:

  • Amazon Appstore: com.amazon.venezia
  • Google Play: com.android.vending

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

Pisciculture answered 5/8, 2021 at 13:3 Comment(0)
G
5

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

Gooseherd answered 5/8, 2021 at 13:19 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.