System
ADB Debugging
Package Manager
Logcat
Wireless
File Manager
ScreenShot
Network
logcat
This command is used to call package manager and do specific task which only package manager can do
adb shell pm list features
list all phone features
adb shell pm list features
adb shell pm clear packageName
Deletes all data associated with a package.
adb shell pm clear com.example.MyApp
adb shell pm uninstall packageName
Removes a package from the system.
adb shell pm uninstall com.example.MyApp
adb shell pm list permission-groups
Prints all known permission groups.
adb shell pm list permission-groups
adb shell pm list users
Prints all users on the system.
adb shell pm list users
adb shell pm list libraries
Prints all the libraries supported by the current device.
adb shell pm list libraries
adb shell pm path packageName
Display the path of package
adb shell pm path com.example.MyApp
adb shell pm list packages
Prints all the packages.
adb shell pm list packages
Frequently Asked Questions
It is a command used for performing actions and queries on app packages installed on the device.
To use the filter while displaying the packages, use the command adb shell pm list packages -filter where -filter can be replaced with: -f: See their associated file. -d: Filter to only show disabled packages. -e: Filter to only show enabled packages. -s: Filter to only show system packages. -3: Filter to only show third party packages. -i: See the installer for the packages. -u: Also include uninstalled packages.
Yes, you can. To do so, use the adb shell pm install path command replacing path with your path.