1、在*.rc文件中用setprop添加,例如在源码android4.0\system\core\rootdir\etc\init.goldfish.rc中有以下内容:
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、在PRODUCT_PROPERTY_OVERRIDES中添加,例如在源码android4.0\build\target\product\core.mk中有以下内容:
PRODUCT_PROPERTY_OVERRIDES := \
ro.config.notification_sound=OnTheHunt.ogg \
ro.config.alarm_alert=Alarm_Classic.ogg
3、在system.prop文件中添加,例如在源码android4.0\build\target\board\generic\system.prop中有以下内容:
rild.libpath=/system/lib/libreference-ril.so
rild.libargs=-d /dev/ttyS0
4、在buildinfo.sh文件中添加。例如在源码android4.0\build\tools\buildinfo.sh中有以下内容:
echo "ro.build.version.release=$PLATFORM_VERSION"
echo "ro.build.date=`date`"
echo "ro.build.date.utc=`date +%s`"
参考文章:
1、http://blog.csdn.net/thl789/article/details/7014300
2、http://baike.baidu.com/view/9775823.htm