PackageManager PackageManager Class

Definition

Class for retrieving various kinds of information related to the application packages that are currently installed on the device.

[Android.Runtime.Register("android/content/pm/PackageManager", ApiSince=1, DoNotGenerateAcw=true)]
public abstract class PackageManager : Java.Lang.Object
type PackageManager = class
    inherit Object
Inheritance
PackageManagerPackageManager
Derived
Attributes

Remarks

Android platform documentation

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

PackageManager() PackageManager()
PackageManager(IntPtr, JniHandleOwnership) PackageManager(IntPtr, JniHandleOwnership)

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

Fields

DontKillApp DontKillApp
ExtraVerificationId ExtraVerificationId

Extra field name for the ID of a package pending verification.

ExtraVerificationResult ExtraVerificationResult

Extra field name for the result of a verification, either VerificationAllow, or VerificationReject.

FeatureActivitiesOnSecondaryDisplays FeatureActivitiesOnSecondaryDisplays
FeatureAppWidgets FeatureAppWidgets

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device supports app widgets.

FeatureAudioLowLatency FeatureAudioLowLatency

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device's audio pipeline is low-latency, more suitable for audio applications sensitive to delays or lag in sound input or output.

FeatureAudioOutput FeatureAudioOutput

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device includes at least one form of audio output, such as speakers, audio jack or streaming over bluetooth

FeatureAudioPro FeatureAudioPro
FeatureAutofill FeatureAutofill
FeatureAutomotive FeatureAutomotive
FeatureBackup FeatureBackup

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device can perform backup and restore operations on installed applications.

FeatureBluetooth FeatureBluetooth

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device is capable of communicating with other devices via Bluetooth.

FeatureBluetoothLe FeatureBluetoothLe

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device is capable of communicating with other devices via Bluetooth Low Energy radio.

FeatureCamera FeatureCamera

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device has a camera facing away from the screen.

FeatureCameraAny FeatureCameraAny

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device has at least one camera pointing in some direction, or can support an external camera being connected to it.

FeatureCameraAutofocus FeatureCameraAutofocus

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device's camera supports auto-focus.

FeatureCameraCapabilityManualPostProcessing FeatureCameraCapabilityManualPostProcessing

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): At least one of the cameras on the device supports the Android.Hardware.Camera2.CameraMetadata.REQUEST_AVAILABLE_CAPABILITIES_MANUAL_POST_PROCESSING capability level.

FeatureCameraCapabilityManualSensor FeatureCameraCapabilityManualSensor

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): At least one of the cameras on the device supports the Android.Hardware.Camera2.CameraMetadata.REQUEST_AVAILABLE_CAPABILITIES_MANUAL_SENSOR capability level.

FeatureCameraCapabilityRaw FeatureCameraCapabilityRaw

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): At least one of the cameras on the device supports the Android.Hardware.Camera2.CameraMetadata.REQUEST_AVAILABLE_CAPABILITIES_RAW capability level.

FeatureCameraExternal FeatureCameraExternal

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device can support having an external camera connected to it.

FeatureCameraFlash FeatureCameraFlash

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device's camera supports flash.

FeatureCameraFront FeatureCameraFront

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device has a front facing camera.

FeatureCameraLevelFull FeatureCameraLevelFull

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): At least one of the cameras on the device supports the InfoSupportedHardwareLevel capability level.

FeatureCompanionDeviceSetup FeatureCompanionDeviceSetup
FeatureConnectionService FeatureConnectionService

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The Connection Service API is enabled on the device.

FeatureConsumerIr FeatureConsumerIr

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device is capable of communicating with consumer IR devices.

FeatureDeviceAdmin FeatureDeviceAdmin

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device supports device policy enforcement via device admins.

FeatureEmbedded FeatureEmbedded
FeatureEthernet FeatureEthernet
FeatureFaketouch FeatureFaketouch

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device does not have a touch screen, but does support touch emulation for basic events.

FeatureFaketouchMultitouchDistinct FeatureFaketouchMultitouchDistinct

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device does not have a touch screen, but does support touch emulation for basic events that supports distinct tracking of two or more fingers.

FeatureFaketouchMultitouchJazzhand FeatureFaketouchMultitouchJazzhand

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device does not have a touch screen, but does support touch emulation for basic events that supports tracking a hand of fingers (5 or more fingers) fully independently.

FeatureFingerprint FeatureFingerprint
FeatureFreeformWindowManagement FeatureFreeformWindowManagement
FeatureGamepad FeatureGamepad

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device has all of the inputs necessary to be considered a compatible game controller, or includes a compatible game controller in the box.

FeatureHifiSensors FeatureHifiSensors
FeatureHomeScreen FeatureHomeScreen

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device supports a home screen that is replaceable by third party applications.

FeatureInputMethods FeatureInputMethods

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device supports adding new input methods implemented with the InputMethodService API.

FeatureLeanback FeatureLeanback

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device supports leanback UI.

FeatureLeanbackOnly FeatureLeanbackOnly
FeatureLiveTv FeatureLiveTv

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device supports live TV and can display contents from TV inputs implemented with the TvInputService API.

FeatureLiveWallpaper FeatureLiveWallpaper

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device supports live wallpapers.

FeatureLocation FeatureLocation

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device supports one or more methods of reporting current location.

FeatureLocationGps FeatureLocationGps

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device has a Global Positioning System receiver and can report precise location.

FeatureLocationNetwork FeatureLocationNetwork

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device can report location with coarse accuracy using a network-based geolocation system.

FeatureManagedUsers FeatureManagedUsers

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device supports creating secondary users and managed profiles via DevicePolicyManager.

FeatureMicrophone FeatureMicrophone

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device can record audio via a microphone.

FeatureMidi FeatureMidi
FeatureNfc FeatureNfc

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device can communicate using Near-Field Communications (NFC).

FeatureNfcHostCardEmulation FeatureNfcHostCardEmulation

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device supports host- based NFC card emulation.

FeatureNfcHostCardEmulationNfcf FeatureNfcHostCardEmulationNfcf
FeatureOpenglesExtensionPack FeatureOpenglesExtensionPack

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device supports the OpenGL ES .

FeaturePc FeaturePc
FeaturePictureInPicture FeaturePictureInPicture
FeaturePrinting FeaturePrinting

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device supports printing.

FeatureRamLow FeatureRamLow
FeatureRamNormal FeatureRamNormal
FeatureScreenLandscape FeatureScreenLandscape

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device supports landscape orientation screens.

FeatureScreenPortrait FeatureScreenPortrait

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device supports portrait orientation screens.

FeatureSecurelyRemovesUsers FeatureSecurelyRemovesUsers

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device supports secure removal of users.

FeatureSensorAccelerometer FeatureSensorAccelerometer

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device includes an accelerometer.

FeatureSensorAmbientTemperature FeatureSensorAmbientTemperature

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device includes an ambient temperature sensor.

FeatureSensorBarometer FeatureSensorBarometer

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device includes a barometer (air pressure sensor.

FeatureSensorCompass FeatureSensorCompass

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device includes a magnetometer (compass).

FeatureSensorGyroscope FeatureSensorGyroscope

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device includes a gyroscope.

FeatureSensorHeartRate FeatureSensorHeartRate

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device includes a heart rate monitor.

FeatureSensorHeartRateEcg FeatureSensorHeartRateEcg

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The heart rate sensor on this device is an Electrocargiogram.

FeatureSensorLight FeatureSensorLight

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device includes a light sensor.

FeatureSensorProximity FeatureSensorProximity

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device includes a proximity sensor.

FeatureSensorRelativeHumidity FeatureSensorRelativeHumidity

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device includes a relative humidity sensor.

FeatureSensorStepCounter FeatureSensorStepCounter

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device includes a hardware step counter.

FeatureSensorStepDetector FeatureSensorStepDetector

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device includes a hardware step detector.

FeatureSip FeatureSip

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The SIP API is enabled on the device.

FeatureSipVoip FeatureSipVoip

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device supports SIP-based VOIP.

FeatureTelephony FeatureTelephony

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device has a telephony radio with data communication support.

FeatureTelephonyCdma FeatureTelephonyCdma

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device has a CDMA telephony stack.

FeatureTelephonyGsm FeatureTelephonyGsm

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device has a GSM telephony stack.

FeatureTelevision FeatureTelevision

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): This is a device dedicated to showing UI on a television.

FeatureTouchscreen FeatureTouchscreen

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device's display has a touch screen.

FeatureTouchscreenMultitouch FeatureTouchscreenMultitouch

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device's touch screen supports multitouch sufficient for basic two-finger gesture detection.

FeatureTouchscreenMultitouchDistinct FeatureTouchscreenMultitouchDistinct

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device's touch screen is capable of tracking two or more fingers fully independently.

FeatureTouchscreenMultitouchJazzhand FeatureTouchscreenMultitouchJazzhand

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device's touch screen is capable of tracking a full hand of fingers fully independently -- that is, 5 or more simultaneous independent pointers.

FeatureUsbAccessory FeatureUsbAccessory

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device supports connecting to USB accessories.

FeatureUsbHost FeatureUsbHost

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device supports connecting to USB devices as the USB host.

FeatureVerifiedBoot FeatureVerifiedBoot

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device supports verified boot.

FeatureVrHeadtracking FeatureVrHeadtracking
FeatureVrMode FeatureVrMode
FeatureVrModeHighPerformance FeatureVrModeHighPerformance
FeatureVulkanHardwareCompute FeatureVulkanHardwareCompute
FeatureVulkanHardwareLevel FeatureVulkanHardwareLevel
FeatureVulkanHardwareVersion FeatureVulkanHardwareVersion
FeatureWatch FeatureWatch

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): This is a device dedicated to showing UI on a watch.

FeatureWebview FeatureWebview

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device has a full implementation of the android.webkit.

FeatureWifi FeatureWifi

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device supports WiFi (802.11) networking.

FeatureWifiAware FeatureWifiAware
FeatureWifiDirect FeatureWifiDirect

Feature for GetSystemAvailableFeatures() and HasSystemFeature(String): The device supports Wi-Fi Direct networking.

FeatureWifiPasspoint FeatureWifiPasspoint
MaximumVerificationTimeout MaximumVerificationTimeout
VerificationAllow VerificationAllow

Used as the verificationCode argument for VerifyPendingInstall(Int32, PackageInstallVerification) to indicate that the calling package verifier allows the installation to proceed.

VerificationReject VerificationReject

Used as the verificationCode argument for VerifyPendingInstall(Int32, PackageInstallVerification) to indicate the calling package verifier does not vote to allow the installation to proceed.

VersionCodeHighest VersionCodeHighest

Properties

Class Class

Returns the unique instance of Class that represents this object's class.

(Inherited from Object)
DefaultActivityIcon DefaultActivityIcon

Return the generic icon for an activity that is used when no specific icon is defined.

Handle Handle

The handle to the underlying Android instance.

(Inherited from Object)
IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy Inherited from Object
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle Inherited from Object
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation Inherited from Object
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState Inherited from Object
InstantAppCookieMaxBytes InstantAppCookieMaxBytes
IsInstantApp IsInstantApp
IsSafeMode IsSafeMode

Return whether the device has been booted into safe mode.

JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
PackageInstaller PackageInstaller

Return interface that offers the ability to install, upgrade, and remove applications on the device.

PeerReference PeerReference Inherited from Object
ThresholdClass ThresholdClass

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

ThresholdType ThresholdType

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

Methods

AddPackageToPreferred(String) AddPackageToPreferred(String)
AddPermission(PermissionInfo) AddPermission(PermissionInfo)

Add a new dynamic permission to the system.

AddPermissionAsync(PermissionInfo) AddPermissionAsync(PermissionInfo)
AddPreferredActivity(IntentFilter, MatchResults, ComponentName[], ComponentName) AddPreferredActivity(IntentFilter, MatchResults, ComponentName[], ComponentName)
CanonicalToCurrentPackageNames(String[]) CanonicalToCurrentPackageNames(String[])

Map from a packages canonical name to the current name in use on the device.

CanRequestPackageInstalls() CanRequestPackageInstalls()
CheckPermission(String, String) CheckPermission(String, String)

Check whether a particular package has been granted a particular permission.

CheckSignatures(Int32, Int32) CheckSignatures(Int32, Int32)

Like CheckSignatures(String, String), but takes UIDs of the two packages to be checked.

CheckSignatures(String, String) CheckSignatures(String, String)

Compare the signatures of two packages to determine if the same signature appears in both of them.

ClearInstantAppCookie() ClearInstantAppCookie()
ClearPackagePreferredActivities(String) ClearPackagePreferredActivities(String)
Clone() Clone()

Creates and returns a copy of this Object.

(Inherited from Object)
CurrentToCanonicalPackageNames(String[]) CurrentToCanonicalPackageNames(String[])

Map from the current package names in use on the device to whatever the current canonical name of that package is.

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

Compares this instance with the specified object and indicates if they are equal.

(Inherited from Object)
ExtendVerificationTimeout(Int32, PackageInstallVerification, Int64) ExtendVerificationTimeout(Int32, PackageInstallVerification, Int64)

Allows a package listening to the ActionPackageNeedsVerification to extend the default timeout for a response and declare what action to perform after the timeout occurs.

GetActivityBanner(ComponentName) GetActivityBanner(ComponentName)

Retrieve the banner associated with an activity.

GetActivityBanner(Intent) GetActivityBanner(Intent)

Retrieve the banner associated with an Intent.

GetActivityIcon(ComponentName) GetActivityIcon(ComponentName)

Retrieve the icon associated with an activity.

GetActivityIcon(Intent) GetActivityIcon(Intent)

Retrieve the icon associated with an Intent.

GetActivityInfo(ComponentName, PackageInfoFlags) GetActivityInfo(ComponentName, PackageInfoFlags)

Retrieve all of the information we know about a particular activity class.

GetActivityLogo(ComponentName) GetActivityLogo(ComponentName)

Retrieve the logo associated with an activity.

GetActivityLogo(Intent) GetActivityLogo(Intent)

Retrieve the logo associated with an Intent.

GetAllPermissionGroups(PackageInfoFlags) GetAllPermissionGroups(PackageInfoFlags)

Retrieve all of the known permission groups in the system.

GetApplicationBanner(ApplicationInfo) GetApplicationBanner(ApplicationInfo)

Retrieve the banner associated with an application.

GetApplicationBanner(String) GetApplicationBanner(String)

Retrieve the banner associated with an application.

GetApplicationEnabledSetting(String) GetApplicationEnabledSetting(String)

Return the enabled setting for an application.

GetApplicationIcon(ApplicationInfo) GetApplicationIcon(ApplicationInfo)

Retrieve the icon associated with an application.

GetApplicationIcon(String) GetApplicationIcon(String)

Retrieve the icon associated with an application.

GetApplicationInfo(String, PackageInfoFlags) GetApplicationInfo(String, PackageInfoFlags)

Retrieve all of the information we know about a particular package/application.

GetApplicationLabel(ApplicationInfo) GetApplicationLabel(ApplicationInfo)
GetApplicationLabelFormatted(ApplicationInfo) GetApplicationLabelFormatted(ApplicationInfo)

Return the label to use for this application.

GetApplicationLogo(ApplicationInfo) GetApplicationLogo(ApplicationInfo)

Retrieve the logo associated with an application.

GetApplicationLogo(String) GetApplicationLogo(String)

Retrieve the logo associated with an application.

GetChangedPackages(Int32) GetChangedPackages(Int32)
GetComponentEnabledSetting(ComponentName) GetComponentEnabledSetting(ComponentName)

Return the enabled setting for a package component (activity, receiver, service, provider).

GetDrawable(String, Int32, ApplicationInfo) GetDrawable(String, Int32, ApplicationInfo)

Retrieve an image from a package.

GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
GetInstalledApplications(PackageInfoFlags) GetInstalledApplications(PackageInfoFlags)

Return a List of all application packages that are installed on the device.

GetInstalledPackages(PackageInfoFlags) GetInstalledPackages(PackageInfoFlags)

Return a List of all packages that are installed on the device.

GetInstallerPackageName(String) GetInstallerPackageName(String)

Retrieve the package name of the application that installed a package.

GetInstantAppCookie() GetInstantAppCookie()
GetInstrumentationInfo(ComponentName, PackageInfoFlags) GetInstrumentationInfo(ComponentName, PackageInfoFlags)

Retrieve all of the information we know about a particular instrumentation class.

GetLaunchIntentForPackage(String) GetLaunchIntentForPackage(String)

Returns a "good" intent to launch a front-door activity in a package.

GetLeanbackLaunchIntentForPackage(String) GetLeanbackLaunchIntentForPackage(String)

Return a "good" intent to launch a front-door Leanback activity in a package, for use for example to implement an "open" button when browsing through packages.

GetNameForUid(Int32) GetNameForUid(Int32)

Retrieve the official name associated with a user id.

GetPackageArchiveInfo(String, PackageInfoFlags) GetPackageArchiveInfo(String, PackageInfoFlags)

Retrieve overall information about an application package defined in a package archive file

GetPackageGids(String) GetPackageGids(String)

Return an array of all of the secondary group-ids that have been assigned to a package.

GetPackageGids(String, PackageInfoFlags) GetPackageGids(String, PackageInfoFlags)
GetPackageInfo(String, PackageInfoFlags) GetPackageInfo(String, PackageInfoFlags)

Retrieve overall information about an application package that is installed on the system.

GetPackageInfo(VersionedPackage, PackageInfoFlags) GetPackageInfo(VersionedPackage, PackageInfoFlags)
GetPackagesForUid(Int32) GetPackagesForUid(Int32)

Retrieve the names of all packages that are associated with a particular user id.

GetPackagesHoldingPermissions(String[], PackageInfoFlags) GetPackagesHoldingPermissions(String[], PackageInfoFlags)

Return a List of all installed packages that are currently holding any of the given permissions.

GetPackageUid(String, PackageInfoFlags) GetPackageUid(String, PackageInfoFlags)
GetPermissionGroupInfo(String, PackageInfoFlags) GetPermissionGroupInfo(String, PackageInfoFlags)

Retrieve all of the information we know about a particular group of permissions.

GetPermissionInfo(String, PackageInfoFlags) GetPermissionInfo(String, PackageInfoFlags)

Retrieve all of the information we know about a particular permission.

GetPreferredActivities(IList<IntentFilter>, IList<ComponentName>, String) GetPreferredActivities(IList<IntentFilter>, IList<ComponentName>, String)
GetPreferredPackages(PackageInfoFlags) GetPreferredPackages(PackageInfoFlags)

Retrieve the list of all currently configured preferred packages.

GetProviderInfo(ComponentName, PackageInfoFlags) GetProviderInfo(ComponentName, PackageInfoFlags)

Retrieve all of the information we know about a particular content provider class.

GetReceiverInfo(ComponentName, PackageInfoFlags) GetReceiverInfo(ComponentName, PackageInfoFlags)

Retrieve all of the information we know about a particular receiver class.

GetResourcesForActivity(ComponentName) GetResourcesForActivity(ComponentName)

Retrieve the resources associated with an activity.

GetResourcesForApplication(ApplicationInfo) GetResourcesForApplication(ApplicationInfo)

Retrieve the resources for an application.

GetResourcesForApplication(String) GetResourcesForApplication(String)

Retrieve the resources associated with an application.

GetServiceInfo(ComponentName, PackageInfoFlags) GetServiceInfo(ComponentName, PackageInfoFlags)

Retrieve all of the information we know about a particular service class.

GetSharedLibraries(PackageInstallReason) GetSharedLibraries(PackageInstallReason)
GetSystemAvailableFeatures() GetSystemAvailableFeatures()

Get a list of features that are available on the system.

GetSystemSharedLibraryNames() GetSystemSharedLibraryNames()

Get a list of shared libraries that are available on the system.

GetText(String, Int32, ApplicationInfo) GetText(String, Int32, ApplicationInfo)
GetTextFormatted(String, Int32, ApplicationInfo) GetTextFormatted(String, Int32, ApplicationInfo)

Retrieve text from a package.

GetUserBadgedDrawableForDensity(Drawable, UserHandle, Rect, Int32) GetUserBadgedDrawableForDensity(Drawable, UserHandle, Rect, Int32)
GetUserBadgedIcon(Drawable, UserHandle) GetUserBadgedIcon(Drawable, UserHandle)
GetUserBadgedLabel(String, UserHandle) GetUserBadgedLabel(String, UserHandle)
GetUserBadgedLabelFormatted(ICharSequence, UserHandle) GetUserBadgedLabelFormatted(ICharSequence, UserHandle)

If the target user is a managed profile of the calling user or the caller is itself a managed profile, then this returns a copy of the label with badging for accessibility services like talkback.

GetXml(String, Int32, ApplicationInfo) GetXml(String, Int32, ApplicationInfo)

Retrieve an XML file from a package.

HasSystemFeature(String) HasSystemFeature(String)

Check whether the given feature name is one of the available features as returned by GetSystemAvailableFeatures().

HasSystemFeature(String, Int32) HasSystemFeature(String, Int32)
InvokeIsInstantApp(String) InvokeIsInstantApp(String)
IsPermissionRevokedByPolicy(String, String) IsPermissionRevokedByPolicy(String, String)
JavaFinalize() JavaFinalize()

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)
Notify() Notify()

Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
NotifyAll() NotifyAll()

Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
QueryBroadcastReceivers(Intent, PackageInfoFlags) QueryBroadcastReceivers(Intent, PackageInfoFlags)

Retrieve all receivers that can handle a broadcast of the given intent.

QueryContentProviders(String, Int32, PackageInfoFlags) QueryContentProviders(String, Int32, PackageInfoFlags)

Retrieve content provider information.

QueryInstrumentation(String, PackageInfoFlags) QueryInstrumentation(String, PackageInfoFlags)

Retrieve information about available instrumentation code.

QueryIntentActivities(Intent, PackageInfoFlags) QueryIntentActivities(Intent, PackageInfoFlags)

Retrieve all activities that can be performed for the given intent.

QueryIntentActivityOptions(ComponentName, Intent[], Intent, PackageInfoFlags) QueryIntentActivityOptions(ComponentName, Intent[], Intent, PackageInfoFlags)

Retrieve a set of activities that should be presented to the user as similar options.

QueryIntentContentProviders(Intent, PackageInfoFlags) QueryIntentContentProviders(Intent, PackageInfoFlags)

Retrieve all providers that can match the given intent.

QueryIntentServices(Intent, PackageInfoFlags) QueryIntentServices(Intent, PackageInfoFlags)

Retrieve all services that can match the given intent.

QueryPermissionsByGroup(String, PackageInfoFlags) QueryPermissionsByGroup(String, PackageInfoFlags)

Query for all of the permissions associated with a particular group.

RemovePackageFromPreferred(String) RemovePackageFromPreferred(String)
RemovePermission(String) RemovePermission(String)

Removes a permission that was previously added with AddPermission(PermissionInfo).

ResolveActivity(Intent, PackageInfoFlags) ResolveActivity(Intent, PackageInfoFlags)

Determine the best action to perform for a given Intent.

ResolveContentProvider(String, PackageInfoFlags) ResolveContentProvider(String, PackageInfoFlags)

Find a single content provider by its base path name.

ResolveService(Intent, PackageInfoFlags) ResolveService(Intent, PackageInfoFlags)

Determine the best service to handle for a given Intent.

SetApplicationCategoryHint(String, Int32) SetApplicationCategoryHint(String, Int32)
SetApplicationEnabledSetting(String, ComponentEnabledState, ComponentEnableOption) SetApplicationEnabledSetting(String, ComponentEnabledState, ComponentEnableOption)

Set the enabled setting for an application This setting will override any enabled state which may have been set by the application in its manifest.

SetComponentEnabledSetting(ComponentName, ComponentEnabledState, ComponentEnableOption) SetComponentEnabledSetting(ComponentName, ComponentEnabledState, ComponentEnableOption)

Set the enabled setting for a package component (activity, receiver, service, provider).

SetHandle(IntPtr, JniHandleOwnership) SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetInstallerPackageName(String, String) SetInstallerPackageName(String, String)

Change the installer associated with a given package.

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

Returns a string containing a concise, human-readable description of this object.

(Inherited from Object)
UnregisterFromRuntime() UnregisterFromRuntime() Inherited from Object
UpdateInstantAppCookie(Byte[]) UpdateInstantAppCookie(Byte[])
VerifyPendingInstall(Int32, PackageInstallVerification) VerifyPendingInstall(Int32, PackageInstallVerification)

Allows a package listening to the ActionPackageNeedsVerification to respond to the package manager.

Wait() Wait()

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)
Wait(Int64) Wait(Int64)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wait(Int64, Int32) Wait(Int64, Int32)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)

Explicit Interface Implementations

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

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable)

Applies to