Example #1
0
def _update_arc_version_file():
  stamp = build_common.StampFile(build_common.get_build_version(),
                                 build_common.get_build_version_path())
  if not stamp.is_up_to_date():
    stamp.update()
Example #2
0
OPTIONS.parse_configure_file()

# Note the following restrictions:
#    Property name max length:  31 characters
#    Property value max length: 91 characters
# See frameworks/base/core/java/android/os/SystemProperties.java

# Provide an option to generate different build properties for running non-CWS
# apps, such as sideloaded or via ARC Welder.  This allows WebView (Chromium) to
# send different User-Agent.
dev_mode = '--dev' in sys.argv

# Environment variables below are sorted alphabetically.

# version_defaults.mk sets this if there is no BUILD_ID set.
_BUILD_NUMBER = build_common.get_build_version()

os.environ['BUILD_DISPLAY_ID'] = _BUILD_NUMBER

# Non-tagged builds generate fingerprints that are longer than the maximum
# number of characters allowed for system property values. Split the build ID
# in version and specific build to be within the limit.
if '-' in _BUILD_NUMBER:
    tokens = _BUILD_NUMBER.split('-')
    os.environ['BUILD_ID'] = tokens[0]
    os.environ['BUILD_NUMBER'] = '-'.join(tokens[1:])
else:
    os.environ['BUILD_ID'] = _BUILD_NUMBER
    os.environ['BUILD_NUMBER'] = _BUILD_NUMBER
if OPTIONS.is_debug_code_enabled():
    os.environ['BUILD_VERSION_TAGS'] = 'test-keys'
Example #3
0
def _update_arc_version_file():
    stamp = build_common.StampFile(build_common.get_build_version(),
                                   build_common.get_build_version_path())
    if not stamp.is_up_to_date():
        stamp.update()
Example #4
0
OPTIONS.parse_configure_file()

# Note the following restrictions:
#    Property name max length:  31 characters
#    Property value max length: 91 characters
# See frameworks/base/core/java/android/os/SystemProperties.java

# Provide an option to generate different build properties for running non-CWS
# apps, such as sideloaded or via ARC Welder.  This allows WebView (Chromium) to
# send different User-Agent.
dev_mode = '--dev' in sys.argv

# Environment variables below are sorted alphabetically.

# version_defaults.mk sets this if there is no BUILD_ID set.
_BUILD_NUMBER = build_common.get_build_version()

os.environ['BUILD_DISPLAY_ID'] = _BUILD_NUMBER

# Non-tagged builds generate fingerprints that are longer than the maximum
# number of characters allowed for system property values. Split the build ID
# in version and specific build to be within the limit.
if '-' in _BUILD_NUMBER:
  tokens = _BUILD_NUMBER.split('-')
  os.environ['BUILD_ID'] = tokens[0]
  os.environ['BUILD_NUMBER'] = '-'.join(tokens[1:])
else:
  os.environ['BUILD_ID'] = _BUILD_NUMBER
  os.environ['BUILD_NUMBER'] = _BUILD_NUMBER
if OPTIONS.is_debug_code_enabled():
  os.environ['BUILD_VERSION_TAGS'] = 'test-keys'