My very own AOSP

So I spent some time setting up a VirtualBox which runs Ubuntu 9.04 in order to be able to download and compile the complete Android Open Source Project (AOSP). And after quite a long time and following the description on source.android.com I had my first build of the AOSP done. To continue you should follow the Using Eclipse tutorial. Especially the follwoing piece gets you going:

You can also use eclipse to debug the emulator and step through code. First, start the emulator running:

cd /path/to/android/root
. build/envsetup.sh
lunch 1   # to build the emulator
make      # if you didn't already do this
emulator  # you should see a GUI picture of a phone

In another shell, start DDMS (the Dalvik debug manager):

cd /path/to/android/root
ddms      # you should get a splufty debugging console

One thing you will notice is that the Home Button doesn’t work. After asking in the chat I was pointed to a provision problem so I searched a bit through the web and found this Google Groups Dsicussion: About the HOME key in the latest android source code

So this is how you get Home Key working:

  1. Find the <mydroid>/development/apps/SdkSetup/Android.mk file
  2. It might look something like the following, but without the red bold line, make sure to add that line.
    LOCAL_PATH:= $(call my-dir)
    include $(CLEAR_VARS)
    
    LOCAL_MODULE_TAGS := eng
    
    LOCAL_SRC_FILES := $(call all-subdir-java-files)
    
    LOCAL_PACKAGE_NAME := SdkSetup
    LOCAL_CERTIFICATE := platform
    
    include $(BUILD_PACKAGE)
  3. Save the file and go back to your Android root directory <mydroid>
  4. run make
  5. and launch the Emulator
  6. you should now be able to use the HOME Key