aboutsummaryrefslogtreecommitdiffstats
path: root/tools/post_process_props.py
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2017-02-28 10:04:23 -0800
committerElliott Hughes <enh@google.com>2017-02-28 10:04:23 -0800
commit05c1a2a55cce62b32119edf306607732c4f344e2 (patch)
tree604eb5d2d1465023123bf0df7dead95a8e456a8c /tools/post_process_props.py
parente317a2d19e084c5205ac85bb2b55332057f720c9 (diff)
downloadbuild_make-05c1a2a55cce62b32119edf306607732c4f344e2.tar.gz
build_make-05c1a2a55cce62b32119edf306607732c4f344e2.tar.bz2
build_make-05c1a2a55cce62b32119edf306607732c4f344e2.zip
There's no longer a limit on property names.
Bug: http://b/33926793 Test: boots Change-Id: I12cdae782090fb0856171e5c90a268e91ba2ae1a
Diffstat (limited to 'tools/post_process_props.py')
-rwxr-xr-xtools/post_process_props.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/tools/post_process_props.py b/tools/post_process_props.py
index 9dcaadfd0d..295f8f611c 100755
--- a/tools/post_process_props.py
+++ b/tools/post_process_props.py
@@ -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
@@ -59,11 +58,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: " %