adb-shell-pm-list
List and filter installed Android packages
TLDR
SYNOPSIS
adb shell pm list packages [-f] [-d] [-e] [-s] [-3] [-i] [-U] [-u] [--show-versioncode] [--apex-only] [--user userid] [filter_]
DESCRIPTION
pm list packages displays installed applications on an Android device. The output can be filtered by package type (system, third-party, enabled, disabled) and optionally include APK file paths.The filter argument performs a substring match on package names, useful for finding packages from a specific vendor or with a specific component.
PARAMETERS
-f
Show associated APK file path.-a
Show all known packages (excluding APEXes).-d
Show only disabled packages.-e
Show only enabled packages.-s
Show only system packages.-3
Show only third-party packages.-i
Show installer for each package.-U
Show the package UID.-u
Include uninstalled packages.--show-versioncode
Show the version code of each package.--apex-only
Show only APEX packages.--uid UID
Filter to only show packages with the given UID.--user userid_
List packages for a specific user.
CAVEATS
Output format may vary slightly between Android versions. System packages include both true system apps and apps installed in the system partition. Some packages may be hidden and not appear in standard listings. Flags like `--show-versioncode` and `--apex-only` require newer Android versions.
HISTORY
The package listing functionality has been available since Android 1.0 in 2008, with filtering options added in subsequent versions to accommodate the growing number of installed applications.
SEE ALSO
adb-shell-pm(1), adb(1)
