Added in API level 1
android.content.pm
Contains classes for accessing information about an application package, including information about its activities, permissions, services, signatures, and providers.
Most of the information about an application package is defined by its manifest file. For more information, see the AndroidManifest.xml File documentation.
Interfaces
PackageManager.OnChecksumsReadyListener | Listener that gets notified when checksums are available. |
Classes
ActivityInfo | Information you can retrieve about a particular application activity or receiver. |
ActivityInfo.WindowLayout | Contains information about position and size of the activity on the display. |
ApkChecksum | A typed checksum of an APK. |
ApplicationInfo | Information you can retrieve about a particular application. |
ApplicationInfo.DisplayNameComparator | |
ArchivedActivityInfo | Contains fields required to show archived package in Launcher. |
ArchivedPackageInfo | Contains fields required for archived package installation, i.e. |
Attribution | Information about an attribution declared by a package. |
Capability | Represents a capability that can be performed by an app, also known as App Action. |
Capability.Builder |
Builder class for Capability .
|
CapabilityParams |
Represents the parameters and its matching names which can be associated with a
Capability .
|
CapabilityParams.Builder |
Builder class for CapabilityParams .
|
ChangedPackages | Packages that have been changed since the last time they were requested. |
Checksum | A typed checksum. |
ComponentInfo |
Base class containing information common to all application components
(ActivityInfo , ServiceInfo ).
|
ConfigurationInfo | Information you can retrieve about hardware configuration preferences declared by an application. |
CrossProfileApps | Class for handling cross profile operations. |
FeatureGroupInfo | A set of features that can be requested by an application. |
FeatureInfo | Definition of a single optional hardware or software feature of an Android device. |
InstallSourceInfo | Information about how an app was installed. |
InstrumentationInfo | Information you can retrieve about a particular piece of test instrumentation. |
LabeledIntent | A special subclass of Intent that can have a custom label/icon associated with it. |
LauncherActivityInfo | A representation of an activity that can belong to this user or a managed profile associated with this user. |
LauncherApps |
Class for retrieving a list of launchable activities for the current user and any associated
managed profiles that are visible to the current user, which can be retrieved with
getProfiles() .
|
LauncherApps.ArchiveCompatibilityParams |
Used to enable Archiving compatibility options with LauncherApps.setArchiveCompatibility(ArchiveCompatibilityParams) .
|
LauncherApps.Callback | Callbacks for package changes to this and related managed profiles. |
LauncherApps.PinItemRequest |
Represents a "pin shortcut" or a "pin appwidget" request made by an app, which is sent with
an LauncherApps.ACTION_CONFIRM_PIN_SHORTCUT or LauncherApps.ACTION_CONFIRM_PIN_APPWIDGET intent
respectively to the default launcher app.
|
LauncherApps.ShortcutQuery |
Represents a query passed to LauncherApps.getShortcuts(android.content.pm.LauncherApps.ShortcutQuery, android.os.UserHandle) .
|
LauncherUserInfo | The LauncherUserInfo object holds information about an Android user that is required to display the Launcher related UI elements specific to the user (like badges). |
ModuleInfo | Information you can retrieve about a particular system module. |
PackageInfo | Overall information about the contents of a package. |
PackageInstaller | Offers the ability to install, upgrade, and remove applications on the device. |
PackageInstaller.InstallConstraints | A class to encapsulate constraints for installation. |
PackageInstaller.InstallConstraints.Builder |
Builder class for constructing InstallConstraints .
|
PackageInstaller.InstallConstraintsResult |
The callback result of PackageInstaller.checkInstallConstraints(java.util.List, android.content.pm.PackageInstaller.InstallConstraints, java.util.concurrent.Executor, java.util.function.Consumer) .
|
PackageInstaller.PreapprovalDetails | Details for requesting the pre-commit install approval. |
PackageInstaller.PreapprovalDetails.Builder |
A builder for PreapprovalDetails
|
PackageInstaller.Session | An installation that is being actively staged. |
PackageInstaller.SessionCallback | Events for observing session lifecycle. |
PackageInstaller.SessionInfo | Details for an active install session. |
PackageInstaller.SessionParams |
Parameters for creating a new PackageInstaller.Session .
|
PackageInstaller.UnarchivalState |
Used to communicate the unarchival state in PackageInstaller.reportUnarchivalState(UnarchivalState) .
|
PackageItemInfo | Base class containing information common to all package items held by the package manager. |
PackageItemInfo.DisplayNameComparator | |
PackageManager | Class for retrieving various kinds of information related to the application packages that are currently installed on the device. |
PackageManager.ApplicationInfoFlags | Specific flags used for retrieving application info. |
PackageManager.ComponentEnabledSetting | The class containing the enabled setting of a package component. |
PackageManager.ComponentInfoFlags | Specific flags used for retrieving component info. |
PackageManager.PackageInfoFlags | Specific flags used for retrieving package info. |
PackageManager.Property | A property value set within the manifest. |
PackageManager.ResolveInfoFlags | Specific flags used for retrieving resolve info. |
PackageStats |
This class was deprecated
in API level 26.
this class is an orphan that could never be obtained from a valid
public API. If you need package storage statistics use the new
StorageStatsManager APIs.
|
PathPermission |
Description of permissions needed to access a particular path
in a ProviderInfo .
|
PermissionGroupInfo | Information you can retrieve about a particular security permission group known to the system. |
PermissionInfo | Information you can retrieve about a particular security permission known to the system. |
ProviderInfo |
Holds information about a specific
content provider .
|
ResolveInfo | Information that is returned from resolving an intent against an IntentFilter. |
ResolveInfo.DisplayNameComparator | |
ServiceInfo | Information you can retrieve about a particular application service. |
SharedLibraryInfo | This class provides information for a shared library. |
ShortcutInfo |
Represents a shortcut that can be published via ShortcutManager .
|
ShortcutInfo.Builder |
Builder class for ShortcutInfo objects.
|
ShortcutManager |
|
Signature | Opaque, immutable representation of a signing certificate associated with an application package. |
SigningInfo | Information pertaining to the signing certificates used to sign a package. |
VersionedPackage | Encapsulates a package and its version code. |
Exceptions
PackageManager.NameNotFoundException | This exception is thrown when a given package, application, or component name cannot be found. |
Interfaces
Classes
- ActivityInfo
- ActivityInfo.WindowLayout
- ApkChecksum
- ApplicationInfo
- ApplicationInfo.DisplayNameComparator
- ArchivedActivityInfo
- ArchivedPackageInfo
- Attribution
- Capability
- Capability.Builder
- CapabilityParams
- CapabilityParams.Builder
- ChangedPackages
- Checksum
- ComponentInfo
- ConfigurationInfo
- CrossProfileApps
- FeatureGroupInfo
- FeatureInfo
- InstallSourceInfo
- InstrumentationInfo
- LabeledIntent
- LauncherActivityInfo
- LauncherApps
- LauncherApps.ArchiveCompatibilityParams
- LauncherApps.Callback
- LauncherApps.PinItemRequest
- LauncherApps.ShortcutQuery
- LauncherUserInfo
- ModuleInfo
- PackageInfo
- PackageInstaller
- PackageInstaller.InstallConstraints
- PackageInstaller.InstallConstraints.Builder
- PackageInstaller.InstallConstraintsResult
- PackageInstaller.PreapprovalDetails
- PackageInstaller.PreapprovalDetails.Builder
- PackageInstaller.Session
- PackageInstaller.SessionCallback
- PackageInstaller.SessionInfo
- PackageInstaller.SessionParams
- PackageInstaller.UnarchivalState
- PackageItemInfo
- PackageItemInfo.DisplayNameComparator
- PackageManager
- PackageManager.ApplicationInfoFlags
- PackageManager.ComponentEnabledSetting
- PackageManager.ComponentInfoFlags
- PackageManager.PackageInfoFlags
- PackageManager.Property
- PackageManager.ResolveInfoFlags
- PackageStats
- PathPermission
- PermissionGroupInfo
- PermissionInfo
- ProviderInfo
- ResolveInfo
- ResolveInfo.DisplayNameComparator
- ServiceInfo
- SharedLibraryInfo
- ShortcutInfo
- ShortcutInfo.Builder
- ShortcutManager
- Signature
- SigningInfo
- VersionedPackage
Exceptions