Show me the code! – By Davanum Srinivas

October 23, 2008

[android] Building and running Android from source

Filed under: Uncategorized — Davanum Srinivas @ 9:01 am
  • Use the repo script to pull down the source as explained in
  • Make sure you install ncurses headers using “sudo apt-get install ncurses-dev”
  • run make from the root directory
  • run the emulator using “out/host/linux-x86/bin/emulator -system out/target/product/generic/ -kernel prebuilt/android-arm/kernel/kernel-qemu”

PS: Many thanks to massiveRobot on #android IRC channel for the tip for running the emulator.

5 Comments »

  1. […] source/Build Android [android] Building and running Android from source Filed under: Uncategorized — Davanum Srinivas @ 9:01 […]

    Pingback by Get source/Build Android « Icwang’s Blog — November 9, 2008 @ 5:58 am

  2. interested in learning all about android. what would you advice?

    Comment by lilia — December 15, 2008 @ 8:54 pm

  3. This not enough to run emulator. You should add -data option. For example -data out/target/product/generic/userdata.img

    Comment by Igor — February 6, 2009 @ 8:51 am

  4. Yeah it doesn’t work unless you add the “-data” option as Igor says.

    Comment by Frank Maker — February 17, 2009 @ 6:43 pm

  5. hey, i have built the source of android, now what is the next step??how to check what changes i have made???can you give me the complete command that is to be typed in terminal window??

    Comment by droid geek — March 8, 2010 @ 6:01 am


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: