Android源码编译选项eng、user、userdebug的区别
2016-01-26 09:59
393 查看
http://www.2cto.com/kf/201312/265629.html
Android源码编译选项eng、user、userdebug的区别
1、各选项简要说明
eng:debug版本
user:release版本
userDebug版本:部分debug版本
2、详细介绍
Android源码编译选项eng、user、userdebug是由Android.mk文件中的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 taggedAPKs
·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 forAPK modules)
·Sets ro.secure=1
·Sets ro.debuggable=0
·adbd is disabled by default
3、当make userdebug时,此时BuildType为userdebug,那么其编译进去的内容包括:
thesame as user, except:
·Intended for limited debugging
·Installs modules tagged with debug
·Sets ro.debuggable=1
·adbd is enabled by default
3、表格:
Android源码编译选项eng、user、userdebug的区别
1、各选项简要说明
eng:debug版本
user:release版本
userDebug版本:部分debug版本
2、详细介绍
Android源码编译选项eng、user、userdebug是由Android.mk文件中的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 taggedAPKs
·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 forAPK modules)
·Sets ro.secure=1
·Sets ro.debuggable=0
·adbd is disabled by default
3、当make userdebug时,此时BuildType为userdebug,那么其编译进去的内容包括:
thesame as user, except:
·Intended for limited debugging
·Installs modules tagged with debug
·Sets ro.debuggable=1
·adbd is enabled by default
3、表格:
eng | This is the default flavor. A plain "make" is the same as " make eng". droidis 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 · adbis 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 · adbis disabled by default. |
userdebug | "make userdebug" The same as user, except: · Also installs modules tagged with debug. · ro.debuggable=1 · adbis enabled by default. |
相关文章推荐
- Android开发--拍照选择照片裁剪
- Android 重复安装
- Android应用开发:CardView的使用及兼容
- Android实现ListView首行距离屏幕边缘距离
- android NullPointerException: println needs a message
- Android 界面ListView使用
- MAC中设置android adb环境变量
- Android中图片转化为bitmap
- 安卓常用adb命令
- android新技术学习(1)-2016年,这些Android技术会很火
- Android-带有切换动画的CheckBox
- 如何在mac本上安装android sdk
- 关于android 和 耗时操作的一点理解
- android中信息列表的下拉刷新和下拉加载
- Android开发优化之——使用软引用和弱引用
- Android5.0适配——水波纹点击效果
- Android中ListView下拉刷新的实现
- Android 拷贝raw文件夹下面的sqlite数据库文件到SDCard中 然后读取数据库并绑定
- Androidx学习笔记(25)-- 单选对话框
- Androidx学习笔记(24)--对话框