编译报错:error: ro.build.fingerprint cannot exceed 91 bytes

编译报错:error: ro.build.fingerprint cannot exceed 91 bytes

Notice file: system/core/libzipfile/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libzipfile.a.txt

Notice file: external/zlib/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib64/libunz.a.txt
Notice file: external/zlib/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libunz.a.txt
Notice file: external/openssl/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libcrypto_static.a.txt
error: ro.build.fingerprint cannot exceed 91 bytes: SIMCOM/sim8900_evb103_s/sim8900_evb103_s:5.1.1/LMY47V/SIM8900_EVB103_S_B01V01:user/test-keys (92)
make: *** [out/target/product/sim8900_evb103_s/system/build.prop] Error 1
make: *** Deleting file `out/target/product/sim8900_evb103_s/system/build.prop'
make: *** Waiting for unfinished jobs....
Export includes file: frameworks/compile/libbcc/Android.mk -- out/host/linux-x86/obj32/SHARED_LIBRARIES/libbcc_intermediates/export_includes


#### make failed to build some targets (03:24 (mm:ss)) ####


解决:


diff --git a/tools/post_process_props.py b/tools/post_process_props.py
index 2237707..df13699 100755
--- a/tools/post_process_props.py
+++ b/tools/post_process_props.py
@@ -23,7 +23,7 @@ import sys
 # The constants in system_properties.h includes the termination NUL,
 # so we decrease the values by 1 here.
 PROP_NAME_MAX = 32
-PROP_VALUE_MAX = 91
+PROP_VALUE_MAX = 149


diff --git a/libc/include/sys/system_properties.h b/libc/include/sys/system_properties.h
index 01c3db3..023b28e 100644
--- a/libc/include/sys/system_properties.h
+++ b/libc/include/sys/system_properties.h
@@ -36,7 +36,7 @@ __BEGIN_DECLS
 typedef struct prop_info prop_info;
 
 #define PROP_NAME_MAX   32
-#define PROP_VALUE_MAX  92
+#define PROP_VALUE_MAX  150


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值