Search code examples
androidlinuxmakefilelinux-kernelandroid-build

Difference between eng and user-debug build in Android


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!


Solution

  • Well the difference between the three builds viz. eng, user and user-debug is as follows:

    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.

    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