← 返回命令列表

Linux command

adb-shell-pm-list 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List

adb shell pm list packages

Example

adb shell pm list packages -f

Example

adb shell pm list packages -s

Example

adb shell pm list packages -3

Example

adb shell pm list packages -d

Example

adb shell pm list packages --show-versioncode

Filter

adb shell pm list packages [google]

说明

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.

参数

-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 _user_id_
List packages for a specific user.

FAQ

What is the adb-shell-pm-list command used for?

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.

How do I run a basic adb-shell-pm-list example?

Run `adb shell pm list packages` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -f do in adb-shell-pm-list?

Show associated APK file path.