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
Developers can use the command of adb shell pm to manage installed apps on an Android device, installation, and uninstallation, as well as query application details. This command helps you to manually control all the packages installed.
It is possible to install a new application on the device from the command line with adb install
Using the command ADB Shell PM, you can clean the app data or cache which helps reset the app states during testing. This does not require manual intervention.
The tool provides an entire list of all installed packages available through the adb shell pm command, which gives the user detailed information regarding the apps and packages on the device, including system apps, user-installed apps, and hidden packages.
Users can search for specific packages based on keywords or their respective names. Users may rapidly look up relevant packages and resolve problems quickly, especially with many applications.
The command adb shell pm is safe to use because this command mainly provides package-related information and does not alter any system settings. For most operations, it runs in read-only mode to ensure that nothing about the device configuration happens unintentionally. A command like this makes it very reliable for use by both developers and test engineers.
Frequently Asked Questions
ADB Shell PM means package manager for developers who want to do management about the application of an Android device. The tool is command-line based. It may be used for installing, uninstalling, querying, or configuring app permissions.
Attach your device and enter the terminal command adb install
Enter the following command: adb shell pm uninstall
Yes, through adb shell pm list packages, you will get a list of all applications installed, either user or system.
Yes, by executing the command as adb shell pm clear
This command allows you to provide certain permissions to the app installed on the device and comes in handy when it is for testing purposes.
To get more info on an app's permissions and configurations, use the command adb shell pm dump
The output for the list of packages is the list of package names of installed applications. The list appears as a simple list of package names so that one can easily identify any installed application.
You can search for a portion of application name as is given below: adb shell pm list packages | grep
Actually, it is available on any Android device or emulator if ADB is supported.
Yes, you can do most of the package management on a non-rooted device, though some features may be restricted or not available at all.
Some system applications cannot be uninstalled without having the root rights and others can be disabled through adb shell pm disable-user
You could put multiple adb install
First, you need to check your device if it is correctly connected, also make sure that USB debugging is already enabled to verify the installation of ADB.
Yes. To update an application, you can simply reinstall it by using the command adb install -r
You can make use of the command adb shell pm dump
Typical commands include adb shell pm list packages, adb shell pm install, adb shell pm uninstall, and adb shell pm clear.
Yes, it is best to use ADB Shell PM for testing app behavior.