InstallSourceInfo.InstallingPackageName Property

Definition

The name of the package responsible for the installation (the installer of record), or null if not available.

public string? InstallingPackageName { [Android.Runtime.Register("getInstallingPackageName", "()Ljava/lang/String;", "", ApiSince=30)] get; }
[<get: Android.Runtime.Register("getInstallingPackageName", "()Ljava/lang/String;", "", ApiSince=30)>]
member this.InstallingPackageName : string

Property Value

Attributes

Remarks

The name of the package responsible for the installation (the installer of record), or null if not available. Note that this may differ from the initiating package name and can be modified via PackageManager#setInstallerPackageName(String, String).

Null may be returned if the app was not installed by a package (e.g. a system app or an app installed via adb) or if the installing package has itself been uninstalled.

Java documentation for android.content.pm.InstallSourceInfo.getInstallingPackageName().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to