InstallSourceInfo.OriginatingPackageName Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The name of the package on behalf of which the initiating package requested the installation, or null if not available.
public string? OriginatingPackageName { [Android.Runtime.Register("getOriginatingPackageName", "()Ljava/lang/String;", "", ApiSince=30)] get; }
[<get: Android.Runtime.Register("getOriginatingPackageName", "()Ljava/lang/String;", "", ApiSince=30)>]
member this.OriginatingPackageName : string
Property Value
- Attributes
Remarks
The name of the package on behalf of which the initiating package requested the installation, or null if not available.
For example if a downloaded APK is installed via the Package Installer this could be the app that performed the download. This value is provided by the initiating package and not verified by the framework.
Note that the InstallSourceInfo
returned by PackageManager#getInstallSourceInfo(String)
will not have this information available unless the calling application holds the INSTALL_PACKAGES permission.
Java documentation for android.content.pm.InstallSourceInfo.getOriginatingPackageName()
.
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.