PackageInfo Class

Definition

Overall information about the contents of a package.

[Android.Runtime.Register("android/content/pm/PackageInfo", DoNotGenerateAcw=true)]
public class PackageInfo : Java.Lang.Object, Android.OS.IParcelable, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/content/pm/PackageInfo", DoNotGenerateAcw=true)>]
type PackageInfo = class
    inherit Object
    interface IParcelable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Inheritance
PackageInfo
Attributes
Implements

Remarks

Overall information about the contents of a package. This corresponds to all of the information collected from AndroidManifest.xml.

Java documentation for android.content.pm.PackageInfo.

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.

Constructors

PackageInfo()
PackageInfo(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Fields

RequestedPermissionGranted
Obsolete.

Flag for #requestedPermissionsFlags: the requested permission is currently granted to the application.

RequestedPermissionImplicit
Obsolete.

Flag for #requestedPermissionsFlags: the requested permission was not explicitly requested via uses-permission, but was instead implicitly requested (e.

RequestedPermissionNeverForLocation
Obsolete.

Flag for #requestedPermissionsFlags: the requested permission has declared neverForLocation in their manifest as a strong assertion by a developer that they will never use this permission to derive the physical location of the device, regardless of android.Manifest.permission#ACCESS_FINE_LOCATION and/or android.Manifest.permission#ACCESS_COARSE_LOCATION being granted.

RequestedPermissionRequired
Obsolete.

Flag for #requestedPermissionsFlags: the requested permission is required for the application to run; the user can not optionally disable it.

Properties

Activities

Array of all android.R.styleable#AndroidManifestActivity &lt;activity&gt; tags included under &lt;application&gt;, or null if there were none.

ApplicationInfo

Information collected from the &lt;application&gt; tag, or null if there was none.

Attributions

Array of all android.R.styleable#AndroidManifestAttribution &lt;attribution&gt; tags included under &lt;manifest&gt;, or null if there were none.

BaseRevisionCode

The revision number of the base APK for this package, as specified by the &lt;manifest&gt; tag's android.R.styleable#AndroidManifest_revisionCode revisionCode attribute.

Class

Returns the runtime class of this Object.

(Inherited from Object)
ConfigPreferences

Application specified preferred configuration android.R.styleable#AndroidManifestUsesConfiguration &lt;uses-configuration&gt; tags included under &lt;manifest&gt;, or null if there were none.

Creator
FeatureGroups

Groups of features that this application has requested.

FirstInstallTime

The time at which the app was first installed.

Gids

All kernel group-IDs that have been assigned to this package.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
InstallLocation

The install location requested by the package.

Instrumentation

Array of all android.R.styleable#AndroidManifestInstrumentation &lt;instrumentation&gt; tags included under &lt;manifest&gt;, or null if there were none.

IsApex

Whether the package is an APEX package.

JniIdentityHashCode (Inherited from Object)
JniPeerMembers
LastUpdateTime

The time at which the app was last updated.

LongVersionCode

Return android.R.styleable#AndroidManifest_versionCode versionCode and android.R.styleable#AndroidManifest_versionCodeMajor versionCodeMajor combined together as a single long value. -or- Set the full version code in this PackageInfo, updating #versionCode with the lower bits.

PackageName

The name of this package.

PeerReference (Inherited from Object)
Permissions

Array of all android.R.styleable#AndroidManifestPermission &lt;permission&gt; tags included under &lt;manifest&gt;, or null if there were none.

Providers

Array of all android.R.styleable#AndroidManifestProvider &lt;provider&gt; tags included under &lt;application&gt;, or null if there were none.

Receivers

Array of all android.R.styleable#AndroidManifestReceiver &lt;receiver&gt; tags included under &lt;application&gt;, or null if there were none.

ReqFeatures

Features that this application has requested.

RequestedPermissions

Array of all android.R.styleable#AndroidManifestUsesPermission &lt;uses-permission&gt; tags included under &lt;manifest&gt;, or null if there were none.

RequestedPermissionsFlags

Array of flags of all android.R.styleable#AndroidManifestUsesPermission &lt;uses-permission&gt; tags included under &lt;manifest&gt;, or null if there were none.

Services

Array of all android.R.styleable#AndroidManifestService &lt;service&gt; tags included under &lt;application&gt;, or null if there were none.

SharedUserId

The shared user ID name of this package, as specified by the &lt;manifest&gt; tag's android.R.styleable#AndroidManifest_sharedUserId sharedUserId attribute.

SharedUserLabel

The shared user ID label of this package, as specified by the &lt;manifest&gt; tag's android.R.styleable#AndroidManifest_sharedUserLabel sharedUserLabel attribute.

Signatures

Array of all signatures read from the package file.

SigningInfo

Signing information read from the package file, potentially including past signing certificates no longer used after signing certificate rotation.

SplitNames

The names of any installed split APKs for this package.

SplitRevisionCodes

The revision number of any split APKs for this package, as specified by the &lt;manifest&gt; tag's android.R.styleable#AndroidManifest_revisionCode revisionCode attribute.

ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

VersionCode

This member is deprecated.

VersionName

The version name of this package, as specified by the &lt;manifest&gt; tag's android.R.styleable#AndroidManifest_versionName versionName attribute, or null if there was none.

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
DescribeContents()

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
WriteToParcel(Parcel, ParcelableWriteFlags)

Flatten this object in to a Parcel.

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to