zoukankan      html  css  js  c++  java
  • Android编译选项eng、user、userdebug的区别

     

    Android编译选项eng、user、userdebug的区别

    分类: 技术 Android

    eng:debug 版本

    user: release 版本

    userDebug版本:部分debug版本

        要了解Android编译选项eng、user和userdebug的区别,需先了解下LOCAL_MODULE_TAGS这一Android.mk文件里的配置项,一般配置形式为LOCAL_MODULE_TAGS := user eng optional test这个样子。
        那么LOCAL_MODULE_TAGS设置为不同值有何作用呢?下面是对应不同值编译的结果:
        1、user:只有在user版本时该模块才被编译进去;
        2、eng:只有在eng版本时该模块才被编译进去;
        3、test:只有在tests版本时该模块才被编译进去;
        4、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
  • 相关阅读:
    asp.net[web.config] httphandlers 与实现自由定义访问地址
    Web.config配置文件详解
    ASP.NET十分有用的页面间传值方法(转)
    web.config中authorization下的location中的path的设置 (转)
    基于FormsAuthentication的用户、角色身份认证(转)
    FormsAuthentication.RedirectFromLoginPage 登录
    php代码审计-下载站系统Simple Down v5.5.1 xss跨站漏洞分析
    创建二维码生成器
    更新自制入库价格(结账)
    常用的系统存储过程
  • 原文地址:https://www.cnblogs.com/benxiong/p/4465923.html
Copyright © 2011-2022 走看看