On Wed, Aug 12, 2009 at 4:23 PM, Mike Lissner<mjli...@gmail.com> wrote:
>
> Questions:
> 1. Somewhere, I've left out the "lunch 1" command that does
> something....but where, and is it important?
'lunch' is a shell command provided by the env_setup.sh configuration
step. It allows you to select among various products and build
flavors (eng, user, etc), and configures your environment
appropriately. Within Google's Android team, for example, this is
used all the time to switch between e.g. doing dream (G1 type
hardware) versus sapphire (Magic type hardware) builds, between
T-Mobile US vs Vodafone etc product bundles, etc.
If you just type 'lunch' with no argument, you should be presented
with a pick list of the most common / relevant options.
> 2. I'm a little confused why anybody would run make without running
> make sdk. Seems like you'd almost always want to make the sdk, but I'm
> probably missing something here.
I think the opposite: nobody working with the main source base should
ever run 'make sdk' unless they're engaged in editing and publishing a
new formal SDK. When you're working within the platform sources
themselves, the distinction between public and private APIs is not
particularly relevant. The primary 'make' build will enforce the
current, existing API so that you don't inadvertently break anything,
and that's all you need to worry about.
(Note that typically nobody at Google runs 'make sdk' unless they are
part of the group putting together a new SDK package.)
> 3. Once this is all done, the home button won't work unless a change
> is made to include SdkSetup. Therefore the 0th step should be to make
> the change mentioned here:
> http://groups.google.com/group/android-porting/browse_thread/thread/2e8fb948cfc29a5f?pli=1
Aha, yes, for the AOSP situation you're probably right that this is
Step 0. jbq or someone, can you confirm?
> 4. Once this is all done, an emulator should have been created that
> has an SD card, allows GPS emulation, and pretty much all-around
> works. Correct?
Hrm. This does not create an sdcard image; you have to create one by
hand. However, the emulator takes a command line argument "-sdcard"
that lets you specify the image by path, no AVDs involved. AVDs are
not part of the daily (or weekly or monthly or...) life of the Android
framework engineers at Google.
--
chris tate
android framework engineer
7. Recompile as necessary with something like: mmm packages/apps/Email
or mmm framework/base/core/res