{
  "schemaVersion": "0.11.0",
  "canonical": "https://www.pystone.net/notes/android-source-code-structure/",
  "atlas": "https://www.pystone.net/?node=android-source-code-structure#knowledge-atlas",
  "markdown": "https://www.pystone.net/notes/android-source-code-structure.md",
  "context": "https://www.pystone.net/notes/android-source-code-structure.context.json",
  "knowledgeVersion": "224c990773de.5fa8af6e39fa",
  "build": {
    "siteCommit": "224c990773de166d23a886306577dd90379529ce",
    "notesCommit": "5fa8af6e39fa3891d1b9b4832bfa6c4e0ecaaf0a",
    "builtAt": "1970-01-01T00:00:00.000Z",
    "version": "224c990773de.5fa8af6e39fa"
  },
  "id": "note:android-source-code-structure",
  "slug": "android-source-code-structure",
  "title": "Android源码结构",
  "type": "note",
  "visibility": "public",
  "idStability": "rename-stable",
  "author": {
    "name": "Perrin Yong",
    "profile": "https://www.pystone.net/profile/"
  },
  "publisher": {
    "name": "Perrin Yong",
    "profile": "https://www.pystone.net/profile/"
  },
  "aliases": [],
  "summary": "Android源码结构 下载 Android 源代码",
  "contentRole": "unspecified",
  "isMoc": false,
  "mocRecognition": "none",
  "generated": false,
  "attribution": "unspecified",
  "domain": "10-计算机、信息技术与工程",
  "tags": [],
  "mocs": [],
  "contentHash": "551d2670f52953e471136b449126def1b4bb710e39970cc5c48286ddf373c707",
  "assets": [],
  "headings": [
    {
      "depth": 1,
      "text": "Android源码结构",
      "anchor": "android源码结构",
      "citation": "https://www.pystone.net/notes/android-source-code-structure/#android%E6%BA%90%E7%A0%81%E7%BB%93%E6%9E%84"
    },
    {
      "depth": 2,
      "text": "下载 Android 源代码",
      "anchor": "下载-android-源代码",
      "citation": "https://www.pystone.net/notes/android-source-code-structure/#%E4%B8%8B%E8%BD%BD-android-%E6%BA%90%E4%BB%A3%E7%A0%81"
    },
    {
      "depth": 3,
      "text": "AOSP（Android Open Source Project）源码",
      "anchor": "aospandroid-open-source-project源码",
      "citation": "https://www.pystone.net/notes/android-source-code-structure/#aospandroid-open-source-project%E6%BA%90%E7%A0%81"
    },
    {
      "depth": 2,
      "text": "在线浏览源码",
      "anchor": "在线浏览源码",
      "citation": "https://www.pystone.net/notes/android-source-code-structure/#%E5%9C%A8%E7%BA%BF%E6%B5%8F%E8%A7%88%E6%BA%90%E7%A0%81"
    },
    {
      "depth": 3,
      "text": "方法 1：Android GooglSource",
      "anchor": "方法-1android-googlsource",
      "citation": "https://www.pystone.net/notes/android-source-code-structure/#%E6%96%B9%E6%B3%95-1android-googlsource"
    },
    {
      "depth": 3,
      "text": "方法 2：AndroidXRef",
      "anchor": "方法-2androidxref",
      "citation": "https://www.pystone.net/notes/android-source-code-structure/#%E6%96%B9%E6%B3%95-2androidxref"
    },
    {
      "depth": 2,
      "text": "Android系统源码目录结构",
      "anchor": "android系统源码目录结构",
      "citation": "https://www.pystone.net/notes/android-source-code-structure/#android%E7%B3%BB%E7%BB%9F%E6%BA%90%E7%A0%81%E7%9B%AE%E5%BD%95%E7%BB%93%E6%9E%84"
    },
    {
      "depth": 2,
      "text": "Thanks",
      "anchor": "thanks",
      "citation": "https://www.pystone.net/notes/android-source-code-structure/#thanks"
    }
  ],
  "claims": [],
  "outgoing": [],
  "incoming": [
    {
      "id": "note:application-and-cloud-engineering",
      "title": "应用开发与云端工程",
      "url": "https://www.pystone.net/notes/application-and-cloud-engineering/",
      "atlas": "https://www.pystone.net/?node=application-and-cloud-engineering#knowledge-atlas",
      "label": "应用开发与云端工程",
      "origin": "explicit",
      "humanReviewed": true,
      "context": "Android开发中的“Android源码结构”导航项",
      "citation": "https://www.pystone.net/notes/application-and-cloud-engineering/#android%E5%BC%80%E5%8F%91"
    }
  ],
  "contentMarkdown": "# Android源码结构\n## 下载 Android 源代码\n\n### **AOSP（Android Open Source Project）源码**\n\n- **地址**：\n    [https://source.android.com](https://source.android.com)\n\n\n克隆特定模块：\n```bash\ngit clone https://android.googlesource.com/platform/frameworks/base\ngit clone https://android.googlesource.com/platform/art\n\n```\n\n## **在线浏览源码**\n\n### **方法 1：Android GooglSource**\n\n- **地址**： https://android.googlesource.com/\n- **特点**：\n    - 官方平台，实时更新。\n    - 支持搜索和跳转。\n### **方法 2：AndroidXRef**\n\n- **地址**：[https://androidxref.com/](https://androidxref.com/)\n- **特点**：\n    - 提供各版本 Android 源码的交叉引用。\n    - 支持代码索引和搜索，快速找到相关实现。\n\n## Android系统源码目录结构\n\n详见： https://juejin.cn/post/7119764025210044423\n\n```lua\n​\n|-- Makefile\n|\n|-- bionic               （bionic C库）\n|\n|-- bootable             （启动引导相关代码）\n|\n|-- build                （存放系统编译规则及generic等基础开发包配置）\n|\n|-- cts                  （Android兼容性测试套件标准）\n|\n|-- dalvik               （dalvik JAVA虚拟机）\n|\n|-- development          （应用程序开发相关）\n|\n|-- external             （android使用的一些开源的模组）\n|\n|-- frameworks           （核心框架——java及C++语言）\n|\n|-- hardware             （部分厂家开源的硬解适配层HAL代码）\n|\n|-- out                  （编译完成后的代码输出与此目录）\n|\n|-- packages             （应用程序包）\n|\n|-- prebuilt             （x86和arm架构下预编译的一些资源）\n|\n|-- sdk                  （sdk及模拟器）\n|\n|-- system               （底层文件系统库、应用及组件——C语言）\n|\n|-- vendor               （厂商定制代码）\n​\n```\n\n\n## Thanks\nChatGPT\nhttps://juejin.cn/post/7195009996949176357\nhttps://juejin.cn/post/7119764025210044423\n"
}
