Merge "There's no longer a limit on property names." am: dda91dbef8
am: daac92eb51
am: 319fcc7668
Change-Id: Idb24042310fa9de8f534e9988285a16b714daf10
This commit is contained in:
commit
41232ebd5c
1 changed files with 3 additions and 9 deletions
|
@ -19,10 +19,9 @@ import sys
|
|||
# Usage: post_process_props.py file.prop [blacklist_key, ...]
|
||||
# Blacklisted keys are removed from the property file, if present
|
||||
|
||||
# See PROP_NAME_MAX and PROP_VALUE_MAX system_properties.h.
|
||||
# The constants in system_properties.h includes the termination NUL,
|
||||
# so we decrease the values by 1 here.
|
||||
PROP_NAME_MAX = 31
|
||||
# See PROP_VALUE_MAX in system_properties.h.
|
||||
# The constant in system_properties.h includes the terminating NUL,
|
||||
# so we decrease the value by 1 here.
|
||||
PROP_VALUE_MAX = 91
|
||||
|
||||
# Put the modifications that you need to make into the /system/build.prop into this
|
||||
|
@ -65,11 +64,6 @@ def validate(prop):
|
|||
buildprops = prop.to_dict()
|
||||
for key, value in buildprops.iteritems():
|
||||
# Check build properties' length.
|
||||
if len(key) > PROP_NAME_MAX:
|
||||
check_pass = False
|
||||
sys.stderr.write("error: %s cannot exceed %d bytes: " %
|
||||
(key, PROP_NAME_MAX))
|
||||
sys.stderr.write("%s (%d)\n" % (key, len(key)))
|
||||
if len(value) > PROP_VALUE_MAX:
|
||||
check_pass = False
|
||||
sys.stderr.write("error: %s cannot exceed %d bytes: " %
|
||||
|
|
Loading…
Reference in a new issue