Settings initial values of system properties found in persistent_properties file

100 views Asked by At

I am trying to figure out how I can set initial values for properties that are written to file

/data/property/persistent_properties

when trying to build an android image.

When using SystemProperties.set() the property value gets written there fine but I dont want to have to manually set the property every time I flash an image and want to have it built in already.

1

There are 1 answers

3
Vitaliy On

You can add the property you need to the PRODUCT_VENDOR_PROPERTIES or PRODUCT_SYSTEM_PROPERTIES build time variables to the appropriate make file of your product.

For example take a look at device/generic/goldfish/vendor.mk