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. Android(安卓)OpenGL学习笔记(二)--三角形的绘制.
  3. ant 打包android应用
  4. 总结android中Intent的用法
  5. Android设备的识别
  6. android常用adb命令
  7. wm命令使用方法(修改android 分辨率)修改
  8. 查看android系统设备信息
  9. Maven + Eclipse + Android(安卓)环境搭建

随机推荐

  1. Android交通违章查询开发实例(一)(HttpClien
  2. Android实现机制(二)——View绘制机制
  3. 好文章
  4. Android横竖屏切换重载问题与小结
  5. [Android算法] bitmap 将图片压缩到指定
  6. Android中的FrameLayout帧布局
  7. Android(安卓)自定义kotlin中BaseRecycle
  8. "Could not create java virtual machine
  9. android --- Afianl框架里面的FinalBitma
  10. 使用android x86进行android应用开发.