Android build error: ro.build.fingerprint cannot exceed 91 bytes

I am building an android rum from the Android source code, but after about 5 minutes it gives this error.

error: ro.build.fingerprint cannot exceed 91 bytes: Android/mini_emulator_x86/mini-emulator-x86:5.0.555/AOSP/username02280306:userdebug/test-keys (97) make: *** [out/target/product/mini-emulator-x86/system/build.prop] Error 1 make: *** Deleting file `out/target/product/mini-emulator-x86/system/build.prop' make: *** Waiting for unfinished jobs.... 

How to increase ro.build.fingerprint size limit ?

Plus I'm building on a Mac.

+5
source share
2 answers

Edit build/tools/post_process_props.py . Change the lines as follows:

 PROP_NAME_MAX = 31 # PROP_VALUE_MAX = 91 PROP_VALUE_MAX = 128 

Edit bionic/libc/include/sys/system_properties.h . Change the lines as follows:

 #define PROP_NAME_MAX 32 // #define PROP_VALUE_MAX 92 #define PROP_VALUE_MAX 128 

Do

 make clean make 

You can also run the second make command using syntax like

 make -j8 
+10
source

Alternatively, you can specify the assembly fingerprint string as a command line argument to use with:

make -j5 BUILD_FINGERPRINT = "....."

This will allow you to stay within 91 bytes.

+8
source

Source: https://habr.com/ru/post/1214362/


All Articles