Android compiler option difference eng, user, userdebug of

1. eng user userdebug defined

eng: debug version, user: release version, userDebug: part of the debug version


Compiler option LOCAL_MODULE_TAGS 2. Android.mk in

To understand the Android compiler option eng, the difference between user and userdebug, the need to first understand LOCAL_MODULE_TAGS this Android.mk file configuration items, generally configured in the form of LOCAL_MODULE_TAGS: = user eng optional test like this. Which is set to different values ​​corresponding to different compilation results:

user: only when the user version of the module is compiled into it; 
eng: eng version only when the module is compiled into it; 
the Test: only if the tests version of the module is compiled into it; 
optional: all versions are compiled the module inside.

Wherein the value may be set to 1 or more, corresponding to one or more of the same compilation options.


Difference 3. eng, user, userdebug of

(1) When the make eng, i.e. corresponding to make. At this point BuildType is eng, then compile it into the content and settings include:

· 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

(2) when the make user, as the case BuildType user, which is then translated into contents comprising:

· 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

(3) When the make userdebug, as the case BuildType userdebug, which is then translated into contents comprising:

the same as user, except:
· Intended for limited debugging
· Installs modules tagged with debug
· Sets ro.debuggable=1
· adbd is enabled by default

 

Guess you like

Origin www.cnblogs.com/hellokitty2/p/11248975.html