Modify version number

Source: Internet
Author: User
1. Where is the version number stored? Packages/apps/settings/src/COM/Android/settings/deviceinfosettings. setstringsummary ("build_number", build. display); therefore, this variable is derived from the DISPLAY variable in the build class in framworks/base/CORE/Java/Android/OS/build. public static final string display = getstring ("Ro. build. display. ID ") is assigned in the out/target/product/XXX/system/build. in prop, this field is responsible for Ro. build. display. id2. how is the version number generated? Build/tools/buildinfo. Sh "Ro. Build. display. ID = $ build_display_id" 3. Where is the variable build_display_id defined? Build/CORE/makefilebuild_display_id: = $ (build_id). $ (build_number) defines 4. Where is build_id/build_number defined? This file in build/CORE/version_defaults.mk defines platform_version/playform_sdk_version/platform_sdk_version/versions/default_app_target_sdk/build_id/build_numberbuild_number: = ENG. $ (user ). $ (shell date + % Y % m % d. % H % m % s). Therefore, you can directly modify the value here.

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.