From 0ecc9cfb3182cd93eade0ccf25b32dc6a60eea5c Mon Sep 17 00:00:00 2001 From: August Date: Wed, 15 Aug 2018 18:51:45 +0800 Subject: [PATCH] set PROP_VALUE_MAX=149 to fix property cannot exceed 91 bytes issue --- android/bionic/libc/include/sys/system_properties.h | 2 +- android/build/make/tools/post_process_props.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/android/bionic/libc/include/sys/system_properties.h b/android/bionic/libc/include/sys/system_properties.h index d075859361..56f83e8471 100644 --- a/android/bionic/libc/include/sys/system_properties.h +++ b/android/bionic/libc/include/sys/system_properties.h @@ -38,7 +38,7 @@ __BEGIN_DECLS typedef struct prop_info prop_info; -#define PROP_VALUE_MAX 92 +#define PROP_VALUE_MAX 149 /* * Sets system property `key` to `value`, creating the system property if it doesn't already exist. diff --git a/android/build/make/tools/post_process_props.py b/android/build/make/tools/post_process_props.py index 9355e4b22d..2f0d475034 100755 --- a/android/build/make/tools/post_process_props.py +++ b/android/build/make/tools/post_process_props.py @@ -22,7 +22,7 @@ import sys # 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 +PROP_VALUE_MAX = 149 # Put the modifications that you need to make into the /system/build.prop into this # function. The prop object has get(name) and put(name,value) methods.