可以在build/core/Makefile,有如下一段:
47 # default.prop
48 INSTALLED_DEFAULT_PROP_TARGET := $(TARGET_ROOT_OUT)/default.prop 49 ALL_DEFAULT_INSTALLED_MODULES += $(INSTALLED_DEFAULT_PROP_TARGET) 50 ADDITIONAL_DEFAULT_PROPERTIES := \ 51 $(call collapse-pairs, $(ADDITIONAL_DEFAULT_PROPERTIES)) 52 ADDITIONAL_DEFAULT_PROPERTIES += \ 53 $(call collapse-pairs, $(PRODUCT_DEFAULT_PROPERTY_OVERRIDES)) 54 ADDITIONAL_DEFAULT_PROPERTIES := $(call uniq-pairs-by-first-component, \ 55 $(ADDITIONAL_DEFAULT_PROPERTIES),=) 56 57 $(INSTALLED_DEFAULT_PROP_TARGET): 58 Target buildinfo: $@ 59 -p $(dir $@) 60 $(hide) echo "#" > $@; \ 61 echo "# ADDITIONAL_DEFAULT_PROPERTIES" >> $@; \ 62 echo "#" >> $@; 63 $(hide) $(foreach line,$(ADDITIONAL_DEFAULT_PROPERTIES), \ 64 echo "$(line)" >> $@;) 65 build/tools/post_process_props.py $@