Class PackageManager

  • Direct Known Subclasses:
    PackageManagerImpl

    public abstract class PackageManager
    extends Object
    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().
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String ACTION_CLEAN_EXTERNAL_STORAGE
      Action to external storage service to clean out removed apps.
      static String ACTION_REQUEST_PERMISSIONS
      The action used to request that the user approve a permission request from the application.
      static int COMPONENT_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).
      static int COMPONENT_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.
      static int COMPONENT_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.
      static int COMPONENT_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.
      static int COMPONENT_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.
      static int DELETE_ALL_USERS
      Flag parameter for #deletePackage to indicate that you want the package deleted for all users.
      static int DELETE_FAILED_ABORTED
      static int DELETE_FAILED_DEVICE_POLICY_MANAGER
      Deletion failed return code: this is passed to the IPackageDeleteObserver by #deletePackage() if the system failed to delete the package because it is the active DevicePolicy manager.
      static int DELETE_FAILED_INTERNAL_ERROR
      Deletion failed return code: this is passed to the IPackageDeleteObserver by #deletePackage() if the system failed to delete the package for an unspecified reason.
      static int DELETE_FAILED_OWNER_BLOCKED
      Deletion failed return code: this is passed to the IPackageDeleteObserver by #deletePackage() if the system failed to delete the package because a profile or device owner has marked the package as uninstallable.
      static int DELETE_FAILED_USER_RESTRICTED
      Deletion failed return code: this is passed to the IPackageDeleteObserver by #deletePackage() if the system failed to delete the package since the user is restricted.
      static int DELETE_KEEP_DATA
      Flag parameter for #deletePackage to indicate that you don't want to delete the package's data directory.
      static int DELETE_SUCCEEDED
      Return code for when package deletion succeeds.
      static int DELETE_SYSTEM_APP
      Flag parameter for #deletePackage to indicate that, if you are calling uninstall on a system that has been updated, then don't do the normal process of uninstalling the update and rolling back to the older system version (which needs to happen for all users); instead, just mark the app as uninstalled for the current user.
      static int DONT_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.
      static String EXTRA_FAILURE_EXISTING_PACKAGE
      String extra for PackageInstallObserver in the 'extras' Bundle in case of INSTALL_FAILED_DUPLICATE_PERMISSION.
      static String EXTRA_FAILURE_EXISTING_PERMISSION
      String extra for PackageInstallObserver in the 'extras' Bundle in case of INSTALL_FAILED_DUPLICATE_PERMISSION.
      static String EXTRA_INTENT_FILTER_VERIFICATION_HOSTS
      Extra field name for the host names to be used for an intent filter pending verification.
      static String EXTRA_INTENT_FILTER_VERIFICATION_ID
      Extra field name for the ID of a intent filter pending verification.
      static String EXTRA_INTENT_FILTER_VERIFICATION_PACKAGE_NAME
      Extra field name for the package name to be used for an intent filter pending verification.
      static String EXTRA_INTENT_FILTER_VERIFICATION_URI_SCHEME
      Extra field name for the scheme used for an intent filter pending verification.
      static String EXTRA_MOVE_ID
      static String EXTRA_REQUEST_PERMISSIONS_NAMES
      The names of the requested permissions.
      static String EXTRA_REQUEST_PERMISSIONS_RESULTS
      The results from the permissions request.
      static String EXTRA_VERIFICATION_ID
      Extra field name for the ID of a package pending verification.
      static String EXTRA_VERIFICATION_INSTALL_FLAGS
      Extra field name for the requested install flags for a package pending verification.
      static String EXTRA_VERIFICATION_INSTALLER_PACKAGE
      Extra field name for the package identifier which is trying to install the package.
      static String EXTRA_VERIFICATION_INSTALLER_UID
      Extra field name for the uid of who is requesting to install the package.
      static String EXTRA_VERIFICATION_PACKAGE_NAME
      Extra field name for the package name of a package pending verification.
      static String EXTRA_VERIFICATION_RESULT
      Extra field name for the result of a verification, either VERIFICATION_ALLOW, or VERIFICATION_REJECT.
      static String EXTRA_VERIFICATION_URI
      Extra field name for the URI to a verification file.
      static String EXTRA_VERIFICATION_VERSION_CODE
      Extra field name for the version code of a package pending verification.
      static String FEATURE_APP_WIDGETS
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports app widgets.
      static String FEATURE_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.
      static String FEATURE_AUDIO_OUTPUT
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device includes at least one form of audio output, such as speakers, audio jack or streaming over bluetooth
      static String FEATURE_AUDIO_PRO
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device has professional audio level of functionality, performance, and acoustics.
      static String FEATURE_AUTOMOTIVE
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: This is a device dedicated to showing UI on a vehicle headunit.
      static String FEATURE_BACKUP
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device can perform backup and restore operations on installed applications.
      static String FEATURE_BLUETOOTH
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device is capable of communicating with other devices via Bluetooth.
      static String FEATURE_BLUETOOTH_LE
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device is capable of communicating with other devices via Bluetooth Low Energy radio.
      static String FEATURE_CAMERA
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device has a camera facing away from the screen.
      static String FEATURE_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.
      static String FEATURE_CAMERA_AUTOFOCUS
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device's camera supports auto-focus.
      static String FEATURE_CAMERA_CAPABILITY_MANUAL_POST_PROCESSING
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: At least one of the cameras on the device supports the manual post-processing capability level.
      static String FEATURE_CAMERA_CAPABILITY_MANUAL_SENSOR
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: At least one of the cameras on the device supports the manual sensor capability level.
      static String FEATURE_CAMERA_CAPABILITY_RAW
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: At least one of the cameras on the device supports the RAW capability level.
      static String FEATURE_CAMERA_EXTERNAL
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device can support having an external camera connected to it.
      static String FEATURE_CAMERA_FLASH
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device's camera supports flash.
      static String FEATURE_CAMERA_FRONT
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device has a front facing camera.
      static String FEATURE_CAMERA_LEVEL_FULL
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: At least one of the cameras on the device supports the full hardware capability level.
      static String FEATURE_CONNECTION_SERVICE
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The Connection Service API is enabled on the device.
      static String FEATURE_CONSUMER_IR
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device is capable of communicating with consumer IR devices.
      static String FEATURE_DEVICE_ADMIN
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports device policy enforcement via device admins.
      static String FEATURE_ETHERNET
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: This device supports ethernet.
      static String FEATURE_FAKETOUCH
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device does not have a touch screen, but does support touch emulation for basic events.
      static String FEATURE_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.
      static String FEATURE_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.
      static String FEATURE_FINGERPRINT
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device has biometric hardware to detect a fingerprint.
      static String FEATURE_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.
      static String FEATURE_HDMI_CEC
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: This device supports HDMI-CEC.
      static String FEATURE_HIFI_SENSORS
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports high fidelity sensor processing capabilities.
      static String FEATURE_HOME_SCREEN
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports a home screen that is replaceable by third party applications.
      static String FEATURE_INPUT_METHODS
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports adding new input methods implemented with the android.inputmethodservice.InputMethodService API.
      static String FEATURE_LEANBACK
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports leanback UI.
      static String FEATURE_LEANBACK_ONLY
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports only leanback UI.
      static String FEATURE_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.
      static String FEATURE_LIVE_WALLPAPER
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports live wallpapers.
      static String FEATURE_LOCATION
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports one or more methods of reporting current location.
      static String FEATURE_LOCATION_GPS
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device has a Global Positioning System receiver and can report precise location.
      static String FEATURE_LOCATION_NETWORK
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device can report location with coarse accuracy using a network-based geolocation system.
      static String FEATURE_MANAGED_PROFILES  
      static String FEATURE_MANAGED_USERS
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports creating secondary users and managed profiles via DevicePolicyManager.
      static String FEATURE_MICROPHONE
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device can record audio via a microphone.
      static String FEATURE_MIDI
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device has a full implementation of the android.media.midi.* APIs.
      static String FEATURE_NFC
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device can communicate using Near-Field Communications (NFC).
      static String FEATURE_NFC_HCE
      Deprecated. 
      static String FEATURE_NFC_HOST_CARD_EMULATION
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports host- based NFC card emulation.
      static String FEATURE_OPENGLES_EXTENSION_PACK
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports the OpenGL ES Android Extension Pack.
      static String FEATURE_PRINTING
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports printing.
      static String FEATURE_SCREEN_LANDSCAPE
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports landscape orientation screens.
      static String FEATURE_SCREEN_PORTRAIT
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports portrait orientation screens.
      static String FEATURE_SECURELY_REMOVES_USERS
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports secure removal of users.
      static String FEATURE_SENSOR_ACCELEROMETER
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device includes an accelerometer.
      static String FEATURE_SENSOR_AMBIENT_TEMPERATURE
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device includes an ambient temperature sensor.
      static String FEATURE_SENSOR_BAROMETER
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device includes a barometer (air pressure sensor.)
      static String FEATURE_SENSOR_COMPASS
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device includes a magnetometer (compass).
      static String FEATURE_SENSOR_GYROSCOPE
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device includes a gyroscope.
      static String FEATURE_SENSOR_HEART_RATE
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device includes a heart rate monitor.
      static String FEATURE_SENSOR_HEART_RATE_ECG
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The heart rate sensor on this device is an Electrocargiogram.
      static String FEATURE_SENSOR_LIGHT
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device includes a light sensor.
      static String FEATURE_SENSOR_PROXIMITY
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device includes a proximity sensor.
      static String FEATURE_SENSOR_RELATIVE_HUMIDITY
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device includes a relative humidity sensor.
      static String FEATURE_SENSOR_STEP_COUNTER
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device includes a hardware step counter.
      static String FEATURE_SENSOR_STEP_DETECTOR
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device includes a hardware step detector.
      static String FEATURE_SIP
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The SIP API is enabled on the device.
      static String FEATURE_SIP_VOIP
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports SIP-based VOIP.
      static String FEATURE_TELEPHONY
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device has a telephony radio with data communication support.
      static String FEATURE_TELEPHONY_CDMA
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device has a CDMA telephony stack.
      static String FEATURE_TELEPHONY_GSM
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device has a GSM telephony stack.
      static String FEATURE_TELEVISION
      Deprecated.
      use FEATURE_LEANBACK instead.
      static String FEATURE_TOUCHSCREEN
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device's display has a touch screen.
      static String FEATURE_TOUCHSCREEN_MULTITOUCH
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device's touch screen supports multitouch sufficient for basic two-finger gesture detection.
      static String FEATURE_TOUCHSCREEN_MULTITOUCH_DISTINCT
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device's touch screen is capable of tracking two or more fingers fully independently.
      static String FEATURE_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.
      static String FEATURE_USB_ACCESSORY
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports connecting to USB accessories.
      static String FEATURE_USB_HOST
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports connecting to USB devices as the USB host.
      static String FEATURE_VERIFIED_BOOT
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports verified boot.
      static String FEATURE_VOICE_RECOGNIZERS  
      static String FEATURE_WATCH
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: This is a device dedicated to showing UI on a watch.
      static String FEATURE_WEBVIEW
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device has a full implementation of the android.webkit.* APIs.
      static String FEATURE_WIFI
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports WiFi (802.11) networking.
      static String FEATURE_WIFI_DIRECT
      Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports Wi-Fi Direct networking.
      static int FLAG_PERMISSION_GRANTED_BY_DEFAULT
      Permission flag: The permission is granted by default because it enables app functionality that is expected to work out-of-the-box for providing a smooth user experience.
      static int FLAG_PERMISSION_POLICY_FIXED
      Permission flag: The permission is set in its current state by device policy and neither apps nor the user can change its state.
      static int FLAG_PERMISSION_REVOKE_ON_UPGRADE
      Permission flag: The permission is set in a granted state but access to resources it guards is restricted by other means to enable revoking a permission on legacy apps that do not support runtime permissions.
      static int FLAG_PERMISSION_SYSTEM_FIXED
      Permission flag: The permission is set in its current state because the app is a component that is a part of the system.
      static int FLAG_PERMISSION_USER_FIXED
      Permission flag: The permission is set in its current state by the user and it is fixed, i.e. apps can no longer request this permission.
      static int FLAG_PERMISSION_USER_SET
      Permission flag: The permission is set in its current state by the user and apps can still request it at runtime.
      static int GET_ACTIVITIES
      PackageInfo flag: return information about activities in the package in PackageInfo#activities.
      static int GET_CONFIGURATIONS
      PackageInfo flag: return information about hardware preferences in PackageInfo.configPreferences, and requested features in PackageInfo#reqFeatures and PackageInfo#featureGroups.
      static int GET_DISABLED_COMPONENTS
      PackageInfo flag: include disabled components in the returned info.
      static int GET_DISABLED_UNTIL_USED_COMPONENTS
      PackageInfo flag: include disabled components which are in that state only because of COMPONENT_ENABLED_STATE_DISABLED_UNTIL_USED in the returned info.
      static int GET_GIDS
      PackageInfo flag: return the group ids that are associated with an application.
      static int GET_INSTRUMENTATION
      PackageInfo flag: return information about instrumentation in the package in PackageInfo#instrumentation.
      static int GET_INTENT_FILTERS
      PackageInfo flag: return information about the intent filters supported by the activity.
      static int GET_META_DATA
      ComponentInfo flag: return the ComponentInfo#metaData data Bundles that are associated with a component.
      static int GET_PERMISSIONS
      PackageInfo flag: return information about permissions in the package in PackageInfo#permissions.
      static int GET_PROVIDERS
      PackageInfo flag: return information about content providers in the package in PackageInfo#providers.
      static int GET_RECEIVERS
      PackageInfo flag: return information about intent receivers in the package in PackageInfo#receivers.
      static int GET_RESOLVED_FILTER
      ResolveInfo flag: return the IntentFilter that was matched for a particular ResolveInfo in ResolveInfo#filter.
      static int GET_SERVICES
      PackageInfo flag: return information about services in the package in PackageInfo#services.
      static int GET_SHARED_LIBRARY_FILES
      ApplicationInfo flag: return the paths to the shared libraries that are associated with an application.
      static int GET_SIGNATURES
      PackageInfo flag: return information about the signatures included in the package.
      static int GET_UNINSTALLED_PACKAGES
      Flag parameter to retrieve some information about all applications (even uninstalled ones) which have data directories.
      static int GET_URI_PERMISSION_PATTERNS
      ProviderInfo flag: return the URI permission patterns that are associated with a content provider.
      static int INSTALL_ALL_USERS
      Flag parameter for #installPackage to indicate that this install should immediately be visible to all users.
      static int INSTALL_ALLOW_DOWNGRADE
      Flag parameter for #installPackage to indicate that it is okay to install an update to an app where the newly installed app has a lower version code than the currently installed app.
      static int INSTALL_ALLOW_TEST
      Flag parameter for #installPackage to indicate that you want to allow test packages (those that have set android:testOnly in their manifest) to be installed.
      static int INSTALL_EXTERNAL
      Flag parameter for #installPackage to indicate that this package must be installed to an ASEC on a VolumeInfo#TYPE_PUBLIC.
      static int INSTALL_FAILED_ABORTED
      static int INSTALL_FAILED_ALREADY_EXISTS
      Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the package is already installed.
      static int INSTALL_FAILED_CONFLICTING_PROVIDER
      Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package failed because it contains a content provider with the same authority as a provider already installed in the system.
      static int INSTALL_FAILED_CONTAINER_ERROR
      Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if a secure container mount point couldn't be accessed on external media.
      static int INSTALL_FAILED_CPU_ABI_INCOMPATIBLE
      Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the package being installed contains native code, but none that is compatible with the device's CPU_ABI.
      static int INSTALL_FAILED_DEXOPT
      Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package failed while optimizing and validating its dex files, either because there was not enough storage or the validation failed.
      static int INSTALL_FAILED_DUPLICATE_PACKAGE
      Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if a package is already installed with the same name.
      static int INSTALL_FAILED_DUPLICATE_PERMISSION
      Installation failed return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the system failed to install the package because it is attempting to define a permission that is already defined by some existing package.
      static int INSTALL_FAILED_INSUFFICIENT_STORAGE
      Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the package manager service found that the device didn't have enough storage space to install the app.
      static int INSTALL_FAILED_INTERNAL_ERROR
      Installation failed return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the system failed to install the package because of system issues.
      static int INSTALL_FAILED_INVALID_APK
      Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the package archive file is invalid.
      static int INSTALL_FAILED_INVALID_INSTALL_LOCATION
      Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package couldn't be installed in the specified install location.
      static int INSTALL_FAILED_INVALID_URI
      Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the URI passed in is invalid.
      static int INSTALL_FAILED_MEDIA_UNAVAILABLE
      Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package couldn't be installed in the specified install location because the media is not available.
      static int INSTALL_FAILED_MISSING_FEATURE
      Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package uses a feature that is not available.
      static int INSTALL_FAILED_MISSING_SHARED_LIBRARY
      Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package uses a shared library that is not available.
      static int INSTALL_FAILED_NEWER_SDK
      Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package failed because the current SDK version is newer than that required by the package.
      static int INSTALL_FAILED_NO_MATCHING_ABIS
      Installation failed return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the system failed to install the package because its packaged native code did not match any of the ABIs supported by the system.
      static int INSTALL_FAILED_NO_SHARED_USER
      Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the requested shared user does not exist.
      static int INSTALL_FAILED_OLDER_SDK
      Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package failed because the current SDK version is older than that required by the package.
      static int INSTALL_FAILED_PACKAGE_CHANGED
      Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the package changed from what the calling program expected.
      static int INSTALL_FAILED_PERMISSION_MODEL_DOWNGRADE
      Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the old package has target SDK high enough to support runtime permission and the new package has target SDK low enough to not support runtime permissions.
      static int INSTALL_FAILED_REPLACE_COULDNT_DELETE
      Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package uses a shared library that is not available.
      static int INSTALL_FAILED_SHARED_USER_INCOMPATIBLE
      Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package is requested a shared user which is already installed on the device and does not have matching signature.
      static int INSTALL_FAILED_TEST_ONLY
      Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package failed because it has specified that it is a test-only package and the caller has not supplied the INSTALL_ALLOW_TEST flag.
      static int INSTALL_FAILED_UID_CHANGED
      Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package is assigned a different UID than it previously held.
      static int INSTALL_FAILED_UPDATE_INCOMPATIBLE
      Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if a previously installed package of the same name has a different signature than the new package (and the old package's data was not removed).
      static int INSTALL_FAILED_USER_RESTRICTED
      Installation failed return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the system failed to install the package because the user is restricted from installing apps.
      static int INSTALL_FAILED_VERIFICATION_FAILURE
      Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package couldn't be installed because the verification did not succeed.
      static int INSTALL_FAILED_VERIFICATION_TIMEOUT
      Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package couldn't be installed because the verification timed out.
      static int INSTALL_FAILED_VERSION_DOWNGRADE
      Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package has an older version code than the currently installed package.
      static int INSTALL_FORCE_VOLUME_UUID
      static int INSTALL_FORWARD_LOCK
      Flag parameter for #installPackage(android.net.Uri, IPackageInstallObserver, int) to indicate that this package should be installed as forward locked, i.e. only the app itself should have access to its code and non-resource assets.
      static int INSTALL_FROM_ADB
      Flag parameter for #installPackage to indicate that this install was initiated via ADB.
      static int INSTALL_GRANT_RUNTIME_PERMISSIONS
      Flag parameter for #installPackage to indicate that all runtime permissions should be granted to the package.
      static int INSTALL_INTERNAL
      Flag parameter for #installPackage to indicate that this package must be installed to internal storage.
      static int INSTALL_PARSE_FAILED_BAD_MANIFEST
      Installation parse return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the parser was unable to retrieve the AndroidManifest.xml file.
      static int INSTALL_PARSE_FAILED_BAD_PACKAGE_NAME
      Installation parse return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the parser encountered a bad or missing package name in the manifest.
      static int INSTALL_PARSE_FAILED_BAD_SHARED_USER_ID
      Installation parse return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the parser encountered a bad shared user id name in the manifest.
      static int INSTALL_PARSE_FAILED_CERTIFICATE_ENCODING
      Installation parse return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the parser encountered a CertificateEncodingException in one of the files in the .apk.
      static int INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES
      Installation parse return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the parser found inconsistent certificates on the files in the .apk.
      static int INSTALL_PARSE_FAILED_MANIFEST_EMPTY
      Installation parse return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the parser did not find any actionable tags (instrumentation or application) in the manifest.
      static int INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
      Installation parse return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the parser encountered some structural problem in the manifest.
      static int INSTALL_PARSE_FAILED_NO_CERTIFICATES
      Installation parse return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the parser did not find any certificates in the .apk.
      static int INSTALL_PARSE_FAILED_NOT_APK
      Installation parse return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the parser was given a path that is not a file, or does not end with the expected '.apk' extension.
      static int INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION
      Installation parse return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the parser encountered an unexpected exception.
      static int INSTALL_REPLACE_EXISTING
      Flag parameter for #installPackage to indicate that you want to replace an already installed package, if one exists.
      static int INSTALL_SUCCEEDED
      Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) on success.
      static int INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS
      Used as the status argument for PackageManager#updateIntentVerificationStatus to indicate that the User will never be prompted the Intent Disambiguation Dialog if there are two or more resolution of the Intent.
      static int INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS_ASK
      Used as the status argument for PackageManager#updateIntentVerificationStatus to indicate that this app should always be considered as an ambiguous candidate for handling the matching Intent even if there are other candidate apps in the "always" state.
      static int INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ASK
      Used as the status argument for PackageManager#updateIntentVerificationStatus to indicate that the User will always be prompted the Intent Disambiguation Dialog if there are two or more Intent resolved for the IntentFilter's domain(s).
      static int INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_NEVER
      Used as the status argument for PackageManager#updateIntentVerificationStatus to indicate that the User may be prompted the Intent Disambiguation Dialog if there are two or more Intent resolved.
      static int INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_UNDEFINED
      Internal status code to indicate that an IntentFilter verification result is not specified.
      static int INTENT_FILTER_VERIFICATION_FAILURE
      Used as the verificationCode argument for PackageManager#verifyIntentFilter to indicate that the calling IntentFilter Verifier confirms that the IntentFilter is NOT verified.
      static int INTENT_FILTER_VERIFICATION_SUCCESS
      Used as the verificationCode argument for PackageManager#verifyIntentFilter to indicate that the calling IntentFilter Verifier confirms that the IntentFilter is verified.
      static int MASK_PERMISSION_FLAGS
      Mask for all permission flags.
      static int MATCH_ALL
      Querying flag: if set and if the platform is doing any filtering of the results, then the filtering will not happen.
      static int MATCH_DEFAULT_ONLY
      Resolution and querying flag: if set, only filters that support the android.content.Intent#CATEGORY_DEFAULT will be considered for matching.
      static long MAXIMUM_VERIFICATION_TIMEOUT
      Can be used as the millisecondsToDelay argument for PackageManager#extendVerificationTimeout.
      static int MOVE_EXTERNAL_MEDIA
      Deprecated.
      static int MOVE_FAILED_DOESNT_EXIST
      Error code that is passed to the IPackageMoveObserver by #movePackage(android.net.Uri, IPackageMoveObserver) if the specified package doesn't exist.
      static int MOVE_FAILED_FORWARD_LOCKED
      Error code that is passed to the IPackageMoveObserver by #movePackage(android.net.Uri, IPackageMoveObserver) if the specified package cannot be moved since its forward locked.
      static int MOVE_FAILED_INSUFFICIENT_STORAGE
      Error code that is passed to the IPackageMoveObserver by #movePackage(android.net.Uri, IPackageMoveObserver) when the package hasn't been successfully moved by the system because of insufficient memory on specified media.
      static int MOVE_FAILED_INTERNAL_ERROR
      Error code that is passed to the IPackageMoveObserver by #movePackage(android.net.Uri, IPackageMoveObserver) if the specified package cannot be moved to the specified location.
      static int MOVE_FAILED_INVALID_LOCATION
      Error code that is passed to the IPackageMoveObserver by #movePackage(android.net.Uri, IPackageMoveObserver) if the specified package cannot be moved to the specified location.
      static int MOVE_FAILED_OPERATION_PENDING
      Error code that is passed to the IPackageMoveObserver by #movePackage(android.net.Uri, IPackageMoveObserver) if the specified package already has an operation pending in the PackageHandler queue.
      static int MOVE_FAILED_SYSTEM_PACKAGE
      Error code that is passed to the IPackageMoveObserver by #movePackage(android.net.Uri, IPackageMoveObserver) if the specified package cannot be moved since its a system package.
      static int MOVE_INTERNAL
      Deprecated.
      static int MOVE_SUCCEEDED
      Return code that is passed to the IPackageMoveObserver by #movePackage(android.net.Uri, IPackageMoveObserver) when the package has been successfully moved by the system.
      static int NO_NATIVE_LIBRARIES
      Internal return code for NativeLibraryHelper methods to indicate that the package being processed did not contain any native code.
      static int PERMISSION_DENIED
      Permission check result: this is returned by #checkPermission if the permission has not been granted to the given package.
      static int PERMISSION_GRANTED
      Permission check result: this is returned by #checkPermission if the permission has been granted to the given package.
      static int SIGNATURE_FIRST_NOT_SIGNED
      Signature check result: this is returned by #checkSignatures if the first package is not signed but the second is.
      static int SIGNATURE_MATCH
      Signature check result: this is returned by #checkSignatures if all signatures on the two packages match.
      static int SIGNATURE_NEITHER_SIGNED
      Signature check result: this is returned by #checkSignatures if neither of the two packages is signed.
      static int SIGNATURE_NO_MATCH
      Signature check result: this is returned by #checkSignatures if not all signatures on both packages match.
      static int SIGNATURE_SECOND_NOT_SIGNED
      Signature check result: this is returned by #checkSignatures if the second package is not signed but the first is.
      static int SIGNATURE_UNKNOWN_PACKAGE
      Signature check result: this is returned by #checkSignatures if either of the packages are not valid.
      static int SKIP_CURRENT_PROFILE
      Flag for addCrossProfileIntentFilter: if this flag is set: when resolving an intent that matches the CrossProfileIntentFilter, the current profile will be skipped.
      static int VERIFICATION_ALLOW
      Used as the verificationCode argument for PackageManager#verifyPendingInstall to indicate that the calling package verifier allows the installation to proceed.
      static int VERIFICATION_ALLOW_WITHOUT_SUFFICIENT
      Usable by the required verifier as the verificationCode argument for PackageManager#verifyPendingInstall to indicate that it will allow the installation to proceed without any of the optional verifiers needing to vote.
      static int VERIFICATION_REJECT
      Used as the verificationCode argument for PackageManager#verifyPendingInstall to indicate the calling package verifier does not vote to allow the installation to proceed.
    • Constructor Summary

      Constructors 
      Constructor Description
      PackageManager()  
    • Field Detail

      • GET_ACTIVITIES

        public static final int GET_ACTIVITIES
        PackageInfo flag: return information about activities in the package in PackageInfo#activities.
        See Also:
        Constant Field Values
      • GET_RECEIVERS

        public static final int GET_RECEIVERS
        PackageInfo flag: return information about intent receivers in the package in PackageInfo#receivers.
        See Also:
        Constant Field Values
      • GET_SERVICES

        public static final int GET_SERVICES
        PackageInfo flag: return information about services in the package in PackageInfo#services.
        See Also:
        Constant Field Values
      • GET_PROVIDERS

        public static final int GET_PROVIDERS
        PackageInfo flag: return information about content providers in the package in PackageInfo#providers.
        See Also:
        Constant Field Values
      • GET_INSTRUMENTATION

        public static final int GET_INSTRUMENTATION
        PackageInfo flag: return information about instrumentation in the package in PackageInfo#instrumentation.
        See Also:
        Constant Field Values
      • GET_INTENT_FILTERS

        public static final int GET_INTENT_FILTERS
        PackageInfo flag: return information about the intent filters supported by the activity.
        See Also:
        Constant Field Values
      • GET_SIGNATURES

        public static final int GET_SIGNATURES
        PackageInfo flag: return information about the signatures included in the package.
        See Also:
        Constant Field Values
      • GET_RESOLVED_FILTER

        public static final int GET_RESOLVED_FILTER
        ResolveInfo flag: return the IntentFilter that was matched for a particular ResolveInfo in ResolveInfo#filter.
        See Also:
        Constant Field Values
      • GET_META_DATA

        public static final int GET_META_DATA
        ComponentInfo flag: return the ComponentInfo#metaData data Bundles that are associated with a component. This applies for any API returning a ComponentInfo subclass.
        See Also:
        Constant Field Values
      • GET_GIDS

        public static final int GET_GIDS
        PackageInfo flag: return the group ids that are associated with an application. This applies for any API returning a PackageInfo class, either directly or nested inside of another.
        See Also:
        Constant Field Values
      • GET_DISABLED_COMPONENTS

        public static final int GET_DISABLED_COMPONENTS
        PackageInfo flag: include disabled components in the returned info.
        See Also:
        Constant Field Values
      • GET_SHARED_LIBRARY_FILES

        public static final int GET_SHARED_LIBRARY_FILES
        ApplicationInfo flag: return the paths to the shared libraries that are associated with an application. This applies for any API returning an ApplicationInfo class, either directly or nested inside of another.
        See Also:
        Constant Field Values
      • GET_URI_PERMISSION_PATTERNS

        public static final int GET_URI_PERMISSION_PATTERNS
        ProviderInfo flag: return the URI permission patterns that are associated with a content provider. This applies for any API returning a ProviderInfo class, either directly or nested inside of another.
        See Also:
        Constant Field Values
      • GET_PERMISSIONS

        public static final int GET_PERMISSIONS
        PackageInfo flag: return information about permissions in the package in PackageInfo#permissions.
        See Also:
        Constant Field Values
      • GET_UNINSTALLED_PACKAGES

        public static final int GET_UNINSTALLED_PACKAGES
        Flag parameter to retrieve some information about all applications (even uninstalled ones) which have data directories. This state could have resulted if applications have been deleted with flag DONT_DELETE_DATA with a possibility of being replaced or reinstalled in future.

        Note: this flag may cause less information about currently installed applications to be returned.

        See Also:
        Constant Field Values
      • GET_CONFIGURATIONS

        public static final int GET_CONFIGURATIONS
        PackageInfo flag: return information about hardware preferences in PackageInfo.configPreferences, and requested features in PackageInfo#reqFeatures and PackageInfo#featureGroups.
        See Also:
        Constant Field Values
      • GET_DISABLED_UNTIL_USED_COMPONENTS

        public static final int GET_DISABLED_UNTIL_USED_COMPONENTS
        PackageInfo flag: include disabled components which are in that state only because of COMPONENT_ENABLED_STATE_DISABLED_UNTIL_USED in the returned info. Note that if you set this flag, applications that are in this disabled state will be reported as enabled.
        See Also:
        Constant Field Values
      • MATCH_DEFAULT_ONLY

        public static final int MATCH_DEFAULT_ONLY
        Resolution and querying flag: if set, only filters that support the android.content.Intent#CATEGORY_DEFAULT will be considered for matching. This is a synonym for including the CATEGORY_DEFAULT in your supplied Intent.
        See Also:
        Constant Field Values
      • MATCH_ALL

        public static final int MATCH_ALL
        Querying flag: if set and if the platform is doing any filtering of the results, then the filtering will not happen. This is a synonym for saying that all results should be returned.
        See Also:
        Constant Field Values
      • SKIP_CURRENT_PROFILE

        public static final int SKIP_CURRENT_PROFILE
        Flag for addCrossProfileIntentFilter: if this flag is set: when resolving an intent that matches the CrossProfileIntentFilter, the current profile will be skipped. Only activities in the target user can respond to the intent.
        See Also:
        Constant Field Values
      • PERMISSION_GRANTED

        public static final int PERMISSION_GRANTED
        Permission check result: this is returned by #checkPermission if the permission has been granted to the given package.
        See Also:
        Constant Field Values
      • PERMISSION_DENIED

        public static final int PERMISSION_DENIED
        Permission check result: this is returned by #checkPermission if the permission has not been granted to the given package.
        See Also:
        Constant Field Values
      • SIGNATURE_MATCH

        public static final int SIGNATURE_MATCH
        Signature check result: this is returned by #checkSignatures if all signatures on the two packages match.
        See Also:
        Constant Field Values
      • SIGNATURE_NEITHER_SIGNED

        public static final int SIGNATURE_NEITHER_SIGNED
        Signature check result: this is returned by #checkSignatures if neither of the two packages is signed.
        See Also:
        Constant Field Values
      • SIGNATURE_FIRST_NOT_SIGNED

        public static final int SIGNATURE_FIRST_NOT_SIGNED
        Signature check result: this is returned by #checkSignatures if the first package is not signed but the second is.
        See Also:
        Constant Field Values
      • SIGNATURE_SECOND_NOT_SIGNED

        public static final int SIGNATURE_SECOND_NOT_SIGNED
        Signature check result: this is returned by #checkSignatures if the second package is not signed but the first is.
        See Also:
        Constant Field Values
      • SIGNATURE_NO_MATCH

        public static final int SIGNATURE_NO_MATCH
        Signature check result: this is returned by #checkSignatures if not all signatures on both packages match.
        See Also:
        Constant Field Values
      • SIGNATURE_UNKNOWN_PACKAGE

        public static final int SIGNATURE_UNKNOWN_PACKAGE
        Signature check result: this is returned by #checkSignatures if either of the packages are not valid.
        See Also:
        Constant Field Values
      • COMPONENT_ENABLED_STATE_DEFAULT

        public static final int COMPONENT_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).
        See Also:
        Constant Field Values
      • COMPONENT_ENABLED_STATE_ENABLED

        public static final int COMPONENT_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.
        See Also:
        Constant Field Values
      • COMPONENT_ENABLED_STATE_DISABLED

        public static final int COMPONENT_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.
        See Also:
        Constant Field Values
      • COMPONENT_ENABLED_STATE_DISABLED_USER

        public static final int COMPONENT_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. Because this is due to the user's request, they may re-enable it if desired through the appropriate system UI. This option currently cannot be used with #setComponentEnabledSetting(ComponentName, int, int).
        See Also:
        Constant Field Values
      • COMPONENT_ENABLED_STATE_DISABLED_UNTIL_USED

        public static final int COMPONENT_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. This means that it will not normally show up to the user (such as in the launcher), but various parts of the user interface can use GET_DISABLED_UNTIL_USED_COMPONENTS to still see it and allow the user to select it (as for example an IME, device admin, etc). Such code, once the user has selected the app, should at that point also make it enabled. This option currently can not be used with #setComponentEnabledSetting(ComponentName, int, int).
        See Also:
        Constant Field Values
      • INSTALL_FORWARD_LOCK

        public static final int INSTALL_FORWARD_LOCK
        Flag parameter for #installPackage(android.net.Uri, IPackageInstallObserver, int) to indicate that this package should be installed as forward locked, i.e. only the app itself should have access to its code and non-resource assets.
        See Also:
        Constant Field Values
      • INSTALL_REPLACE_EXISTING

        public static final int INSTALL_REPLACE_EXISTING
        Flag parameter for #installPackage to indicate that you want to replace an already installed package, if one exists.
        See Also:
        Constant Field Values
      • INSTALL_ALLOW_TEST

        public static final int INSTALL_ALLOW_TEST
        Flag parameter for #installPackage to indicate that you want to allow test packages (those that have set android:testOnly in their manifest) to be installed.
        See Also:
        Constant Field Values
      • INSTALL_EXTERNAL

        public static final int INSTALL_EXTERNAL
        Flag parameter for #installPackage to indicate that this package must be installed to an ASEC on a VolumeInfo#TYPE_PUBLIC.
        See Also:
        Constant Field Values
      • INSTALL_INTERNAL

        public static final int INSTALL_INTERNAL
        Flag parameter for #installPackage to indicate that this package must be installed to internal storage.
        See Also:
        Constant Field Values
      • INSTALL_FROM_ADB

        public static final int INSTALL_FROM_ADB
        Flag parameter for #installPackage to indicate that this install was initiated via ADB.
        See Also:
        Constant Field Values
      • INSTALL_ALL_USERS

        public static final int INSTALL_ALL_USERS
        Flag parameter for #installPackage to indicate that this install should immediately be visible to all users.
        See Also:
        Constant Field Values
      • INSTALL_ALLOW_DOWNGRADE

        public static final int INSTALL_ALLOW_DOWNGRADE
        Flag parameter for #installPackage to indicate that it is okay to install an update to an app where the newly installed app has a lower version code than the currently installed app.
        See Also:
        Constant Field Values
      • INSTALL_GRANT_RUNTIME_PERMISSIONS

        public static final int INSTALL_GRANT_RUNTIME_PERMISSIONS
        Flag parameter for #installPackage to indicate that all runtime permissions should be granted to the package. If INSTALL_ALL_USERS is set the runtime permissions will be granted to all users, otherwise only to the owner.
        See Also:
        Constant Field Values
      • INSTALL_FORCE_VOLUME_UUID

        public static final int INSTALL_FORCE_VOLUME_UUID
        See Also:
        Constant Field Values
      • DONT_KILL_APP

        public static final int DONT_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. Be careful when you set this since changing component states can make the containing application's behavior unpredictable.
        See Also:
        Constant Field Values
      • INSTALL_SUCCEEDED

        public static final int INSTALL_SUCCEEDED
        Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) on success.
        See Also:
        Constant Field Values
      • INSTALL_FAILED_ALREADY_EXISTS

        public static final int INSTALL_FAILED_ALREADY_EXISTS
        Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the package is already installed.
        See Also:
        Constant Field Values
      • INSTALL_FAILED_INVALID_APK

        public static final int INSTALL_FAILED_INVALID_APK
        Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the package archive file is invalid.
        See Also:
        Constant Field Values
      • INSTALL_FAILED_INVALID_URI

        public static final int INSTALL_FAILED_INVALID_URI
        Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the URI passed in is invalid.
        See Also:
        Constant Field Values
      • INSTALL_FAILED_INSUFFICIENT_STORAGE

        public static final int INSTALL_FAILED_INSUFFICIENT_STORAGE
        Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the package manager service found that the device didn't have enough storage space to install the app.
        See Also:
        Constant Field Values
      • INSTALL_FAILED_DUPLICATE_PACKAGE

        public static final int INSTALL_FAILED_DUPLICATE_PACKAGE
        Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if a package is already installed with the same name.
        See Also:
        Constant Field Values
      • INSTALL_FAILED_NO_SHARED_USER

        public static final int INSTALL_FAILED_NO_SHARED_USER
        Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the requested shared user does not exist.
        See Also:
        Constant Field Values
      • INSTALL_FAILED_UPDATE_INCOMPATIBLE

        public static final int INSTALL_FAILED_UPDATE_INCOMPATIBLE
        Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if a previously installed package of the same name has a different signature than the new package (and the old package's data was not removed).
        See Also:
        Constant Field Values
      • INSTALL_FAILED_SHARED_USER_INCOMPATIBLE

        public static final int INSTALL_FAILED_SHARED_USER_INCOMPATIBLE
        Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package is requested a shared user which is already installed on the device and does not have matching signature.
        See Also:
        Constant Field Values
      • INSTALL_FAILED_MISSING_SHARED_LIBRARY

        public static final int INSTALL_FAILED_MISSING_SHARED_LIBRARY
        Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package uses a shared library that is not available.
        See Also:
        Constant Field Values
      • INSTALL_FAILED_REPLACE_COULDNT_DELETE

        public static final int INSTALL_FAILED_REPLACE_COULDNT_DELETE
        Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package uses a shared library that is not available.
        See Also:
        Constant Field Values
      • INSTALL_FAILED_DEXOPT

        public static final int INSTALL_FAILED_DEXOPT
        Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package failed while optimizing and validating its dex files, either because there was not enough storage or the validation failed.
        See Also:
        Constant Field Values
      • INSTALL_FAILED_OLDER_SDK

        public static final int INSTALL_FAILED_OLDER_SDK
        Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package failed because the current SDK version is older than that required by the package.
        See Also:
        Constant Field Values
      • INSTALL_FAILED_CONFLICTING_PROVIDER

        public static final int INSTALL_FAILED_CONFLICTING_PROVIDER
        Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package failed because it contains a content provider with the same authority as a provider already installed in the system.
        See Also:
        Constant Field Values
      • INSTALL_FAILED_NEWER_SDK

        public static final int INSTALL_FAILED_NEWER_SDK
        Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package failed because the current SDK version is newer than that required by the package.
        See Also:
        Constant Field Values
      • INSTALL_FAILED_TEST_ONLY

        public static final int INSTALL_FAILED_TEST_ONLY
        Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package failed because it has specified that it is a test-only package and the caller has not supplied the INSTALL_ALLOW_TEST flag.
        See Also:
        Constant Field Values
      • INSTALL_FAILED_CPU_ABI_INCOMPATIBLE

        public static final int INSTALL_FAILED_CPU_ABI_INCOMPATIBLE
        Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the package being installed contains native code, but none that is compatible with the device's CPU_ABI.
        See Also:
        Constant Field Values
      • INSTALL_FAILED_MISSING_FEATURE

        public static final int INSTALL_FAILED_MISSING_FEATURE
        Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package uses a feature that is not available.
        See Also:
        Constant Field Values
      • INSTALL_FAILED_CONTAINER_ERROR

        public static final int INSTALL_FAILED_CONTAINER_ERROR
        Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if a secure container mount point couldn't be accessed on external media.
        See Also:
        Constant Field Values
      • INSTALL_FAILED_INVALID_INSTALL_LOCATION

        public static final int INSTALL_FAILED_INVALID_INSTALL_LOCATION
        Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package couldn't be installed in the specified install location.
        See Also:
        Constant Field Values
      • INSTALL_FAILED_MEDIA_UNAVAILABLE

        public static final int INSTALL_FAILED_MEDIA_UNAVAILABLE
        Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package couldn't be installed in the specified install location because the media is not available.
        See Also:
        Constant Field Values
      • INSTALL_FAILED_VERIFICATION_TIMEOUT

        public static final int INSTALL_FAILED_VERIFICATION_TIMEOUT
        Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package couldn't be installed because the verification timed out.
        See Also:
        Constant Field Values
      • INSTALL_FAILED_VERIFICATION_FAILURE

        public static final int INSTALL_FAILED_VERIFICATION_FAILURE
        Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package couldn't be installed because the verification did not succeed.
        See Also:
        Constant Field Values
      • INSTALL_FAILED_PACKAGE_CHANGED

        public static final int INSTALL_FAILED_PACKAGE_CHANGED
        Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the package changed from what the calling program expected.
        See Also:
        Constant Field Values
      • INSTALL_FAILED_UID_CHANGED

        public static final int INSTALL_FAILED_UID_CHANGED
        Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package is assigned a different UID than it previously held.
        See Also:
        Constant Field Values
      • INSTALL_FAILED_VERSION_DOWNGRADE

        public static final int INSTALL_FAILED_VERSION_DOWNGRADE
        Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package has an older version code than the currently installed package.
        See Also:
        Constant Field Values
      • INSTALL_FAILED_PERMISSION_MODEL_DOWNGRADE

        public static final int INSTALL_FAILED_PERMISSION_MODEL_DOWNGRADE
        Installation return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the old package has target SDK high enough to support runtime permission and the new package has target SDK low enough to not support runtime permissions.
        See Also:
        Constant Field Values
      • INSTALL_PARSE_FAILED_NOT_APK

        public static final int INSTALL_PARSE_FAILED_NOT_APK
        Installation parse return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the parser was given a path that is not a file, or does not end with the expected '.apk' extension.
        See Also:
        Constant Field Values
      • INSTALL_PARSE_FAILED_BAD_MANIFEST

        public static final int INSTALL_PARSE_FAILED_BAD_MANIFEST
        Installation parse return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the parser was unable to retrieve the AndroidManifest.xml file.
        See Also:
        Constant Field Values
      • INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION

        public static final int INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION
        Installation parse return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the parser encountered an unexpected exception.
        See Also:
        Constant Field Values
      • INSTALL_PARSE_FAILED_NO_CERTIFICATES

        public static final int INSTALL_PARSE_FAILED_NO_CERTIFICATES
        Installation parse return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the parser did not find any certificates in the .apk.
        See Also:
        Constant Field Values
      • INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES

        public static final int INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES
        Installation parse return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the parser found inconsistent certificates on the files in the .apk.
        See Also:
        Constant Field Values
      • INSTALL_PARSE_FAILED_CERTIFICATE_ENCODING

        public static final int INSTALL_PARSE_FAILED_CERTIFICATE_ENCODING
        Installation parse return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the parser encountered a CertificateEncodingException in one of the files in the .apk.
        See Also:
        Constant Field Values
      • INSTALL_PARSE_FAILED_BAD_PACKAGE_NAME

        public static final int INSTALL_PARSE_FAILED_BAD_PACKAGE_NAME
        Installation parse return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the parser encountered a bad or missing package name in the manifest.
        See Also:
        Constant Field Values
      • INSTALL_PARSE_FAILED_BAD_SHARED_USER_ID

        public static final int INSTALL_PARSE_FAILED_BAD_SHARED_USER_ID
        Installation parse return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the parser encountered a bad shared user id name in the manifest.
        See Also:
        Constant Field Values
      • INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

        public static final int INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
        Installation parse return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the parser encountered some structural problem in the manifest.
        See Also:
        Constant Field Values
      • INSTALL_PARSE_FAILED_MANIFEST_EMPTY

        public static final int INSTALL_PARSE_FAILED_MANIFEST_EMPTY
        Installation parse return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the parser did not find any actionable tags (instrumentation or application) in the manifest.
        See Also:
        Constant Field Values
      • INSTALL_FAILED_INTERNAL_ERROR

        public static final int INSTALL_FAILED_INTERNAL_ERROR
        Installation failed return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the system failed to install the package because of system issues.
        See Also:
        Constant Field Values
      • INSTALL_FAILED_USER_RESTRICTED

        public static final int INSTALL_FAILED_USER_RESTRICTED
        Installation failed return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the system failed to install the package because the user is restricted from installing apps.
        See Also:
        Constant Field Values
      • INSTALL_FAILED_DUPLICATE_PERMISSION

        public static final int INSTALL_FAILED_DUPLICATE_PERMISSION
        Installation failed return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the system failed to install the package because it is attempting to define a permission that is already defined by some existing package.

        The package name of the app which has already defined the permission is passed to a PackageInstallObserver, if any, as the #EXTRA_EXISTING_PACKAGE string extra; and the name of the permission being redefined is passed in the #EXTRA_EXISTING_PERMISSION string extra.

        See Also:
        Constant Field Values
      • INSTALL_FAILED_NO_MATCHING_ABIS

        public static final int INSTALL_FAILED_NO_MATCHING_ABIS
        Installation failed return code: this is passed to the IPackageInstallObserver by #installPackage(android.net.Uri, IPackageInstallObserver, int) if the system failed to install the package because its packaged native code did not match any of the ABIs supported by the system.
        See Also:
        Constant Field Values
      • NO_NATIVE_LIBRARIES

        public static final int NO_NATIVE_LIBRARIES
        Internal return code for NativeLibraryHelper methods to indicate that the package being processed did not contain any native code. This is placed here only so that it can belong to the same value space as the other install failure codes.
        See Also:
        Constant Field Values
      • DELETE_KEEP_DATA

        public static final int DELETE_KEEP_DATA
        Flag parameter for #deletePackage to indicate that you don't want to delete the package's data directory.
        See Also:
        Constant Field Values
      • DELETE_ALL_USERS

        public static final int DELETE_ALL_USERS
        Flag parameter for #deletePackage to indicate that you want the package deleted for all users.
        See Also:
        Constant Field Values
      • DELETE_SYSTEM_APP

        public static final int DELETE_SYSTEM_APP
        Flag parameter for #deletePackage to indicate that, if you are calling uninstall on a system that has been updated, then don't do the normal process of uninstalling the update and rolling back to the older system version (which needs to happen for all users); instead, just mark the app as uninstalled for the current user.
        See Also:
        Constant Field Values
      • DELETE_SUCCEEDED

        public static final int DELETE_SUCCEEDED
        Return code for when package deletion succeeds. This is passed to the IPackageDeleteObserver by #deletePackage() if the system succeeded in deleting the package.
        See Also:
        Constant Field Values
      • DELETE_FAILED_INTERNAL_ERROR

        public static final int DELETE_FAILED_INTERNAL_ERROR
        Deletion failed return code: this is passed to the IPackageDeleteObserver by #deletePackage() if the system failed to delete the package for an unspecified reason.
        See Also:
        Constant Field Values
      • DELETE_FAILED_DEVICE_POLICY_MANAGER

        public static final int DELETE_FAILED_DEVICE_POLICY_MANAGER
        Deletion failed return code: this is passed to the IPackageDeleteObserver by #deletePackage() if the system failed to delete the package because it is the active DevicePolicy manager.
        See Also:
        Constant Field Values
      • DELETE_FAILED_USER_RESTRICTED

        public static final int DELETE_FAILED_USER_RESTRICTED
        Deletion failed return code: this is passed to the IPackageDeleteObserver by #deletePackage() if the system failed to delete the package since the user is restricted.
        See Also:
        Constant Field Values
      • DELETE_FAILED_OWNER_BLOCKED

        public static final int DELETE_FAILED_OWNER_BLOCKED
        Deletion failed return code: this is passed to the IPackageDeleteObserver by #deletePackage() if the system failed to delete the package because a profile or device owner has marked the package as uninstallable.
        See Also:
        Constant Field Values
      • MOVE_SUCCEEDED

        public static final int MOVE_SUCCEEDED
        Return code that is passed to the IPackageMoveObserver by #movePackage(android.net.Uri, IPackageMoveObserver) when the package has been successfully moved by the system.
        See Also:
        Constant Field Values
      • MOVE_FAILED_INSUFFICIENT_STORAGE

        public static final int MOVE_FAILED_INSUFFICIENT_STORAGE
        Error code that is passed to the IPackageMoveObserver by #movePackage(android.net.Uri, IPackageMoveObserver) when the package hasn't been successfully moved by the system because of insufficient memory on specified media.
        See Also:
        Constant Field Values
      • MOVE_FAILED_DOESNT_EXIST

        public static final int MOVE_FAILED_DOESNT_EXIST
        Error code that is passed to the IPackageMoveObserver by #movePackage(android.net.Uri, IPackageMoveObserver) if the specified package doesn't exist.
        See Also:
        Constant Field Values
      • MOVE_FAILED_SYSTEM_PACKAGE

        public static final int MOVE_FAILED_SYSTEM_PACKAGE
        Error code that is passed to the IPackageMoveObserver by #movePackage(android.net.Uri, IPackageMoveObserver) if the specified package cannot be moved since its a system package.
        See Also:
        Constant Field Values
      • MOVE_FAILED_FORWARD_LOCKED

        public static final int MOVE_FAILED_FORWARD_LOCKED
        Error code that is passed to the IPackageMoveObserver by #movePackage(android.net.Uri, IPackageMoveObserver) if the specified package cannot be moved since its forward locked.
        See Also:
        Constant Field Values
      • MOVE_FAILED_INVALID_LOCATION

        public static final int MOVE_FAILED_INVALID_LOCATION
        Error code that is passed to the IPackageMoveObserver by #movePackage(android.net.Uri, IPackageMoveObserver) if the specified package cannot be moved to the specified location.
        See Also:
        Constant Field Values
      • MOVE_FAILED_INTERNAL_ERROR

        public static final int MOVE_FAILED_INTERNAL_ERROR
        Error code that is passed to the IPackageMoveObserver by #movePackage(android.net.Uri, IPackageMoveObserver) if the specified package cannot be moved to the specified location.
        See Also:
        Constant Field Values
      • MOVE_FAILED_OPERATION_PENDING

        public static final int MOVE_FAILED_OPERATION_PENDING
        Error code that is passed to the IPackageMoveObserver by #movePackage(android.net.Uri, IPackageMoveObserver) if the specified package already has an operation pending in the PackageHandler queue.
        See Also:
        Constant Field Values
      • MOVE_INTERNAL

        @Deprecated
        public static final int MOVE_INTERNAL
        Deprecated.
        Flag parameter for #movePackage to indicate that the package should be moved to internal storage if its been installed on external media.
        See Also:
        Constant Field Values
      • MOVE_EXTERNAL_MEDIA

        @Deprecated
        public static final int MOVE_EXTERNAL_MEDIA
        Deprecated.
        Flag parameter for #movePackage to indicate that the package should be moved to external media.
        See Also:
        Constant Field Values
      • VERIFICATION_ALLOW_WITHOUT_SUFFICIENT

        public static final int VERIFICATION_ALLOW_WITHOUT_SUFFICIENT
        Usable by the required verifier as the verificationCode argument for PackageManager#verifyPendingInstall to indicate that it will allow the installation to proceed without any of the optional verifiers needing to vote.
        See Also:
        Constant Field Values
      • VERIFICATION_ALLOW

        public static final int VERIFICATION_ALLOW
        Used as the verificationCode argument for PackageManager#verifyPendingInstall to indicate that the calling package verifier allows the installation to proceed.
        See Also:
        Constant Field Values
      • VERIFICATION_REJECT

        public static final int VERIFICATION_REJECT
        Used as the verificationCode argument for PackageManager#verifyPendingInstall to indicate the calling package verifier does not vote to allow the installation to proceed.
        See Also:
        Constant Field Values
      • INTENT_FILTER_VERIFICATION_SUCCESS

        public static final int INTENT_FILTER_VERIFICATION_SUCCESS
        Used as the verificationCode argument for PackageManager#verifyIntentFilter to indicate that the calling IntentFilter Verifier confirms that the IntentFilter is verified.
        See Also:
        Constant Field Values
      • INTENT_FILTER_VERIFICATION_FAILURE

        public static final int INTENT_FILTER_VERIFICATION_FAILURE
        Used as the verificationCode argument for PackageManager#verifyIntentFilter to indicate that the calling IntentFilter Verifier confirms that the IntentFilter is NOT verified.
        See Also:
        Constant Field Values
      • INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_UNDEFINED

        public static final int INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_UNDEFINED
        Internal status code to indicate that an IntentFilter verification result is not specified.
        See Also:
        Constant Field Values
      • INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ASK

        public static final int INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ASK
        Used as the status argument for PackageManager#updateIntentVerificationStatus to indicate that the User will always be prompted the Intent Disambiguation Dialog if there are two or more Intent resolved for the IntentFilter's domain(s).
        See Also:
        Constant Field Values
      • INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS

        public static final int INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS
        Used as the status argument for PackageManager#updateIntentVerificationStatus to indicate that the User will never be prompted the Intent Disambiguation Dialog if there are two or more resolution of the Intent. The default App for the domain(s) specified in the IntentFilter will also ALWAYS be used.
        See Also:
        Constant Field Values
      • INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_NEVER

        public static final int INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_NEVER
        Used as the status argument for PackageManager#updateIntentVerificationStatus to indicate that the User may be prompted the Intent Disambiguation Dialog if there are two or more Intent resolved. The default App for the domain(s) specified in the IntentFilter will also NEVER be presented to the User.
        See Also:
        Constant Field Values
      • INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS_ASK

        public static final int INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS_ASK
        Used as the status argument for PackageManager#updateIntentVerificationStatus to indicate that this app should always be considered as an ambiguous candidate for handling the matching Intent even if there are other candidate apps in the "always" state. Put another way: if there are any 'always ask' apps in a set of more than one candidate app, then a disambiguation is *always* presented even if there is another candidate app with the 'always' state.
        See Also:
        Constant Field Values
      • MAXIMUM_VERIFICATION_TIMEOUT

        public static final long MAXIMUM_VERIFICATION_TIMEOUT
        Can be used as the millisecondsToDelay argument for PackageManager#extendVerificationTimeout. This is the maximum time PackageManager waits for the verification agent to return (in milliseconds).
        See Also:
        Constant Field Values
      • FEATURE_AUDIO_LOW_LATENCY

        public static final String FEATURE_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.
        See Also:
        Constant Field Values
      • FEATURE_AUDIO_OUTPUT

        public static final String FEATURE_AUDIO_OUTPUT
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device includes at least one form of audio output, such as speakers, audio jack or streaming over bluetooth
        See Also:
        Constant Field Values
      • FEATURE_AUDIO_PRO

        public static final String FEATURE_AUDIO_PRO
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device has professional audio level of functionality, performance, and acoustics.
        See Also:
        Constant Field Values
      • FEATURE_BLUETOOTH

        public static final String FEATURE_BLUETOOTH
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device is capable of communicating with other devices via Bluetooth.
        See Also:
        Constant Field Values
      • FEATURE_BLUETOOTH_LE

        public static final String FEATURE_BLUETOOTH_LE
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device is capable of communicating with other devices via Bluetooth Low Energy radio.
        See Also:
        Constant Field Values
      • FEATURE_CAMERA

        public static final String FEATURE_CAMERA
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device has a camera facing away from the screen.
        See Also:
        Constant Field Values
      • FEATURE_CAMERA_AUTOFOCUS

        public static final String FEATURE_CAMERA_AUTOFOCUS
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device's camera supports auto-focus.
        See Also:
        Constant Field Values
      • FEATURE_CAMERA_ANY

        public static final String FEATURE_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.
        See Also:
        Constant Field Values
      • FEATURE_CAMERA_EXTERNAL

        public static final String FEATURE_CAMERA_EXTERNAL
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device can support having an external camera connected to it. The external camera may not always be connected or available to applications to use.
        See Also:
        Constant Field Values
      • FEATURE_CAMERA_FLASH

        public static final String FEATURE_CAMERA_FLASH
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device's camera supports flash.
        See Also:
        Constant Field Values
      • FEATURE_CAMERA_FRONT

        public static final String FEATURE_CAMERA_FRONT
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device has a front facing camera.
        See Also:
        Constant Field Values
      • FEATURE_CAMERA_LEVEL_FULL

        public static final String FEATURE_CAMERA_LEVEL_FULL
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: At least one of the cameras on the device supports the full hardware capability level.
        See Also:
        Constant Field Values
      • FEATURE_CAMERA_CAPABILITY_MANUAL_SENSOR

        public static final String FEATURE_CAMERA_CAPABILITY_MANUAL_SENSOR
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: At least one of the cameras on the device supports the manual sensor capability level.
        See Also:
        Constant Field Values
      • FEATURE_CAMERA_CAPABILITY_MANUAL_POST_PROCESSING

        public static final String FEATURE_CAMERA_CAPABILITY_MANUAL_POST_PROCESSING
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: At least one of the cameras on the device supports the manual post-processing capability level.
        See Also:
        Constant Field Values
      • FEATURE_CAMERA_CAPABILITY_RAW

        public static final String FEATURE_CAMERA_CAPABILITY_RAW
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: At least one of the cameras on the device supports the RAW capability level.
        See Also:
        Constant Field Values
      • FEATURE_CONSUMER_IR

        public static final String FEATURE_CONSUMER_IR
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device is capable of communicating with consumer IR devices.
        See Also:
        Constant Field Values
      • FEATURE_LOCATION

        public static final String FEATURE_LOCATION
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports one or more methods of reporting current location.
        See Also:
        Constant Field Values
      • FEATURE_LOCATION_GPS

        public static final String FEATURE_LOCATION_GPS
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device has a Global Positioning System receiver and can report precise location.
        See Also:
        Constant Field Values
      • FEATURE_LOCATION_NETWORK

        public static final String FEATURE_LOCATION_NETWORK
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device can report location with coarse accuracy using a network-based geolocation system.
        See Also:
        Constant Field Values
      • FEATURE_MICROPHONE

        public static final String FEATURE_MICROPHONE
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device can record audio via a microphone.
        See Also:
        Constant Field Values
      • FEATURE_NFC

        public static final String FEATURE_NFC
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device can communicate using Near-Field Communications (NFC).
        See Also:
        Constant Field Values
      • FEATURE_NFC_HCE

        @Deprecated
        public static final String FEATURE_NFC_HCE
        Deprecated.
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports host- based NFC card emulation. TODO remove when depending apps have moved to new constant.
        See Also:
        Constant Field Values
      • FEATURE_NFC_HOST_CARD_EMULATION

        public static final String FEATURE_NFC_HOST_CARD_EMULATION
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports host- based NFC card emulation.
        See Also:
        Constant Field Values
      • FEATURE_SENSOR_ACCELEROMETER

        public static final String FEATURE_SENSOR_ACCELEROMETER
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device includes an accelerometer.
        See Also:
        Constant Field Values
      • FEATURE_SENSOR_BAROMETER

        public static final String FEATURE_SENSOR_BAROMETER
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device includes a barometer (air pressure sensor.)
        See Also:
        Constant Field Values
      • FEATURE_SENSOR_COMPASS

        public static final String FEATURE_SENSOR_COMPASS
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device includes a magnetometer (compass).
        See Also:
        Constant Field Values
      • FEATURE_SENSOR_GYROSCOPE

        public static final String FEATURE_SENSOR_GYROSCOPE
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device includes a gyroscope.
        See Also:
        Constant Field Values
      • FEATURE_SENSOR_LIGHT

        public static final String FEATURE_SENSOR_LIGHT
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device includes a light sensor.
        See Also:
        Constant Field Values
      • FEATURE_SENSOR_PROXIMITY

        public static final String FEATURE_SENSOR_PROXIMITY
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device includes a proximity sensor.
        See Also:
        Constant Field Values
      • FEATURE_SENSOR_STEP_COUNTER

        public static final String FEATURE_SENSOR_STEP_COUNTER
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device includes a hardware step counter.
        See Also:
        Constant Field Values
      • FEATURE_SENSOR_STEP_DETECTOR

        public static final String FEATURE_SENSOR_STEP_DETECTOR
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device includes a hardware step detector.
        See Also:
        Constant Field Values
      • FEATURE_SENSOR_HEART_RATE

        public static final String FEATURE_SENSOR_HEART_RATE
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device includes a heart rate monitor.
        See Also:
        Constant Field Values
      • FEATURE_SENSOR_HEART_RATE_ECG

        public static final String FEATURE_SENSOR_HEART_RATE_ECG
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The heart rate sensor on this device is an Electrocargiogram.
        See Also:
        Constant Field Values
      • FEATURE_SENSOR_RELATIVE_HUMIDITY

        public static final String FEATURE_SENSOR_RELATIVE_HUMIDITY
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device includes a relative humidity sensor.
        See Also:
        Constant Field Values
      • FEATURE_SENSOR_AMBIENT_TEMPERATURE

        public static final String FEATURE_SENSOR_AMBIENT_TEMPERATURE
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device includes an ambient temperature sensor.
        See Also:
        Constant Field Values
      • FEATURE_HIFI_SENSORS

        public static final String FEATURE_HIFI_SENSORS
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports high fidelity sensor processing capabilities.
        See Also:
        Constant Field Values
      • FEATURE_TELEPHONY

        public static final String FEATURE_TELEPHONY
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device has a telephony radio with data communication support.
        See Also:
        Constant Field Values
      • FEATURE_TELEPHONY_CDMA

        public static final String FEATURE_TELEPHONY_CDMA
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device has a CDMA telephony stack.
        See Also:
        Constant Field Values
      • FEATURE_TELEPHONY_GSM

        public static final String FEATURE_TELEPHONY_GSM
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device has a GSM telephony stack.
        See Also:
        Constant Field Values
      • FEATURE_USB_HOST

        public static final String FEATURE_USB_HOST
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports connecting to USB devices as the USB host.
        See Also:
        Constant Field Values
      • FEATURE_USB_ACCESSORY

        public static final String FEATURE_USB_ACCESSORY
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports connecting to USB accessories.
        See Also:
        Constant Field Values
      • FEATURE_SIP

        public static final String FEATURE_SIP
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The SIP API is enabled on the device.
        See Also:
        Constant Field Values
      • FEATURE_SIP_VOIP

        public static final String FEATURE_SIP_VOIP
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports SIP-based VOIP.
        See Also:
        Constant Field Values
      • FEATURE_CONNECTION_SERVICE

        public static final String FEATURE_CONNECTION_SERVICE
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The Connection Service API is enabled on the device.
        See Also:
        Constant Field Values
      • FEATURE_TOUCHSCREEN

        public static final String FEATURE_TOUCHSCREEN
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device's display has a touch screen.
        See Also:
        Constant Field Values
      • FEATURE_TOUCHSCREEN_MULTITOUCH

        public static final String FEATURE_TOUCHSCREEN_MULTITOUCH
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device's touch screen supports multitouch sufficient for basic two-finger gesture detection.
        See Also:
        Constant Field Values
      • FEATURE_TOUCHSCREEN_MULTITOUCH_DISTINCT

        public static final String FEATURE_TOUCHSCREEN_MULTITOUCH_DISTINCT
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device's touch screen is capable of tracking two or more fingers fully independently.
        See Also:
        Constant Field Values
      • FEATURE_TOUCHSCREEN_MULTITOUCH_JAZZHAND

        public static final String FEATURE_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.
        See Also:
        Constant Field Values
      • FEATURE_FAKETOUCH

        public static final String FEATURE_FAKETOUCH
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device does not have a touch screen, but does support touch emulation for basic events. For instance, the device might use a mouse or remote control to drive a cursor, and emulate basic touch pointer events like down, up, drag, etc. All devices that support android.hardware.touchscreen or a sub-feature are presumed to also support faketouch.
        See Also:
        Constant Field Values
      • FEATURE_FAKETOUCH_MULTITOUCH_DISTINCT

        public static final String FEATURE_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. This is an extension of FEATURE_FAKETOUCH for input devices with this capability. Note that unlike a distinct multitouch screen as defined by FEATURE_TOUCHSCREEN_MULTITOUCH_DISTINCT, these kinds of input devices will not actually provide full two-finger gestures since the input is being transformed to cursor movement on the screen. That is, single finger gestures will move a cursor; two-finger swipes will result in single-finger touch events; other two-finger gestures will result in the corresponding two-finger touch event.
        See Also:
        Constant Field Values
      • FEATURE_FAKETOUCH_MULTITOUCH_JAZZHAND

        public static final String FEATURE_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. This is an extension of FEATURE_FAKETOUCH for input devices with this capability. Note that unlike a multitouch screen as defined by FEATURE_TOUCHSCREEN_MULTITOUCH_JAZZHAND, not all two finger gestures can be detected due to the limitations described for FEATURE_FAKETOUCH_MULTITOUCH_DISTINCT.
        See Also:
        Constant Field Values
      • FEATURE_FINGERPRINT

        public static final String FEATURE_FINGERPRINT
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device has biometric hardware to detect a fingerprint.
        See Also:
        Constant Field Values
      • FEATURE_SCREEN_PORTRAIT

        public static final String FEATURE_SCREEN_PORTRAIT
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports portrait orientation screens. For backwards compatibility, you can assume that if neither this nor FEATURE_SCREEN_LANDSCAPE is set then the device supports both portrait and landscape.
        See Also:
        Constant Field Values
      • FEATURE_SCREEN_LANDSCAPE

        public static final String FEATURE_SCREEN_LANDSCAPE
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports landscape orientation screens. For backwards compatibility, you can assume that if neither this nor FEATURE_SCREEN_PORTRAIT is set then the device supports both portrait and landscape.
        See Also:
        Constant Field Values
      • FEATURE_LIVE_WALLPAPER

        public static final String FEATURE_LIVE_WALLPAPER
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports live wallpapers.
        See Also:
        Constant Field Values
      • FEATURE_APP_WIDGETS

        public static final String FEATURE_APP_WIDGETS
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports app widgets.
        See Also:
        Constant Field Values
      • FEATURE_HOME_SCREEN

        public static final String FEATURE_HOME_SCREEN
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports a home screen that is replaceable by third party applications.
        See Also:
        Constant Field Values
      • FEATURE_INPUT_METHODS

        public static final String FEATURE_INPUT_METHODS
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports adding new input methods implemented with the android.inputmethodservice.InputMethodService API.
        See Also:
        Constant Field Values
      • FEATURE_DEVICE_ADMIN

        public static final String FEATURE_DEVICE_ADMIN
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports device policy enforcement via device admins.
        See Also:
        Constant Field Values
      • FEATURE_LEANBACK

        public static final String FEATURE_LEANBACK
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports leanback UI. This is typically used in a living room television experience, but is a software feature unlike FEATURE_TELEVISION. Devices running with this feature will use resources associated with the "television" UI mode.
        See Also:
        Constant Field Values
      • FEATURE_LEANBACK_ONLY

        public static final String FEATURE_LEANBACK_ONLY
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports only leanback UI. Only applications designed for this experience should be run, though this is not enforced by the system.
        See Also:
        Constant Field Values
      • FEATURE_LIVE_TV

        public static final String FEATURE_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.
        See Also:
        Constant Field Values
      • FEATURE_WIFI

        public static final String FEATURE_WIFI
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports WiFi (802.11) networking.
        See Also:
        Constant Field Values
      • FEATURE_WIFI_DIRECT

        public static final String FEATURE_WIFI_DIRECT
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports Wi-Fi Direct networking.
        See Also:
        Constant Field Values
      • FEATURE_AUTOMOTIVE

        public static final String FEATURE_AUTOMOTIVE
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: This is a device dedicated to showing UI on a vehicle headunit. A headunit here is defined to be inside a vehicle that may or may not be moving. A headunit uses either a primary display in the center console and/or additional displays in the instrument cluster or elsewhere in the vehicle. Headunit display(s) have limited size and resolution. The user will likely be focused on driving so limiting driver distraction is a primary concern. User input can be a variety of hard buttons, touch, rotary controllers and even mouse- like interfaces.
        See Also:
        Constant Field Values
      • FEATURE_TELEVISION

        @Deprecated
        public static final String FEATURE_TELEVISION
        Deprecated.
        use FEATURE_LEANBACK instead.
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: This is a device dedicated to showing UI on a television. Television here is defined to be a typical living room television experience: displayed on a big screen, where the user is sitting far away from it, and the dominant form of input will be something like a DPAD, not through touch or mouse.
        See Also:
        Constant Field Values
      • FEATURE_WATCH

        public static final String FEATURE_WATCH
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: This is a device dedicated to showing UI on a watch. A watch here is defined to be a device worn on the body, perhaps on the wrist. The user is very close when interacting with the device.
        See Also:
        Constant Field Values
      • FEATURE_PRINTING

        public static final String FEATURE_PRINTING
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports printing.
        See Also:
        Constant Field Values
      • FEATURE_BACKUP

        public static final String FEATURE_BACKUP
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device can perform backup and restore operations on installed applications.
        See Also:
        Constant Field Values
      • FEATURE_MANAGED_USERS

        public static final String FEATURE_MANAGED_USERS
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports creating secondary users and managed profiles via DevicePolicyManager.
        See Also:
        Constant Field Values
      • FEATURE_VERIFIED_BOOT

        public static final String FEATURE_VERIFIED_BOOT
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports verified boot.
        See Also:
        Constant Field Values
      • FEATURE_SECURELY_REMOVES_USERS

        public static final String FEATURE_SECURELY_REMOVES_USERS
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device supports secure removal of users. When a user is deleted the data associated with that user is securely deleted and no longer available.
        See Also:
        Constant Field Values
      • FEATURE_WEBVIEW

        public static final String FEATURE_WEBVIEW
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device has a full implementation of the android.webkit.* APIs. Devices lacking this feature will not have a functioning WebView implementation.
        See Also:
        Constant Field Values
      • FEATURE_ETHERNET

        public static final String FEATURE_ETHERNET
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: This device supports ethernet.
        See Also:
        Constant Field Values
      • FEATURE_HDMI_CEC

        public static final String FEATURE_HDMI_CEC
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: This device supports HDMI-CEC.
        See Also:
        Constant Field Values
      • FEATURE_GAMEPAD

        public static final String FEATURE_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.
        See Also:
        Constant Field Values
      • FEATURE_MIDI

        public static final String FEATURE_MIDI
        Feature for #getSystemAvailableFeatures and #hasSystemFeature: The device has a full implementation of the android.media.midi.* APIs.
        See Also:
        Constant Field Values
      • ACTION_CLEAN_EXTERNAL_STORAGE

        public static final String ACTION_CLEAN_EXTERNAL_STORAGE
        Action to external storage service to clean out removed apps.
        See Also:
        Constant Field Values
      • EXTRA_VERIFICATION_URI

        public static final String EXTRA_VERIFICATION_URI
        Extra field name for the URI to a verification file. Passed to a package verifier.
        See Also:
        Constant Field Values
      • EXTRA_VERIFICATION_ID

        public static final String EXTRA_VERIFICATION_ID
        Extra field name for the ID of a package pending verification. Passed to a package verifier and is used to call back to PackageManager#verifyPendingInstall(int, int)
        See Also:
        Constant Field Values
      • EXTRA_VERIFICATION_INSTALLER_PACKAGE

        public static final String EXTRA_VERIFICATION_INSTALLER_PACKAGE
        Extra field name for the package identifier which is trying to install the package.
        See Also:
        Constant Field Values
      • EXTRA_VERIFICATION_INSTALL_FLAGS

        public static final String EXTRA_VERIFICATION_INSTALL_FLAGS
        Extra field name for the requested install flags for a package pending verification. Passed to a package verifier.
        See Also:
        Constant Field Values
      • EXTRA_VERIFICATION_INSTALLER_UID

        public static final String EXTRA_VERIFICATION_INSTALLER_UID
        Extra field name for the uid of who is requesting to install the package.
        See Also:
        Constant Field Values
      • EXTRA_VERIFICATION_PACKAGE_NAME

        public static final String EXTRA_VERIFICATION_PACKAGE_NAME
        Extra field name for the package name of a package pending verification.
        See Also:
        Constant Field Values
      • EXTRA_VERIFICATION_VERSION_CODE

        public static final String EXTRA_VERIFICATION_VERSION_CODE
        Extra field name for the version code of a package pending verification.
        See Also:
        Constant Field Values
      • EXTRA_INTENT_FILTER_VERIFICATION_ID

        public static final String EXTRA_INTENT_FILTER_VERIFICATION_ID
        Extra field name for the ID of a intent filter pending verification. Passed to an intent filter verifier and is used to call back to PackageManager#verifyIntentFilter(int, int)
        See Also:
        Constant Field Values
      • EXTRA_INTENT_FILTER_VERIFICATION_URI_SCHEME

        public static final String EXTRA_INTENT_FILTER_VERIFICATION_URI_SCHEME
        Extra field name for the scheme used for an intent filter pending verification. Passed to an intent filter verifier and is used to construct the URI to verify against. Usually this is "https"
        See Also:
        Constant Field Values
      • EXTRA_INTENT_FILTER_VERIFICATION_HOSTS

        public static final String EXTRA_INTENT_FILTER_VERIFICATION_HOSTS
        Extra field name for the host names to be used for an intent filter pending verification. Passed to an intent filter verifier and is used to construct the URI to verify the intent filter. This is a space delimited list of hosts.
        See Also:
        Constant Field Values
      • EXTRA_INTENT_FILTER_VERIFICATION_PACKAGE_NAME

        public static final String EXTRA_INTENT_FILTER_VERIFICATION_PACKAGE_NAME
        Extra field name for the package name to be used for an intent filter pending verification. Passed to an intent filter verifier and is used to check the verification responses coming from the hosts. Each host response will need to include the package name of APK containing the intent filter.
        See Also:
        Constant Field Values
      • ACTION_REQUEST_PERMISSIONS

        public static final String ACTION_REQUEST_PERMISSIONS
        The action used to request that the user approve a permission request from the application.
        See Also:
        Constant Field Values
      • EXTRA_REQUEST_PERMISSIONS_NAMES

        public static final String EXTRA_REQUEST_PERMISSIONS_NAMES
        The names of the requested permissions.

        Type: String[]

        See Also:
        Constant Field Values
      • EXTRA_REQUEST_PERMISSIONS_RESULTS

        public static final String EXTRA_REQUEST_PERMISSIONS_RESULTS
        The results from the permissions request.

        Type: int[] of #PermissionResult

        See Also:
        Constant Field Values
      • EXTRA_FAILURE_EXISTING_PACKAGE

        public static final String EXTRA_FAILURE_EXISTING_PACKAGE
        String extra for PackageInstallObserver in the 'extras' Bundle in case of INSTALL_FAILED_DUPLICATE_PERMISSION. This extra names the package which provides the existing definition for the permission.
        See Also:
        Constant Field Values
      • EXTRA_FAILURE_EXISTING_PERMISSION

        public static final String EXTRA_FAILURE_EXISTING_PERMISSION
        String extra for PackageInstallObserver in the 'extras' Bundle in case of INSTALL_FAILED_DUPLICATE_PERMISSION. This extra names the permission that is being redundantly defined by the package being installed.
        See Also:
        Constant Field Values
      • FLAG_PERMISSION_USER_SET

        public static final int FLAG_PERMISSION_USER_SET
        Permission flag: The permission is set in its current state by the user and apps can still request it at runtime.
        See Also:
        Constant Field Values
      • FLAG_PERMISSION_USER_FIXED

        public static final int FLAG_PERMISSION_USER_FIXED
        Permission flag: The permission is set in its current state by the user and it is fixed, i.e. apps can no longer request this permission.
        See Also:
        Constant Field Values
      • FLAG_PERMISSION_POLICY_FIXED

        public static final int FLAG_PERMISSION_POLICY_FIXED
        Permission flag: The permission is set in its current state by device policy and neither apps nor the user can change its state.
        See Also:
        Constant Field Values
      • FLAG_PERMISSION_REVOKE_ON_UPGRADE

        public static final int FLAG_PERMISSION_REVOKE_ON_UPGRADE
        Permission flag: The permission is set in a granted state but access to resources it guards is restricted by other means to enable revoking a permission on legacy apps that do not support runtime permissions. If this permission is upgraded to runtime because the app was updated to support runtime permissions, the the permission will be revoked in the upgrade process.
        See Also:
        Constant Field Values
      • FLAG_PERMISSION_SYSTEM_FIXED

        public static final int FLAG_PERMISSION_SYSTEM_FIXED
        Permission flag: The permission is set in its current state because the app is a component that is a part of the system.
        See Also:
        Constant Field Values
      • FLAG_PERMISSION_GRANTED_BY_DEFAULT

        public static final int FLAG_PERMISSION_GRANTED_BY_DEFAULT
        Permission flag: The permission is granted by default because it enables app functionality that is expected to work out-of-the-box for providing a smooth user experience. For example, the phone app is expected to have the phone permission.
        See Also:
        Constant Field Values
      • MASK_PERMISSION_FLAGS

        public static final int MASK_PERMISSION_FLAGS
        Mask for all permission flags.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PackageManager

        public PackageManager()