Loading tools/post_process_props.py +4 −15 Original line number Diff line number Diff line Loading @@ -56,8 +56,6 @@ def validate(prop): """ check_pass = True buildprops = prop.to_dict() dev_build = buildprops.get("ro.build.version.incremental", "").startswith("eng") for key, value in buildprops.iteritems(): # Check build properties' length. if len(key) > PROP_NAME_MAX: Loading @@ -66,15 +64,6 @@ def validate(prop): (key, PROP_NAME_MAX)) sys.stderr.write("%s (%d)\n" % (key, len(key))) if len(value) > PROP_VALUE_MAX: # If dev build, show a warning message, otherwise fail the # build with error message if dev_build: sys.stderr.write("warning: %s exceeds %d bytes: " % (key, PROP_VALUE_MAX)) sys.stderr.write("%s (%d)\n" % (value, len(value))) sys.stderr.write("warning: This will cause the %s " % key) sys.stderr.write("property return as empty at runtime\n") else: check_pass = False sys.stderr.write("error: %s cannot exceed %d bytes: " % (key, PROP_VALUE_MAX)) Loading Loading
tools/post_process_props.py +4 −15 Original line number Diff line number Diff line Loading @@ -56,8 +56,6 @@ def validate(prop): """ check_pass = True buildprops = prop.to_dict() dev_build = buildprops.get("ro.build.version.incremental", "").startswith("eng") for key, value in buildprops.iteritems(): # Check build properties' length. if len(key) > PROP_NAME_MAX: Loading @@ -66,15 +64,6 @@ def validate(prop): (key, PROP_NAME_MAX)) sys.stderr.write("%s (%d)\n" % (key, len(key))) if len(value) > PROP_VALUE_MAX: # If dev build, show a warning message, otherwise fail the # build with error message if dev_build: sys.stderr.write("warning: %s exceeds %d bytes: " % (key, PROP_VALUE_MAX)) sys.stderr.write("%s (%d)\n" % (value, len(value))) sys.stderr.write("warning: This will cause the %s " % key) sys.stderr.write("property return as empty at runtime\n") else: check_pass = False sys.stderr.write("error: %s cannot exceed %d bytes: " % (key, PROP_VALUE_MAX)) Loading