LOCAL_MODULE_TAGS :=user eng tests optional

user: 指该模块只在user版本下才编译

eng: 指该模块只在eng版本下才编译

tests: 指该模块只在tests版本下才编译

optional:指该模块在所有版本下都编译

eng This is the default flavor. A plain "make" is the same as "make eng". droid is an alias for eng. 
  * 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. 
  * ro.secure=0 
  * ro.debuggable=1 
  * ro.kernel.android.checkjni=1 
  * adb is enabled by default.

user "make user"     This is the flavor intended to be the final release bits. 
  * Installs modules tagged with user. 
  * Installs non-APK modules that have no tags specified. 
  * Installs APKs according to the product definition files; tags are ignored for APK modules. 
  * ro.secure=1 
  * ro.debuggable=0 
  * adb is disabled by default.

userdebug "make userdebug"     The same as user, except: 
  * Also installs modules tagged with debug. 
  * ro.debuggable=1 
  * adb is enabled by default.

Build flavors/types

When building for a particular product, it's often useful to have minor variations on what is ultimately the final release build. These are the currently-defined "flavors" or "types" (we need to settle on a real name for these).

eng This is the default flavor. A plain "make " is the same as "make eng ". droid is an alias for eng .

  • 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.
  • ro.secure=0
  • ro.debuggable=1
  • ro.kernel.android.checkjni=1
  • adb is enabled by default.
user "make user "

This is the flavor intended to be the final release bits.

  • Installs modules tagged with user .
  • Installs non-APK modules that have no tags specified.
  • Installs APKs according to the product definition files; tags are ignored for APK modules.
  • ro.secure=1
  • ro.debuggable=0
  • adb is disabled by default.
userdebug "make userdebug "

The same as user , except:

  • Also installs modules tagged with debug .
  • ro.debuggable=1
  • adb is enabled by default.

If you build one flavor and then want to build another, you should run "make installclean " between the two makes to guarantee that you don't pick up files installed by the previous flavor. "make clean " will also suffice, but it takes a lot longer.

LOCAL_MODULE_TAGS 选项说明(android编译选项选择)相关推荐

  1. 爱上Android之选择您的开发工具

    本文摘自人民邮电出版社异步社区<爱上Android> 京东地址:item.jd.com/12144527.ht- 试读地址:www.epubit.com.cn/book/detail- 第 ...

  2. android的选项菜单,Android界面菜单(2)—选项菜单

    选项菜单 Android 4.0 系统中,Activity在创建时便会调用 onCreateOptionMenu() 函数初始化自身的菜单系统.在Activity的整个生命周期中,选项菜单是一直被重复 ...

  3. Android系统(74)--- 从零实现灵活且可高度定制的Android图片选择架构

    从零实现灵活且可高度定制的Android图片选择架构 https://www.jianshu.com/u/df76f81fe3ff 前言 这是我花费了数月闲暇时间从零开始写的一个库,在这期间,我学习到 ...

  4. LOCAL_MODULE_TAGS 选项说明

    LOCAL_MODULE_TAGS 选项说明 LOCAL_MODULE_TAGS :=user eng tests optional user: 指该模块只在user版本下才编译 eng: 指该模块只 ...

  5. android+studio+选择+苹方字体,mac Android Studio 真机测试 配置

    -------文档说明 直男福利-------------- mac 上android 真机测试,相对于iphone还是麻烦一些的,就亲自实操,写一下过程,希望对码友们有帮助 配置: Android ...

  6. android double比较大小吗,Android双向选择控件DoubleSeekBar使用详解

    本文实例为大家分享了Android双向选择控件DoubleSeekBar的使用方法,供大家参考,具体内容如下 先看效果图 1.DoubleSlideSeekBar public class Doubl ...

  7. 如何删除选择框的所有选项,然后添加一个选项并使用jQuery选择它?

    本文翻译自:How do you remove all the options of a select box and then add one option and select it with j ...

  8. Android 城市选择增加热门城市

    Android 城市选择  可用于第一次进入应用程序定位失败后手动选择城市. 实现代码 <pre name="code" class="java"> ...

  9. Android 城市选择万能控件

    Android 城市选择万能控件 Android 城市选择万能控件,选择城市,选择汽车品牌等等,支持按照a-z.# 排序等的选择控件,废话不多说直接上效果图: (开的Android模拟器录得gif,有 ...

最新文章

  1. CENTOS php 7.0 +nginx 环境下 安装yaf框架
  2. Apache Shiro教程
  3. 月读の自动读取 根据注释解析列名和字典
  4. java构造函数调用其他程序的顺序_java初始化构造函数调用顺序
  5. 每天一个 liunx 命令 ls
  6. 2019大数据课程_根据数据,2019年最佳免费在线课程
  7. mysql 主键外键sql_SQL外键VS主键说明了MySQL语法示例
  8. web开发应届生入职_我如何从全职妈妈着手完成第一份Web开发人员工作
  9. git revert reset
  10. gds文件 导出_RSoft CAD新的导入/导出GDS档案方法
  11. 活动轮廓模型之Snake模型简介
  12. 宝塔linux面板环境安装,BT.CN宝塔面板环境安装流程(图文教程)
  13. 如何修改docker容器的hostname
  14. 二叉树的顺序存储和三种遍历(代码)
  15. gitlab邮件发不出去解决方法
  16. 太为难我了,阿里面试了7轮...
  17. django考点答案
  18. stm32f4有重映射么_STM32Fxx JTAG/SWD复用功能重映射
  19. 计算机基础(04)操作系统基础
  20. php 获取a-z中随机_PHP中的随机性-您感到幸运吗?

热门文章

  1. 硬链接与符号链接的比较?
  2. 网站开发的小知识参考(慢慢收集备用)
  3. Difference between CGLIB JDK Dynamic Proxies
  4. IT餐馆—第十六回 驱动
  5. 网吧电影服务器解决方案完全指南(一)
  6. 网络爬虫--16.BeautifulSoup4
  7. 前缀中缀后缀表达式的计算求值
  8. html间数据传送,Express框架与html之间如何进行数据传递(示例代码)
  9. 【随笔】About QWERTY
  10. django--通过model拿到字段对象