Package android.content.pm
Class PackageManager
- java.lang.Object
-
- android.content.pm.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 throughContext.getPackageManager().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPackageManager.NameNotFoundExceptionThis exception is thrown when a given package, application, or component name cannot be found.static interfacePackageManager.OnPermissionsChangedListenerListener for changes in permissions granted to a UID.static interfacePackageManager.PermissionResult
-
Field Summary
Fields Modifier and Type Field Description static StringACTION_CLEAN_EXTERNAL_STORAGEAction to external storage service to clean out removed apps.static StringACTION_REQUEST_PERMISSIONSThe action used to request that the user approve a permission request from the application.static intCOMPONENT_ENABLED_STATE_DEFAULTFlag 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 intCOMPONENT_ENABLED_STATE_DISABLEDFlag 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 intCOMPONENT_ENABLED_STATE_DISABLED_UNTIL_USEDFlag for#setApplicationEnabledSetting(String, int, int)only: This application should be considered, until the point where the user actually wants to use it.static intCOMPONENT_ENABLED_STATE_DISABLED_USERFlag for#setApplicationEnabledSetting(String, int, int)only: The user has explicitly disabled the application, regardless of what it has specified in its manifest.static intCOMPONENT_ENABLED_STATE_ENABLEDFlag 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 intDELETE_ALL_USERSFlag parameter for#deletePackageto indicate that you want the package deleted for all users.static intDELETE_FAILED_ABORTEDstatic intDELETE_FAILED_DEVICE_POLICY_MANAGERDeletion failed return code: this is passed to theIPackageDeleteObserverby#deletePackage()if the system failed to delete the package because it is the active DevicePolicy manager.static intDELETE_FAILED_INTERNAL_ERRORDeletion failed return code: this is passed to theIPackageDeleteObserverby#deletePackage()if the system failed to delete the package for an unspecified reason.static intDELETE_FAILED_OWNER_BLOCKEDDeletion failed return code: this is passed to theIPackageDeleteObserverby#deletePackage()if the system failed to delete the package because a profile or device owner has marked the package as uninstallable.static intDELETE_FAILED_USER_RESTRICTEDDeletion failed return code: this is passed to theIPackageDeleteObserverby#deletePackage()if the system failed to delete the package since the user is restricted.static intDELETE_KEEP_DATAFlag parameter for#deletePackageto indicate that you don't want to delete the package's data directory.static intDELETE_SUCCEEDEDReturn code for when package deletion succeeds.static intDELETE_SYSTEM_APPFlag parameter for#deletePackageto 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 intDONT_KILL_APPFlag parameter for#setComponentEnabledSetting(android.content.ComponentName, int, int)to indicate that you don't want to kill the app containing the component.static StringEXTRA_FAILURE_EXISTING_PACKAGEString extra forPackageInstallObserverin the 'extras' Bundle in case ofINSTALL_FAILED_DUPLICATE_PERMISSION.static StringEXTRA_FAILURE_EXISTING_PERMISSIONString extra forPackageInstallObserverin the 'extras' Bundle in case ofINSTALL_FAILED_DUPLICATE_PERMISSION.static StringEXTRA_INTENT_FILTER_VERIFICATION_HOSTSExtra field name for the host names to be used for an intent filter pending verification.static StringEXTRA_INTENT_FILTER_VERIFICATION_IDExtra field name for the ID of a intent filter pending verification.static StringEXTRA_INTENT_FILTER_VERIFICATION_PACKAGE_NAMEExtra field name for the package name to be used for an intent filter pending verification.static StringEXTRA_INTENT_FILTER_VERIFICATION_URI_SCHEMEExtra field name for the scheme used for an intent filter pending verification.static StringEXTRA_MOVE_IDstatic StringEXTRA_REQUEST_PERMISSIONS_NAMESThe names of the requested permissions.static StringEXTRA_REQUEST_PERMISSIONS_RESULTSThe results from the permissions request.static StringEXTRA_VERIFICATION_IDExtra field name for the ID of a package pending verification.static StringEXTRA_VERIFICATION_INSTALL_FLAGSExtra field name for the requested install flags for a package pending verification.static StringEXTRA_VERIFICATION_INSTALLER_PACKAGEExtra field name for the package identifier which is trying to install the package.static StringEXTRA_VERIFICATION_INSTALLER_UIDExtra field name for the uid of who is requesting to install the package.static StringEXTRA_VERIFICATION_PACKAGE_NAMEExtra field name for the package name of a package pending verification.static StringEXTRA_VERIFICATION_RESULTExtra field name for the result of a verification, eitherVERIFICATION_ALLOW, orVERIFICATION_REJECT.static StringEXTRA_VERIFICATION_URIExtra field name for the URI to a verification file.static StringEXTRA_VERIFICATION_VERSION_CODEExtra field name for the version code of a package pending verification.static StringFEATURE_APP_WIDGETSFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device supports app widgets.static StringFEATURE_AUDIO_LOW_LATENCYFeature for#getSystemAvailableFeaturesand#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 StringFEATURE_AUDIO_OUTPUTFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device includes at least one form of audio output, such as speakers, audio jack or streaming over bluetoothstatic StringFEATURE_AUDIO_PROFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device has professional audio level of functionality, performance, and acoustics.static StringFEATURE_AUTOMOTIVEFeature for#getSystemAvailableFeaturesand#hasSystemFeature: This is a device dedicated to showing UI on a vehicle headunit.static StringFEATURE_BACKUPFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device can perform backup and restore operations on installed applications.static StringFEATURE_BLUETOOTHFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device is capable of communicating with other devices via Bluetooth.static StringFEATURE_BLUETOOTH_LEFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device is capable of communicating with other devices via Bluetooth Low Energy radio.static StringFEATURE_CAMERAFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device has a camera facing away from the screen.static StringFEATURE_CAMERA_ANYFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device has at least one camera pointing in some direction, or can support an external camera being connected to it.static StringFEATURE_CAMERA_AUTOFOCUSFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device's camera supports auto-focus.static StringFEATURE_CAMERA_CAPABILITY_MANUAL_POST_PROCESSINGFeature for#getSystemAvailableFeaturesand#hasSystemFeature: At least one of the cameras on the device supports themanual post-processingcapability level.static StringFEATURE_CAMERA_CAPABILITY_MANUAL_SENSORFeature for#getSystemAvailableFeaturesand#hasSystemFeature: At least one of the cameras on the device supports themanual sensorcapability level.static StringFEATURE_CAMERA_CAPABILITY_RAWFeature for#getSystemAvailableFeaturesand#hasSystemFeature: At least one of the cameras on the device supports theRAWcapability level.static StringFEATURE_CAMERA_EXTERNALFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device can support having an external camera connected to it.static StringFEATURE_CAMERA_FLASHFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device's camera supports flash.static StringFEATURE_CAMERA_FRONTFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device has a front facing camera.static StringFEATURE_CAMERA_LEVEL_FULLFeature for#getSystemAvailableFeaturesand#hasSystemFeature: At least one of the cameras on the device supports thefull hardwarecapability level.static StringFEATURE_CONNECTION_SERVICEFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The Connection Service API is enabled on the device.static StringFEATURE_CONSUMER_IRFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device is capable of communicating with consumer IR devices.static StringFEATURE_DEVICE_ADMINFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device supports device policy enforcement via device admins.static StringFEATURE_ETHERNETFeature for#getSystemAvailableFeaturesand#hasSystemFeature: This device supports ethernet.static StringFEATURE_FAKETOUCHFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device does not have a touch screen, but does support touch emulation for basic events.static StringFEATURE_FAKETOUCH_MULTITOUCH_DISTINCTFeature for#getSystemAvailableFeaturesand#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 StringFEATURE_FAKETOUCH_MULTITOUCH_JAZZHANDFeature for#getSystemAvailableFeaturesand#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 StringFEATURE_FINGERPRINTFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device has biometric hardware to detect a fingerprint.static StringFEATURE_GAMEPADFeature for#getSystemAvailableFeaturesand#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 StringFEATURE_HDMI_CECFeature for#getSystemAvailableFeaturesand#hasSystemFeature: This device supports HDMI-CEC.static StringFEATURE_HIFI_SENSORSFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device supports high fidelity sensor processing capabilities.static StringFEATURE_HOME_SCREENFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device supports a home screen that is replaceable by third party applications.static StringFEATURE_INPUT_METHODSFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device supports adding new input methods implemented with theandroid.inputmethodservice.InputMethodServiceAPI.static StringFEATURE_LEANBACKFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device supports leanback UI.static StringFEATURE_LEANBACK_ONLYFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device supports only leanback UI.static StringFEATURE_LIVE_TVFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device supports live TV and can display contents from TV inputs implemented with theandroid.media.tv.TvInputServiceAPI.static StringFEATURE_LIVE_WALLPAPERFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device supports live wallpapers.static StringFEATURE_LOCATIONFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device supports one or more methods of reporting current location.static StringFEATURE_LOCATION_GPSFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device has a Global Positioning System receiver and can report precise location.static StringFEATURE_LOCATION_NETWORKFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device can report location with coarse accuracy using a network-based geolocation system.static StringFEATURE_MANAGED_PROFILESstatic StringFEATURE_MANAGED_USERSFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device supports creating secondary users and managed profiles viaDevicePolicyManager.static StringFEATURE_MICROPHONEFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device can record audio via a microphone.static StringFEATURE_MIDIFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device has a full implementation of the android.media.midi.* APIs.static StringFEATURE_NFCFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device can communicate using Near-Field Communications (NFC).static StringFEATURE_NFC_HCEDeprecated.static StringFEATURE_NFC_HOST_CARD_EMULATIONFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device supports host- based NFC card emulation.static StringFEATURE_OPENGLES_EXTENSION_PACKFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device supports the OpenGL ES Android Extension Pack.static StringFEATURE_PRINTINGFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device supports printing.static StringFEATURE_SCREEN_LANDSCAPEFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device supports landscape orientation screens.static StringFEATURE_SCREEN_PORTRAITFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device supports portrait orientation screens.static StringFEATURE_SECURELY_REMOVES_USERSFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device supports secure removal of users.static StringFEATURE_SENSOR_ACCELEROMETERFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device includes an accelerometer.static StringFEATURE_SENSOR_AMBIENT_TEMPERATUREFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device includes an ambient temperature sensor.static StringFEATURE_SENSOR_BAROMETERFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device includes a barometer (air pressure sensor.)static StringFEATURE_SENSOR_COMPASSFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device includes a magnetometer (compass).static StringFEATURE_SENSOR_GYROSCOPEFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device includes a gyroscope.static StringFEATURE_SENSOR_HEART_RATEFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device includes a heart rate monitor.static StringFEATURE_SENSOR_HEART_RATE_ECGFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The heart rate sensor on this device is an Electrocargiogram.static StringFEATURE_SENSOR_LIGHTFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device includes a light sensor.static StringFEATURE_SENSOR_PROXIMITYFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device includes a proximity sensor.static StringFEATURE_SENSOR_RELATIVE_HUMIDITYFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device includes a relative humidity sensor.static StringFEATURE_SENSOR_STEP_COUNTERFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device includes a hardware step counter.static StringFEATURE_SENSOR_STEP_DETECTORFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device includes a hardware step detector.static StringFEATURE_SIPFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The SIP API is enabled on the device.static StringFEATURE_SIP_VOIPFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device supports SIP-based VOIP.static StringFEATURE_TELEPHONYFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device has a telephony radio with data communication support.static StringFEATURE_TELEPHONY_CDMAFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device has a CDMA telephony stack.static StringFEATURE_TELEPHONY_GSMFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device has a GSM telephony stack.static StringFEATURE_TELEVISIONDeprecated.useFEATURE_LEANBACKinstead.static StringFEATURE_TOUCHSCREENFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device's display has a touch screen.static StringFEATURE_TOUCHSCREEN_MULTITOUCHFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device's touch screen supports multitouch sufficient for basic two-finger gesture detection.static StringFEATURE_TOUCHSCREEN_MULTITOUCH_DISTINCTFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device's touch screen is capable of tracking two or more fingers fully independently.static StringFEATURE_TOUCHSCREEN_MULTITOUCH_JAZZHANDFeature for#getSystemAvailableFeaturesand#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 StringFEATURE_USB_ACCESSORYFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device supports connecting to USB accessories.static StringFEATURE_USB_HOSTFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device supports connecting to USB devices as the USB host.static StringFEATURE_VERIFIED_BOOTFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device supports verified boot.static StringFEATURE_VOICE_RECOGNIZERSstatic StringFEATURE_WATCHFeature for#getSystemAvailableFeaturesand#hasSystemFeature: This is a device dedicated to showing UI on a watch.static StringFEATURE_WEBVIEWFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device has a full implementation of the android.webkit.* APIs.static StringFEATURE_WIFIFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device supports WiFi (802.11) networking.static StringFEATURE_WIFI_DIRECTFeature for#getSystemAvailableFeaturesand#hasSystemFeature: The device supports Wi-Fi Direct networking.static intFLAG_PERMISSION_GRANTED_BY_DEFAULTPermission 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 intFLAG_PERMISSION_POLICY_FIXEDPermission flag: The permission is set in its current state by device policy and neither apps nor the user can change its state.static intFLAG_PERMISSION_REVOKE_ON_UPGRADEPermission 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 intFLAG_PERMISSION_SYSTEM_FIXEDPermission flag: The permission is set in its current state because the app is a component that is a part of the system.static intFLAG_PERMISSION_USER_FIXEDPermission 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 intFLAG_PERMISSION_USER_SETPermission flag: The permission is set in its current state by the user and apps can still request it at runtime.static intGET_ACTIVITIESPackageInfoflag: return information about activities in the package inPackageInfo#activities.static intGET_CONFIGURATIONSPackageInfoflag: return information about hardware preferences inPackageInfo.configPreferences, and requested features inPackageInfo#reqFeaturesandPackageInfo#featureGroups.static intGET_DISABLED_COMPONENTSPackageInfoflag: include disabled components in the returned info.static intGET_DISABLED_UNTIL_USED_COMPONENTSPackageInfoflag: include disabled components which are in that state only because ofCOMPONENT_ENABLED_STATE_DISABLED_UNTIL_USEDin the returned info.static intGET_GIDSPackageInfoflag: return thegroup idsthat are associated with an application.static intGET_INSTRUMENTATIONPackageInfoflag: return information about instrumentation in the package inPackageInfo#instrumentation.static intGET_INTENT_FILTERSPackageInfoflag: return information about the intent filters supported by the activity.static intGET_META_DATAComponentInfoflag: return theComponentInfo#metaDatadataBundles that are associated with a component.static intGET_PERMISSIONSPackageInfoflag: return information about permissions in the package inPackageInfo#permissions.static intGET_PROVIDERSPackageInfoflag: return information about content providers in the package inPackageInfo#providers.static intGET_RECEIVERSPackageInfoflag: return information about intent receivers in the package inPackageInfo#receivers.static intGET_RESOLVED_FILTERResolveInfoflag: return the IntentFilter that was matched for a particular ResolveInfo inResolveInfo#filter.static intGET_SERVICESPackageInfoflag: return information about services in the package inPackageInfo#services.static intGET_SHARED_LIBRARY_FILESApplicationInfoflag: return thepaths to the shared librariesthat are associated with an application.static intGET_SIGNATURESPackageInfoflag: return information about the signatures included in the package.static intGET_UNINSTALLED_PACKAGESFlag parameter to retrieve some information about all applications (even uninstalled ones) which have data directories.static intGET_URI_PERMISSION_PATTERNSProviderInfoflag: return theURI permission patternsthat are associated with a content provider.static intINSTALL_ALL_USERSFlag parameter for#installPackageto indicate that this install should immediately be visible to all users.static intINSTALL_ALLOW_DOWNGRADEFlag parameter for#installPackageto 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 intINSTALL_ALLOW_TESTFlag parameter for#installPackageto indicate that you want to allow test packages (those that have set android:testOnly in their manifest) to be installed.static intINSTALL_EXTERNALFlag parameter for#installPackageto indicate that this package must be installed to an ASEC on aVolumeInfo#TYPE_PUBLIC.static intINSTALL_FAILED_ABORTEDstatic intINSTALL_FAILED_ALREADY_EXISTSInstallation return code: this is passed to theIPackageInstallObserverby#installPackage(android.net.Uri, IPackageInstallObserver, int)if the package is already installed.static intINSTALL_FAILED_CONFLICTING_PROVIDERInstallation return code: this is passed to theIPackageInstallObserverby#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 intINSTALL_FAILED_CONTAINER_ERRORInstallation return code: this is passed to theIPackageInstallObserverby#installPackage(android.net.Uri, IPackageInstallObserver, int)if a secure container mount point couldn't be accessed on external media.static intINSTALL_FAILED_CPU_ABI_INCOMPATIBLEInstallation return code: this is passed to theIPackageInstallObserverby#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 intINSTALL_FAILED_DEXOPTInstallation return code: this is passed to theIPackageInstallObserverby#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 intINSTALL_FAILED_DUPLICATE_PACKAGEInstallation return code: this is passed to theIPackageInstallObserverby#installPackage(android.net.Uri, IPackageInstallObserver, int)if a package is already installed with the same name.static intINSTALL_FAILED_DUPLICATE_PERMISSIONInstallation failed return code: this is passed to theIPackageInstallObserverby#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 intINSTALL_FAILED_INSUFFICIENT_STORAGEInstallation return code: this is passed to theIPackageInstallObserverby#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 intINSTALL_FAILED_INTERNAL_ERRORInstallation failed return code: this is passed to theIPackageInstallObserverby#installPackage(android.net.Uri, IPackageInstallObserver, int)if the system failed to install the package because of system issues.static intINSTALL_FAILED_INVALID_APKInstallation return code: this is passed to theIPackageInstallObserverby#installPackage(android.net.Uri, IPackageInstallObserver, int)if the package archive file is invalid.static intINSTALL_FAILED_INVALID_INSTALL_LOCATIONInstallation return code: this is passed to theIPackageInstallObserverby#installPackage(android.net.Uri, IPackageInstallObserver, int)if the new package couldn't be installed in the specified install location.static intINSTALL_FAILED_INVALID_URIInstallation return code: this is passed to theIPackageInstallObserverby#installPackage(android.net.Uri, IPackageInstallObserver, int)if the URI passed in is invalid.static intINSTALL_FAILED_MEDIA_UNAVAILABLEInstallation return code: this is passed to theIPackageInstallObserverby#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 intINSTALL_FAILED_MISSING_FEATUREInstallation return code: this is passed to theIPackageInstallObserverby#installPackage(android.net.Uri, IPackageInstallObserver, int)if the new package uses a feature that is not available.static intINSTALL_FAILED_MISSING_SHARED_LIBRARYInstallation return code: this is passed to theIPackageInstallObserverby#installPackage(android.net.Uri, IPackageInstallObserver, int)if the new package uses a shared library that is not available.static intINSTALL_FAILED_NEWER_SDKInstallation return code: this is passed to theIPackageInstallObserverby#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 intINSTALL_FAILED_NO_MATCHING_ABISInstallation failed return code: this is passed to theIPackageInstallObserverby#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 intINSTALL_FAILED_NO_SHARED_USERInstallation return code: this is passed to theIPackageInstallObserverby#installPackage(android.net.Uri, IPackageInstallObserver, int)if the requested shared user does not exist.static intINSTALL_FAILED_OLDER_SDKInstallation return code: this is passed to theIPackageInstallObserverby#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 intINSTALL_FAILED_PACKAGE_CHANGEDInstallation return code: this is passed to theIPackageInstallObserverby#installPackage(android.net.Uri, IPackageInstallObserver, int)if the package changed from what the calling program expected.static intINSTALL_FAILED_PERMISSION_MODEL_DOWNGRADEInstallation return code: this is passed to theIPackageInstallObserverby#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 intINSTALL_FAILED_REPLACE_COULDNT_DELETEInstallation return code: this is passed to theIPackageInstallObserverby#installPackage(android.net.Uri, IPackageInstallObserver, int)if the new package uses a shared library that is not available.static intINSTALL_FAILED_SHARED_USER_INCOMPATIBLEInstallation return code: this is passed to theIPackageInstallObserverby#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 intINSTALL_FAILED_TEST_ONLYInstallation return code: this is passed to theIPackageInstallObserverby#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 theINSTALL_ALLOW_TESTflag.static intINSTALL_FAILED_UID_CHANGEDInstallation return code: this is passed to theIPackageInstallObserverby#installPackage(android.net.Uri, IPackageInstallObserver, int)if the new package is assigned a different UID than it previously held.static intINSTALL_FAILED_UPDATE_INCOMPATIBLEInstallation return code: this is passed to theIPackageInstallObserverby#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 intINSTALL_FAILED_USER_RESTRICTEDInstallation failed return code: this is passed to theIPackageInstallObserverby#installPackage(android.net.Uri, IPackageInstallObserver, int)if the system failed to install the package because the user is restricted from installing apps.static intINSTALL_FAILED_VERIFICATION_FAILUREInstallation return code: this is passed to theIPackageInstallObserverby#installPackage(android.net.Uri, IPackageInstallObserver, int)if the new package couldn't be installed because the verification did not succeed.static intINSTALL_FAILED_VERIFICATION_TIMEOUTInstallation return code: this is passed to theIPackageInstallObserverby#installPackage(android.net.Uri, IPackageInstallObserver, int)if the new package couldn't be installed because the verification timed out.static intINSTALL_FAILED_VERSION_DOWNGRADEInstallation return code: this is passed to theIPackageInstallObserverby#installPackage(android.net.Uri, IPackageInstallObserver, int)if the new package has an older version code than the currently installed package.static intINSTALL_FORCE_VOLUME_UUIDstatic intINSTALL_FORWARD_LOCKFlag 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 intINSTALL_FROM_ADBFlag parameter for#installPackageto indicate that this install was initiated via ADB.static intINSTALL_GRANT_RUNTIME_PERMISSIONSFlag parameter for#installPackageto indicate that all runtime permissions should be granted to the package.static intINSTALL_INTERNALFlag parameter for#installPackageto indicate that this package must be installed to internal storage.static intINSTALL_PARSE_FAILED_BAD_MANIFESTInstallation parse return code: this is passed to theIPackageInstallObserverby#installPackage(android.net.Uri, IPackageInstallObserver, int)if the parser was unable to retrieve the AndroidManifest.xml file.static intINSTALL_PARSE_FAILED_BAD_PACKAGE_NAMEInstallation parse return code: this is passed to theIPackageInstallObserverby#installPackage(android.net.Uri, IPackageInstallObserver, int)if the parser encountered a bad or missing package name in the manifest.static intINSTALL_PARSE_FAILED_BAD_SHARED_USER_IDInstallation parse return code: this is passed to theIPackageInstallObserverby#installPackage(android.net.Uri, IPackageInstallObserver, int)if the parser encountered a bad shared user id name in the manifest.static intINSTALL_PARSE_FAILED_CERTIFICATE_ENCODINGInstallation parse return code: this is passed to theIPackageInstallObserverby#installPackage(android.net.Uri, IPackageInstallObserver, int)if the parser encountered a CertificateEncodingException in one of the files in the .apk.static intINSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATESInstallation parse return code: this is passed to theIPackageInstallObserverby#installPackage(android.net.Uri, IPackageInstallObserver, int)if the parser found inconsistent certificates on the files in the .apk.static intINSTALL_PARSE_FAILED_MANIFEST_EMPTYInstallation parse return code: this is passed to theIPackageInstallObserverby#installPackage(android.net.Uri, IPackageInstallObserver, int)if the parser did not find any actionable tags (instrumentation or application) in the manifest.static intINSTALL_PARSE_FAILED_MANIFEST_MALFORMEDInstallation parse return code: this is passed to theIPackageInstallObserverby#installPackage(android.net.Uri, IPackageInstallObserver, int)if the parser encountered some structural problem in the manifest.static intINSTALL_PARSE_FAILED_NO_CERTIFICATESInstallation parse return code: this is passed to theIPackageInstallObserverby#installPackage(android.net.Uri, IPackageInstallObserver, int)if the parser did not find any certificates in the .apk.static intINSTALL_PARSE_FAILED_NOT_APKInstallation parse return code: this is passed to theIPackageInstallObserverby#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 intINSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTIONInstallation parse return code: this is passed to theIPackageInstallObserverby#installPackage(android.net.Uri, IPackageInstallObserver, int)if the parser encountered an unexpected exception.static intINSTALL_REPLACE_EXISTINGFlag parameter for#installPackageto indicate that you want to replace an already installed package, if one exists.static intINSTALL_SUCCEEDEDInstallation return code: this is passed to theIPackageInstallObserverby#installPackage(android.net.Uri, IPackageInstallObserver, int)on success.static intINTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYSUsed as thestatusargument forPackageManager#updateIntentVerificationStatusto indicate that the User will never be prompted the Intent Disambiguation Dialog if there are two or more resolution of the Intent.static intINTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS_ASKUsed as thestatusargument forPackageManager#updateIntentVerificationStatusto 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 intINTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ASKUsed as thestatusargument forPackageManager#updateIntentVerificationStatusto 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 intINTENT_FILTER_DOMAIN_VERIFICATION_STATUS_NEVERUsed as thestatusargument forPackageManager#updateIntentVerificationStatusto indicate that the User may be prompted the Intent Disambiguation Dialog if there are two or more Intent resolved.static intINTENT_FILTER_DOMAIN_VERIFICATION_STATUS_UNDEFINEDInternal status code to indicate that an IntentFilter verification result is not specified.static intINTENT_FILTER_VERIFICATION_FAILUREUsed as theverificationCodeargument forPackageManager#verifyIntentFilterto indicate that the calling IntentFilter Verifier confirms that the IntentFilter is NOT verified.static intINTENT_FILTER_VERIFICATION_SUCCESSUsed as theverificationCodeargument forPackageManager#verifyIntentFilterto indicate that the calling IntentFilter Verifier confirms that the IntentFilter is verified.static intMASK_PERMISSION_FLAGSMask for all permission flags.static intMATCH_ALLQuerying flag: if set and if the platform is doing any filtering of the results, then the filtering will not happen.static intMATCH_DEFAULT_ONLYResolution and querying flag: if set, only filters that support theandroid.content.Intent#CATEGORY_DEFAULTwill be considered for matching.static longMAXIMUM_VERIFICATION_TIMEOUTCan be used as themillisecondsToDelayargument forPackageManager#extendVerificationTimeout.static intMOVE_EXTERNAL_MEDIADeprecated.static intMOVE_FAILED_DOESNT_EXISTError code that is passed to theIPackageMoveObserverby#movePackage(android.net.Uri, IPackageMoveObserver)if the specified package doesn't exist.static intMOVE_FAILED_FORWARD_LOCKEDError code that is passed to theIPackageMoveObserverby#movePackage(android.net.Uri, IPackageMoveObserver)if the specified package cannot be moved since its forward locked.static intMOVE_FAILED_INSUFFICIENT_STORAGEError code that is passed to theIPackageMoveObserverby#movePackage(android.net.Uri, IPackageMoveObserver)when the package hasn't been successfully moved by the system because of insufficient memory on specified media.static intMOVE_FAILED_INTERNAL_ERRORError code that is passed to theIPackageMoveObserverby#movePackage(android.net.Uri, IPackageMoveObserver)if the specified package cannot be moved to the specified location.static intMOVE_FAILED_INVALID_LOCATIONError code that is passed to theIPackageMoveObserverby#movePackage(android.net.Uri, IPackageMoveObserver)if the specified package cannot be moved to the specified location.static intMOVE_FAILED_OPERATION_PENDINGError code that is passed to theIPackageMoveObserverby#movePackage(android.net.Uri, IPackageMoveObserver)if the specified package already has an operation pending in thePackageHandlerqueue.static intMOVE_FAILED_SYSTEM_PACKAGEError code that is passed to theIPackageMoveObserverby#movePackage(android.net.Uri, IPackageMoveObserver)if the specified package cannot be moved since its a system package.static intMOVE_INTERNALDeprecated.static intMOVE_SUCCEEDEDReturn code that is passed to theIPackageMoveObserverby#movePackage(android.net.Uri, IPackageMoveObserver)when the package has been successfully moved by the system.static intNO_NATIVE_LIBRARIESInternal return code for NativeLibraryHelper methods to indicate that the package being processed did not contain any native code.static intPERMISSION_DENIEDPermission check result: this is returned by#checkPermissionif the permission has not been granted to the given package.static intPERMISSION_GRANTEDPermission check result: this is returned by#checkPermissionif the permission has been granted to the given package.static intSIGNATURE_FIRST_NOT_SIGNEDSignature check result: this is returned by#checkSignaturesif the first package is not signed but the second is.static intSIGNATURE_MATCHSignature check result: this is returned by#checkSignaturesif all signatures on the two packages match.static intSIGNATURE_NEITHER_SIGNEDSignature check result: this is returned by#checkSignaturesif neither of the two packages is signed.static intSIGNATURE_NO_MATCHSignature check result: this is returned by#checkSignaturesif not all signatures on both packages match.static intSIGNATURE_SECOND_NOT_SIGNEDSignature check result: this is returned by#checkSignaturesif the second package is not signed but the first is.static intSIGNATURE_UNKNOWN_PACKAGESignature check result: this is returned by#checkSignaturesif either of the packages are not valid.static intSKIP_CURRENT_PROFILEFlag foraddCrossProfileIntentFilter: if this flag is set: when resolving an intent that matches theCrossProfileIntentFilter, the current profile will be skipped.static intVERIFICATION_ALLOWUsed as theverificationCodeargument forPackageManager#verifyPendingInstallto indicate that the calling package verifier allows the installation to proceed.static intVERIFICATION_ALLOW_WITHOUT_SUFFICIENTUsable by the required verifier as theverificationCodeargument forPackageManager#verifyPendingInstallto indicate that it will allow the installation to proceed without any of the optional verifiers needing to vote.static intVERIFICATION_REJECTUsed as theverificationCodeargument forPackageManager#verifyPendingInstallto indicate the calling package verifier does not vote to allow the installation to proceed.
-
Constructor Summary
Constructors Constructor Description PackageManager()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract PackageInfogetPackageInfo(String packageName, int flags)Retrieve overall information about an application package that is installed on the system.
-
-
-
Field Detail
-
GET_ACTIVITIES
public static final int GET_ACTIVITIES
PackageInfoflag: return information about activities in the package inPackageInfo#activities.- See Also:
- Constant Field Values
-
GET_RECEIVERS
public static final int GET_RECEIVERS
PackageInfoflag: return information about intent receivers in the package inPackageInfo#receivers.- See Also:
- Constant Field Values
-
GET_SERVICES
public static final int GET_SERVICES
PackageInfoflag: return information about services in the package inPackageInfo#services.- See Also:
- Constant Field Values
-
GET_PROVIDERS
public static final int GET_PROVIDERS
PackageInfoflag: return information about content providers in the package inPackageInfo#providers.- See Also:
- Constant Field Values
-
GET_INSTRUMENTATION
public static final int GET_INSTRUMENTATION
PackageInfoflag: return information about instrumentation in the package inPackageInfo#instrumentation.- See Also:
- Constant Field Values
-
GET_INTENT_FILTERS
public static final int GET_INTENT_FILTERS
PackageInfoflag: return information about the intent filters supported by the activity.- See Also:
- Constant Field Values
-
GET_SIGNATURES
public static final int GET_SIGNATURES
PackageInfoflag: return information about the signatures included in the package.- See Also:
- Constant Field Values
-
GET_RESOLVED_FILTER
public static final int GET_RESOLVED_FILTER
ResolveInfoflag: return the IntentFilter that was matched for a particular ResolveInfo inResolveInfo#filter.- See Also:
- Constant Field Values
-
GET_META_DATA
public static final int GET_META_DATA
ComponentInfoflag: return theComponentInfo#metaDatadataBundles 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
PackageInfoflag: return thegroup idsthat 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
PackageInfoflag: include disabled components in the returned info.- See Also:
- Constant Field Values
-
GET_SHARED_LIBRARY_FILES
public static final int GET_SHARED_LIBRARY_FILES
ApplicationInfoflag: return thepaths to the shared librariesthat 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
ProviderInfoflag: return theURI permission patternsthat 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
PackageInfoflag: return information about permissions in the package inPackageInfo#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 flagDONT_DELETE_DATAwith 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
PackageInfoflag: return information about hardware preferences inPackageInfo.configPreferences, and requested features inPackageInfo#reqFeaturesandPackageInfo#featureGroups.- See Also:
- Constant Field Values
-
GET_DISABLED_UNTIL_USED_COMPONENTS
public static final int GET_DISABLED_UNTIL_USED_COMPONENTS
PackageInfoflag: include disabled components which are in that state only because ofCOMPONENT_ENABLED_STATE_DISABLED_UNTIL_USEDin 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 theandroid.content.Intent#CATEGORY_DEFAULTwill 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 foraddCrossProfileIntentFilter: if this flag is set: when resolving an intent that matches theCrossProfileIntentFilter, 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#checkPermissionif 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#checkPermissionif 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#checkSignaturesif 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#checkSignaturesif 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#checkSignaturesif 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#checkSignaturesif 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#checkSignaturesif 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#checkSignaturesif 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 useGET_DISABLED_UNTIL_USED_COMPONENTSto 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#installPackageto 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#installPackageto 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#installPackageto indicate that this package must be installed to an ASEC on aVolumeInfo#TYPE_PUBLIC.- See Also:
- Constant Field Values
-
INSTALL_INTERNAL
public static final int INSTALL_INTERNAL
Flag parameter for#installPackageto 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#installPackageto 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#installPackageto 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#installPackageto 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#installPackageto indicate that all runtime permissions should be granted to the package. IfINSTALL_ALL_USERSis 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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theINSTALL_ALLOW_TESTflag.- 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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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 theIPackageInstallObserverby#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_PACKAGEstring extra; and the name of the permission being redefined is passed in the#EXTRA_EXISTING_PERMISSIONstring 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 theIPackageInstallObserverby#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
-
INSTALL_FAILED_ABORTED
public static final int INSTALL_FAILED_ABORTED
- See Also:
- Constant Field Values
-
DELETE_KEEP_DATA
public static final int DELETE_KEEP_DATA
Flag parameter for#deletePackageto 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#deletePackageto 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#deletePackageto 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 theIPackageDeleteObserverby#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 theIPackageDeleteObserverby#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 theIPackageDeleteObserverby#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 theIPackageDeleteObserverby#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 theIPackageDeleteObserverby#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
-
DELETE_FAILED_ABORTED
public static final int DELETE_FAILED_ABORTED
- See Also:
- Constant Field Values
-
MOVE_SUCCEEDED
public static final int MOVE_SUCCEEDED
Return code that is passed to theIPackageMoveObserverby#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 theIPackageMoveObserverby#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 theIPackageMoveObserverby#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 theIPackageMoveObserverby#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 theIPackageMoveObserverby#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 theIPackageMoveObserverby#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 theIPackageMoveObserverby#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 theIPackageMoveObserverby#movePackage(android.net.Uri, IPackageMoveObserver)if the specified package already has an operation pending in thePackageHandlerqueue.- See Also:
- Constant Field Values
-
MOVE_INTERNAL
@Deprecated public static final int MOVE_INTERNAL
Deprecated.Flag parameter for#movePackageto 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#movePackageto indicate that the package should be moved to external media.- See Also:
- Constant Field Values
-
EXTRA_MOVE_ID
public static final String EXTRA_MOVE_ID
- See Also:
- Constant Field Values
-
VERIFICATION_ALLOW_WITHOUT_SUFFICIENT
public static final int VERIFICATION_ALLOW_WITHOUT_SUFFICIENT
Usable by the required verifier as theverificationCodeargument forPackageManager#verifyPendingInstallto 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 theverificationCodeargument forPackageManager#verifyPendingInstallto 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 theverificationCodeargument forPackageManager#verifyPendingInstallto 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 theverificationCodeargument forPackageManager#verifyIntentFilterto 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 theverificationCodeargument forPackageManager#verifyIntentFilterto 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 thestatusargument forPackageManager#updateIntentVerificationStatusto 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 thestatusargument forPackageManager#updateIntentVerificationStatusto 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 thestatusargument forPackageManager#updateIntentVerificationStatusto 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 thestatusargument forPackageManager#updateIntentVerificationStatusto 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 themillisecondsToDelayargument forPackageManager#extendVerificationTimeout. This is the maximum timePackageManagerwaits 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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#hasSystemFeature: The device's camera supports flash.- See Also:
- Constant Field Values
-
FEATURE_CAMERA_FRONT
public static final String FEATURE_CAMERA_FRONT
Feature for#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#hasSystemFeature: At least one of the cameras on the device supports thefull hardwarecapability level.- See Also:
- Constant Field Values
-
FEATURE_CAMERA_CAPABILITY_MANUAL_SENSOR
public static final String FEATURE_CAMERA_CAPABILITY_MANUAL_SENSOR
Feature for#getSystemAvailableFeaturesand#hasSystemFeature: At least one of the cameras on the device supports themanual sensorcapability level.- See Also:
- Constant Field Values
-
FEATURE_CAMERA_CAPABILITY_MANUAL_POST_PROCESSING
public static final String FEATURE_CAMERA_CAPABILITY_MANUAL_POST_PROCESSING
Feature for#getSystemAvailableFeaturesand#hasSystemFeature: At least one of the cameras on the device supports themanual post-processingcapability level.- See Also:
- Constant Field Values
-
FEATURE_CAMERA_CAPABILITY_RAW
public static final String FEATURE_CAMERA_CAPABILITY_RAW
Feature for#getSystemAvailableFeaturesand#hasSystemFeature: At least one of the cameras on the device supports theRAWcapability level.- See Also:
- Constant Field Values
-
FEATURE_CONSUMER_IR
public static final String FEATURE_CONSUMER_IR
Feature for#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#hasSystemFeature: The device can record audio via a microphone.- See Also:
- Constant Field Values
-
FEATURE_NFC
public static final String FEATURE_NFC
Feature for#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#hasSystemFeature: The device supports host- based NFC card emulation.- See Also:
- Constant Field Values
-
FEATURE_OPENGLES_EXTENSION_PACK
public static final String FEATURE_OPENGLES_EXTENSION_PACK
Feature for#getSystemAvailableFeaturesand#hasSystemFeature: The device supports the OpenGL ES Android Extension Pack.- See Also:
- Constant Field Values
-
FEATURE_SENSOR_ACCELEROMETER
public static final String FEATURE_SENSOR_ACCELEROMETER
Feature for#getSystemAvailableFeaturesand#hasSystemFeature: The device includes an accelerometer.- See Also:
- Constant Field Values
-
FEATURE_SENSOR_BAROMETER
public static final String FEATURE_SENSOR_BAROMETER
Feature for#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#hasSystemFeature: The device includes a magnetometer (compass).- See Also:
- Constant Field Values
-
FEATURE_SENSOR_GYROSCOPE
public static final String FEATURE_SENSOR_GYROSCOPE
Feature for#getSystemAvailableFeaturesand#hasSystemFeature: The device includes a gyroscope.- See Also:
- Constant Field Values
-
FEATURE_SENSOR_LIGHT
public static final String FEATURE_SENSOR_LIGHT
Feature for#getSystemAvailableFeaturesand#hasSystemFeature: The device includes a light sensor.- See Also:
- Constant Field Values
-
FEATURE_SENSOR_PROXIMITY
public static final String FEATURE_SENSOR_PROXIMITY
Feature for#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#hasSystemFeature: The device supports high fidelity sensor processing capabilities.- See Also:
- Constant Field Values
-
FEATURE_TELEPHONY
public static final String FEATURE_TELEPHONY
Feature for#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#hasSystemFeature: The device supports connecting to USB accessories.- See Also:
- Constant Field Values
-
FEATURE_SIP
public static final String FEATURE_SIP
Feature for#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#hasSystemFeature: The device supports SIP-based VOIP.- See Also:
- Constant Field Values
-
FEATURE_CONNECTION_SERVICE
public static final String FEATURE_CONNECTION_SERVICE
Feature for#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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 ofFEATURE_FAKETOUCHfor input devices with this capability. Note that unlike a distinct multitouch screen as defined byFEATURE_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#getSystemAvailableFeaturesand#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 ofFEATURE_FAKETOUCHfor input devices with this capability. Note that unlike a multitouch screen as defined byFEATURE_TOUCHSCREEN_MULTITOUCH_JAZZHAND, not all two finger gestures can be detected due to the limitations described forFEATURE_FAKETOUCH_MULTITOUCH_DISTINCT.- See Also:
- Constant Field Values
-
FEATURE_FINGERPRINT
public static final String FEATURE_FINGERPRINT
Feature for#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#hasSystemFeature: The device supports portrait orientation screens. For backwards compatibility, you can assume that if neither this norFEATURE_SCREEN_LANDSCAPEis 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#getSystemAvailableFeaturesand#hasSystemFeature: The device supports landscape orientation screens. For backwards compatibility, you can assume that if neither this norFEATURE_SCREEN_PORTRAITis 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#getSystemAvailableFeaturesand#hasSystemFeature: The device supports live wallpapers.- See Also:
- Constant Field Values
-
FEATURE_APP_WIDGETS
public static final String FEATURE_APP_WIDGETS
Feature for#getSystemAvailableFeaturesand#hasSystemFeature: The device supports app widgets.- See Also:
- Constant Field Values
-
FEATURE_VOICE_RECOGNIZERS
public static final String FEATURE_VOICE_RECOGNIZERS
- See Also:
- Constant Field Values
-
FEATURE_HOME_SCREEN
public static final String FEATURE_HOME_SCREEN
Feature for#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#hasSystemFeature: The device supports adding new input methods implemented with theandroid.inputmethodservice.InputMethodServiceAPI.- See Also:
- Constant Field Values
-
FEATURE_DEVICE_ADMIN
public static final String FEATURE_DEVICE_ADMIN
Feature for#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#hasSystemFeature: The device supports leanback UI. This is typically used in a living room television experience, but is a software feature unlikeFEATURE_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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#hasSystemFeature: The device supports live TV and can display contents from TV inputs implemented with theandroid.media.tv.TvInputServiceAPI.- See Also:
- Constant Field Values
-
FEATURE_WIFI
public static final String FEATURE_WIFI
Feature for#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#hasSystemFeature: The device supports Wi-Fi Direct networking.- See Also:
- Constant Field Values
-
FEATURE_AUTOMOTIVE
public static final String FEATURE_AUTOMOTIVE
Feature for#getSystemAvailableFeaturesand#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.useFEATURE_LEANBACKinstead.Feature for#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#hasSystemFeature: The device supports printing.- See Also:
- Constant Field Values
-
FEATURE_BACKUP
public static final String FEATURE_BACKUP
Feature for#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#hasSystemFeature: The device supports creating secondary users and managed profiles viaDevicePolicyManager.- See Also:
- Constant Field Values
-
FEATURE_MANAGED_PROFILES
public static final String FEATURE_MANAGED_PROFILES
- See Also:
- Constant Field Values
-
FEATURE_VERIFIED_BOOT
public static final String FEATURE_VERIFIED_BOOT
Feature for#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#hasSystemFeature: This device supports ethernet.- See Also:
- Constant Field Values
-
FEATURE_HDMI_CEC
public static final String FEATURE_HDMI_CEC
Feature for#getSystemAvailableFeaturesand#hasSystemFeature: This device supports HDMI-CEC.- See Also:
- Constant Field Values
-
FEATURE_GAMEPAD
public static final String FEATURE_GAMEPAD
Feature for#getSystemAvailableFeaturesand#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#getSystemAvailableFeaturesand#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 toPackageManager#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_RESULT
public static final String EXTRA_VERIFICATION_RESULT
Extra field name for the result of a verification, eitherVERIFICATION_ALLOW, orVERIFICATION_REJECT. Passed to package verifiers after a package is verified.- 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 toPackageManager#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 forPackageInstallObserverin the 'extras' Bundle in case ofINSTALL_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 forPackageInstallObserverin the 'extras' Bundle in case ofINSTALL_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
-
-
Method Detail
-
getPackageInfo
public abstract PackageInfo getPackageInfo(String packageName, int flags) throws PackageManager.NameNotFoundException
Retrieve overall information about an application package that is installed on the system.Throws
PackageManager.NameNotFoundExceptionif a package with the given name can not be found on the system.- Parameters:
packageName- The full name (i.e. com.google.apps.contacts) of the desired package.flags- Additional option flags. Use any combination ofGET_ACTIVITIES,GET_GIDS,GET_CONFIGURATIONS,GET_INSTRUMENTATION,GET_PERMISSIONS,GET_PROVIDERS,GET_RECEIVERS,GET_SERVICES,GET_SIGNATURES,GET_UNINSTALLED_PACKAGESto modify the data returned.- Returns:
- Returns a PackageInfo object containing information about the
package. If flag GET_UNINSTALLED_PACKAGES is set and if the
package is not found in the list of installed applications, the
package information is retrieved from the list of uninstalled
applications (which includes installed applications as well as
applications with data directory i.e. applications which had been
deleted with
DONT_DELETE_DATAflag set). - Throws:
PackageManager.NameNotFoundException- See Also:
GET_ACTIVITIES,GET_GIDS,GET_CONFIGURATIONS,GET_INSTRUMENTATION,GET_PERMISSIONS,GET_PROVIDERS,GET_RECEIVERS,GET_SERVICES,GET_SIGNATURES,GET_UNINSTALLED_PACKAGES
-
-