Adb shell pm

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

            

how to image


Frequently Asked Questions


What is abd shell pm command used for?

It is a command used for performing actions and queries on app packages installed on the device.

How can I use this command to filter the packages that I want to see?

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.

Can I install packages the same way I can uninstall them?

Yes, you can. To do so, use the adb shell pm install path command replacing path with your path.

rating-img
Rate this tool
NaN/5   0 votes