HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

adb shell pm list — List users, packages, permissions, instrumentation, permission groups, features, and libraries manag

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commanduserscliadb shell pm listpermissionsinstrumentationlistpackages

Problem

How to use the adb shell pm list command: List users, packages, permissions, instrumentation, permission groups, features, and libraries managed by the package manager. More information: <https://developer.android.com/tools/adb>.

Solution

adb shell pm list — List users, packages, permissions, instrumentation, permission groups, features, and libraries managed by the package manager. More information: <https://developer.android.com/tools/adb>.

List all installed packages:
adb shell pm list packages


Print all users on the system:
adb shell pm list users


Print all known permission groups:
adb shell pm list permission-groups


Print all known permissions:
adb shell pm list permissions


List all test packages:
adb shell pm list instrumentation


Print all features of the system:
adb shell pm list features


Print all the libraries supported by the current device:
adb shell pm list libraries

Code Snippets

List all installed packages

adb shell pm list packages

Print all users on the system

adb shell pm list users

Print all known permission groups

adb shell pm list permission-groups

Print all known permissions

adb shell pm list permissions

List all test packages

adb shell pm list instrumentation

Context

tldr-pages: common/adb shell pm list

Revisions (0)

No revisions yet.