首页 技术 正文
技术 2022年11月11日
0 收藏 365 点赞 4,007 浏览 1448 个字

eng:debug 版本

user: release 版本

userDebug版本:部分debug版本

LOCAL_MODULE_TAGS := user eng optional test这个样子。

那么LOCAL_MODULE_TAGS设置为不同值有何作用呢?下面是对应不同值编译的结果:

  • user:只有在user版本时该模块才被编译进去;
  • eng:只有在eng版本时该模块才被编译进去;
  • test:只有在tests版本时该模块才被编译进去;
  • optional:在所有版本中都编译该模块进去。

  其中的值可设置为1个或多个,分别对应编译选项的同一个或多个。那么eng、user、userdebug的区别是什么呢?接下来一一揭开:

    1、当make eng时,也即相当于make。此时BuildType为eng,那么其编译进去的内容包括:      · Intended for platform-level debugging      · Installs modules tagged with: eng, debug, user, and/or development      · Installs non-APK modules that have no tags specified      · Installs APKs according to the product definition files, in addition to tagged APKs      · Sets ro.secure=1      · Sets ro.debuggable=0      · Sets ro.kernel.android.checkjni=1      · adbd is enabled by default    2、当make user时,此时BuildType为user,那么其编译进去的内容包括:      · Intended to be the final release      · Installs modules tagged as user      · Installs non-APK modules that have no tags specified      · Installs APKs according to the product definition files (tags are ignored for APK modules)      · Sets ro.secure=1      · Sets ro.debuggable=0      · adbd is disabled by default    3、当make userdebug时,此时BuildType为userdebug,那么其编译进去的内容包括:       the same as user, except:      · Intended for limited debugging      · Installs modules tagged with debug      · Sets ro.debuggable=1      · adbd is enabled by default     参考网址:http://hi.baidu.com/aokikyon/item/194b9bd9a6188ef593a9740e              http://www.rosoo.net/a/201108/14878.html              http://www.cnblogs.com/mr-raptor/archive/2012/06/07/2540359.html 

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,108
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,584
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,431
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,202
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,837
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,920