Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
what's the best way for OEM to organize it's own resources?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
cht  
View profile  
 More options Feb 19 2009, 3:05 am
From: cht <caoht...@gmail.com>
Date: Thu, 19 Feb 2009 00:05:30 -0800 (PST)
Local: Thurs, Feb 19 2009 3:05 am
Subject: what's the best way for OEM to organize it's own resources?
may be there are someways:
1: put their own resources under the folder "frameworks\base\core
\res", mix with android's original resources, although it works, but
idont think it is a best way?
2: make their own resource apk like "framework-res.apk", it can
separate their own resources from android's original res,  but i don't
kown how to implements it, and i don't kown whether it is feasible.
3: some else?

i think the second is the best, but i don't kown how to implements
it.

cht
thanks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dianne Hackborn  
View profile  
 More options Feb 19 2009, 2:07 pm
From: Dianne Hackborn <hack...@android.com>
Date: Thu, 19 Feb 2009 11:07:09 -0800
Local: Thurs, Feb 19 2009 2:07 pm
Subject: Re: what's the best way for OEM to organize it's own resources?

2 would be best, but currently we don't support shared libraries with
resources so you can't really do it.

In cupcake you can define PRODUCT_PACKAGE_OVERLAYS in your product makefile
to specify one or more directories that will be merged in with the base
platform directories.  For example:

PRODUCT_PACKAGE_OVERLAYS := vendor/mycompany/prod_overlay
vendor/mycompany/base_overlay

Now you can replace or add framework resources by putting them in either of
these:

vendor/mycompany/base_overlay/frameworks/base/core/res/res/
vendor/mycompany/prod_overlay/frameworks/base/core/res/res/

You can use this to replace any resource in the tree, both in the framework
and in specific packages, by just putting them in a directory corresponding
to the same path where you find them in the platform tree.

Also when adding new resources to the frameworks that you want to use in
your own apps that are built into the system image, you can use the magic
syntax "@*android:type/name" to reference them without having to make them
public.  You can likewise find private resources in Java at
com.android.internal.R.

--
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jey Michael  
View profile  
 More options Feb 20 2009, 4:14 pm
From: Jey Michael <jey.mich...@gmail.com>
Date: Fri, 20 Feb 2009 13:14:08 -0800
Local: Fri, Feb 20 2009 4:14 pm
Subject: Re: what's the best way for OEM to organize it's own resources?

On Thu, Feb 19, 2009 at 11:07 AM, Dianne Hackborn <hack...@android.com> wrote:
> 2 would be best, but currently we don't support shared libraries with
> resources so you can't really do it.

> In cupcake you can define PRODUCT_PACKAGE_OVERLAYS in your product makefile
> to specify one or more directories that will be merged in with the base
> platform directories.

Glad to see this overlay mechanism.  Very nice.
How can I test this?
I created a vendor/mycompany/mycompany.mk
------------
PRODUCT_PACKAGES := \
    VoiceDialer

# Try adding a product with VoiceDialer

# Superclass
$(call inherit-product, build/target/product/generic.mk)

# Overrides
PRODUCT_BRAND := mybrand
PRODUCT_NAME := myproduct
PRODUCT_DEVICE := mydevice
PRODUCT_MANUFACTURER := me
------------

and a AndroidProducts.mk at the same location
------------

PRODUCT_MAKEFILES := \
    $(LOCAL_DIR)/mycompany.mk
------------

But before adding overlays, I tried to do a build but I am not sure
whats the correct target.

make myproduct
make PRODUCT-myproduct-eng

all fails with msg: "No rule to make target"

Is there an example product makefile?
documents/pointers/tips would help.

thanks
Jey

For example:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nick  
View profile  
 More options Feb 23 2009, 11:31 pm
From: Nick <nickp...@gmail.com>
Date: Mon, 23 Feb 2009 20:31:49 -0800 (PST)
Local: Mon, Feb 23 2009 11:31 pm
Subject: Re: what's the best way for OEM to organize it's own resources?
Out of curiosity, does the overlay apply to any type of file like Java
files in the framework that an OEM may want to modify?

Thanks,
Nick

On Feb 19, 2:07 pm, Dianne Hackborn <hack...@android.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dianne Hackborn  
View profile  
 More options Feb 23 2009, 11:59 pm
From: Dianne Hackborn <hack...@android.com>
Date: Mon, 23 Feb 2009 20:59:06 -0800
Local: Mon, Feb 23 2009 11:59 pm
Subject: Re: what's the best way for OEM to organize it's own resources?

Sorry I don't know, but somebody else might.

--
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
cht  
View profile  
 More options Feb 25 2009, 9:28 pm
From: cht <caoht...@gmail.com>
Date: Wed, 25 Feb 2009 18:28:17 -0800 (PST)
Local: Wed, Feb 25 2009 9:28 pm
Subject: Re: what's the best way for OEM to organize it's own resources?
i find that attrs.xml files can not be overlayed
it will make an error
attrs.xml  error atribute "direction" has already benn difiend.

i test the overlay on Launcher app
any other file types can be overlayed successfully.

i define the overlay path in my own product file
and copy the original Launcher app to the corresponding overlay path
the attrs.xml file failed,
delete the attrs.xml file it works.

i want to know if the attrs.xml files can be overlayed?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dianne Hackborn  
View profile  
 More options Feb 25 2009, 9:43 pm
From: Dianne Hackborn <hack...@android.com>
Date: Wed, 25 Feb 2009 18:43:45 -0800
Local: Wed, Feb 25 2009 9:43 pm
Subject: Re: what's the best way for OEM to organize it's own resources?

You are redefining the direction attribute, which is already defined by the
base framework.  You need to use a different name.

--
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
NikB  
View profile  
 More options Feb 25 2009, 10:42 pm
From: NikB <nibha...@gmail.com>
Date: Wed, 25 Feb 2009 19:42:21 -0800 (PST)
Local: Wed, Feb 25 2009 10:42 pm
Subject: Re: what's the best way for OEM to organize it's own resources?
Cht, this is a great thread that you have started. For the rest of us
who are trying to do things very similar to yourself (overlaying the
Android base code), but don't exactly know where to start (aside from
directly hacking at the code), could you outline what steps you took
in your process of modifying the Launcher app.  I know you are not yet
successful, but maybe if you share your exact steps, I could try the
same and have sucess and can share my results.

Thanks,
Nik

On Feb 25, 8:28 pm, cht <caoht...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
cht  
View profile  
 More options Feb 26 2009, 1:51 am
From: cht <caoht...@gmail.com>
Date: Wed, 25 Feb 2009 22:51:23 -0800 (PST)
Local: Thurs, Feb 26 2009 1:51 am
Subject: Re: what's the best way for OEM to organize it's own resources?
 and another problem

i put some res files in the framework res overlay dir
vendor/mycompany/base/frameworks/base/core/res/res/

when i make the framework-res module on the command line , it faild
"make: [out/target/common/obj/apps/framework-res_intermediates/pachage-
export.apk] segmentation fault"

the framework res  can not be overlayed???

--------------------------------------------------------------------------- ---------
hi Nik
just like Dianne Hackborn reply to my first post
i make a dir for my overlay res under the android source root dir
the path looks like:
android_root/vendor/mycompany/base
android_root/vendor/mycompany/product

and just for test we define PRODUCT_PACKAGE_OVERLAYS := vendor/
mycompany/base vendor/mycompany/product
in the build/target/product/generic.mk

if you test Launcher app
put the Launcher app under
vendor/mycompany/base/packages/apps/
on the command line >make Launcher

if you test framework res
put the overlay res under rvendor/mycompany/base/frameworks/base/core/
res/res/ path

>make framework-res

but it faild

-------------------------------------------------------------------
hi Dianne Hackborn
the  direction attribute is defined is not defined by framework
it is defined by the original Laucnher app which under pachages/apps/
Laucher
and i copy the Launcher app to my overlay path
you said it will replace the original files, it is that?
i find that, image files will be replaced, but attrs.xml file will be
merged not replace, is it?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dianne Hackborn  
View profile  
 More options Feb 26 2009, 3:28 pm
From: Dianne Hackborn <hack...@android.com>
Date: Thu, 26 Feb 2009 12:28:05 -0800
Local: Thurs, Feb 26 2009 3:28 pm
Subject: Re: what's the best way for OEM to organize it's own resources?

Yes it can be overlayed, we use that for doing different builds for
different devices, such as setting up default configurations for hard vs.
soft keyboard devices.  The aapt shouldn't outright crash, so somebody will
need to debug that -- if you want, just change the build system to run it
with "gdb" and you can get a stack crawl to see what happened.  (Look for
$(APPT) in build/core/definitions.mk for the place where it is invoked.)

--
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
cht  
View profile  
 More options Feb 26 2009, 6:47 pm
From: cht <caoht...@gmail.com>
Date: Thu, 26 Feb 2009 15:47:12 -0800 (PST)
Local: Thurs, Feb 26 2009 6:47 pm
Subject: Re: what's the best way for OEM to organize it's own resources?
ok i build it base on the android source code up to date 2009-02-21
master branch.
may be i have to use another version code.
hope for fixing it ASAP.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dianne Hackborn  
View profile  
 More options Feb 26 2009, 6:54 pm
From: Dianne Hackborn <hack...@android.com>
Date: Thu, 26 Feb 2009 15:54:48 -0800
Local: Thurs, Feb 26 2009 6:54 pm
Subject: Re: what's the best way for OEM to organize it's own resources?

The quickest way to have it fixed is to debug it.

On Thu, Feb 26, 2009 at 3:47 PM, cht <caoht...@gmail.com> wrote:

> ok i build it base on the android source code up to date 2009-02-21
> master branch.
> may be i have to use another version code.
> hope for fixing it ASAP.

--
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »