Building an AVD from Eclair sources

15 views
Skip to first unread message

Jerry Brady

unread,
Nov 24, 2009, 2:45:45 PM11/24/09
to android-platform
I'm trying to work with an emulator on an issue related to the
"Accounts & Sync" settings which is currently only available (to me)
in the production Motorola Droid.

I tried tweaking version_defaults.mk (against JBQ's better judgment).
After re-building Settings.apk and AccountsAndSyncSettings.apk, but
when they are run on an SDK 2.0 emulator, the settings application
does not pickup/find the intent "com.android.SYNC_SETTINGS".

I thought it would best (learning the hard way) to build an AVD
directly from the current Eclair sources, but I can't find
instructions or posts on how that can be accomplished. I'm either
missing the obvious or it's not something done that often.

To further complicate matters I'm building on Ubuntu 9.04 but would
like to run the AVD on an x86 PC.

My hope is that I can use an emulator environment to look further into
a current defect (http://code.google.com/p/android/issues/detail?
id=5009). I want to find a way for 3rd-party accounts to play nice
with the system in 2.0.

Any help or guidance would be appreciated.

Cheers,
Jerry

Xavier Ducrohet

unread,
Nov 24, 2009, 3:05:11 PM11/24/09
to android-...@googlegroups.com
You will need to build your own SDK.

For the root of the android source tree:
. build/envsetup.sh
lunch sdk-eng
make sdk (may want to use -j<something> based on your number of cores)

find the SDK in out/host/linux/sdk/...

From the SDK, copy platforms/android-#.# into your SDK/platform on your destination pc.

If that's running windows, copy platforms/android-2.0/tools/* into your newly created platforms tools folder.

Use the AVD Manager to create an AVD for this new platform.

Xav



--

You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.





--
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

Jerry Brady

unread,
Nov 25, 2009, 9:34:10 AM11/25/09
to android-...@googlegroups.com
Xavier,

Thanks. Your help is appreciated. I'm almost there. After
completing your instructions, on the PC running "android list target"
results in the following error:

"Error: Ignoring platform 'android-Eclair': tools\aapt.exe is missing."

I'm not sure the of the easiest way to build aapt.exe for Windows. I ca

Cheers,
Jerry

Xavier Ducrohet

unread,
Nov 25, 2009, 4:31:08 PM11/25/09
to android-...@googlegroups.com
just copy the aapt.exe from android-2.0, it shouldn't have changed.

building for windows is complex. you need a linux or mac SDK build and then run some script running on cygwin.


it's a lot easier to follow the step I wrote:
"If that's running windows, copy platforms/android-2.0/tools/* into your newly created platforms tools folder."

Xav

Jerry Brady

unread,
Nov 25, 2009, 9:27:53 PM11/25/09
to android-...@googlegroups.com
Xav,

that did the trick. i'm in business. thanks and have a great holiday.

Cheers,
Jerry

Jerry Brady

unread,
Dec 2, 2009, 2:03:10 PM12/2/09
to android-...@googlegroups.com
The 2.1 emulator I built using these instructions works. Thank you.

It doesn't, however, appear to be visible to adb on the desktop. Is
there anything special I need to do to let the debugger see the 2.1
emulator? It doesn't show up with adb from the command line or with
DDMS...

Jerry
Reply all
Reply to author
Forward
0 new messages