此贴转自 http://hi.baidu.com/xiaohuozi51/blog/item/9f3f92bff28dea0219d81f18.html 谢谢兄弟的分享

位于frameworks/base/cmds/pm

am命令作用:管理Activity usage: am [start|broadcast|instrument|profile]               am start -D INTENT               am broadcast INTENT               am instrument [-r] [-e <ARG_NAME> <ARG_VALUE>] [-p <PROF_FILE>]                             [-w] <COMPONENT>                am profile <PROCESS> [start <PROF_FILE>|stop]                        INTENT is described with:                        [-a <ACTION>] [-d <DATA_URI>] [-t <MIME_TYPE>]                        [-c <CATEGORY> [-c <CATEGORY>] ...]                        [-e|--es <EXTRA_KEY> <EXTRA_STRING_VALUE> ...]                        [--ez <EXTRA_KEY> <EXTRA_BOOLEAN_VALUE> ...]                        [-e|--ei <EXTRA_KEY> <EXTRA_INT_VALUE> ...]                        [-n <COMPONENT>]    [-f <FLAGS>]    [<URI>] The start command starts activity. Use -D option to make 'DebugOption' true. The broadcast command sends broadcast. The instrument command starts instrumentation.  Use -r option to make 'rawMode' true.  Use -e option to add the pair of ARG_NAME and  ARG_VALUE into Bundle.  Use -p option to specify profileFile. Use -w option to make 'wait' true in order to new an instance of InstrumentationWatcher.  Use COMPONENT to specify the name of the instrumentation component. The profile command turn on/off profiling in a particular process specified by PROCESS.Use start option to turn on and stop to turn off.Use PROF_FILE to specify the file path of profile.  Use -a to set action specified by ACTION to be performed. Use -d to create a Uri(data) which parses the given encoded URI string DATA_URI. Use -t to specify the type specified by MIME_TYPE. Use -c to add a new category specified by CATEGORY to the intent. Use -e or --es to add extended data to the intent.EXTRA_KEY specifies the name of the extra data and EXTRA_STRING_VALUE specifies the string data value. Use --ez to add extended data to the intent. EXTRA_KEY specifies the name of the extra data and EXTRA_BOOLEAN_VALUE specifies the serializable data value. Use -e or --ei to add extended data to the intent. EXTRA_KEY specifies the name of the extra data and EXTRA_INT_VALUE specifies the serializable data value. Use -n to explicitly set the component specified by COMPONENT to handle the intent. Use -f to set special flags controlling how this intent is handled.FLAGS specifies the desired flags. Use URI to create an intent from a URI.

Android中am命令用法相关推荐

  1. Android中am命令用法详解

    Android中am命令用法 位于frameworks/base/cmds/pm am命令作用:管理Activity usage: am [start|broadcast|instrument|pro ...

  2. Android中Parcelable接口用法

    --  通过writeToParcel将你的对象映射成Parcel对象,再通过createFromParcel将Parcel对象映射成你的对象.也可以将Parcel看成是一个流,通过writeToPa ...

  3. android 类型.this,Android中this的用法

    关于Android中this的用法解释 问题由来 由于很多同学在学习Android时候没有对Java有很深的了解,很多人都会对代码中各种各样的this产生疑惑. 以<第一行代码Android&g ...

  4. MySQL中show命令用法大全

    MySQL中show命令用法大全 官方文档:https://dev.mysql.com/doc/refman/5.6/en/show.html https://dev.mysql.com/doc/re ...

  5. linux中comm命令用法

    linux系统中comm命令用法详解 linux系统下的comm命令是一个非常实用的文件对比命令. comm命令功能:   选择或拒绝两个已排序的文件的公共的行. comm命令语法:comm [-12 ...

  6. Android中gradlew命令的基本使用

    title: Android中gradlew命令的基本使用 date: 2018-07-10 16:18:01 tags: Android Gradle是一个基于Apache Ant和Apache M ...

  7. linux bin fuser,Linux中fuser命令用法详解

    描述: fuser可以显示出当前哪个程序在使用磁盘上的某个文件.挂载点.甚至网络端口,并给出程序进程的详细信息. fuser显示使用指定文件或者文件系统的进程ID. 默认情况下每个文件名后面跟一个字母 ...

  8. Android中ps命令各字段的含义

    Android中ps命令各字段的含义 通过ps命令查看进程的状态,看到如下输出: USER PID PPID VSIZE RSS WCHAN PC S NAME u0_a91 3140 356 222 ...

  9. linux中comm的用法,linux中comm命令用法

    linux系统中comm命令用法详解 linux系统下的comm命令是一个非常实用的文件对比命令. comm命令功能:   选择或拒绝两个已排序的文件的公共的行. comm命令语法:comm [-12 ...

最新文章

  1. php传递数据给javascript
  2. Bowtie下载安装
  3. 异步/同步、阻塞/非阻塞的理解
  4. JAVA 泛型与反射
  5. SAP Spartacus cxPageTemplateStyle Directive的作用
  6. ubuntu文本模式获得权限修改profile
  7. GPFS文件系统笔记
  8. 20210119:力扣第42周双周赛(下)
  9. 极限压缩----压缩至原视频的五分之一
  10. 编码(decode与encode)
  11. 2022-07-12
  12. 伪加密文件的破解方法
  13. 电力系统稳态matlab,基于MATLAB的电力系统稳态仿真分析
  14. 线性代数之行列式(1) ——行列式的定义以及二阶行列式
  15. 南阳oj 找球号(一)
  16. 关于pycharm中代码为灰色以及如何调整代码检查级别的问题
  17. Spring Boot:项目前端vue环境搭建
  18. 一个毕业三年的程序猿对于提升自我的一些建议
  19. POJ3349-Snowflake Snow Snowflakes
  20. TrustZone技术简介

热门文章

  1. 【转】知名技术团队博客
  2. 肝了两周,我做了一个面试刷题小程序
  3. 营收利润“此消彼长”,水滴在阵痛中转身
  4. IT一族是如何成为一个民族的
  5. PHP获取前天和昨天日期
  6. 10个常见的前端手写功能
  7. CPU是如何执行程序的?
  8. Serverless 是什么?BaaS 和 FaaS 是什么?
  9. 【LeetCode】种花问题
  10. 施乐服务器显示exited,富士施乐故障维修代码.docx