Common usage:
To view packages that have already been installed
PM List Packages
View installed packages and apk paths (-3: see only third-party apps;-S: Only for system applications)
-f:see their associated file.
-d:filter to only show disbled packages.
-e:filter to only show enabled packages.
-s:filter to only show system packages.
-3:filter to only show third party packages.
PM List Packages-f-3
Lists the APK locations for the specified package name
Delete all data for an app (equivalent to a fresh installation)
Clear com. Ucmobile
Disable/Enable an app (disable/enable)
PM Disable Com.android.systemui
List hardware Information
PM List Features
Complete usage:
USAGE:PM list packages [-F] [-d] [-e] [-S] [-3] [-i] [-u] [FILTER]
PM List permission-groups
PM List permissions [-G] [-f] [-d] [-u] [GROUP]
PM list instrumentation [-f] [Target-package]
PM List Features
PM List Libraries
PM Path Package
PM install [-l] [-r] [-T] [-I installer_package_name] [-S] [-f]
[--algo <algorithm name>--key <key-in-hex>--iv <iv-in-hex>]
PATH
PM Uninstall [-K] Package
PM Clear Package
PM Enable Package_or_component
PM Disable Package_or_component
PM Disable-user package_or_component
PM Grant Package PERMISSION
PM REVOKE Package PERMISSION
PM Set-install-location [0/auto] [1/internal] [2/external]
PM Get-install-location
PM set-permission-enforced permission [True|false]
PM List packages:prints All packages, optionally only
Those whose package name contains the text in FILTER. Options:
-f:see their associated file.
-d:filter to only show disbled 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.
PM List permission-groups:prints All known permission groups.
PM List permissions:prints All known permissions, optionally only
Those in GROUP. Options:
-g:organize by group.
-f:print all information.
-s:short Summary.
-d:only List dangerous permissions.
-u:list only the permissions users would see.
PM List instrumentation:use to list all test packages; Optionally
Supply <TARGET-PACKAGE> to list the test packages for a particular
Application. Options:
-f:list apk file for the test package.
PM List features:prints All features of the system.
PM Path:print the path to the. APK for the given package.
PM Install:installs a package to the system. Options:
-l:install the package with Forward_lock.
-r:reinstall an exisiting app, keeping it data.
-t:allow test. APKs to be installed.
-i:specify the installer package name.
-s:install package on SDcard.
-f:install package on internal flash.
PM Uninstall:removes a package from the system. Options:
-k:keep the data and cache directories around after package removal.
PM Clear:deletes all data associated with a package.
PM Enable, disable, Disable-user:these commands change the enabled state
of a given package or component (written as "Package/class").
PM Grant, Revoke:these commands either grant or revoke permissions
to applications. Only optional permissions the application have
Declared can be granted or revoked.
PM Get-install-location:returns the current install location.
0 [Auto]: let system decide
1 [internal]: Install on internal device storage
2 [external]: Install on external media
PM Set-install-location:changes the default install location.
Note:this is only intended for debugging; Using this can cause
Applications to break and other undersireable behavior.
0 [Auto]: let system decide
1 [internal]: Install on internal device storage
2 [external]: Install on external media
PM of ADB command