android源码目录结构(2.1版本和2.2版本)

来源:互联网 发布:一款蓝色的娱乐网源码 编辑:程序博客网 时间:2024/06/05 09:55

 Android 2.1 |-- Makefile |-- bionic (bionic C库) |-- bootable (启动引导相关代码) |-- build (存放系统编译规则及generic等基础开发包配置) |-- cts (Android兼容性测试套件标准) |-- dalvik (dalvik JAVA虚拟机) |-- development (应用程序开发相关) |-- external (android使用的一些开源的模组) |-- frameworks

Android 2.2
|-- Makefile
|-- bionic                        (bionic C库)
|-- bootable                (启动引导相关代码)
|-- build                        (存放系统编译规则及generic等基础开发包配置)
|-- cts                        (Android兼容性测试套件标准)
|-- dalvik                        (dalvik JAVA虚拟机)
|-- development        (应用程序开发相关)
|-- external                (android使用的一些开源的模组)
|-- frameworks                (核心框架——java及C++语言)
|-- hardware                (部分厂家开源的硬解适配层HAL代码)
|-- out                        (编译完成后的代码输出与此目录)
|-- packages                (应用程序包)
|-- prebuilt                (x86和arm架构下预编译的一些资源)
|-- sdk                        (sdk及模拟器)
|-- system                        (底层文件系统库、应用及组件——C语言)
`-- vendor                (厂商定制代码)

bionic 目录
|-- libc                        (C库)
|   |-- arch-arm        (ARM架构,包含系统调用汇编实现)
|   |-- arch-x86        (x86架构,包含系统调用汇编实现)
|   |-- bionic                (由C实现的功能,架构无关)
|   |-- docs                (文档)
|   |-- include                (头文件)
|   |-- inet                (?inet相关,具体作用不明)
|   |-- kernel                (Linux内核中的一些头文件)
|   |-- netbsd                (?nesbsd系统相关,具体作用不明)
|   |-- private                (?一些私有的头文件)
|   |-- stdio                (stdio实现)
|   |-- stdlib                (stdlib实现)
|   |-- string                (string函数实现)
|   |-- tools                (几个工具)
|   |-- tzcode                (时区相关代码)
|   |-- unistd                (unistd实现)
|   `-- zoneinfo        (时区信息)
|-- libdl                        (libdl实现,dl是动态链接,提供访问动态链接库的功能)
|-- libm                        (libm数学库的实现,)
|   |-- alpha                (apaha架构)
|   |-- amd64                (amd64架构)
|   |-- arm                (arm架构)
|   |-- bsdsrc                (?bsd的源码)
|   |-- i386                (i386架构)
|   |-- i387                (i387架构?)
|   |-- ia64                (ia64架构)
|   |-- include                (头文件)
|   |-- man                (数学函数,后缀名为.3,一些为freeBSD的库文件)
|   |-- powerpc        (powerpc架构)
|   |-- sparc64                (sparc64架构)
|   `-- src                (源代码)
|-- libstdc++                (libstdc++ C++实现库)
|   |-- include                (头文件)
|   `-- src                (源码)
|-- libthread_db        (多线程程序的调试器库)
|   `-- include                (头文件)
`-- linker                        (动态链接器)
`-- arch                (支持arm和x86两种架构)

bootable 目录
.
|-- bootloader                                (适合各种bootloader的通用代码)
|   `-- legacy                                (估计不能直接使用,可以参考)
|       |-- arch_armv6                (V6架构,几个简单的汇编文件)
|       |-- arch_msm7k                (高通7k处理器架构的几个基本驱动)
|       |-- include                        (通用头文件和高通7k架构头文件)
|       |-- libboot                        (启动库,都写得很简单)
|       |-- libc                        (一些常用的c函数)
|       |-- nandwrite                (nandwirte函数实现)
|       `-- usbloader                (usbloader实现)
|-- diskinstaller                        (android镜像打包器,x86可生产iso)
`-- recovery                                (系统恢复相关)
    |-- edify                                (升级脚本使用的edify脚本语言)
    |-- etc                                (init.rc恢复脚本)
    |-- minui                                (一个简单的UI)
    |-- minzip                                (一个简单的压缩工具)
    |-- mtdutils                        (mtd工具)
    |-- res                                (资源)
    |   `-- images                        (一些图片)
    |-- tools                                (工具)
    |   `-- ota                        (OTA Over The Air Updates升级工具)
`-- updater                        (升级器)

build目录
.
|-- core                                (核心编译规则)
|-- history                                (历史记录)
|-- libs                                
|   `-- host                        (主机端库,有android “cp”功能替换)
|-- target                                (目标机编译对象)
|   |-- board                        (开发平台)
|   |   |-- emulator        (模拟器)
|   |   |-- generic                (通用)
|   |   |-- idea6410        (自己添加的)
|   |   `-- sim                (最简单)
|   `-- product                (开发平台对应的编译规则)
|       `-- security        (密钥相关)
`-- tools                                (编译中主机使用的工具及脚本)
    |-- acp                        (Android "acp" Command)
    |-- apicheck                (api检查工具)
    |-- applypatch                (补丁工具)
    |-- apriori                        (预链接工具)
    |-- atree                        (tree工具)
    |-- bin2asm                (bin转换为asm工具)
    |-- check_prereq        (检查编译时间戳工具)
    |-- dexpreopt                (模拟器相关工具,具体功能不明)
    |-- droiddoc                (?作用不明,java语言,网上有人说和JDK5有关)
    |-- fs_config                (This program takes a list of files and directories)
    |-- fs_get_stats                (获取文件系统状态)
    |-- iself                        (判断是否ELF格式)
    |-- isprelinked                (判断是否prelinked)
    |-- kcm                        (按键相关)
    |-- lsd                        (List symbol dependencies)
    |-- releasetools                (生成镜像的工具及脚本)
    |-- rgb2565                (rgb转换为565)
    |-- signapk                (apk签名工具)
    |-- soslim                        (strip工具)
`-- zipalign                (zip archive alignment tool)

dalvik目录 dalvik虚拟机
.
|-- dalvikvm                        (main.c的目录)
|-- dexdump                        (dex反汇编)
|-- dexlist                                (List all methods in all concrete classes in a DEX file.)
|-- dexopt                                (预验证与优化)
|-- docs                                (文档)
|-- dvz                                (和zygote相关的一个命令)
|-- dx                                (dx工具,将多个java转换为dex)
|-- hit                                (?java语言写成)
|-- libcore                                (核心库)
|-- libcore-disabled                (?禁用的库)
|-- libdex                                (dex的库)
|-- libnativehelper                (Support functions for Android's class libraries)
|-- tests                                (测试代码)
|-- tools                                (工具)
`-- vm                                (虚拟机实现)

development 目录                (开发者需要的一些例程及工具)
|-- apps                                (一些核心应用程序)
|   |-- BluetoothDebug        (蓝牙调试程序)
|   |-- CustomLocale        (自定义区域设置)
|   |-- Development        (开发)
|   |-- Fallback                (和语言相关的一个程序)
|   |-- FontLab                (字库)
|   |-- GestureBuilder        (手势动作)
|   |-- NinePatchLab        (?)
|   |-- OBJViewer                (OBJ查看器)
|   |-- SdkSetup                (SDK安装器)
|   |-- SpareParts                (高级设置)
|   |-- Term                        (远程登录)
|   `-- launchperf                (?)
|-- build                                (编译脚本模板)
|-- cmds                                (有个monkey工具)
|-- data                                (配置数据)
|-- docs                                (文档)
|-- host                                (主机端USB驱动等)
|-- ide                                (集成开发环境)
|-- ndk                                (本地开发套件——c语言开发套件)
|-- pdk                                (Plug Development Kit)
|-- samples                        (例程)
|   |-- AliasActivity        (?)
|   |-- ApiDemos                (API演示程序)
|   |-- BluetoothChat        (蓝牙聊天)
|   |-- BrowserPlugin        (浏览器插件)
|   |-- BusinessCard        (商业卡)
|   |-- Compass                (指南针)
|   |-- ContactManager        (联系人管理器)
|   |-- CubeLiveWallpaper        (动态壁纸的一个简单例程)
|   |-- FixedGridLayout        (像是布局)
|   |-- GlobalTime                (全球时间)
|   |-- HelloActivity        (Hello)
|   |-- Home                        (Home)
|   |-- JetBoy                        (jetBoy游戏)
|   |-- LunarLander        (貌似又是一个游戏)
|   |-- MailSync                (邮件同步)
|   |-- MultiResolution        (多分辨率)
|   |-- MySampleRss        (RSS)
|   |-- NotePad                (记事本)
|   |-- RSSReader                (RSS阅读器)
|   |-- SearchableDictionary        (目录搜索)
|   |-- SimpleJNI                (JNI例程)
|   |-- SkeletonApp        (空壳APP)
|   |-- Snake                        (snake程序)
|   |-- SoftKeyboard        (软键盘)
|   |-- Wiktionary                (?维基)
|   `-- WiktionarySimple(?维基例程)
|-- scripts                                (脚本)
|-- sdk                                (sdk配置)
|-- simulator                        (?模拟器)
|-- testrunner                        (?测试用)
`-- tools                                (一些工具)

external 目录
.
|-- aes                        (AES加密)
|-- apache-http                (网页服务器)
|-- astl                        (ASTL (Android STL) is a slimmed-down version of the regular C++ STL.)
|-- bison                        (自动生成语法分析器,将无关文法转换成C、C++)
|-- blktrace                (blktrace is a block layer IO tracing mechanism)
|-- bluetooth                (蓝牙相关、协议栈)
|-- bsdiff                        (diff工具)
|-- bzip2                        (压缩工具)
|-- clearsilver                (html模板系统)
|-- dbus                        (低延时、低开销、高可用性的IPC机制)
|-- dhcpcd                (DHCP服务)
|-- dosfstools                (DOS文件系统工具)
|-- dropbear                (SSH2的server)
|-- e2fsprogs                (EXT2文件系统工具)
|-- elfcopy                (复制ELF的工具)
|-- elfutils                        (ELF工具)
|-- embunit                (Embedded Unit Project)
|-- emma                        (java代码覆盖率统计工具)
|-- esd                        (Enlightened Sound Daemon,将多种音频流混合在一个设备上播放)
|-- expat                        (Expat is a stream-oriented XML parser.)
|-- fdlibm                        (FDLIBM (Freely Distributable LIBM))
|-- freetype                (字体)
|-- fsck_msdos                (dos文件系统检查工具)
|-- gdata                        (google的无线数据相关)
|-- genext2fs                (genext2fs generates an ext2 filesystem as a normal (non-root) user)
|-- giflib                        (gif库)
|-- googleclient        (google用户库)
|-- grub                        (This is GNU GRUB, the GRand Unified Bootloader.)
|-- gtest                        (Google C++ Testing Framework)
|-- icu4c                        (ICU(International Component for Unicode)在C/C++下的版本)
|-- ipsec-tools                (This package provides a way to use the native IPsec functionality )
|-- iptables                (防火墙)
|-- jdiff                        (generate a report describing the difference between two public Java APIs.)
|-- jhead                        (jpeg头部信息工具)
|-- jpeg                        (jpeg库)
|-- junit                        (JUnit是一个Java语言的单元测试框架)
|-- kernel-headers        (内核的一些头文件)
|-- libffi                        (libffi is a foreign function interface library.)
|-- libpcap                (网络数据包捕获函数)
|-- libpng                        (png库)
|-- libxml2                (xml解析库)
|-- mtpd                        (一个命令)
|-- netcat                        (simple Unix utility which reads and writes dataacross network connections)
|-- netperf                        (网络性能测量工具)
|-- neven                        (看代码和JNI相关)
|-- opencore                (多媒体框架)
|-- openssl                (SSL加密相关)
|-- openvpn                (VPN开源库)
|-- oprofile                (OProfile是Linux内核支持的一种性能分析机制。)
|-- ping                        (ping命令)
|-- ppp                        (pppd拨号命令,好像还没有chat)
|-- proguard                (Java class file shrinker, optimizer, obfuscator, and preverifier)
|-- protobuf                (a flexible, efficient, automated mechanism for serializing structured data)
|-- qemu                        (arm模拟器)
|-- safe-iop                (functions for performing safe integer operations )
|-- skia                        (skia图形引擎)
|-- sonivox                (sole MIDI solution for Google Android Mobile Phone Platform)
|-- speex                        (Speex编/解码API的使用(libspeex))
|-- sqlite                        (数据库)
|-- srec                        (Nuance 公司提供的开源连续非特定人语音识别)
|-- strace                        (trace工具)
|-- svox                        (Embedded Text-to-Speech)
|-- tagsoup                (TagSoup是一个Java开发符合SAX的HTML解析器)
|-- tcpdump                (抓TCP包的软件)
|-- tesseract                (Tesseract Open Source OCR Engine.)
|-- tinyxml                (TinyXml is a simple, small, C++ XML parser)
|-- tremor                        (I stream and file decoder provides an embeddable,integer-only library)
|-- webkit                        (浏览器核心)
|-- wpa_supplicant        (无线网卡管理)
|-- xmlwriter                (XML 编辑工具)
|-- yaffs2                        (yaffs文件系统)
`-- zlib                        (a general purpose data compression library)

frameworks 目录        (核心框架——java及C++语言)
.
|-- base                        (基本内容)
|   |-- api                (?都是xml文件,定义了java的api?)
|   |-- awt                (AWT库)
|   |-- build                (空的)
|   |-- camera                (摄像头服务程序库)
|   |-- cmds                (重要命令:am、app_proce等)
|   |-- core                (核心库)
|   |-- data                (字体和声音等数据文件)
|   |-- docs                (文档)
|   |-- graphics        (图形相关)
|   |-- include                (头文件)
|   |-- keystore        (和数据签名证书相关)
|   |-- libs                (库)
|   |-- location        (地区库)
|   |-- media                (媒体相关库)
|   |-- obex                (蓝牙传输库)
|   |-- opengl                (2D-3D加速库)
|   |-- packages        (设置、TTS、VPN程序)
|   |-- sax                (XML解析器)
|   |-- services        (各种服务程序)
|   |-- telephony        (电话通讯管理)
|   |-- test-runner        (测试工具相关)
|   |-- tests                (各种测试)
|   |-- tools                (一些叫不上名的工具)
|   |-- vpn                (VPN)
|   `-- wifi                (无线网络)
|-- opt                        (可选部分)
|   |-- com.google.android                                (有个framework.jar)
|   |-- com.google.android.googlelogin                (有个client.jar)
|   `-- emoji                (standard message elements)
`-- policies                (Product policies are operating system directions aimed at specific uses)
    `-- base                
        |-- mid        (MID设备)
        `-- phone        (手机类设备,一般用这个)

hardware 目录                (部分厂家开源的硬解适配层HAL代码)
|-- broadcom                        (博通公司)
|   `-- wlan                        (无线网卡)
|-- libhardware                        (硬件库)
|   |-- include                        (头文件)
|   `-- modules                (Default (and possibly architecture dependents) HAL modules)
|       |-- gralloc                (gralloc显示相关)
|       `-- overlay                (Skeleton for the "overlay" HAL module.)
|-- libhardware_legacy        (旧的硬件库)
|   |-- flashlight                (背光)
|   |-- gps                        (GPS)
|   |-- include                        (头文件)
|   |-- mount                        (旧的挂载器)
|   |-- power                        (电源)
|   |-- qemu                        (模拟器)
|   |-- qemu_tracing        (模拟器跟踪)
|   |-- tests                        (测试)
|   |-- uevent                        (uevent)
|   |-- vibrator                        (震动)
|   `-- wifi                        (无线)
|-- msm7k                        (高通7k处理器开源抽象层)
|   |-- boot                        (启动)
|   |-- libaudio                (声音库)
|   |-- libaudio-qsd8k        (qsd8k的声音相关库)
|   |-- libcamera                (摄像头库)
|   |-- libcopybit                (copybit库)
|   |-- libgralloc                (gralloc库)
|   |-- libgralloc-qsd8k        (qsd8k的gralloc库)
|   |-- liblights                (背光库)
|   `-- librpc                        (RPC库)
|-- ril                                (无线电抽象层)
|   |-- include                        (头文件)
|   |-- libril                        (库)
|   |-- reference-cdma-sms        (cdma短信参考)
|   |-- reference-ril                        (ril参考)
|   `-- rild                                (ril后台服务程序)
`-- ti                                                (ti公司开源HAL)
    |-- omap3                                (omap3处理器)
    |   |-- dspbridge                (DSP桥)
    |   |-- libopencorehw        (opencore硬件库)
    |   |-- liboverlay                (overlay硬件库)
    |   |-- libstagefrighthw        (stagefright硬件库)
    |   `-- omx                        (omx组件)
    `-- wlan                                (无线网卡)

packages 目录
.
|-- apps                                (应用程序库)
|   |-- AlarmClock                (闹钟)
|   |-- Bluetooth                (蓝牙)
|   |-- Browser                (浏览器)
|   |-- Calculator                (计算器)
|   |-- Calendar                (日历)
|   |-- Camera                 (相机)
|   |-- CertInstaller                (在Android中安装数字签名,被调用)
|   |-- Contacts                (拨号(调用)、联系人、通话记录)
|   |-- DeskClock                (桌面时钟)
|   |-- Email                        (Email)
|   |-- Gallery                        (相册,和Camera类似,多了列表)
|   |-- Gallery3D                (?3D相册)
|   |-- GlobalSearch        (为google搜索服务,提供底层应用)
|   |-- GoogleSearch        (google搜索)
|   |-- HTMLViewer        (浏览器附属界面,被浏览器应用调用,同时提供存储记录功能)
|   |-- IM                        (即时通讯,为手机提供信号发送、接收、通信的服务)
|   |-- Launcher                (登陆启动项,显示图片框架等等图形界面)
|   |-- Launcher2                (登陆启动项,负责应用的调用)
|   |-- Mms                        (?彩信业务)
|   |-- Music                        (音乐播放器)
|   |-- PackageInstaller        (安装、卸载程序的响应)
|   |-- Phone                        (电话拨号程序)
|   |-- Provision                (预设应用的状态,使能应用)
|   |-- Settings                (开机设定,包括电量、蓝牙、设备信息、界面、wifi等)
|   |-- SoundRecorder        (录音机,可计算存储所需空间和时间)
|   |-- Stk                         (接收和发送短信)
|   |-- Sync                        (空)   -------○1
|   |-- Updater                (空)
|   `-- VoiceDialer                (语音识别通话)
|-- inputmethods                (输入法)
|   |-- LatinIME                (拉丁文输入法)
|   |-- OpenWnn                (OpenWnn输入法)
|   `-- PinyinIME                (拼音输入法)
|-- providers                        (提供器,提供应用程序、界面所需的数据)
|   |-- ApplicationsProvider                (应用程序提供器,提供应用程序启动项、更新等)
|   |-- CalendarProvider                        (日历提供器)
|   |-- ContactsProvider                        (联系人提供器)
|   |-- DownloadProvider                (下载管理提供器)
|   |-- DrmProvider                        (创建和更新数据库时调用)
|   |-- GoogleContactsProvider        (联系人提供器的子类,用以同步联系人)
|   |-- GoogleSubscribedFeedsProvider(设置信息提供器)
|   |-- ImProvider                                (空)
|   |-- ManagementProvider                (空)
|   |-- MediaProvider                        (媒体提供器,提供存储数据)
|   |-- TelephonyProvider                (彩信提供器)
|   |-- UserDictionaryProvider        (用户字典提供器,提供用户常用字字典)
|   `-- WebSearchProvider                (空)
|-- services                                        
|   |-- EasService                                (空)
|   `-- LockAndWipe                        (空)
`-- wallpapers                                        (墙纸)
    |-- Basic                                        (基本墙纸,系统内置墙纸)
    |-- LivePicker                                (选择动态壁纸)
    |-- MagicSmoke                        (壁纸特殊效果)
    `-- MusicVisualization                (音乐可视化,图形随音乐而变化)

○1里面有一个隐藏的.git文件夹,内容都是一样的,没有有意义的代码,config看似乎是一个下载程序,因此认为这些文件夹下没有实质东西。

prebuilt 目录                        (x86和arm架构下预编译的一些资源)
.
|-- android-arm                (arm-android相关)
|   |-- gdbserver                (gdb调试器)
|   `-- kernel                        (模拟的arm内核)
|-- android-x86                (x86-android相关)
|   `-- kernel                        (空的)
|-- common                        (通用编译好的代码,应该是java的)
|-- darwin-x86                        (drawin x86平台)
|   `-- toolchain                (工具链)
|       |-- arm-eabi-4.2.1        
|       |-- arm-eabi-4.3.1        
|       `-- arm-eabi-4.4.0        
|-- darwin-x86_64                (drawin x86 64bit平台)
|-- linux-x86                        (linux x86平台)
|   `-- toolchain                (工具链,我们应该主要用这个)
|       |-- arm-eabi-4.2.1        
|       |-- arm-eabi-4.3.1        
|       |-- arm-eabi-4.4.0        
|       `-- i686-unknown-linux-gnu-4.2.1        (x86版编译器)
|-- linux-x86_64                (linux x86 64bit平台)
|-- windows                        (windows平台)
`-- windows-x86_64        (64bit windows平台)
system 目录                (底层文件系统库、应用及组件——C语言)
.
|-- Bluetooth                (蓝牙相关)
|-- core                        (系统核心工具盒接口)
|   |-- adb                (adb调试工具)
|   |-- cpio                (cpio工具,创建img)
|   |-- debuggerd        (调试工具)
|   |-- fastboot        (快速启动相关)
|   |-- include                (系统接口头文件)
|   |-- init                (init程序源代码)
|   |-- libacc                (轻量级C编译器)
|   |-- libctest                (libc测试相关)
|   |-- libcutils        (libc工具)
|   |-- liblog                (log库)
|   |-- libmincrypt        (加密库)
|   |-- libnetutils        (网络工具库)
|   |-- libpixelflinger        (图形处理库)
|   |-- libsysutils        (系统工具库)
|   |-- libzipfile        (zip库)
|   |-- logcat                (查看log工具)
|   |-- logwrapper        (log封装工具)
|   |-- mkbootimg        (制作启动boot.img的工具盒脚本)
|   |-- netcfg                (网络配置netcfg源码)
|   |-- nexus                (google最新手机的代码)
|   |-- rootdir                (rootfs,包含一些etc下的脚本和配置)
|   |-- sh                        (shell代码)
|   |-- toolbox                (toolbox,类似busybox的工具集)
|   `-- vold                (SD卡管理器)
|-- extras                        (额外工具)
|   |-- latencytop        (a tool for software developers ,identifying system latency happen)
|   |-- libpagemap        (pagemap库)
|   |-- librank                (Java Library Ranking System库)
|   |-- procmem        (pagemap相关)
|   |-- procrank        (Java Library Ranking System相关)
|   |-- showmap        (showmap工具)
|   |-- showslab        (showslab工具)
|   |-- sound                (声音相关)
|   |-- su                        (su命令源码)
|   |-- tests                (一些测试工具)
|   `-- timeinfo        (时区相关)
`-- wlan                        (无线相关)
    `-- ti                        (ti网卡相关工具及库)


vendor 目录                        (厂家定制内容)

|-- aosp                                (android open source project)
|   `-- products                (一些板级规则)
|-- htc                                (HTC公司)
|   |-- common-open        (通用部分)
|   |   `-- akmd                (解压img用的工具)
|   |-- dream-open                (G1开放部分)
|   |-- prebuilt-open        (预编译开放部分)
|   `-- sapphire-open        (sapphire这款型号开放内容)
|-- pv-open                        (没东西)
|-- qcom                                (里面基本是空的)
`-- sample                        (google提供的样例)
    |-- apps                        (应用)
    |   |-- client                (用户)
    |   `-- upgrade        (升级)
    |-- frameworks                (框架)
    |   `-- PlatformLibrary        (平台库)
    |-- products                (产品)
    |-- sdk_addon                (sdk添加部分)
    `-- skins                        (皮肤)
        `-- WVGAMedDpi        (WVGA适用的图片)



2.2版本

|-- bionic (bioni c library)
2 | |-- libc (C 库)
3 | | |-- arch-arm (ARM 架构,包含系统调用汇编实现)
4 | | |-- arch-x86 (x86架构,包含系统调用汇编实现)
5 | | |-- bionic (由C 实现的功能,架构无关)
6 | | |-- docs (文档)
7 | | |-- include (头文件)
8 | | |-- inet (inet 相关)
9 | | |-- kernel (Linux 内核中的一些头文件)
10 | | |-- netbsd (netbsd 系统相关)
11 | | |-- private (一些私有的头文件)
12 | | |-- stdio (stdio 实现)
13 | | |-- stdlib (stdlib 实现)
14 | | |-- string (string 函数实现)
15 | | |-- tools (几个工具)
16 | | |-- tzcode (时区相关代码)
17 | | |-- unistd (unistd 实现)
18 | | `-- zoneinfo (时区信息)
19 | |-- libdl (动态链接接口库(dynamic linking interface
Library),提供了直接访问动态链接库的能力)
21 | |-- libmC (数学函数库,提供了System V,ANSI C,POSIX
中定义的常见的基本数学函数和浮点运算,以
及浮点运算的异常处理)
23 | | |-- alpha (apaha 架构)
24 | | |-- amd64 (amd64架构)
25 | | |-- arm (arm 架构)
26 | | |-- bsdsrc (bsd 的源码)
27 | | |-- i386 (i386架构)
28 | | |-- i387 (i387架构)

29 | | |-- ia64 (ia64架构)
30 | | |-- include (头文件)
31 | | |-- man (数学函数,后缀名为.3,一些为freeBSD 的库文
件)
32 | | |-- powerpc (powerpc 架构)
33 | | |-- sparc64 (sparc64架构)
34 | | `-- src (源代码)
35 | |-- libstdc++ (GNU C++ 标准库)
36 | | |-- include (头文件)
37 | | `-- src (源码)
38 | |-- libthread_db (线程调试库(threads debugging library),可
利用此库进行多线程程序的调试工作)
39 | | `-- include (头文件)
40 | `-- linker (用来加载动态链接库的工具(替代了常用的
ld.so))
41 | `-- arch (支持arm 和x86两种架构)
42 |-- bootable (启动引导相关代码)
43 | |-- bootloader
44 | | `-- legacy
45 | |-- diskinstaller
46 | | |-- editdisklbl
47 | | `-- libdiskconfig
48 | `-- recovery
49 | |-- edify
50 | |-- etc
51 | |-- minui
52 | |-- minzip
53 | |-- mtdutils
54 | |-- res
55 | |-- tools
56 | `-- updater
57 |-- build (存放系统编译规则以及generic 等基础开包
配置)
58 | |-- core (各种以mk 为结尾的文件,它门是编译所需要
的Makefile,它被顶层目录的Makefile 引
用。envsetup.sh 是一个在使用仿真器运行的
时候,用于设置环境的脚本)

59 | | | Makefile (是整个Android 编译所需要的真正的
Makefile,被顶层目录的Makefile 引用。)
60 | | | envsetup.sh (是一个在使用仿真器运行的时候,用于设置
环境的脚本。)
61 | | |-- combo
62 | | `-- tasks
63 | |-- history
64 | |-- libs
65 | | `-- host
66 | |-- target (包含board 和product 两个目录,为目标所
需要文件)
67 | `-- tools (编译过程中主机所需要的工具,一些需要经
过编译生成)
68 |-- cts (android 兼容性测试套件标准)
69 | |-- tests
70 | | |-- ApiDemosReferenceTest
71 | | |-- ProcessTest
72 | | |-- SignatureTest
73 | | |-- appsecurity-tests
74 | | |-- assets
75 | | |-- config_demo
76 | | |-- core
77 | | |-- res
78 | | |-- src
79 | | |-- tests
80 | | `-- vm-tests
81 | `-- tools
82 | |-- annotation-helper
83 | |-- cts-reference-app-lib
84 | |-- dasm
85 | |-- device-setup
86 | |-- dex-tools
87 | |-- dx-tests
88 | |-- host
89 | |-- signature-tools
90 | |-- spec-progress
91 | |-- test-progress
92 | |-- test-progress-new

93 | |-- utils
94 | `-- vm-tests
95 |-- dalvik (目录用于提供Android JAVA 应用程序运行的
基础————JAVA 虚拟机。)
96 | |-- dalvikvm
97 | |-- dexdump
98 | |-- dexlist
99 | |-- dexopt
100 | |-- docs
101 | | `-- opcodes
102 | |-- dvz
103 | |-- dx
104 | | |-- etc
105 | | |-- src
106 | | `-- tests
107 | |-- hit
108 | | |-- samples
109 | | |-- src
110 | | `-- test
111 | |-- libcore 核心库相关
112 | | |-- annotation
113 | | |-- archive
114 | | |-- auth
115 | | |-- awt-kernel
116 | | |-- concurrent
117 | | |-- crypto
118 | | |-- dalvik
119 | | |-- dom
120 | | |-- icu
121 | | |-- json
122 | | |-- junit
123 | | |-- logging
124 | | |-- luni
125 | | |-- luni-kernel
126 | | |-- math
127 | | |-- nio
128 | | |-- nio_char

129 | | |-- openssl
130 | | |-- prefs
131 | | |-- regex
132 | | |-- security
133 | | |-- security-kernel
134 | | |-- sql
135 | | |-- suncompat
136 | | |-- support
137 | | |-- text
138 | | |-- tools
139 | | |-- x-net
140 | | `-- xml
141 | |-- libcore-disabled
142 | | |-- SoundTest
143 | | |-- instrument
144 | | `-- sound
145 | |-- libdex
146 | |-- libnativehelper
147 | | `-- include
148 | |-- tests 测试代码
149 | | |-- 001-nop
150 | | |-- 002-sleep
151 | | |-- 003-omnibus-opcodes
152 | | |-- 004-annotations
153 | | |-- 005-args
154 | | |-- 006-count10
155 | | |-- 007-exceptions
156 | | |-- 008-instanceof
157 | | |-- 009-instanceof2
158 | | |-- 010-instance
159 | | |-- 011-array-copy
160 | | |-- 012-math
161 | | |-- 013-math2
162 | | |-- 014-math3
163 | | |-- 015-switch
164 | | |-- 016-intern

165 | | |-- 017-float
166 | | |-- 018-stack-overflow
167 | | |-- 019-wrong-array-type
168 | | |-- 020-string
169 | | |-- 021-string2
170 | | |-- 022-interface
171 | | |-- 023-many-interfaces
172 | | |-- 024-illegal-access
173 | | |-- 025-access-controller
174 | | |-- 026-access
175 | | |-- 027-arithmetic
176 | | |-- 028-array-write
177 | | |-- 029-assert
178 | | |-- 030-bad-finalizer
179 | | |-- 031-class-attributes
180 | | |-- 032-concrete-sub
181 | | |-- 033-class-init-deadlock
182 | | |-- 034-call-null
183 | | |-- 035-enum
184 | | |-- 036-finalizer
185 | | |-- 037-inherit
186 | | |-- 038-inner-null
187 | | |-- 039-join-main
188 | | |-- 040-miranda
189 | | |-- 041-narrowing
190 | | |-- 042-new-instance
191 | | |-- 043-privates
192 | | |-- 044-proxy
193 | | |-- 045-reflect-array
194 | | |-- 046-reflect
195 | | |-- 047-returns
196 | | |-- 048-server-socket
197 | | |-- 049-show-object
198 | | |-- 050-sync-test
199 | | |-- 051-thread
200 | | |-- 052-verifier-fun

201 | | |-- 053-wait-some
202 | | |-- 054-uncaught
203 | | |-- 055-enum-performance
204 | | |-- 056-const-string-jumbo
205 | | |-- 057-iteration-performance
206 | | |-- 058-enum-order
207 | | |-- 059-finalizer-throw
208 | | |-- 060-reflection-security
209 | | |-- 061-out-of-memory
210 | | |-- 062-character-encodings
211 | | |-- 063-process-manager
212 | | |-- 064-field-access
213 | | |-- 065-mismatched-implements
214 | | |-- 066-mismatched-super
215 | | |-- 067-preemptive-unpark
216 | | |-- 068-classloader
217 | | |-- 069-field-type
218 | | |-- 070-nio-buffer
219 | | |-- 071-dexfile
220 | | |-- 072-precise-gc
221 | | |-- 073-mismatched-field
222 | | |-- 074-gc-thrash
223 | | |-- 075-verification-error
224 | | |-- 076-boolean-put
225 | | |-- 077-method-override
226 | | |-- 078-polymorphic-virtual
227 | | `-- etc
228 | |-- tools
229 | | |-- dexdeps
230 | | |-- dmtracedump
231 | | `-- hprof-conv
232 | `-- vm
233 | |-- alloc
234 | |-- analysis
235 | |-- arch
236 | |-- compiler

237 | |-- hprof
238 | |-- interp
239 | |-- jdwp
240 | |-- mterp
241 | |-- native
242 | |-- oo
243 | |-- reflect
244 | `-- test
245 |-- development (应用程序开发相关)
246 | |-- apps (Android 应用程序的模板)
247 | |-- build (编译脚本模板)
248 | |-- cmds
249 | |-- data
250 | |-- docs
251 | |-- host (包含windows 平台的一些工具)
252 | |-- ide
253 | |-- ndk
254 | |-- pdk
255 | |-- samples (samples 中包含了很多Android 简单工程,这
些工程为开发者学习开发Android 程序提供了很
大便利,可以作为模板使用)
256 | |-- scripts
257 | |-- sdk
258 | |-- sdk_overlay
259 | |-- simulator (大多是目标机器的一些工具)
260 | |-- testrunner
261 | `-- tools
262 |-- external (android 使用的一些开源的模组)
注:在external 中,每个目录表示Android 目标系统中的一
个模块,可能有一个或者若干个库构成
265 | |-- aes
266 | |-- alsa-lib
267 | |-- alsa-utils
268 | |-- apache-http
269 | |-- astl
270 | |-- bison
271 | |-- blktrace

272 | |-- Bluetooth
273 | |-- bsdiff
274 | |-- bzip2
275 | |-- clearsilver
276 | |-- dbus
277 | |-- dhcpcd
278 | |-- dosfstools
279 | |-- dropbear
280 | |-- e2fsprogs
281 | |-- elfcopy
282 | |-- elfutils
283 | |-- embunit
284 | |-- emma
285 | |-- esd
286 | |-- expat
287 | |-- fdlibm
288 | |-- freetype
289 | |-- fsck_msdos
290 | |-- gdata
291 | |-- genext2fs
292 | |-- giflib
293 | |-- googleclient
294 | |-- grub
295 | |-- gtest
296 | |-- icu4c
297 | |-- ipsec-tools
298 | |-- iptables
299 | |-- jdiff
300 | |-- jhead
301 | |-- jpeg
302 | |-- junit
303 | |-- libaudio
304 | |-- libffi
305 | |-- libpcap
306 | |-- libpng
307 | |-- libxml2

308 | |-- mtpd
309 | |-- netcat
310 | |-- netperf
311 | |-- neven
312 | |-- opencore (为PV(PacketVideo),它是Android 多媒体
框架的核心。)
313 | |-- openssl (是Secure Socket Layer,一个网络协议层,
用于为数据通讯提供安全支持。)
315 | |-- oprofile
316 | |-- ping
317 | |-- ppp
318 | |-- proguard
319 | |-- protobuf
320 | |-- qemu
321 | |-- safe-iop
322 | |-- skia
323 | |-- sonivox
324 | |-- speex
325 | |-- sqlite (sqlite 是Android 数据库系统的核心)
326 | |-- srec
327 | |-- strace
328 | |-- svox
329 | |-- tagsoup
330 | |-- tcpdump
331 | |-- tesseract
332 | |-- tremor
333 | |-- webkitwebkit (是Android 网络浏览器的核心。)
334 | |-- wpa_supplicant
335 | |-- xmlwriter
336 | |-- yaffs2
337 | `-- zlib
338 |-- frameworks (核心框架———java 及c++语言,是
Android 应用程序的框架。)
339 | |-- base
340 | |-- opt
341 | `-- policies
342 |-- hardware (主要是硬件适配层HAL 代码)

343 | |-- broadcom
344 | | `-- wlan (无线网卡)
345 | |-- libhardware (硬件库)
346 | | |-- include
347 | | `-- modules (Default (and possibly Architecture
dependents) HAL modules)
348 | |-- libhardware_legacy (旧的硬件库)
349 | | |-- flashlight (backlight 背光)
350 | | |-- gps (GPS)
351 | | |-- include (头文件)
352 | | |-- mount (旧的挂载器)
353 | | |-- power (电源)
354 | | |-- qemu (模拟器)
355 | | |-- qemu_tracing (模拟器跟踪)
356 | | |-- tests (测试)
357 | | |-- uevent (uevent)
358 | | |-- vibrator (震动)
359 | | `-- wifi (无线)
360 | |-- msm7k (高通7k 处理器开源抽象层)
361 | | |-- boot (启动)
362 | | |-- libaudio (声音库)
363 | | |-- libaudio-qsd8k (qsd8k 的声音相关库)
364 | | |-- libcamera (摄像头库)
365 | | |-- libcopybit (copybit 库)
366 | | |-- libgralloc (gralloc 库)
367 | | |-- libgralloc-qsd8k (qsd8k 的gralloc 库)
368 | | |-- liblights (背光库)
369 | | `-- librpc (RPC 库)
370 | |-- ril (无线电抽象层)
371 | | |-- include (头文件)
372 | | |-- libril (库)
373 | | |-- reference-cdma-sms (cdma 短信参考)
374 | | |-- reference-ril (ril 参考)
375 | | `-- rild (ril 后台服务程序)
376 | `-- ti (ti 公司开源HAL)
377 | `-- omap3 (omap3处理器)
378 |-- out (编译完成后的代码输出在此目录)

379 | |-- host
380 | | |-- common
381 | | `-- linux-x86
382 | |-- target
383 | | |-- common
384 | | `-- product
385 | `-- tmp
386 | `-- org
387 |-- packages (应用程序包)
388 | |-- apps (apps 中是Android 中的各种应用程序。)
389 | |-- inputmethods
390 | |-- providers (providers 是一些内容提供者(在
Android 中的一个数据源))
391 | `-- wallpapers
392 |-- prebuilt (x86 和ARM 架构下预编译的一些资源)
393 | |-- android-arm (arm-android 相关)
394 | | |-- gdbserver (gdb 调试器)
395 | | `-- kernel (模拟的arm 内核)
396 | |-- android-x86 (x86-android 相关)
397 | |-- common (通用编译好的代码,应该是java 的)
398 | |-- darwin-x86 (drawin x86平台)
399 | |-- darwin-x86_64
400 | |-- linux-x86
401 | |-- linux-x86_64
402 | |-- windows
403 | `-- windows-x86_64
404 |-- sdk (sdk 及模拟器)
405 | |-- androidprefs
406 | |-- anttasks
407 | |-- apkbuilder
408 | |-- archquery
409 | |-- ddms
410 | |-- draw9patch
411 | |-- dumpeventlog
412 | |-- eclipse
413 | |-- emulator
414 | |-- eventanalyzer

415 | |-- files
416 | |-- hierarchyviewer
417 | |-- jarutils
418 | |-- layoutlib_api
419 | |-- layoutlib_utils
420 | |-- layoutopt
421 | |-- ninepatch
422 | |-- screenshot
423 | |-- sdklauncher
424 | |-- sdkmanager
425 | |-- sdkstats
426 | |-- templates
427 | `-- traceview
428 |-- system (文件系统,应用及组件——c 语言)
429 | |-- bluetooth (蓝牙相关)
430 | | |-- bluedroid
431 | | |-- bluez-clean-headers
432 | | |-- brcm_patchram_plus
433 | | |-- brfpatch
434 | | |-- data
435 | | `-- tools
436 | |-- core (系统核心工具盒接口)
437 | | |-- adb (adb 调试工具)
438 | | |-- cpio (cpio 工具,创建img)
439 | | |-- debuggerd (调试工具)
440 | | |-- fastboot (快速启动相关)
441 | | |-- include (系统接口头文件)
442 | | |-- init (init 程序源代码)
443 | | |-- libacc (轻量级C 编译器)
444 | | |-- libctest (libc 测试相关)
445 | | |-- libcutils (libc 工具)
446 | | |-- liblog (log 库)
447 | | |-- libmincrypt (加密库)
448 | | |-- libnetutils (网络工具库)
449 | | |-- libpixelflinger (图形处理库)
450 | | |-- libsysutils (系统工具库)

451 | | |-- libzipfile (zip 库)
452 | | |-- logcat (查看log 工具)
453 | | |-- logwrapper (log 封装工具)
454 | | |-- mkbootimg (制作启动boot.img 的工具盒脚本)
455 | | |-- netcfg (网络配置netcfg 源码)
456 | | |-- nexus (google 最新手机的代码)
457 | | |-- rootdir (rootfs,包含一些etc 下的脚本和配置)
458 | | |-- sh (shell 代码)
459 | | |-- toolbox (toolbox,类似busybox 的工具集)
460 | | `-- vold (SD 卡管理器)
461 | |-- extras (额外工具)
462 | | |-- latencytop (a tool for software developers,
identifying system latency happen)
463 | | |-- libpagemap (pagemap 库)
464 | | |-- librank (Java Library Ranking System 库)
465 | | |-- procmem (pagemap 相关)
466 | | |-- procrank (Java Library Ranking System 相关)
467 | | |-- showmap (showmap 工具)
468 | | |-- showslab (showslab 工具)
469 | | |-- sound (声音相关)
470 | | |-- su (su 命令源码)
471 | | |-- tests (一些测试工具)
472 | | `-- timeinfo (时区相关)
473 | `-- wlan (无线相关)
474 | `-- ti (ti 网卡相关工具及库)
475 `-- vendor (厂商定制代码)
476 |-- sample
477 | |-- apps
478 | |-- frameworks
479 | |-- products
480 | |-- sdk_addon
481 | `-- skins
482 `-- sec
483 |-- products
484 |-- sec_proprietary
485 |-- smdk6440
486 |-- smdkc100

487 |-- smdkc110
488 `-- smdkv210



原创粉丝点击