Android 2.1 源碼結構分析

來源:互聯網
上載者:User

Android 2.1

  |-- 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 目錄按照二級展開 tree -d -L 2

  |-- 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兩種架構)

  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 (無線網卡)

  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網卡相關工具及庫)

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.