在adb shell下输入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 list features
pm path PACKAGE
pm install [-l] [-r] [-t] [-i INSTALLER_PACKAGE_NAME] [-s] [-f] PATH
pm uninstall [-k] PACKAGE
pm enable PACKAGE_OR_COMPONENT
pm disable PACKAGE_OR_COMPONENT
pm setInstallLocation [0/auto] [1/internal] [2/external]

The list packages command prints all packages. Options:
-f: 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. Options:
-g: organize by group.
-f: print all information.
-s: short summary.
-d: only list dangerous permissions.
-u: list only the permissions users will see.

The list instrumentation command prints all instrumentations,
or only those that target a specified package. Options:
-f: see their associated file.

The list features command prints all features of the system.

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

The install command installs a package to the system. Options:
-l: install the package with FORWARD_LOCK.
-r: reinstall an exisiting app, keeping its 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.

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

The enable and disable commands change the enabled state of
a given package or component (written as "package/class").

The getInstallLocation command gets the current install location
0 [auto]: Let system decide the best location
1 [internal]: Install on internal device storage
2 [external]: Install on external media

The setInstallLocation command changes the default install location
0 [auto]: Let system decide the best location
1 [internal]: Install on internal device storage
2 [external]: Install on external media

更多相关文章

  1. adb命令
  2. Android中ps命令各字段的含义
  3. android常用adb命令
  4. 原:Android 命令行手动编译打包详解
  5. Android 应用中执行cd命令
  6. Android预安装软件&adb命令&编译源码
  7. Android 命令行编译、打包生成apk文件
  8. Android执行shell命令

随机推荐

  1. android应用程序最小化的处理方法
  2. android从资源文件中读取文件流显示
  3. 购物车单选计算
  4. Linux-安装ifconfig
  5. vue常用术语、样式与事件绑定 与 列表渲
  6. PDO登录实战完善请求分发器小结
  7. nginx光速入门到进阶
  8. 淘宝首页商品列表
  9. npm 安装与删除包的常用操作及 node中的
  10. Vue常用术语,样式绑定与事件绑定,列表渲染