Android SDK常用命令

Android SDK常用命令1.注意事项执行sourcebuild/envsetup.sh后可以使用很多android集成的shell命令。2.代码中定义打开build/envsetup.sh文件,可以看到:functionhmm(){cat<<EOFInvoke”.build/envsetup.sh”fromyourshelltoaddthefollowingfunctionstoyourenvironment:-lunch:lunch<product_

大家好,又见面了,我是你们的朋友全栈君。

1. 注意事项

执行source build/envsetup.sh后可以使用很多android集成的shell命令。

2. 代码中定义

打开build/envsetup.sh文件,可以看到:

function hmm() { 
   
cat <<EOF Invoke ". build/envsetup.sh" from your shell to add the following functions to your environment: - lunch: lunch <product_name>-<build_variant> - tapas: tapas [<App1> <App2> ...] [arm|x86|mips|armv5] [eng|userdebug|user] - croot: Changes directory to the top of the tree. - m: Makes from the top of the tree. - mm: Builds all of the modules in the current directory, but not their dependencies. - mmm: Builds all of the modules in the supplied directories, but not their dependencies. - mma: Builds all of the modules in the current directory, and their dependencies. - mmma: Builds all of the modules in the supplied directories, and their dependencies. - cgrep: Greps on all local C/C++ files. - jgrep: Greps on all local Java files. - mkgrep: Greps on all local *.mk files. - resgrep: Greps on all local res/*.xml files. - godir: Go to the directory containing a file. Look at the source to view more functions. The complete list is: EOF
    T=$(gettop)
    local A
    A=""
    for i in `cat $T/build/envsetup.sh | sed -n "/^function /s/function \([a-z_]*\).*/\1/p" | sort`; do
      A="$A $i"
    done
    echo $A
}

3. hmm命令

执行source build/envsetup.sh后,终端中输入hmm就可以看到对应的命令解释。
输出如下:

Invoke ". build/envsetup.sh" from your shell to add the following functions to your environment:
- lunch:   lunch <product_name>-<build_variant>
- tapas:   tapas [<App1> <App2> ...] [arm|x86|mips|armv5] [eng|userdebug|user]
- croot:   Changes directory to the top of the tree.
- m:       Makes from the top of the tree.
- mm:      Builds all of the modules in the current directory, but not their dependencies.
- mmm:     Builds all of the modules in the supplied directories, but not their dependencies.
- mma:     Builds all of the modules in the current directory, and their dependencies.
- mmma:    Builds all of the modules in the supplied directories, and their dependencies.
- cgrep:   Greps on all local C/C++ files.
- jgrep:   Greps on all local Java files.
- mkgrep:   Greps on all local *.mk files.
- resgrep: Greps on all local res/*.xml files.
- godir:   Go to the directory containing a file.

Look at the source to view more functions. The complete list is:
addcompletions add_lunch_combo cgrep check_product check_variant chidolphin choosecombo chooseproduct choosetype choosevariant ckunpeng compile_env_switch_ cproj croot findmakefile gdbclient gdbwrapper get_abs_build_var getbugreports get_build_var getlastscreenshot getprebuilt getscreenshotpath getsdcardpath gettargetarch gettop gkobimg godir hmm isviewserverstarted jgrep key_back key_home key_menu lunch _lunch m mangrep mkgrep mm mma mmm mmma pez pid printconfig print_lunch_menu qpid resgrep runhat runtest sepgrep set_java_home set_ota setpaths set_sequence_number set_stuff_for_environment settitle smoketest stacks startviewserver stopviewserver systemstack tapas tracedmdump

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/162595.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • CentOS7 yum 安装 maven「建议收藏」

    CentOS7 yum 安装 maven「建议收藏」CentOS-7yum安装mavenCentOS-7设置为阿里云yum源rm-rf/etc/yum.repos.d/*curl-o/etc/yum.repos.d/Centos-7.repohttp://mirrors.aliyun.com/repo/Centos-7.repocurl-o/etc/yum.repos.d/epel-7.repohttp://mirrors.aliyun.com/repo/epel-7.repo安装mavenyum-yinsta.

    2022年5月12日
    32
  • 滤波算法大全

    滤波算法大全目录1、限幅滤波法(又称程序判断滤波法)2、中位值滤波法3、算术平均滤波法4、递推平均滤波法(又称滑动平均滤波法)5、中位值平均滤波法(又称防脉冲干扰平均滤波法)6、限幅平均滤波法7、一阶滞后滤波法8、加权递推平均滤波法9、消抖滤波法10、限幅消抖滤波法11、卡尔曼滤波程序默认对int类型数据进行滤波,如需要对其他类型进行滤波,只需要把程序中所有in…

    2022年5月1日
    76
  • 基于xxx的系统实现「建议收藏」

    基于xxx的系统实现「建议收藏」帮助解答任何系统问题1.成品:看最下面2.基于强化学习的Tic-Tac-To实现3.基于文本的关键词打标4.基于自然语言处理的情感分析系统5.基于深度学习的语音识别系统6.基于深度学习的人脸识别系统7.随机森林的多分类问题研究8.回归算法预测系统9.决策树算法的分类系统10.基于Python的lstm情感分析11.基于Python的金融分析系统12.基于Python的电商评论爬虫系统13.基于Flask的校园课程管理系统设计与实现14.基于Flask的人脸识别企业系统15.vb

    2025年12月10日
    2
  • Eclipse导入Maven项目,实在算得上是历经千辛万苦

    Eclipse导入Maven项目,实在算得上是历经千辛万苦私下接触了一个项目,架构师那边用的是idea,并且是一个Maven项目。架构师说他那边idea可以自动将Maven项目转换为Web项目,但我已经习惯用Eclipse了,所以还需要自己动手试一试。

    2022年5月27日
    29
  • Linux内核设计基础(十)之内核开发与总结

    Linux内核设计基础(十)之内核开发与总结

    2021年12月1日
    47
  • 图像滤波边界处理方式(图像滤波算法)

    图像处理-双边滤波和联合双边滤波双边滤波原理​双边滤波(BilateralFilter)是一种非线性滤波器,可以达到保持边缘,降噪平滑的效果。其算法最早由C.Tomasi和R.Manduchi在论文《BilateralFilteringforGrayandColorImages》中提出,按照原文中的话说Itcombinesgraylevelsorcolorsbasedonboththeirgeometricclosenessandtheirphoto

    2022年4月16日
    63

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号