Classification:Android (4)Description]
Differences between Android USER version and ENG version
[Keyword]
Users Eng User Eng version of the version of the project differences
[Solution]
Google Official Description: User/userdebug/eng version of the differences, refer to alps/build/core/build-system.html detailed instructions
Eng This is the default flavor. A Plain make are the same as make Eng.
* Installs modules tagged With:eng, debug, user, and/or development.
* Installs NON-APK modules that has no tags specified.
* Installs APKs according to the product definition files, with addition to tagged APKs.
* Ro.secure=0
* ro.debuggable=1
* Ro.kernel.android.checkjni=1
* ADB is enabled by default.
* SetupWizard is optional
User Make user
This was the flavor intended to be the final release bits.
* Installs modules tagged with user.
* Installs NON-APK modules that has no tags specified.
* Installs APKs according to the product definition files; tags is ignored for APK modules.
* ro.secure=1
* Ro.debuggable=0
* adb is disabled by default.
* Enable Dex pre-optimization for all TARGET projects on default to speed up device first boot-up
Userdebug make Userdebug
The same as user, except:
* Also installs modules tagged with Debug.
* ro.debuggable=1
* ADB is enabled by default. MTK Supplemental Note differences:
(1) Debug/log, in principle, the user version can only catch limited information, Eng can catch more information, Debug more powerful, advocating the use of ENG version development testing
* Due to User/eng version settings ro.secure, the user version of ADB only has shell permissions, and the ENG version has root permissions
* MTK System Log after ICS, the user version of the default closed all LOG, in the Eng version by default, in order to catch the full information
* on the Eng version, log volume >= the log volume of the user version, and some places directly check the Eng/user version to verify that the log is printed
* The UART is turned off by default on the user version, and the Eng version defaults to UART
* on ENG version, open ANR Predump, will crawl ftrace, can get more information of ANR
* on the ENG version, the RTT can be used to grab the backtrace to enable KDB for kernel debug, and ftrace can be used to crawl the CPU execution scenario
* MTK AEE in the Eng version to grab more exception information, such as native exception will crawl core dump information (2) performance, in principle performance testing please use the User version test
* User version to improve the first boot speed, using the DVM Pre-optimization, the Dex file decomposition into a direct load run Odex file, ENG version will not open this optimization
* Less log printing, uart off, in principle the user version performance is better than the Eng version (3) How to confirm the User/eng version
* Java layer, check the type value in the Android.os.Build class
* Native layer, Property_get ("Ro.build.type", char* value, "Eng"); Then check the value values
* When debugging, adb shell Getprop ro.build.type return value if the user is the user version, ENG is the ENG version
* Log Confirmation, see Ro.build.type properties in Mobile log/aplog_xxxxx/versions (4) How to compile User/eng version
* The default compilation is the Eng version, if you need to compile the user version, please add the parameters-o=target_build_variant=user such as:
./mk-o=target_build_variant=user Mt6577_phone New
The difference between Android USER version and ENG version--MTK official explanation