android 源碼目錄分析(轉)

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



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



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看似乎是一個下載程序,因此認爲這些文件夾下沒有實質東西。



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適用的圖片)



SDK和OUT目錄沒有列出
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章