snippetbashTip
adb shell pm — Android Package Manager tool. More information: <https://developer.android.com/tools/adb>.
Viewed 0 times
commandadb shell pmclitoolpackageandroidmoremanager
Problem
How to use the
adb shell pm command: Android Package Manager tool. More information: <https://developer.android.com/tools/adb>.Solution
adb shell pm — Android Package Manager tool. More information: <https://developer.android.com/tools/adb>.List installed packages:
adb shell pm list packagesInstall an app package from a given path:
adb shell pm install /{{path/to/app}}.apkUninstall a package from the device:
adb shell pm uninstall {{package}}Clear all app data for a package:
adb shell pm clear {{package}}Enable a package or component:
adb shell pm enable {{package_or_class}}Disable a package or component:
adb shell pm disable-user {{package_or_class}}Grant a permission for an app:
adb shell pm grant {{package}} {{android.permission.CAMERA|android.permission.ACCESS_FINE_LOCATION|android.permission.READ_CONTACTS|...}}Revoke a permission for an app:
adb shell pm revoke {{package}} {{android.permission.CAMERA|android.permission.ACCESS_FINE_LOCATION|android.permission.READ_CONTACTS|...}}Code Snippets
List installed packages
adb shell pm list packagesInstall an app package from a given path
adb shell pm install /{{path/to/app}}.apkUninstall a package from the device
adb shell pm uninstall {{package}}Clear all app data for a package
adb shell pm clear {{package}}Enable a package or component
adb shell pm enable {{package_or_class}}Context
tldr-pages: common/adb shell pm
Revisions (0)
No revisions yet.