博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
转载:Android编译选项eng、user、userdebug的区别
阅读量:4343 次
发布时间:2019-06-07

本文共 1523 字,大约阅读时间需要 5 分钟。

2013-11-29 17:18:03

原文地址:

  • eng:debug版本
  • user: release版本
  • userdebug版本:部分debug版本

  要了解Android编译选项eng、user和userdebug的区别,需先了解下Android.mk的配置项LOCAL_MODULE_TAGS,一般配置形式为:

  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

 

 

转载于:https://www.cnblogs.com/eastnapoleon/articles/3450009.html

你可能感兴趣的文章
几种任务调度的 Java 实现方法与比较
查看>>
EF5.0默认不支持DB First了?
查看>>
sap alv 单元格行列邓颜色设定(记录一下网址,供下次使用)
查看>>
四大算法解决最短路径问题(Dijkstra+Bellman-ford+SPFA+Floyd)
查看>>
时间日期——————年月日的的处理
查看>>
UVA 127 - "Accordian" Patience
查看>>
多态抽象类学习
查看>>
pom
查看>>
linux学习2-压缩与解压
查看>>
在 Sublime Text 直接运行 Javascript 调试控制台
查看>>
字符串修改问题
查看>>
九宫图Css
查看>>
ie9实现flex布局3等分
查看>>
java日期时间处理
查看>>
C# WinForm调用控制台窗口Console 显示信息
查看>>
Python paramiko 修改源码实现用户命令抓取
查看>>
我在用的mac软件(2)-终端环境之zsh和z(*nix都适用)
查看>>
mac 下安装最新版本 nvm、node、npm、angular-cli 以及详细的使用方法
查看>>
redis在windows下安装和PHP中使用
查看>>
ApiDoc官方文档
查看>>