BuildType specifies the intended use (security restrictions)
* 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 (i.e. has to be enabled via Settings ! Applications ! Development ! USB Debugging)
* userdebug - the same as user, except:
· Intended for limited debugging
· Installs modules tagged with debug
· Sets ro.debuggable=1
· adbd is enabled by default
* 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
Android编译选项user、userdebug和eng的区别
于 2013-09-08 12:56:19 首次发布
本文详细介绍了Android开发中三种常见的Build Types:user、userdebug及eng。这些类型定义了不同的应用场景,如最终用户发布、有限调试及平台级调试,并具体阐述了各类型下模块安装、调试标志设置及adb调试等关键配置。
2724

被折叠的 条评论
为什么被折叠?



