30

I would like to know the difference between the two build_flavor's viz.

eng & user-debug

The difference between eng and user build flavors is quiet evident. But eng and user-debug is confusing me somewhat. What are the additional Debug facilities provided in eng that are not present in user-debug?

For eg.

If I take only the Kernel being built:

Will the Debugging levels differ for the eng and user-debug builds?

I am facing an issue where the user-debug build is booting up on the android phone. But the eng build is not and the build_flavor is the only difference between the two builds.

Any help/pointers is appreciated. Thanks!

4

2 回答 2

57

eng:这是默认风格。简单的 make 与 make 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. 

用户:制作用户

这是最终版本的味道。

- 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 : 使用户调试

与用户相同,除了:

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

文档:https ://source.android.com/source/add-device.html#build-variants

于 2013-02-08T07:00:46.930 回答
24

那么三个构建之间的差异即。eng、user和user-debug如下:

eng - 工程构建带有默认的 root 访问权限。

用户- 用户构建是在生产手机上闪现的。没有根访问权限。

user-debug - 用户调试版本不附带默认的 root 访问权限,但可以被 root。它还包含额外的日志记录。

这里要注意的一件事是,尽管 eng 构建可能会建议额外的日志记录,但事实并非如此。用户调试将包含最大日志记录,应在开发期间使用

于 2013-01-23T04:33:06.020 回答