Android Guides | Samples

Android.Content.PM.PackageManager Class

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

See Also: PackageManager

Syntax

[Android.Runtime.Register("android/content/pm/PackageManager", DoNotGenerateAcw=true)]
public abstract class PackageManager : Object

Remarks

Class for retrieving various kinds of information related to the application packages that are currently installed on the device. You can find this class through Context.PackageManager.

[Android Documentation]

Requirements

Namespace: Android.Content.PM
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Android.Content.PM.PackageManager are listed below.

See Also: Object

Public Constructors

Protected Constructors

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

Public Fields

const
DontKillAppComponentEnableOption (1). Flag parameter for PackageManager.SetComponentEnabledSetting(ComponentName,ComponentEnabledState,ComponentEnabledState) to indicate that you don't want to kill the app containing the component.
const
ExtraVerificationIdString. Extra field name for the ID of a package pending verification.
const
ExtraVerificationResultString. Extra field name for the result of a verification, either PackageManager.VerificationAllow, or PackageManager.VerificationReject.
const
FeatureAppWidgetsString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device supports app widgets.
const
FeatureAudioLowLatencyString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.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.
const
FeatureAudioOutputString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device includes at least one form of audio output, such as speakers, audio jack or streaming over bluetooth
const
FeatureBackupString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device can perform backup and restore operations on installed applications.
const
FeatureBluetoothString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device is capable of communicating with other devices via Bluetooth.
const
FeatureBluetoothLeString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device is capable of communicating with other devices via Bluetooth Low Energy radio.
const
FeatureCameraString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device has a camera facing away from the screen.
const
FeatureCameraAnyString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device has at least one camera pointing in some direction, or can support an external camera being connected to it.
const
FeatureCameraAutofocusString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device's camera supports auto-focus.
const
FeatureCameraCapabilityManualPostProcessingString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.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.
const
FeatureCameraCapabilityManualSensorString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): At least one of the cameras on the device supports the Android.Hardware.Camera2.CameraMetadata.REQUEST_AVAILABLE_CAPABILITIES_MANUAL_SENSOR capability level.
const
FeatureCameraCapabilityRawString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): At least one of the cameras on the device supports the Android.Hardware.Camera2.CameraMetadata.REQUEST_AVAILABLE_CAPABILITIES_RAW capability level.
const
FeatureCameraExternalString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device can support having an external camera connected to it.
const
FeatureCameraFlashString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device's camera supports flash.
const
FeatureCameraFrontString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device has a front facing camera.
const
FeatureCameraLevelFullString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): At least one of the cameras on the device supports the CameraCharacteristics.InfoSupportedHardwareLevel capability level.
const
FeatureConnectionServiceString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The Connection Service API is enabled on the device.
const
FeatureConsumerIrString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device is capable of communicating with consumer IR devices.
const
FeatureDeviceAdminString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device supports device policy enforcement via device admins.
const
FeatureFaketouchString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device does not have a touch screen, but does support touch emulation for basic events.
const
FeatureFaketouchMultitouchDistinctString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.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.
const
FeatureFaketouchMultitouchJazzhandString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.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.
const
FeatureGamepadString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.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.
const
FeatureHomeScreenString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device supports a home screen that is replaceable by third party applications.
const
FeatureInputMethodsString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device supports adding new input methods implemented with the InputMethodService API.
const
FeatureLeanbackString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device supports leanback UI.
const
FeatureLiveTvString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device supports live TV and can display contents from TV inputs implemented with the TvInputService API.
const
FeatureLiveWallpaperString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device supports live wallpapers.
const
FeatureLocationString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device supports one or more methods of reporting current location.
const
FeatureLocationGpsString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device has a Global Positioning System receiver and can report precise location.
const
FeatureLocationNetworkString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device can report location with coarse accuracy using a network-based geolocation system.
const
FeatureManagedUsersString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device supports creating secondary users and managed profiles via DevicePolicyManager.
const
FeatureMicrophoneString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device can record audio via a microphone.
const
FeatureNfcString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device can communicate using Near-Field Communications (NFC).
const
FeatureNfcHostCardEmulationString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device supports host- based NFC card emulation.
const
FeatureOpenglesExtensionPackString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device supports the OpenGL ES .
const
FeaturePrintingString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device supports printing.
const
FeatureScreenLandscapeString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device supports landscape orientation screens.
const
FeatureScreenPortraitString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device supports portrait orientation screens.
const
FeatureSecurelyRemovesUsersString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device supports secure removal of users.
const
FeatureSensorAccelerometerString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device includes an accelerometer.
const
FeatureSensorAmbientTemperatureString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device includes an ambient temperature sensor.
const
FeatureSensorBarometerString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device includes a barometer (air pressure sensor.
const
FeatureSensorCompassString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device includes a magnetometer (compass).
const
FeatureSensorGyroscopeString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device includes a gyroscope.
const
FeatureSensorHeartRateString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device includes a heart rate monitor.
const
FeatureSensorHeartRateEcgString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The heart rate sensor on this device is an Electrocargiogram.
const
FeatureSensorLightString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device includes a light sensor.
const
FeatureSensorProximityString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device includes a proximity sensor.
const
FeatureSensorRelativeHumidityString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device includes a relative humidity sensor.
const
FeatureSensorStepCounterString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device includes a hardware step counter.
const
FeatureSensorStepDetectorString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device includes a hardware step detector.
const
FeatureSipString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The SIP API is enabled on the device.
const
FeatureSipVoipString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device supports SIP-based VOIP.
const
FeatureTelephonyString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device has a telephony radio with data communication support.
const
FeatureTelephonyCdmaString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device has a CDMA telephony stack.
const
FeatureTelephonyGsmString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device has a GSM telephony stack.
const
FeatureTelevisionString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): This is a device dedicated to showing UI on a television.
const
FeatureTouchscreenString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device's display has a touch screen.
const
FeatureTouchscreenMultitouchString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device's touch screen supports multitouch sufficient for basic two-finger gesture detection.
const
FeatureTouchscreenMultitouchDistinctString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device's touch screen is capable of tracking two or more fingers fully independently.
const
FeatureTouchscreenMultitouchJazzhandString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.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.
const
FeatureUsbAccessoryString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device supports connecting to USB accessories.
const
FeatureUsbHostString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device supports connecting to USB devices as the USB host.
const
FeatureVerifiedBootString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device supports verified boot.
const
FeatureWatchString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): This is a device dedicated to showing UI on a watch.
const
FeatureWebviewString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device has a full implementation of the android.webkit.
const
FeatureWifiString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device supports WiFi (802.11) networking.
const
FeatureWifiDirectString. Feature for PackageManager.GetSystemAvailableFeatures and PackageManager.HasSystemFeature(String): The device supports Wi-Fi Direct networking.
const
MaximumVerificationTimeoutInt64 (3600000). Can be used as the millisecondsToDelay argument for PackageManager.ExtendVerificationTimeout(Int32,PackageInstallVerification,PackageInstallVerification).
const
PkgInstallCompleteInt32 (1).
const
PkgInstallIncompleteInt32 (0).
const
VerificationAllowPackageInstallVerification (1). Used as the verificationCode argument for PackageManager.VerifyPendingInstall(Int32,PackageInstallVerification) to indicate that the calling package verifier allows the installation to proceed.
const
VerificationRejectPackageInstallVerification (-1). Used as the verificationCode argument for PackageManager.VerifyPendingInstall(Int32,PackageInstallVerification) to indicate the calling package verifier does not vote to allow the installation to proceed.

Public Properties

[read-only]
abstract
DefaultActivityIconDrawable. Return the generic icon for an activity that is used when no specific icon is defined.
[read-only]
abstract
IsSafeModeBoolean. Return whether the device has been booted into safe mode.
[read-only]
abstract
PackageInstallerPackageInstaller. Return interface that offers the ability to install, upgrade, and remove applications on the device.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

abstract
AddPackageToPreferred(String)
abstract
AddPermission(PermissionInfo) : Boolean
Add a new dynamic permission to the system.
abstract
AddPermissionAsync(PermissionInfo) : Boolean
Like PackageManager.AddPermission(PermissionInfo) but asynchronously persists the package manager state after returning from the call, allowing it to return quicker and batch a series of adds at the expense of no guarantee the added permission will be retained if the device is rebooted before it is written.
abstract
AddPreferredActivity(IntentFilter, MatchResults, ComponentName[], ComponentName)
abstract
CanonicalToCurrentPackageNames(String[]) : String[]
Map from a packages canonical name to the current name in use on the device.
abstract
CheckPermission(String, String) : Permission
Check whether a particular package has been granted a particular permission.
abstract
CheckSignatures(Int32, Int32) : SignatureResult
Like PackageManager.CheckSignatures(String,String), but takes UIDs of the two packages to be checked.
abstract
CheckSignatures(String, String) : SignatureResult
Compare the signatures of two packages to determine if the same signature appears in both of them.
abstract
ClearPackagePreferredActivities(String)
Remove all preferred activity mappings, previously added with PackageManager.AddPreferredActivity(IntentFilter,MatchResults,MatchResults,MatchResults), from the system whose activities are implemented in the given package name.
abstract
CurrentToCanonicalPackageNames(String[]) : String[]
Map from the current package names in use on the device to whatever the current canonical name of that package is.
abstract
ExtendVerificationTimeout(Int32, PackageInstallVerification, Int64)
Allows a package listening to the Intent.ActionPackageNeedsVerification to extend the default timeout for a response and declare what action to perform after the timeout occurs.
abstract
GetActivityBanner(ComponentName) : Drawable
Retrieve the banner associated with an activity.
abstract
GetActivityBanner(Intent) : Drawable
Retrieve the banner associated with an Intent.
abstract
GetActivityIcon(ComponentName) : Drawable
Retrieve the icon associated with an activity.
abstract
GetActivityIcon(Intent) : Drawable
Retrieve the icon associated with an Intent.
abstract
GetActivityInfo(ComponentName, PackageInfoFlags) : ActivityInfo
Retrieve all of the information we know about a particular activity class.
abstract
GetActivityLogo(ComponentName) : Drawable
Retrieve the logo associated with an activity.
abstract
GetActivityLogo(Intent) : Drawable
Retrieve the logo associated with an Intent.
abstract
GetAllPermissionGroups(PackageInfoFlags) : IList<PermissionGroupInfo>
Retrieve all of the known permission groups in the system.
abstract
GetApplicationBanner(ApplicationInfo) : Drawable
Retrieve the banner associated with an application.
abstract
GetApplicationBanner(String) : Drawable
Retrieve the banner associated with an application.
abstract
GetApplicationEnabledSetting(String) : ComponentEnabledState
Return the enabled setting for an application.
abstract
GetApplicationIcon(ApplicationInfo) : Drawable
Retrieve the icon associated with an application.
abstract
GetApplicationIcon(String) : Drawable
Retrieve the icon associated with an application.
abstract
GetApplicationInfo(String, PackageInfoFlags) : ApplicationInfo
Retrieve all of the information we know about a particular package/application.
GetApplicationLabel(ApplicationInfo) : String
abstract
GetApplicationLabelFormatted(ApplicationInfo) : ICharSequence
Return the label to use for this application.
abstract
GetApplicationLogo(ApplicationInfo) : Drawable
Retrieve the logo associated with an application.
abstract
GetApplicationLogo(String) : Drawable
Retrieve the logo associated with an application.
abstract
GetComponentEnabledSetting(ComponentName) : ComponentEnabledState
Return the enabled setting for a package component (activity, receiver, service, provider).
abstract
GetDrawable(String, Int32, ApplicationInfo) : Drawable
Retrieve an image from a package.
abstract
GetInstalledApplications(PackageInfoFlags) : IList<ApplicationInfo>
Return a List of all application packages that are installed on the device.
abstract
GetInstalledPackages(PackageInfoFlags) : IList<PackageInfo>
Return a List of all packages that are installed on the device.
abstract
GetInstallerPackageName(String) : String
Retrieve the package name of the application that installed a package.
abstract
GetInstrumentationInfo(ComponentName, PackageInfoFlags) : InstrumentationInfo
Retrieve all of the information we know about a particular instrumentation class.
abstract
GetLaunchIntentForPackage(String) : Intent
Returns a "good" intent to launch a front-door activity in a package.
abstract
GetLeanbackLaunchIntentForPackage(String) : Intent
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.
abstract
GetNameForUid(Int32) : String
Retrieve the official name associated with a user id.
GetPackageArchiveInfo(String, PackageInfoFlags) : PackageInfo
Retrieve overall information about an application package defined in a package archive file
abstract
GetPackageGids(String) : Int32[]
Return an array of all of the secondary group-ids that have been assigned to a package.
abstract
GetPackageInfo(String, PackageInfoFlags) : PackageInfo
Retrieve overall information about an application package that is installed on the system.
abstract
GetPackagesForUid(Int32) : String[]
Retrieve the names of all packages that are associated with a particular user id.
abstract
GetPackagesHoldingPermissions(String[], PackageInfoFlags) : IList<PackageInfo>
Return a List of all installed packages that are currently holding any of the given permissions.
abstract
GetPermissionGroupInfo(String, PackageInfoFlags) : PermissionGroupInfo
Retrieve all of the information we know about a particular group of permissions.
abstract
GetPermissionInfo(String, PackageInfoFlags) : PermissionInfo
Retrieve all of the information we know about a particular permission.
abstract
GetPreferredActivities(IList<Android.Content.IntentFilter>, IList<Android.Content.ComponentName>, String) : Int32
abstract
GetPreferredPackages(PackageInfoFlags) : IList<PackageInfo>
Retrieve the list of all currently configured preferred packages.
abstract
GetProviderInfo(ComponentName, PackageInfoFlags) : ProviderInfo
Retrieve all of the information we know about a particular content provider class.
abstract
GetReceiverInfo(ComponentName, PackageInfoFlags) : ActivityInfo
Retrieve all of the information we know about a particular receiver class.
abstract
GetResourcesForActivity(ComponentName) : Resources
Retrieve the resources associated with an activity.
abstract
GetResourcesForApplication(ApplicationInfo) : Resources
Retrieve the resources for an application.
abstract
GetResourcesForApplication(String) : Resources
Retrieve the resources associated with an application.
abstract
GetServiceInfo(ComponentName, PackageInfoFlags) : ServiceInfo
Retrieve all of the information we know about a particular service class.
abstract
GetSystemAvailableFeatures() : FeatureInfo[]
Get a list of features that are available on the system.
abstract
GetSystemSharedLibraryNames() : String[]
Get a list of shared libraries that are available on the system.
GetText(String, Int32, ApplicationInfo) : String
abstract
GetTextFormatted(String, Int32, ApplicationInfo) : ICharSequence
Retrieve text from a package.
abstract
GetUserBadgedDrawableForDensity(Drawable, UserHandle, Rect, Int32) : Drawable
If the target user is a managed profile of the calling user or the caller is itself a managed profile, then this returns a badged copy of the given drawable allowing the user to distinguish it from the original drawable.
abstract
GetUserBadgedIcon(Drawable, UserHandle) : Drawable
If the target user is a managed profile of the calling user or if the target user is the caller and is itself a managed profile, then this returns a badged copy of the given icon to be able to distinguish it from the original icon.
GetUserBadgedLabel(String, UserHandle) : String
abstract
GetUserBadgedLabelFormatted(ICharSequence, UserHandle) : ICharSequence
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.
abstract
GetXml(String, Int32, ApplicationInfo) : XmlReader
Retrieve an XML file from a package.
abstract
HasSystemFeature(String) : Boolean
Check whether the given feature name is one of the available features as returned by PackageManager.GetSystemAvailableFeatures.
abstract
QueryBroadcastReceivers(Intent, PackageInfoFlags) : IList<ResolveInfo>
Retrieve all receivers that can handle a broadcast of the given intent.
abstract
QueryContentProviders(String, Int32, PackageInfoFlags) : IList<ProviderInfo>
Retrieve content provider information.
abstract
QueryInstrumentation(String, PackageInfoFlags) : IList<InstrumentationInfo>
Retrieve information about available instrumentation code.
abstract
QueryIntentActivities(Intent, PackageInfoFlags) : IList<ResolveInfo>
Retrieve all activities that can be performed for the given intent.
abstract
QueryIntentActivityOptions(ComponentName, Intent[], Intent, PackageInfoFlags) : IList<ResolveInfo>
Retrieve a set of activities that should be presented to the user as similar options.
abstract
QueryIntentContentProviders(Intent, PackageInfoFlags) : IList<ResolveInfo>
Retrieve all providers that can match the given intent.
abstract
QueryIntentServices(Intent, PackageInfoFlags) : IList<ResolveInfo>
Retrieve all services that can match the given intent.
abstract
QueryPermissionsByGroup(String, PackageInfoFlags) : IList<PermissionInfo>
Query for all of the permissions associated with a particular group.
abstract
RemovePackageFromPreferred(String)
abstract
RemovePermission(String)
Removes a permission that was previously added with PackageManager.AddPermission(PermissionInfo).
abstract
ResolveActivity(Intent, PackageInfoFlags) : ResolveInfo
Determine the best action to perform for a given Intent.
abstract
ResolveContentProvider(String, PackageInfoFlags) : ProviderInfo
Find a single content provider by its base path name.
abstract
ResolveService(Intent, PackageInfoFlags) : ResolveInfo
Determine the best service to handle for a given Intent.
abstract
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.
abstract
SetComponentEnabledSetting(ComponentName, ComponentEnabledState, ComponentEnableOption)
Set the enabled setting for a package component (activity, receiver, service, provider).
abstract
SetInstallerPackageName(String, String)
Change the installer associated with a given package.
abstract
VerifyPendingInstall(Int32, PackageInstallVerification)
Allows a package listening to the Intent.ActionPackageNeedsVerification to respond to the package manager.