you will need to set the PRODUCT_PACKAGE_OVERLAYS build time var in your product defining makefile. This should be set to the relative path of your overlay dir. The overlay dir contains a sparse mirror of the source tree with just the resource files you wish to overlay.
For example, from the root of your dev tree: framework/base/core/res/res/values/config.xml - the real file in with all the other src files vendor/foo/product/MyProduct.mk (includes PRODUCT_PACKAGE_OVERLAYS := vendor/foo/myoverlay) vendor/foo/myoverlay/framework/base/core/res/res/values/config.xml - the overlay copy, may only have this one file in myoverlay You should not modify the base/core/res makefile. R On Wed, Aug 18, 2010 at 10:12 AM, Naseer <[email protected]> wrote: > Thank you -- Can you please point me to any documentation on how to do > the overlay ? > I am assuming it will use make variables defined in device/$VENDOR./ > $TARGET_PRODUCT > Will this also involve modifying the makefile in frameworks/base/core/ > res ? > > > > On Aug 18, 8:48 pm, Robert Greenwalt <[email protected]> wrote: > > The build system provides an overlay feature that can be used for this. > It > > gives aapt one or more overlay paths that get used to modify the base > > resource file (config.xml in your case). The config.xml that would exist > in > > the overlay dir would only need to contain the values that you want to > > change. > > > > R > > > > > > > > On Wed, Aug 18, 2010 at 4:59 AM, Naseer <[email protected]> wrote: > > > Hi, > > > I want to override values in frameworks/base/core/res/res/values/ > > > config.xml based on the target product. > > > What is the best method to override only selected values from them ? > > > I do not want to directly change the xml files do avoid conflicts with > > > other targets and to avoid maintenance issues. > > > > > Thanks, > > > -Naseer > > > > > -- > > > unsubscribe: > > > [email protected]<android-porting%[email protected]> > <android-porting%2bunsubscr...@googlegroups.com> > > > website:http://groups.google.com/group/android-porting- Hide quoted > text - > > > > - Show quoted text - > > -- > unsubscribe: > [email protected]<android-porting%[email protected]> > website: http://groups.google.com/group/android-porting > -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
