page.title=Source Code Overview pdk.version=1.0 doc.type=porting @jd:body
Introduction
Android Source
Linux Kernel
Android Platform and Applications
Adding Source Code

Introduction

Android source code is maintained in two code bases: the Android Linux kernel (kernel directory) and Android platform and applications (device directory). This document provides a high-level introduction to the source code organization and an overview of the major components of each primary directory.

Android Source

Linux Kernel

The Android Linux kernel includes enhancements to the Linux 2.6 kernel that provide additional drivers to support the Android platform, including:

Look for Android-specific enhancements in the following directories:

Android Platform and Applications

The following list outlines the directory structure found within the device branch of Android source code:

Adding Source Code

You can develop Android applications with the same standard tools you use to develop any Java application. The Android core libraries provide the functionality needed to build rich mobile applications and the Android development tools are designed to simplify running, debugging, and testing your applications.

Add project-specific source code to the Android source tree under the partner directory in a directory specific to the application or service you are building. For example, all Google-specific applications would be placed under vendor/google/. A Google search application would be placed under vendor/google/apps/Search.

See Building Android for a new Mobile Device for detailed instructions.