The generation of build.prop is handled by make file build/core/Makefile.
There are a few ways to add a property
- 
Use echo commands in build/tools/buildinfo.sh
echo "ro.build.id=$BUILD_ID"
echo "android.os.Build.ID=$BUILD_ID"- device/xxxx(OEM)/xxxx(Product)/system.prop
const.window.w=1920
const.window.h=1080- Use ADDITIONAL_BUILD_PROPERTIESto add property
ADDITIONAL_BUILD_PROPERTIES:= \
        $(ADDITIONAL_BUILD_PROPERTIES)\
        $(PRODUCT_PROPERTY_OVERRIDES)- 
ADDITIONAL_BUILD_PROPERTIES will also collectPRODUCT_PROPERTY_OVERRIDES
ADDITIONAL_BUILD_PROPERTIES:= \  
        $(ADDITIONAL_BUILD_PROPERTIES)\  
        $(PRODUCT_PROPERTY_OVERRIDES)
PRODUCT_PROPERTY_OVERRIDES += \
        ro.build.version.swversion=1.2\
        ro.build.git.version=2.3\
        ro.build.git.addr=/device/dsds\
        ro.build.git.time=1992-6-1\
Comments
Post a Comment