Game Development Reference
In-Depth Information
■
Tip
The
repo init
command will download the master branch. To download other branches, use
repo
init -u git://android.git.kernel.org/platform/manifest.git -b [BRANCH_NAME]
.
Now fetch some coffee, sit down, and wait. Depending on your network speed, the download can
take up to one hour.
Once the source download completes, the folder tree should look as shown in Figure 1-1. The most
important folder is called
bionic
. Bionic is the C library that supports the ARM and x86 instruction sets,
and it is meant to run on an Android device. Bionic is part BSD and part Linux—its source code is a mix
of BSD C library with custom Linux-specific bits used to deal with threads, processes, signals, and other
things. This folder will provide most of the C header files used to build your shared libraries.
Figure 1-1.
Android source tree