Version Number in "Settings" of Android

Source: Internet
Author: User

In the file packages/apps/settings/src/COM/Android/settings/deviceinfosettings. Java

Setstringsummary ("build_number", build. Display );

The version number of settings -- about devices -- is specified.

Build. display is the DISPLAY variable in the build class. In the file frameworks/base/CORE/Java/Android/OS/build. Java:

Public static final string display = getstring ("Ro. Build. display. ID ");

 

Ro. Build. display. ID in the file build/tools/buildinfo. sh:

Echo "Ro. Build. display. ID = $ build_display_id"

 

 Build_display_id is in the file build/CORE/makefile:

 Build_display_id: = $ (build_id). $ (build_number)

 

Build_id is assigned a value in build/CORE/build_id.mk.

Build_id: =Openmaster

 

 Build_numberAssign a value to build/CORE/version_defaults.mk:

Build_number: = ENG. $ (User). $ (shell date + % Y % m % d. % H % m % s)

Therefore, the Compilation Time field appears in the version number.

Ro. Build. display. ID after compilation, keep the build. Prop file under system.

 

From: http://blog.sina.com.cn/s/blog_446cc66b0100vot2.html

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.