adb-shell-pm
Android package manager shell interface
TLDR
List all installed packages
SYNOPSIS
adb shell pm command [options]
DESCRIPTION
pm (Package Manager) is an Android shell command for managing installed applications. It provides functionality for listing, installing, uninstalling, and querying information about packages on the device.
This tool is more powerful than the standard adb install/uninstall commands, offering options to manage permissions, disable packages, and query detailed package information.
PARAMETERS
list packages [-f] [-d] [-e] [-s] [-3] [-i] [-u] [filter]
List packages (-f: with APK path, -d: disabled, -e: enabled, -s: system, -3: third-party, -i: with installer, -u: include uninstalled)path package
Print path to the APKinstall [-r] [-t] [-d] path
Install package from device pathuninstall [-k] package
Remove package (-k: keep data)clear package
Delete all data associated with packageenable package
Enable a disabled packagedisable package
Disable a packagegrant package permission
Grant a permission to a packagerevoke package permission
Revoke a permission from a packagedump package
Print package information
CAVEATS
Some operations require system or root privileges. Disabling system packages may cause instability. Package names are case-sensitive. Uninstalling system apps may require root.
HISTORY
The package manager command has been part of Android since its initial release in 2008, providing command-line access to the PackageManager system service.
SEE ALSO
adb(1), adb-shell(1), adb-install(1), adb-uninstall(1)
