Reputation: 173
I just downloaded the full 4.0.1_r1 Android Source Code repository according to the official instructions. Can someone help me understand the repository's basic naming scheme?
For example, in the root directory of the repository, what exactly is the "frameworks" directory? How does this differ from the "packages" directory?
Upvotes: 5
Views: 748
Reputation: 30138
I have spend quite a bit of time around the android source code the last few years, so let me take a shot at explaining the different folders in the root. These are roughly (depending a bit on the android version):
bionic
bootable
build
build/target/products
you will find all the generic build targets you see when you launch lunch
.cts
dalvik
development
device
devices/{yourname}/products/{yourdevice}.mk
defining exactly which apps should be build for your device (as well as a few other things). This adds an entry to the lunch menu called {yourdevice}
that you can build.docs
http://source.android.com
.external
bzip2
, dbus
, ping
, tcpdump
, and many other projects here.frameworks
AudioManager
. The source of AudioManager
as well as all the internal Android source supporting AudioManager
is placed under frameworks/base/media
. You will find the bulk of the Android SDK implemented somewhere under frameworks/base/
.hardware
hardware
folder, however manufactures implement their own libraries and place them in hardware/{manufcaturename}
(or in device/{manufacture}
).libcore
ndk
out
out
folder will clean the sources completely. out
is divided into different folders, the main ones are host
and target
where stuff compiled for the host machine (e.g. adb) and for the target device (most of the android system) are separated. There are further subdivisions below, and in general the out
folder is quite nicely sorted, so you should just explore it a bit yourself.packages
prebuilt
sdk
system
This is all from my experience with working with the Android source, I do not have any (other) references. I hope this helps you get an overview of the folder structure.
Upvotes: 6