Java android.content.pm PackageManager fields, constructors, methods, implement or subclass

Example usage for Java android.content.pm PackageManager fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.content.pm PackageManager.

The text is from its open source code.

Field

intGET_ACTIVITIES
PackageInfo flag: return information about activities in the package in PackageInfo#activities .
intGET_RECEIVERS
PackageInfo flag: return information about intent receivers in the package in PackageInfo#receivers .
intGET_SERVICES
PackageInfo flag: return information about services in the package in PackageInfo#services .
intGET_PROVIDERS
PackageInfo flag: return information about content providers in the package in PackageInfo#providers .
intGET_INSTRUMENTATION
PackageInfo flag: return information about instrumentation in the package in PackageInfo#instrumentation .
intGET_INTENT_FILTERS
PackageInfo flag: return information about the intent filters supported by the activity.
intGET_SIGNATURES
PackageInfo flag: return information about the signatures included in the package.
intGET_RESOLVED_FILTER
ResolveInfo flag: return the IntentFilter that was matched for a particular ResolveInfo in ResolveInfo#filter .
intGET_META_DATA
ComponentInfo flag: return the ComponentInfo#metaData data android.os.Bundle s that are associated with a component.
intGET_GIDS
PackageInfo flag: return the PackageInfo#gids group ids that are associated with an application.
intGET_DISABLED_COMPONENTS
intMATCH_DISABLED_COMPONENTS
PackageInfo flag: include disabled components in the returned info.
intGET_SHARED_LIBRARY_FILES
ApplicationInfo flag: return the ApplicationInfo#sharedLibraryFiles paths to the shared libraries that are associated with an application.
intGET_URI_PERMISSION_PATTERNS
ProviderInfo flag: return the ProviderInfo#uriPermissionPatterns URI permission patterns that are associated with a content provider.
intGET_PERMISSIONS
PackageInfo flag: return information about permissions in the package in PackageInfo#permissions .
intGET_UNINSTALLED_PACKAGES
intMATCH_UNINSTALLED_PACKAGES
Flag parameter to retrieve some information about all applications (even uninstalled ones) which have data directories.
intGET_CONFIGURATIONS
PackageInfo flag: return information about hardware preferences in PackageInfo#configPreferences PackageInfo.configPreferences , and requested features in PackageInfo#reqFeatures and PackageInfo#featureGroups .
intGET_DISABLED_UNTIL_USED_COMPONENTS
intMATCH_DEFAULT_ONLY
Resolution and querying flag: if set, only filters that support the android.content.Intent#CATEGORY_DEFAULT will be considered for matching.
intMATCH_ALL
Querying flag: if set and if the platform is doing any filtering of the results, then the filtering will not happen.
intPERMISSION_GRANTED
Permission check result: this is returned by #checkPermission if the permission has been granted to the given package.
intPERMISSION_DENIED
Permission check result: this is returned by #checkPermission if the permission has not been granted to the given package.
intSIGNATURE_MATCH
Signature check result: this is returned by #checkSignatures if all signatures on the two packages match.
intSIGNATURE_NEITHER_SIGNED
Signature check result: this is returned by #checkSignatures if neither of the two packages is signed.
intSIGNATURE_UNKNOWN_PACKAGE
Signature check result: this is returned by #checkSignatures if either of the packages are not valid.
intCOMPONENT_ENABLED_STATE_DEFAULT
Flag for #setApplicationEnabledSetting(String,int,int) and #setComponentEnabledSetting(ComponentName,int,int) : This component or application is in its default enabled state (as specified in its manifest).
intCOMPONENT_ENABLED_STATE_ENABLED
Flag for #setApplicationEnabledSetting(String,int,int) and #setComponentEnabledSetting(ComponentName,int,int) : This component or application has been explictily enabled, regardless of what it has specified in its manifest.
intCOMPONENT_ENABLED_STATE_DISABLED
Flag for #setApplicationEnabledSetting(String,int,int) and #setComponentEnabledSetting(ComponentName,int,int) : This component or application has been explicitly disabled, regardless of what it has specified in its manifest.
intCOMPONENT_ENABLED_STATE_DISABLED_USER
Flag for #setApplicationEnabledSetting(String,int,int) only: The user has explicitly disabled the application, regardless of what it has specified in its manifest.
intCOMPONENT_ENABLED_STATE_DISABLED_UNTIL_USED
Flag for #setApplicationEnabledSetting(String,int,int) only: This application should be considered, until the point where the user actually wants to use it.
intDONT_KILL_APP
Flag parameter for #setComponentEnabledSetting(android.content.ComponentName,int,int) to indicate that you don't want to kill the app containing the component.
intINSTALL_SUCCEEDED
Installation return code: this is passed in the PackageInstaller#EXTRA_LEGACY_STATUS on success.
intINSTALL_FAILED_INVALID_APK
Installation return code: this is passed in the PackageInstaller#EXTRA_LEGACY_STATUS if the package archive file is invalid.
intINSTALL_FAILED_INVALID_URI
Installation return code: this is passed in the PackageInstaller#EXTRA_LEGACY_STATUS if the URI passed in is invalid.
intINSTALL_FAILED_OLDER_SDK
Installation return code: this is passed in the PackageInstaller#EXTRA_LEGACY_STATUS if the new package failed because the current SDK version is older than that required by the package.
intINSTALL_PARSE_FAILED_BAD_PACKAGE_NAME
Installation parse return code: this is passed in the PackageInstaller#EXTRA_LEGACY_STATUS if the parser encountered a bad or missing package name in the manifest.
intINSTALL_PARSE_FAILED_BAD_SHARED_USER_ID
Installation parse return code: tthis is passed in the PackageInstaller#EXTRA_LEGACY_STATUS if the parser encountered a bad shared user id name in the manifest.
intINSTALL_PARSE_FAILED_MANIFEST_MALFORMED
Installation parse return code: this is passed in the PackageInstaller#EXTRA_LEGACY_STATUS if the parser encountered some structural problem in the manifest.
intINSTALL_PARSE_FAILED_MANIFEST_EMPTY
Installation parse return code: this is passed in the PackageInstaller#EXTRA_LEGACY_STATUS if the parser did not find any actionable tags (instrumentation or application) in the manifest.
intINSTALL_FAILED_USER_RESTRICTED
Installation failed return code: this is passed in the PackageInstaller#EXTRA_LEGACY_STATUS if the system failed to install the package because the user is restricted from installing apps.
StringFEATURE_AUDIO_LOW_LATENCY
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device's audio pipeline is low-latency, more suitable for audio applications sensitive to delays or lag in sound input or output.
StringFEATURE_AUDIO_OUTPUT
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device includes at least one form of audio output, as defined in the Android Compatibility Definition Document (CDD) section 7.8 Audio.
StringFEATURE_AUDIO_PRO
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device has professional audio level of functionality and performance.
StringFEATURE_BLUETOOTH
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device is capable of communicating with other devices via Bluetooth.
StringFEATURE_BLUETOOTH_LE
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device is capable of communicating with other devices via Bluetooth Low Energy radio.
StringFEATURE_CAMERA
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device has a camera facing away from the screen.
StringFEATURE_CAMERA_AUTOFOCUS
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device's camera supports auto-focus.
StringFEATURE_CAMERA_ANY
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device has at least one camera pointing in some direction, or can support an external camera being connected to it.
StringFEATURE_CAMERA_EXTERNAL
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device can support having an external camera connected to it.
StringFEATURE_CAMERA_FLASH
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device's camera supports flash.
StringFEATURE_CAMERA_FRONT
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device has a front facing camera.
StringFEATURE_CAMERA_LEVEL_FULL
Feature for #getSystemAvailableFeatures and #hasSystemFeature : At least one of the cameras on the device supports the android.hardware.camera2.CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL full hardware capability level.
StringFEATURE_CAMERA_CAPABILITY_MANUAL_SENSOR
Feature for #getSystemAvailableFeatures and #hasSystemFeature : At least one of the cameras on the device supports the android.hardware.camera2.CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_MANUAL_SENSOR manual sensor capability level.
StringFEATURE_CAMERA_CAPABILITY_MANUAL_POST_PROCESSING
Feature for #getSystemAvailableFeatures and #hasSystemFeature : At least one of the cameras on the device supports the android.hardware.camera2.CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_MANUAL_POST_PROCESSING manual post-processing capability level.
StringFEATURE_CAMERA_CAPABILITY_RAW
Feature for #getSystemAvailableFeatures and #hasSystemFeature : At least one of the cameras on the device supports the android.hardware.camera2.CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_RAW RAW capability level.
StringFEATURE_CONSUMER_IR
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device is capable of communicating with consumer IR devices.
StringFEATURE_LOCATION
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports one or more methods of reporting current location.
StringFEATURE_LOCATION_GPS
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device has a Global Positioning System receiver and can report precise location.
StringFEATURE_LOCATION_NETWORK
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device can report location with coarse accuracy using a network-based geolocation system.
StringFEATURE_MICROPHONE
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device can record audio via a microphone.
StringFEATURE_NFC
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device can communicate using Near-Field Communications (NFC).
StringFEATURE_NFC_HOST_CARD_EMULATION
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports host- based NFC card emulation.
StringFEATURE_OPENGLES_EXTENSION_PACK
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports the OpenGL ES Android Extension Pack.
StringFEATURE_SENSOR_ACCELEROMETER
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device includes an accelerometer.
StringFEATURE_SENSOR_BAROMETER
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device includes a barometer (air pressure sensor.)
StringFEATURE_SENSOR_COMPASS
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device includes a magnetometer (compass).
StringFEATURE_SENSOR_GYROSCOPE
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device includes a gyroscope.
StringFEATURE_SENSOR_LIGHT
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device includes a light sensor.
StringFEATURE_SENSOR_PROXIMITY
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device includes a proximity sensor.
StringFEATURE_SENSOR_STEP_COUNTER
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device includes a hardware step counter.
StringFEATURE_SENSOR_STEP_DETECTOR
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device includes a hardware step detector.
StringFEATURE_SENSOR_HEART_RATE
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device includes a heart rate monitor.
StringFEATURE_SENSOR_HEART_RATE_ECG
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The heart rate sensor on this device is an Electrocardiogram.
StringFEATURE_SENSOR_RELATIVE_HUMIDITY
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device includes a relative humidity sensor.
StringFEATURE_SENSOR_AMBIENT_TEMPERATURE
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device includes an ambient temperature sensor.
StringFEATURE_HIFI_SENSORS
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports high fidelity sensor processing capabilities.
StringFEATURE_TELEPHONY
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device has a telephony radio with data communication support.
StringFEATURE_TELEPHONY_CDMA
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device has a CDMA telephony stack.
StringFEATURE_TELEPHONY_GSM
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device has a GSM telephony stack.
StringFEATURE_USB_HOST
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports connecting to USB devices as the USB host.
StringFEATURE_USB_ACCESSORY
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports connecting to USB accessories.
StringFEATURE_SIP
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The SIP API is enabled on the device.
StringFEATURE_SIP_VOIP
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports SIP-based VOIP.
StringFEATURE_CONNECTION_SERVICE
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The Connection Service API is enabled on the device.
StringFEATURE_TOUCHSCREEN
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device's display has a touch screen.
StringFEATURE_TOUCHSCREEN_MULTITOUCH
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device's touch screen supports multitouch sufficient for basic two-finger gesture detection.
StringFEATURE_TOUCHSCREEN_MULTITOUCH_DISTINCT
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device's touch screen is capable of tracking two or more fingers fully independently.
StringFEATURE_TOUCHSCREEN_MULTITOUCH_JAZZHAND
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device's touch screen is capable of tracking a full hand of fingers fully independently -- that is, 5 or more simultaneous independent pointers.
StringFEATURE_FAKETOUCH
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device does not have a touch screen, but does support touch emulation for basic events.
StringFEATURE_FAKETOUCH_MULTITOUCH_DISTINCT
Feature for #getSystemAvailableFeatures and #hasSystemFeature : 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.
StringFEATURE_FAKETOUCH_MULTITOUCH_JAZZHAND
Feature for #getSystemAvailableFeatures and #hasSystemFeature : 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.
StringFEATURE_FINGERPRINT
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device has biometric hardware to detect a fingerprint.
StringFEATURE_SCREEN_PORTRAIT
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports portrait orientation screens.
StringFEATURE_SCREEN_LANDSCAPE
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports landscape orientation screens.
StringFEATURE_LIVE_WALLPAPER
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports live wallpapers.
StringFEATURE_APP_WIDGETS
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports app widgets.
StringFEATURE_HOME_SCREEN
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports a home screen that is replaceable by third party applications.
StringFEATURE_INPUT_METHODS
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports adding new input methods implemented with the android.inputmethodservice.InputMethodService API.
StringFEATURE_DEVICE_ADMIN
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports device policy enforcement via device admins.
StringFEATURE_LEANBACK
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports leanback UI.
StringFEATURE_LIVE_TV
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports live TV and can display contents from TV inputs implemented with the android.media.tv.TvInputService API.
StringFEATURE_WIFI
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports WiFi (802.11) networking.
StringFEATURE_WIFI_DIRECT
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports Wi-Fi Direct networking.
StringFEATURE_AUTOMOTIVE
Feature for #getSystemAvailableFeatures and #hasSystemFeature : This is a device dedicated to showing UI on a vehicle headunit.
StringFEATURE_TELEVISION
Feature for #getSystemAvailableFeatures and #hasSystemFeature : This is a device dedicated to showing UI on a television.
StringFEATURE_WATCH
Feature for #getSystemAvailableFeatures and #hasSystemFeature : This is a device dedicated to showing UI on a watch.
StringFEATURE_EMBEDDED
Feature for #getSystemAvailableFeatures and #hasSystemFeature : This is a device for IoT and may not have an UI.
StringFEATURE_PRINTING
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports printing.
StringFEATURE_BACKUP
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device can perform backup and restore operations on installed applications.
StringFEATURE_PICTURE_IN_PICTURE
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports picture-in-picture multi-window mode.
StringFEATURE_MANAGED_USERS
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports creating secondary users and managed profiles via DevicePolicyManager .
StringFEATURE_VERIFIED_BOOT
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports verified boot.
StringFEATURE_SECURELY_REMOVES_USERS
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports secure removal of users.
StringFEATURE_WEBVIEW
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device has a full implementation of the android.webkit.* APIs.
StringFEATURE_GAMEPAD
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device has all of the inputs necessary to be considered a compatible game controller, or includes a compatible game controller in the box.
StringFEATURE_MIDI
Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device has a full implementation of the android.media.midi.* APIs.

Method

intcheckPermission(String permName, String pkgName)
Check whether a particular package has been granted a particular permission.
intcheckSignatures(String pkg1, String pkg2)
Compare the signatures of two packages to determine if the same signature appears in both of them.
intcheckSignatures(int uid1, int uid2)
Like #checkSignatures(String,String) , but takes UIDs of the two packages to be checked.
voidclearPackagePreferredActivities(String packageName)
Remove all preferred activity mappings, previously added with #addPreferredActivity , from the system whose activities are implemented in the given package name.
voiddeletePackage(String packageName, IPackageDeleteObserver observer, @DeleteFlags int flags)
Attempts to delete a package.
DrawablegetActivityIcon(ComponentName activityName)
Retrieve the icon associated with an activity.
DrawablegetActivityIcon(Intent intent)
Retrieve the icon associated with an Intent.
ActivityInfogetActivityInfo(ComponentName component, @ComponentInfoFlags int flags)
Retrieve all of the information we know about a particular activity class.
DrawablegetActivityLogo(ComponentName activityName)
Retrieve the logo associated with an activity.
DrawablegetActivityLogo(Intent intent)
Retrieve the logo associated with an Intent.
ListgetAllPermissionGroups(@PermissionGroupInfoFlags int flags)
Retrieve all of the known permission groups in the system.
intgetApplicationEnabledSetting(@NonNull String packageName)
Return the enabled setting for an application.
DrawablegetApplicationIcon(ApplicationInfo info)
Retrieve the icon associated with an application.
DrawablegetApplicationIcon(String packageName)
Retrieve the icon associated with an application.
ApplicationInfogetApplicationInfo(String packageName, @ApplicationInfoFlags int flags)
Retrieve all of the information we know about a particular package/application.
CharSequencegetApplicationLabel(ApplicationInfo info)
Return the label to use for this application.
ChangedPackagesgetChangedPackages(@IntRange(from = 0) int sequenceNumber)
Returns the names of the packages that have been changed [eg.
ClassgetClass()
Returns the runtime class of this Object .
intgetComponentEnabledSetting(@NonNull ComponentName componentName)
Return the enabled setting for a package component (activity, receiver, service, provider).
DrawablegetDefaultActivityIcon()
Return the generic icon for an activity that is used when no specific icon is defined.
DrawablegetDrawable(String packageName, @DrawableRes int resid, ApplicationInfo appInfo)
Retrieve an image from a package.
ListgetInstalledApplications(@ApplicationInfoFlags int flags)
Return a List of all application packages that are installed for the current user.
ListgetInstalledPackages(@PackageInfoFlags int flags)
Return a List of all packages that are installed for the current user.
StringgetInstallerPackageName(String packageName)
Retrieve the package name of the application that installed a package.
IntentgetLaunchIntentForPackage(@NonNull String packageName)
Returns a "good" intent to launch a front-door activity in a package.
StringgetNameForUid(int uid)
Retrieve the official name associated with a uid.
PackageInfogetPackageArchiveInfo(String archiveFilePath, @PackageInfoFlags int flags)
Retrieve overall information about an application package defined in a package archive file
PackageInfogetPackageInfo(String packageName, @PackageInfoFlags int flags)
Retrieve overall information about an application package that is installed on the system.
PackageInfogetPackageInfo(VersionedPackage versionedPackage, @PackageInfoFlags int flags)
Retrieve overall information about an application package that is installed on the system.
String[]getPackagesForUid(int uid)
Retrieve the names of all packages that are associated with a particular user id.
PermissionGroupInfogetPermissionGroupInfo(String name, @PermissionGroupInfoFlags int flags)
Retrieve all of the information we know about a particular group of permissions.
PermissionInfogetPermissionInfo(String name, @PermissionInfoFlags int flags)
Retrieve all of the information we know about a particular permission.
intgetPreferredActivities(@NonNull List outFilters, @NonNull List outActivities, String packageName)
Retrieve all preferred activities, previously added with #addPreferredActivity , that are currently registered with the system.
ListgetPreferredPackages(@PackageInfoFlags int flags)
Retrieve the list of all currently configured preferred packages.
ProviderInfogetProviderInfo(ComponentName component, @ComponentInfoFlags int flags)
Retrieve all of the information we know about a particular content provider class.
ResourcesgetResourcesForActivity(ComponentName activityName)
Retrieve the resources associated with an activity.
ResourcesgetResourcesForApplication(ApplicationInfo app)
Retrieve the resources for an application.
ResourcesgetResourcesForApplication(String appPackageName)
Retrieve the resources associated with an application.
ServiceInfogetServiceInfo(ComponentName component, @ComponentInfoFlags int flags)
Retrieve all of the information we know about a particular service class.
FeatureInfo[]getSystemAvailableFeatures()
Get a list of features that are available on the system.
CharSequencegetText(String packageName, @StringRes int resid, ApplicationInfo appInfo)
Retrieve text from a package.
DrawablegetUserBadgedDrawableForDensity(Drawable drawable, UserHandle user, Rect badgeLocation, int badgeDensity)
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.
DrawablegetUserBadgedIcon(Drawable icon, UserHandle user)
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.
booleanhasSystemFeature(String name)
Check whether the given feature name is one of the available features as returned by #getSystemAvailableFeatures() .
ListqueryBroadcastReceivers(Intent intent, @ResolveInfoFlags int flags)
Retrieve all receivers that can handle a broadcast of the given intent.
ListqueryContentProviders(String processName, int uid, @ComponentInfoFlags int flags)
Retrieve content provider information.
ListqueryIntentActivities(Intent intent, @ResolveInfoFlags int flags)
Retrieve all activities that can be performed for the given intent.
ListqueryIntentActivityOptions(@Nullable ComponentName caller, @Nullable Intent[] specifics, Intent intent, @ResolveInfoFlags int flags)
Retrieve a set of activities that should be presented to the user as similar options.
ListqueryIntentContentProviders(Intent intent, @ResolveInfoFlags int flags)
Retrieve all providers that can match the given intent.
ListqueryIntentServices(Intent intent, @ResolveInfoFlags int flags)
Retrieve all services that can match the given intent.
ListqueryPermissionsByGroup(String group, @PermissionInfoFlags int flags)
Query for all of the permissions associated with a particular group.
ResolveInforesolveActivity(Intent intent, @ResolveInfoFlags int flags)
Determine the best action to perform for a given Intent.
ProviderInforesolveContentProvider(String name, @ComponentInfoFlags int flags)
Find a single content provider by its base path name.
ResolveInforesolveService(Intent intent, @ResolveInfoFlags int flags)
Determine the best service to handle for a given Intent.
voidsetApplicationEnabledSetting(@NonNull String packageName, @EnabledState int newState, @EnabledFlags int flags)
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.
voidsetComponentEnabledSetting(@NonNull ComponentName componentName, @EnabledState int newState, @EnabledFlags int flags)
Set the enabled setting for a package component (activity, receiver, service, provider).