PackageManager Class
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.
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", DoNotGenerateAcw=true)]
public abstract class PackageManager : Java.Lang.Object
[<Android.Runtime.Register("android/content/pm/PackageManager", DoNotGenerateAcw=true)>]
type PackageManager = class
inherit Object
- Inheritance
- Derived
- Attributes
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#getPackageManager
.
<p class="note"><strong>Note: </strong>If your app targets Android 11 (API level 30) or higher, the methods in this class each return a filtered list of apps. Learn more about how to manage package visibility. </p>
Java documentation for android.content.pm.PackageManager
.
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() |
This member is deprecated. |
PackageManager(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
Fields
CertInputRawX509 |
Obsolete.
Certificate input bytes: the input bytes represent an encoded X. |
CertInputSha256 |
Obsolete.
Certificate input bytes: the input bytes represent the SHA256 output of an encoded X. |
DontKillApp |
Obsolete.
Flag parameter for
|
ExtraVerificationId |
Extra field name for the ID of a package pending verification. |
ExtraVerificationResult |
Extra field name for the result of a verification, either
|
FeatureActivitiesOnSecondaryDisplays |
Feature for |
FeatureAppWidgets |
Feature for |
FeatureAudioLowLatency |
Feature for |
FeatureAudioOutput |
Feature for |
FeatureAudioPro |
Feature for |
FeatureAutofill |
Feature for |
FeatureAutomotive |
Feature for |
FeatureBackup |
Feature for |
FeatureBluetooth |
Feature for |
FeatureBluetoothLe |
Feature for |
FeatureCamera |
Feature for |
FeatureCameraAny |
Feature for |
FeatureCameraAr |
Feature for |
FeatureCameraAutofocus |
Feature for |
FeatureCameraCapabilityManualPostProcessing |
Feature for |
FeatureCameraCapabilityManualSensor |
Feature for |
FeatureCameraCapabilityRaw |
Feature for |
FeatureCameraConcurrent |
Feature for |
FeatureCameraExternal |
Feature for |
FeatureCameraFlash |
Feature for |
FeatureCameraFront |
Feature for |
FeatureCameraLevelFull |
Feature for |
FeatureCantSaveState |
Feature for |
FeatureCompanionDeviceSetup |
Feature for |
FeatureConnectionService |
Feature for |
FeatureConsumerIr |
Feature for |
FeatureControls |
Feature for |
FeatureCredentials |
Feature for |
FeatureDeviceAdmin |
Feature for |
FeatureDeviceLock |
Feature for |
FeatureEmbedded |
Feature for |
FeatureEthernet |
Feature for |
FeatureExpandedPictureInPicture |
Feature for |
FeatureFace |
Feature for |
FeatureFaketouch |
Feature for |
FeatureFaketouchMultitouchDistinct |
Feature for |
FeatureFaketouchMultitouchJazzhand |
Feature for |
FeatureFingerprint |
Feature for |
FeatureFreeformWindowManagement |
As a guiding principle: |
FeatureGamepad |
Feature for |
FeatureHardwareKeystore |
Feature for |
FeatureHifiSensors |
Feature for |
FeatureHomeScreen |
Feature for |
FeatureIdentityCredentialHardware |
Feature for |
FeatureIdentityCredentialHardwareDirectAccess |
Feature for |
FeatureInputMethods |
Feature for |
FeatureIpsecTunnelMigration |
Feature for |
FeatureIpsecTunnels |
Feature for |
FeatureIris |
Feature for |
FeatureKeystoreAppAttestKey |
Feature for |
FeatureKeystoreLimitedUseKey |
Feature for |
FeatureKeystoreSingleUseKey |
Feature for |
FeatureLeanback |
Feature for |
FeatureLeanbackOnly |
Feature for |
FeatureLiveTv |
Feature for |
FeatureLiveWallpaper |
Feature for |
FeatureLocation |
Feature for |
FeatureLocationGps |
Feature for |
FeatureLocationNetwork |
Feature for |
FeatureManagedUsers |
Feature for |
FeatureMicrophone |
Feature for |
FeatureMidi |
Feature for |
FeatureNfc |
Feature for |
FeatureNfcBeam |
Feature for |
FeatureNfcHostCardEmulation |
Feature for |
FeatureNfcHostCardEmulationNfcf |
Feature for |
FeatureNfcOffHostCardEmulationEse |
Feature for |
FeatureNfcOffHostCardEmulationUicc |
Feature for |
FeatureOpenglesDeqpLevel |
Feature for |
FeatureOpenglesExtensionPack |
Feature for |
FeaturePc |
Feature for |
FeaturePictureInPicture |
Feature for |
FeaturePrinting |
Feature for |
FeatureRamLow |
Feature for |
FeatureRamNormal |
Feature for |
FeatureScreenLandscape |
Feature for |
FeatureScreenPortrait |
Feature for |
FeatureSecureLockScreen |
Feature for |
FeatureSecurelyRemovesUsers |
Feature for |
FeatureSecurityModelCompatible |
Feature for |
FeatureSensorAccelerometer |
Feature for |
FeatureSensorAccelerometerLimitedAxes |
Feature for |
FeatureSensorAccelerometerLimitedAxesUncalibrated |
Feature for |
FeatureSensorAmbientTemperature |
Feature for |
FeatureSensorBarometer |
Feature for |
FeatureSensorCompass |
Feature for |
FeatureSensorDynamicHeadTracker |
Feature for |
FeatureSensorGyroscope |
Feature for |
FeatureSensorGyroscopeLimitedAxes |
Feature for |
FeatureSensorGyroscopeLimitedAxesUncalibrated |
Feature for |
FeatureSensorHeading |
Feature for |
FeatureSensorHeartRate |
Feature for |
FeatureSensorHeartRateEcg |
Feature for |
FeatureSensorHingeAngle |
Feature for |
FeatureSensorLight |
Feature for |
FeatureSensorProximity |
Feature for |
FeatureSensorRelativeHumidity |
Feature for |
FeatureSensorStepCounter |
Feature for |
FeatureSensorStepDetector |
Feature for |
FeatureSeOmapiEse |
Feature for |
FeatureSeOmapiSd |
Feature for |
FeatureSeOmapiUicc |
Feature for |
FeatureSip |
Feature for |
FeatureSipVoip |
Feature for |
FeatureStrongboxKeystore |
Feature for |
FeatureTelecom |
Feature for |
FeatureTelephony |
Feature for |
FeatureTelephonyCalling |
Feature for |
FeatureTelephonyCdma |
Feature for |
FeatureTelephonyData |
Feature for |
FeatureTelephonyEuicc |
Feature for |
FeatureTelephonyEuiccMep |
Feature for |
FeatureTelephonyGsm |
Feature for |
FeatureTelephonyIms |
Feature for |
FeatureTelephonyMbms |
Feature for |
FeatureTelephonyMessaging |
Feature for |
FeatureTelephonyRadioAccess |
Feature for |
FeatureTelephonySubscription |
Feature for |
FeatureTelevision |
Obsolete.
Feature for |
FeatureTouchscreen |
Feature for |
FeatureTouchscreenMultitouch |
Feature for |
FeatureTouchscreenMultitouchDistinct |
Feature for |
FeatureTouchscreenMultitouchJazzhand |
Feature for |
FeatureUsbAccessory |
Feature for |
FeatureUsbHost |
Feature for |
FeatureUwb |
Feature for |
FeatureVerifiedBoot |
Feature for |
FeatureVrHeadtracking |
Feature for |
FeatureVrMode |
Feature for |
FeatureVrModeHighPerformance |
Feature for |
FeatureVulkanDeqpLevel |
Feature for |
FeatureVulkanHardwareCompute |
Feature for |
FeatureVulkanHardwareLevel |
Feature for |
FeatureVulkanHardwareVersion |
Feature for |
FeatureWalletLocationBasedSuggestions |
Feature for |
FeatureWatch |
Feature for |
FeatureWebview |
Feature for |
FeatureWifi |
Feature for |
FeatureWifiAware |
Feature for |
FeatureWifiDirect |
Feature for |
FeatureWifiPasspoint |
Feature for |
FeatureWifiRtt |
Feature for |
FeatureWindowMagnification |
Feature for |
FlagPermissionWhitelistInstaller |
Obsolete.
Permission whitelist flag: permissions whitelisted by the installer. |
FlagPermissionWhitelistSystem |
Obsolete.
Permission whitelist flag: permissions whitelisted by the system. |
FlagPermissionWhitelistUpgrade |
Obsolete.
Permission whitelist flag: permissions whitelisted by the system when upgrading from an OS version where the permission was not restricted to an OS version where the permission is restricted. |
GetAttributions |
This member is deprecated. |
GetAttributionsLong |
|
InstallScenarioBulk |
Obsolete.
Installation scenario indicating a bulk operation with the desired result of a fully optimized application. |
InstallScenarioBulkSecondary |
Obsolete.
Installation scenario indicating a bulk operation that prioritizes minimal system health impact over application optimization. |
InstallScenarioDefault |
Obsolete.
A value to indicate the lack of CUJ information, disabling all installation scenario logic. |
InstallScenarioFast |
Obsolete.
Installation scenario providing the fastest “install button to launch" experience possible. |
MatchApex |
|
MatchDirectBootAuto |
Querying flag: automatically match components based on their Direct Boot awareness and the current user state. |
MaximumVerificationTimeout |
Can be used as the |
PropertyCompatOverrideLandscapeToPortrait |
Application level |
PropertyMediaCapabilities |
<application> level
|
PropertySelfCertifiedNetworkCapabilities |
<application> level |
PropertySpecialUseFgsSubtype |
<service> level |
Synchronous |
Obsolete.
Flag parameter for
|
VerificationAllow |
Obsolete.
Used as the |
VerificationReject |
Obsolete.
Used as the |
VersionCodeHighest |
Constant for specifying the highest installed package version code. |
Properties
BackgroundPermissionOptionLabel | |
BackgroundPermissionOptionLabelFormatted |
Gets the localized label that corresponds to the option in settings for granting background access. |
Class |
Returns the runtime class of this |
DefaultActivityIcon |
Return the generic icon for an activity that is used when no specific icon is defined. |
Handle |
The handle to the underlying Android instance. (Inherited from Object) |
InstantAppCookieMaxBytes | |
IsAutoRevokeWhitelisted |
<strong>Note: </strong>In retrospect it would have been preferred to use more inclusive terminology when naming this API. |
IsDeviceUpgrading |
Returns true if the device is upgrading, such as first boot after OTA. |
IsInstantApp | |
IsPackageSuspended |
Apps can query this to know if they have been suspended. |
IsSafeMode |
Return whether the device has been booted into safe mode. |
JniIdentityHashCode | (Inherited from Object) |
JniPeerMembers | |
PackageInstaller |
Return interface that offers the ability to install, upgrade, and remove applications on the device. |
PeerReference | (Inherited from Object) |
SuspendedPackageAppExtras |
Returns a |
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. |
TrustAll |
Trust any Installer to provide checksums for the package. |
TrustNone |
Don't trust any Installer to provide checksums for the package. |
Methods
AddPackageToPreferred(String) |
Obsolete.
This member is deprecated. |
AddPermission(PermissionInfo) |
Add a new dynamic permission to the system. |
AddPermissionAsync(PermissionInfo) |
Like |
AddPreferredActivity(IntentFilter, MatchResults, ComponentName[], ComponentName) |
Obsolete.
Add a new preferred activity mapping to the system. |
AddWhitelistedRestrictedPermission(String, String, FlagPermission) |
Adds a whitelisted restricted permission for an app. |
CanonicalToCurrentPackageNames(String[]) |
Map from a packages canonical name to the current name in use on the device. |
CanPackageQuery(String, String) |
Returns |
CanPackageQuery(String, String[]) |
Same as |
CanRequestPackageInstalls() |
Checks whether the calling package is allowed to request package installs through package installer. |
CheckPermission(String, String) |
Check whether a particular package has been granted a particular permission. |
CheckSignatures(Int32, Int32) |
Like |
CheckSignatures(String, String) |
Compare the signatures of two packages to determine if the same signature appears in both of them. |
ClearInstantAppCookie() |
Clears the instant application cookie for the calling app. |
ClearPackagePreferredActivities(String) |
Remove all preferred activity mappings, previously added with
|
Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
CurrentToCanonicalPackageNames(String[]) |
Map from the current package names in use on the device to whatever the current canonical name of that package is. |
Dispose() | (Inherited from Object) |
Dispose(Boolean) | (Inherited from Object) |
Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
ExtendVerificationTimeout(Int32, PackageInstallVerification, Int64) |
Allows a package listening to the
|
GetActivityBanner(ComponentName) |
Retrieve the banner associated with an activity. |
GetActivityBanner(Intent) |
Retrieve the banner associated with an Intent. |
GetActivityIcon(ComponentName) |
Retrieve the icon associated with an activity. |
GetActivityIcon(Intent) |
Retrieve the icon associated with an Intent. |
GetActivityInfo(ComponentName, PackageInfoFlags) |
Retrieve all of the information we know about a particular activity class. |
GetActivityInfo(ComponentName, PackageManager+ComponentInfoFlags) | |
GetActivityLogo(ComponentName) |
Retrieve the logo associated with an activity. |
GetActivityLogo(Intent) |
Retrieve the logo associated with an Intent. |
GetAllPermissionGroups(PackageInfoFlags) |
Retrieve all of the known permission groups in the system. |
GetApplicationBanner(ApplicationInfo) |
Retrieve the banner associated with an application. |
GetApplicationBanner(String) |
Retrieve the banner associated with an application. |
GetApplicationEnabledSetting(String) |
Return the enabled setting for an application. |
GetApplicationIcon(ApplicationInfo) |
Retrieve the icon associated with an application. |
GetApplicationIcon(String) |
Retrieve the icon associated with an application. |
GetApplicationInfo(String, PackageInfoFlags) |
Retrieve all of the information we know about a particular package/application. |
GetApplicationInfo(String, PackageManager+ApplicationInfoFlags) | |
GetApplicationLabel(ApplicationInfo) |
Return the label to use for this application. |
GetApplicationLabelFormatted(ApplicationInfo) |
Return the label to use for this application. |
GetApplicationLogo(ApplicationInfo) |
Retrieve the logo associated with an application. |
GetApplicationLogo(String) |
Retrieve the logo associated with an application. |
GetChangedPackages(Int32) |
Returns the names of the packages that have been changed [eg. |
GetComponentEnabledSetting(ComponentName) |
Return the enabled setting for a package component (activity, receiver, service, provider). |
GetDrawable(String, Int32, ApplicationInfo) |
Retrieve an image from a package. |
GetGroupOfPlatformPermission(String, IExecutor, IConsumer) |
Get the platform-defined permission group of a particular permission, if the permission is a platform-defined permission. |
GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
GetInstalledApplications(PackageInfoFlags) |
Return a List of all application packages that are installed for the current user. |
GetInstalledApplications(PackageManager+ApplicationInfoFlags) | |
GetInstalledModules(Int32) |
Return a List of all modules that are installed. |
GetInstalledPackages(PackageInfoFlags) |
Return a List of all packages that are installed for the current user. |
GetInstalledPackages(PackageManager+PackageInfoFlags) | |
GetInstallerPackageName(String) |
Retrieve the package name of the application that installed a package. |
GetInstallSourceInfo(String) |
Retrieves information about how a package was installed or updated. |
GetInstantAppCookie() |
Gets the instant application cookie for this app. |
GetInstrumentationInfo(ComponentName, PackageInfoFlags) |
Retrieve all of the information we know about a particular instrumentation class. |
GetLaunchIntentForPackage(String) |
Returns a "good" intent to launch a front-door activity in a package. |
GetLaunchIntentSenderForPackage(String) |
Returns an |
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. |
GetMimeGroup(String) |
Gets all MIME types contained by MIME group. |
GetModuleInfo(String, Int32) |
Retrieve information for a particular module. |
GetNameForUid(Int32) |
Retrieve the official name associated with a uid. |
GetPackageArchiveInfo(String, PackageInfoFlags) |
Retrieve overall information about an application package defined in a package archive file
|
GetPackageArchiveInfo(String, PackageManager+PackageInfoFlags) | |
GetPackageGids(String, PackageInfoFlags) |
Return an array of all of the POSIX secondary group IDs that have been assigned to the given package. |
GetPackageGids(String, PackageManager+PackageInfoFlags) | |
GetPackageGids(String) |
Return an array of all of the POSIX secondary group IDs that have been assigned to the given package. |
GetPackageInfo(String, PackageInfoFlags) |
Retrieve overall information about an application package that is installed on the system. |
GetPackageInfo(String, PackageManager+PackageInfoFlags) | |
GetPackageInfo(VersionedPackage, PackageInfoFlags) |
Retrieve overall information about an application package that is installed on the system. |
GetPackageInfo(VersionedPackage, PackageManager+PackageInfoFlags) | |
GetPackagesForUid(Int32) |
Retrieve the names of all packages that are associated with a particular user id. |
GetPackagesHoldingPermissions(String[], PackageInfoFlags) |
Return a List of all installed packages that are currently holding any of the given permissions. |
GetPackagesHoldingPermissions(String[], PackageManager+PackageInfoFlags) | |
GetPackageUid(String, PackageInfoFlags) |
Return the UID associated with the given package name. |
GetPackageUid(String, PackageManager+PackageInfoFlags) | |
GetPermissionGroupInfo(String, PackageInfoFlags) |
Retrieve all of the information we know about a particular group of permissions. |
GetPermissionInfo(String, PackageInfoFlags) |
Retrieve all of the information we know about a particular permission. |
GetPlatformPermissionsForGroup(String, IExecutor, IConsumer) |
Get the platform-defined permissions which belong to a particular permission group. |
GetPreferredActivities(IList<IntentFilter>, IList<ComponentName>, String) |
Retrieve all preferred activities, previously added with
|
GetPreferredPackages(PackageInfoFlags) |
Retrieve the list of all currently configured preferred packages. |
GetProperty(String, ComponentName) |
Returns the property defined in the given component declaration. |
GetProperty(String, String) |
Returns the property defined in the given component declaration. |
GetProviderInfo(ComponentName, PackageInfoFlags) |
Retrieve all of the information we know about a particular content provider class. |
GetProviderInfo(ComponentName, PackageManager+ComponentInfoFlags) | |
GetReceiverInfo(ComponentName, PackageInfoFlags) |
Retrieve all of the information we know about a particular receiver class. |
GetReceiverInfo(ComponentName, PackageManager+ComponentInfoFlags) | |
GetResourcesForActivity(ComponentName) |
Retrieve the resources associated with an activity. |
GetResourcesForApplication(ApplicationInfo, Configuration) |
Retrieve the resources for an application for the provided configuration. |
GetResourcesForApplication(ApplicationInfo) |
Retrieve the resources for an application. |
GetResourcesForApplication(String) |
Retrieve the resources associated with an application. |
GetServiceInfo(ComponentName, PackageInfoFlags) |
Retrieve all of the information we know about a particular service class. |
GetServiceInfo(ComponentName, PackageManager+ComponentInfoFlags) | |
GetSharedLibraries(PackageInstallReason) |
Get a list of shared libraries on the device. |
GetSharedLibraries(PackageManager+PackageInfoFlags) | |
GetSyntheticAppDetailsActivityEnabled(String) |
Return whether a synthetic app details activity will be generated if the app has no enabled launcher activity. |
GetSystemAvailableFeatures() |
Get a list of features that are available on the system. |
GetSystemSharedLibraryNames() |
Get a list of shared libraries that are available on the system. |
GetTargetSdkVersion(String) | |
GetText(String, Int32, ApplicationInfo) |
Retrieve text from a package. |
GetTextFormatted(String, Int32, ApplicationInfo) |
Retrieve text from a package. |
GetUserBadgedDrawableForDensity(Drawable, UserHandle, Rect, Int32) |
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. |
GetUserBadgedIcon(Drawable, UserHandle) |
If the target user is 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) |
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. |
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. |
GetWhitelistedRestrictedPermissions(String, FlagPermission) |
Gets the restricted permissions that have been whitelisted and the app is allowed to have them granted in their full form. |
GetXml(String, Int32, ApplicationInfo) |
Retrieve an XML file from a package. |
HasSigningCertificate(Int32, Byte[], CertificateType) |
Searches the set of signing certificates by which the package(s) for the given uid has proven to have been signed. |
HasSigningCertificate(String, Byte[], CertificateType) |
Searches the set of signing certificates by which the given package has proven to have been signed. |
HasSystemFeature(String, Int32) |
Check whether the given feature name and version is one of the available
features as returned by |
HasSystemFeature(String) |
Check whether the given feature name is one of the available features as
returned by |
InvokeIsAutoRevokeWhitelisted(String) |
Checks whether an application is exempt from having its permissions be automatically revoked when the app is unused for an extended period of time. |
InvokeIsInstantApp(String) |
Gets whether the given package is an instant app. |
InvokeIsPackageSuspended(String) |
Query if an app is currently suspended. |
IsDefaultApplicationIcon(Drawable) |
Returns if the provided drawable represents the default activity icon provided by the system. |
IsPermissionRevokedByPolicy(String, String) |
Checks whether a particular permissions has been revoked for a package by policy. |
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) |
QueryActivityProperty(String) |
Returns the property definition for all <activity> and <activity-alias> tags. |
QueryApplicationProperty(String) |
Returns the property definition for all <application> tags. |
QueryBroadcastReceivers(Intent, PackageInfoFlags) |
Retrieve all receivers that can handle a broadcast of the given intent. |
QueryBroadcastReceivers(Intent, PackageManager+ResolveInfoFlags) | |
QueryContentProviders(String, Int32, PackageInfoFlags) |
Retrieve content provider information. |
QueryContentProviders(String, Int32, PackageManager+ComponentInfoFlags) | |
QueryInstrumentation(String, PackageInfoFlags) |
Retrieve information about available instrumentation code. |
QueryIntentActivities(Intent, PackageInfoFlags) |
Retrieve all activities that can be performed for the given intent. |
QueryIntentActivities(Intent, PackageManager+ResolveInfoFlags) | |
QueryIntentActivityOptions(ComponentName, IList<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) |
Retrieve all providers that can match the given intent. |
QueryIntentContentProviders(Intent, PackageManager+ResolveInfoFlags) | |
QueryIntentServices(Intent, PackageInfoFlags) |
Retrieve all services that can match the given intent. |
QueryIntentServices(Intent, PackageManager+ResolveInfoFlags) | |
QueryPermissionsByGroup(String, PackageInfoFlags) |
Query for all of the permissions associated with a particular group. |
QueryProviderProperty(String) |
Returns the property definition for all <provider> tags. |
QueryReceiverProperty(String) |
Returns the property definition for all <receiver> tags. |
QueryServiceProperty(String) |
Returns the property definition for all <service> tags. |
RelinquishUpdateOwnership(String) |
Attempt to relinquish the update ownership of the given package. |
RemovePackageFromPreferred(String) |
Obsolete.
This member is deprecated. |
RemovePermission(String) |
Removes a permission that was previously added with
|
RemoveWhitelistedRestrictedPermission(String, String, FlagPermission) |
Removes a whitelisted restricted permission for an app. |
RequestChecksums(String, Boolean, Int32, IList<Certificate>, PackageManager+IOnChecksumsReadyListener) |
Requesting the checksums for APKs within a package. |
ResolveActivity(Intent, PackageInfoFlags) |
Determine the best action to perform for a given Intent. |
ResolveActivity(Intent, PackageManager+ResolveInfoFlags) | |
ResolveContentProvider(String, PackageInfoFlags) |
Find a single content provider by its authority. |
ResolveContentProvider(String, PackageManager+ComponentInfoFlags) | |
ResolveService(Intent, PackageInfoFlags) |
Determine the best service to handle for a given Intent. |
ResolveService(Intent, PackageManager+ResolveInfoFlags) | |
SetApplicationCategoryHint(String, Int32) |
Provide a hint of what the |
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. |
SetAutoRevokeWhitelisted(String, Boolean) |
Marks an application exempt from having its permissions be automatically revoked when the app is unused for an extended period of time. |
SetComponentEnabledSetting(ComponentName, ComponentEnabledState, ComponentEnableOption) |
Set the enabled setting for a package component (activity, receiver, service, provider). |
SetComponentEnabledSettings(IList<PackageManager.ComponentEnabledSetting>) |
Set the enabled settings for package components such as activities, receivers, services and providers. |
SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
SetInstallerPackageName(String, String) |
Change the installer associated with a given package. |
SetMimeGroup(String, ICollection<String>) |
Sets MIME group's MIME types. |
ToArray<T>() | (Inherited from Object) |
ToString() |
Returns a string representation of the object. (Inherited from Object) |
UnregisterFromRuntime() | (Inherited from Object) |
UpdateInstantAppCookie(Byte[]) |
Updates the instant application cookie for the calling app. |
VerifyPendingInstall(Int32, PackageInstallVerification) |
Allows a package listening to the
|
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, 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) |
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) |
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) |