Android中pm命令用法

pm命令的具体用法如下:

usage: pm [list|path|install|uninstall]
pm list packages [-f]
pm list permission-groups
pm list permissions [-g] [-f] [-d] [-u] [GROUP]
pm list instrumentation [-f] [TARGET-PACKAGE]
pm path PACKAGE
pm install [-l] [-r] PATH
pm uninstall [-k] PACKAGE
pm enable PACKAGE_OR_COMPONENT
pm disable PACKAGE_OR_COMPONENT

The list packages command prints all packages.Use
the -f option to see their associated file.

The list permission-groups command prints all known
permission groups.

The list permissions command prints all known
permissions, optionally only those in GROUP.Use
the -g option to organize by group.Use
the -f option to print all information.Use
the -s option for a short summary.Use
the -d option to only list dangerous permissions.Use
the -u option to list only the permissions users will see.

The list instrumentation command prints all instrumentations,
or only those that target a specified package.Use the -f option
to see their associated file.

The path command prints the path to the .apk of a package.

The install command installs a package to the system.Use
the -l option to install the package with FORWARD_LOCK. Use
the -r option to reinstall an exisiting app, keeping its data.

The uninstall command removes a package from the system. Use
the -k option to keep the data and cache directories around
after the package removal.

更多相关文章

  1. adb命令执行java代码
  2. wm命令使用方法(修改android 分辨率)修改
  3. Android常用命令
  4. 〖Android〗dropbear一些操作命令备忘
  5. Android 的AT命令协议栈初始化
  6. Android SDK 中常用的几个命令
  7. Android模块编译:m/mm/mmm命令
  8. Android中am命令用法详解
  9. android apk重签名命令

随机推荐

  1. sdcard
  2. 浅入浅出 Android 安全:第二章 Android Li
  3. 如何把多个Android Project打包成一个APK
  4. Android九环刀之RatingBar之评委请亮分
  5. Android应用程序防止被LMK干掉
  6. 升级Android SDK后ADT找不到adb.exe文件
  7. Android Debug Bridge(adb, Android调试
  8. Android视频播放程序关键部分简要解析
  9. Android API Demos学习(1) - Hello World
  10. Android中Bundle的使用示例