12.Android Source directory structure detailed (GO)

Source: Internet
Author: User
Tags xml parser gdb debugger skia

Reprint: http://blog.csdn.net/google_huchun/article/details/59576654

Android 2.1
|–makefile
|–bionic (Bionic C library)
|–bootable (boot boot related code)
|–build (Storage System compilation rules and basic development package configuration such as generic)
|–cts (Android Compatibility test suite standard)
|–dalvik (Dalvik Java Virtual machine)
|–development (Application development related)
|–external (some open-source modules used by Android)
|–frameworks (Core framework--java and C + + language)
|–hardware (Some manufacturers open source hard Zhei with the HAL Code)
|–out (the code output with this directory after compilation is complete)
|–packages (Application package)
|–prebuilt (pre-compiled resources in x86 and ARM architectures)
|–SDK (SDK and simulator)
|–system (underlying file system library, applications and Components--c language)
' –vendor (vendor custom code)

Bionic directory
|–LIBC (C library)
| |–arch-arm (ARM architecture, including system call Assembly implementation)
| |–arch-x86 (x86 architecture, including system call Assembly implementation)
| |–bionic (functionality implemented by C, architecture Independent)
| |–docs (Documentation)
| |–include (head file)
| |–inet (? inet related, specific role unknown)
| |–kernel (some header files in the Linux kernel)
| |–netbsd (? NESBSD system-related, specific role unknown)
| |–private (? Some private header files)
| |–stdio (Stdio implementation)
| |–stdlib (Stdlib implementation)
| |–string (String function Implementation)
| |–tools (several tools)
| |–tzcode (time zone related code)
| |–UNISTD (UNISTD implementation)
|-- 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 (source code)
|–libstdc++ (libstdc++ C + + implementation Library)
| |–include (head file)
|-- src (源码) 
|-- libthread_db (多线程程序的调试器库) 
|
–include (header file)
-- linker (动态链接器) 
–arch (supports arm and x86 two architectures)

Bootable Directory
.
|–bootloader (common code for various bootloader)
| -- legacy (估计不能直接使用,可以参考) 
| |-- arch_armv6 (V6架构,几个简单的汇编文件) 
| |-- arch_msm7k (高通7k处理器架构的几个基本驱动) 
| |-- include (通用头文件和高通7k架构头文件) 
| |-- libboot (启动库,都写得很简单) 
| |-- libc (一些常用的c函数) 
| |-- nandwrite (nandwirte函数实现) 
|
–usbloader (Usbloader implementation)
|–diskinstaller (Android Image Packager, x86 can produce ISO)
-- recovery (系统恢复相关) 
|-- edify (升级脚本使用的edify脚本语言) 
|-- etc (init.rc恢复脚本) 
|-- minui (一个简单的UI) 
|-- minzip (一个简单的压缩工具) 
|-- mtdutils (mtd工具) 
|-- res (资源) 
|
–images (Some pictures)
|–tools (tool)
| -- ota (OTA Over The Air Updates升级工具) 
–updater (upgrade)

Build Directory
.
|–core (core compilation rule)
|–history (History)
|–libs
|-- host (主机端库,有android “cp”功能替换) 
|-- target (目标机编译对象) 
| |-- board (开发平台) 
| | |-- emulator (模拟器) 
| | |-- generic (通用) 
| | |-- idea6410 (自己添加的) 
| |
–sim (simplest)
|-- product (开发平台对应的编译规则) 
|
–security (Key related)
-- 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 Directory Dalvik virtual machines
.
|–DALVIKVM (Directory of MAIN.C)
|–dexdump (Dex disassembly)
|–dexlist (List all methods with all concrete classes in a DEX file.)
|–dexopt (pre-validation and optimization)
|–docs (document)
|–dvz (a command related to zygote)
|–DX (DX tool, convert multiple Java to DEX)
|–hit (? Written in the Java language)
|–libcore (Core library)
|–libcore-disabled (? Disabled libraries)
|–libdex (Dex's library)
|–libnativehelper (support functions for Android ' s class libraries)
|–tests (test code)
|–tools (tool)
' –VM (virtual machine implementation)

Development directory (some routines and tools required by the developer)
|–apps (some core applications)
| |–bluetoothdebug (Bluetooth DEBUG program)
| |–customlocale (custom locale)
| |–development (Development)
| |–fallback (a language-related program)
| |–fontlab (Font)
| |–gesturebuilder (Gesture action)
| |–ninepatchlab (? )
| |–objviewer (obj viewer)
| |–sdksetup (SDK installer)
| |–spareparts (Advanced settings)
| |–term (Telnet)
|--Launchperf (? )
|--build (Compile script template)
|--Cmds (with a monkey tool)
|--Data (configuration)
|--Docs (documentation)
|--Host (USB driver, etc.)
|--IDE (integrated development environment)
|--NDK (Local Development Kit--C Language Development Kit)
|--PDK (Plug development Kit)
|--Samples (routine)
| |--aliasactivity (? )
| |--Apidemos (API demo program)
| |--bluetoothchat (bluetooth chat)
| |--browserplugin (Browser plugin)
| |--businesscard (commercial card)
| |--Compass (COMPASS)
| |--contactmanager (contact Manager)
| |--Cubelivewallpaper (a simple routine for live wallpaper)
| |--fixedgridlayout (like layout)
| |--globaltime (global Time)
| |--helloactivity (Hello)
| |--Home (HOME)
| |--jetboy (jetboy game)
| |--Lunarlander (seemingly another game)
| |--mailsync (mail sync)
| |--multiresolution (Multi-resolution)
| |--mysamplerss (RSS)
| |--NotePad (NOTEPAD)
| |--rssreader (RSS reader)
| |--searchabledictionary (Directory search)
| |--simplejni (JNI routines)
| |--skeletonapp (empty shell app)
| |--Snake (Snake program)
| |--softkeyboard (soft keyboard)
| |--Wiktionary (? Wikipedia
|
–wiktionarysimple (? Wiki routines)
|–scripts (script)
|–SDK (SDK Configuration)
|–simulator (? Simulator)
|–testrunner (? For testing)
' –tools (some tools)

External directory
.
|–aes (AES Encryption)
|–apache-http (Web server)
|–astl (Astl (Android STL) is a slimmed-down version of the regular C + + STL.)
|–bison (automatically generate parser to convert unrelated grammars to C, C + +)
|–blktrace (Blktrace is a block layer IO tracing mechanism)
|–bluetooth (Bluetooth-related, protocol stack)
|–bsdiff (diff tool)
|–BZIP2 (compression tool)
|–clearsilver (HTML template system)
|–dbus (Low latency, low overhead, high availability IPC mechanism)
|–DHCPCD (DHCP service)
|–dosfstools (DOS file System tool)
|–dropbear (SSH2 server)
|–e2fsprogs (EXT2 file System tool)
|–elfcopy (tool for copying Elf)
|–elfutils (elf Tools)
|–embunit (Embedded Unit Project)
|–emma (Java Code Coverage Statistics tool)
|–ESD (enlightened sound Daemon, mixing multiple audio streams on one device)
|–expat (Expat is a stream-oriented XML parser.)
|–FDLIBM (FDLIBM (freely distributable LIBM))
|–freetype (font)
|–fsck_msdos (DOS file system Check tool)
|–gdata (Google's wireless data related)
|–GENEXT2FS (GENEXT2FS generates an ext2 filesystem as a normal (non-root) user)
|–giflib (GIF library)
|–googleclient (Google user library)
|–grub (This is GNU grub, the GRand Unified Bootloader.)
|–gtest (Google C + + testing Framework)
|–ICU4C (ICU (International Component for Unicode) in the C + + version)
|–ipsec-tools (This package provides a-to use the native IPSec functionality)
|–iptables (firewall)
|–jdiff (Generate a report describing the difference between both public Java APIs.)
|–jhead (JPEG header information tool)
|–jpeg (JPEG library)
|–junit (JUnit is a unit test framework for the Java language)
|–kernel-headers (some header files for the kernel)
|–libffi (Libffi is a foreign function interface library.)
|–LIBPCAP (network packet capture function)
|–libpng (PNG library)
|–LIBXML2 (XML parsing library)
|–MTPD (one command)
|–netcat (simple Unix utility which reads and writes Dataacross network connections)
|–netperf (Network performance measurement tool)
|–neven (see Code and JNI related)
|–opencore (Multimedia framework)
|–OPENSSL (SSL encryption related)
|–openvpn (VPN open Source Library)
|–oprofile (Oprofile) is a performance analysis mechanism supported by the Linux kernel. )
|–ping (ping command)
|–PPP (pppd dialing command, as if there was no chat)
|–proguard (Java class file Shrinker, Optimizer, Obfuscator, and Preverifier)
|–protobuf (a flexible, efficient, automated mechanism for serializing structured data)
|–qemu (ARM Simulator)
|–SAFE-IOP (Functions for performing safe integer operations)
|–skia (Skia graphics engine)
|–sonivox (sole MIDI solution for Google Android Mobile Phone Platform)
|–speex (use of Speex codec/Decode API (Libspeex))
|–sqlite (Database)
|–srec (Open source continuous non-specific person speech recognition provided by Nuance Company)
|–strace (Trace tool)
|–svox (Embedded Text-to-Speech)
|–tagsoup (Tagsoup is a Java-developed SAX-compliant HTML parser)
|–tcpdump (software to catch TCP packets)
|–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 (Browser Core)
|–wpa_supplicant (wireless card management)
|–xmlwriter (XML editing tools)
|–YAFFS2 (yaffs file system)
' –zlib (a general purpose data compression library)

Frameworks directory (core framework--java and C + + language)
.
|–base (Basic content)
| |–api (? is an XML file that defines the Java API? )
| |–awt (AWT library)
| |–build (Empty)
| |–camera (Camera service library)
| |–cmds (Important command: AM, APP_PROCE, etc.)
| |–core (Core library)
| |–data (data files such as fonts and sounds)
| |–docs (Documentation)
| |–graphics (Graphic related)
| |–include (head file)
| |–keystore (related to data signing certificate)
| |–libs (Library)
| |–location (Regional Library)
| |–media (media related library)
| |–obex (Bluetooth transfer Library)
| |–opengl (2d-3d acceleration Library)
| |–packages (Setup, TTS, VPN program)
| |–sax (XML parser)
| |–services (various service programs)
| |–telephony (telephone communication Management)
| |–test-runner (test tool related)
| |–tests (Various tests)
| |–tools (some name-less tool)
| |–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 device)
' –phone (mobile device, general use this)

Hardware catalog (Some manufacturers open source hard Zhei layer HAL code)
|–broadcom (Bo Tong Company)
|-- wlan (无线网卡) 
|-- libhardware (硬件库) 
| |-- include (头文件) 
|
–modules (Default (and possibly Architecture dependents) HAL modules)
| |–gralloc (Gralloc display related)
|-- overlay (Skeleton for the "overlay" HAL module.) 
|-- libhardware_legacy (旧的硬件库) 
| |-- flashlight (背光) 
| |-- gps (GPS) 
| |-- include (头文件) 
| |-- mount (旧的挂载器) 
| |-- power (电源) 
| |-- qemu (模拟器) 
| |-- qemu_tracing (模拟器跟踪) 
| |-- tests (测试) 
| |-- uevent (uevent) 
| |-- vibrator (震动) 
|
–wifi (Wireless)
|–msm7k (high-pass 7k processor Open source abstraction layer)
| |–boot (START)
| |–libaudio (sound library)
| |–libaudio-qsd8k (qsd8k's sound-related library)
| |–libcamera (Camera library)
| |–libcopybit (Copybit library)
| |–libgralloc (Gralloc library)
| |–libgralloc-qsd8k (qsd8k's Gralloc library)
| |–liblights (Backlight library)
|-- librpc (RPC库) 
|-- ril (无线电抽象层) 
| |-- include (头文件) 
| |-- libril (库) 
| |-- reference-cdma-sms (cdma短信参考) 
| |-- reference-ril (ril参考) 
|
–rild (RIL background service program)
-- ti (ti公司开源HAL) 
|-- omap3 (omap3处理器) 
| |-- dspbridge (DSP桥) 
| |-- libopencorehw (opencore硬件库) 
| |-- liboverlay (overlay硬件库) 
| |-- libstagefrighthw (stagefright硬件库) 
|
–OMX (OMX components)
' –wlan (Wireless card)

Packages Directory
.
|–apps (Application Library)
| |–alarmclock (Alarm clock)
| |–bluetooth (Bluetooth)
| |–browser (Browser)
| |–calculator (Calculator)
| |–calendar (Calendar)
| |–camera (camera)
| |–certinstaller (digital signature installed in Android, called)
| |–contacts (Dial-up (call), contact, call history)
| |–deskclock (Desktop clock)
| |–email (Email)
| |–gallery (Photo album, similar to Camera, more lists)
| |–gallery3d (? 3D albums)
| |–globalsearch (for Google Search service, provide the underlying application)
| |–googlesearch (Google search)
| |–htmlviewer (browser-attached interface, called by the browser application, while providing storage recording function)
| |–im (Instant messaging, to provide signal transmission, reception, communication services for mobile phones)
| |–launcher (login launcher, display picture frame and so on graphical interface)
| |–launcher2 (login startup, responsible for application invocation)
| |–mms (? MMS Service)
| |–music (music player)
| |–packageinstaller (response of installation and uninstallation program)
| |–phone (Phone Dialer)
| |–provision (the state of the preset application, enable to apply)
| |–settings (Power on, Bluetooth, device info, interface, WIFI, etc.)
| |–soundrecorder (recorder, calculate the space and time required to store)
| |–STK (Receive and send SMS)
| |–sync (empty) ——-
| |–updater (Empty)
|-- VoiceDialer (语音识别通话) 
|-- inputmethods (输入法) 
| |-- LatinIME (拉丁文输入法) 
| |-- OpenWnn (OpenWnn输入法) 
|
–pinyinime (Pinyin Input method)
|–providers (provider, providing the data required by the application and interface)
| |–applicationsprovider (Application provider, providing application startup items, updates, etc.)
| |–calendarprovider (Calendar provider)
| |–contactsprovider (Contact provider)
| |–downloadprovider (download management provider)
| |–drmprovider (called when creating and updating a database)
| |–googlecontactsprovider (subclass of contact provider to synchronize contacts)
| |–googlesubscribedfeedsprovider (set information provider)
| |–improvider (Empty)
| |–managementprovider (Empty)
| |–mediaprovider (media provider, providing storage data)
| |–telephonyprovider (MMS provider)
| |–userdictionaryprovider (user dictionary provider, providing user characters commonly used dictionary)
|-- WebSearchProvider (空) 
|-- services 
| |-- EasService (空) 
|
–lockandwipe (empty)
-- wallpapers (墙纸) 
|-- Basic (基本墙纸,系统内置墙纸) 
|-- LivePicker (选择动态壁纸) 
|-- MagicSmoke (壁纸特殊效果) 
–musicvisualization (music visualization, graphics change with music)

There is a hidden inside. Git folder, the content is the same, there is no meaningful code, Config looks like a download program, so that there is no substance in these folders.

prebuilt directory (Some of the resources precompiled under x86 and ARM architectures)
.
|–android-arm (arm-android related)
| |–gdbserver (GDB debugger)
| -- kernel (模拟的arm内核) 
|-- android-x86 (x86-android相关) 
|
–kernel (empty)
|–common (generic compiled code, should be Java)
|–darwin-x86 (Drawin x86 platform)
| -- toolchain (工具链) 
| |-- arm-eabi-4.2.1 
| |-- arm-eabi-4.3.1 
|
–arm-eabi-4.4.0
|–darwin-x86_64 (Drawin x86 64bit platform)
|–linux-x86 (Linux x86 platform)
| -- toolchain (工具链,我们应该主要用这个) 
| |-- arm-eabi-4.2.1 
| |-- arm-eabi-4.3.1 
| |-- arm-eabi-4.4.0 
|
–i686-unknown-linux-gnu-4.2.1 (version x86 compiler)
|–linux-x86_64 (Linux x86 64bit platform)
|–windows (Windows platform)
' –windows-x86_64 (64bit Windows platform)
System directory (underlying file system library, applications and Components--c language)

|–bluetooth (Bluetooth related)
|–core (System core Tool Box interface)
| |–adb (ADB debugging tool)
| |–cpio (Cpio tool, creating IMG)
| |–debuggerd (Debug tool)
| |–fastboot (Quick start related)
| |–include (System to answer oral documents)
| |–init (init program source code)
| |–LIBACC (lightweight C compiler)
| |–libctest (LIBC test related)
| |–libcutils (libc tools)
| |–liblog (Log library)
| |–libmincrypt (Crypto library)
| |–libnetutils (Network Tools Library)
| |–libpixelflinger (Graphics processing Library)
| |–libsysutils (System Tools Library)
| |–libzipfile (Zip library)
| |–logcat (view log tool)
| |–logwrapper (log package tool)
| |–mkbootimg (tool box script to make startup boot.img)
| |–netcfg (Network configuration netcfg Source code)
| |–nexus (code for Google's newest phone)
| |–rootdir (Rootfs, including some scripts and configurations under etc)
| |–sh (Shell code)
| |–toolbox (Toolbox, tool set similar to 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 (time zone related)
-- wlan (无线相关) 
–ti (TI network card related tools and libraries)

Vendor catalogue (manufacturer custom content)

|–aosp (Android Open source project)
| -- products (一些板级规则) 
|-- htc (HTC公司) 
| |-- common-open (通用部分) 
| |
–AKMD (Tool for unpacking img)
| |–dream-open (G1 open section)
| |–prebuilt-open (pre-compiled open section)
| -- sapphire-open (sapphire这款型号开放内容) 
|-- pv-open (没东西) 
|-- qcom (里面基本是空的) 
–sample (sample provided by Google)
|–apps (Application)
| |–client (User)
| -- upgrade (升级) 
|-- frameworks (框架) 
|
–platformlibrary (Platform library)
|–products (product)
|–sdk_addon (SDK additions section)
-- skins (皮肤) 
–WVGAMEDDPI (WVGA applicable picture)

12.Android Source directory structure detailed (GO)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.