Linux Android 中 eng 和 user-debug 版本之间的区别
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13950589/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Difference between eng and user-debug build in Android
提问by spitfire88
I would like to know the difference between the two build_flavor
's viz.
我想知道两者之间的区别build_flavor
。
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?
eng 和用户构建风格之间的差异非常明显。但是 eng 和 user-debug 使我有些困惑。用户调试中不存在的 eng 中提供的其他调试工具是什么?
For eg.
例如。
If I take only the Kernel being built:
Will the Debugging levels differ for the eng and user-debug builds?
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.
我面临一个问题,即用户调试版本在 android 手机上启动。但是 eng 构建不是,而 build_flavor 是两个构建之间的唯一区别。
Any help/pointers is appreciated. Thanks!
任何帮助/指针表示赞赏。谢谢!
采纳答案by spitfire88
Well the difference between the three builds viz. eng, user and user-debug is as follows:
那么三个构建之间的区别即。eng、user和user-debug如下:
eng- Engineering build comes with default root access.
user- User build is the one flashed on production phones. Has no root access.
user-debug- User debug build does not come with default root access but can be rooted. It also contains extra logging.
eng- 工程版本带有默认的 root 访问权限。
用户- 用户构建是在生产手机上闪烁的构建。没有根访问权限。
user-debug- 用户调试版本没有默认的 root 访问权限,但可以 root。它还包含额外的日志记录。
One thing to note here is although an eng build might suggest extra logging it is not so. The user-debug will contain maximum logging and should be used during development
这里要注意的一件事是,虽然 eng 构建可能会建议额外的日志记录,但事实并非如此。用户调试将包含最大日志记录,应在开发期间使用
回答by rmdroid
eng: This is the default flavor. A plain make is the same as make eng.
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.
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
- adb is disabled by default.
userdebug : make userdebug
userdebug : 进行用户调试
The same as user, except:
与用户相同,除了:
Also installs modules tagged with debug.
- ro.debuggable=1
- adb is enabled by default.
Documentation: https://source.android.com/source/add-device.html#build-variants
文档:https: //source.android.com/source/add-device.html#build-variants