This article was reproduced from: http://blog.csdn.net/imyfriend/article/details/8939964
1, in the *.rc file with SetProp added, for example, in the source code android4.0\system\core\rootdir\etc\init.goldfish.rc has the following content:
SetProp Argh Argh
SetProp NET.ETH0.GW 10.0.2.2
SetProp net.eth0.dns1 10.0.2.3
SetProp Net.gprs.local-ip 10.0.2.15
2, add in Product_property_overrides, for example, in the source code ANDROID4.0\BUILD\TARGET\PRODUCT\CORE.MK has the following content:
Product_property_overrides: = \
Ro.config.notification_sound=onthehunt.ogg \
Ro.config.alarm_alert=alarm_classic.ogg
3, add in the System.prop file, for example, in the source code Android4.0\build\target\board\generic\system.prop has the following content:
Rild.libpath=/system/lib/libreference-ril.so
Rild.libargs=-d/dev/ttys0
4, add in the buildinfo.sh file. For example, in source android4.0\build\tools\buildinfo.sh, there are the following:
echo "ro.build.version.release= $PLATFORM _version"
echo "ro.build.date= ' Date '"
echo "ro.build.date.utc= ' Date +%s '"
android4.0.4-method "Go" for adding attributes in Build.prop