adb shell pm list packages

In this article, we shall look at the “adb shell pm list packages” adb command and also how to use “adb shell pm list packages” command, with an example.

How to use adb shell pm list packages

Prints all packages

adb shell pm list packages

See their associated APK file

adb shell pm list packages -f

All known packages

But excluding APEXes (Android Pony EXpress)
adb shell pm list packages -a

Only show APEX packages

adb shell pm list packages --apex-only

Filter to only show disabled packages

adb shell pm list packages -d

Filter to only show enabled packages

adb shell pm list packages -e

Filter to only show system packages

adb shell pm list packages -s

Filter to only show third party packages

adb shell pm list packages -3

See the installer for the packages

adb shell pm list packages -i

Ignored (used for compatibility with older releases)

adb shell pm list packages -l

Also show the package UID

adb shell pm list packages -U

Also include uninstalled packages

adb shell pm list packages -u

Also show the version code

adb shell pm list packages --show-versioncode

Filter to only show packages with the given UID

adb shell pm list packages --uid UID

Only list packages belonging to the given user

adb shell pm list packages --user USER_ID

If you are looking for the latest ADB Driver for Android, you can get from here: ADB Driver

Leave a Comment