android-internals-wiki README

The project's README from github.com/Gracker/android-internals-wiki. As one markdown file: README.md.

Android 技术内幕:系统机制、性能优化与工具实战

English navigation summary

Android Internals: System Architecture, Performance & Tooling in Practice

面向有经验的 Android 开发者和系统工程师。覆盖 App、Framework、Native 与 Kernel,当前基准是 Android 17 / API 37,源码核对标签是 AOSP android-17.0.0_r1。

完整目录见 src/SUMMARY.md。网页版在 wiki.androidperformance.com,和博客 androidperformance.com 分开。站点用 Catppuccin 主题,右上角可换 Latte(浅色)、Frappé、Macchiato、Mocha(深色)。每天编一次。每周会把正文编成 EPUB,放在 GitHub Releases。

Android 性能分析生态

Android Performance Ecosystem 通过导航 Hub 与七个核心项目,把可选插桩、采集、分析、系统知识与可复现案例连接成一套完整路径。

阶段 项目 作用 地址
导航 Android Performance Ecosystem 维护统一项目地图、交接元数据、README 导航区块与漂移检查。 GitHub
插桩 TraceFix 在编译期注入 App 侧 android.os.Trace section,让方法执行在运行时 Trace 中可见。 GitHub
采集与测量 Perfetto Tools 抓取可复现的 Perfetto Trace,并采集 FPS 或 Simpleperf 测量结果。 GitHub
分析 SmartPerfetto 通过 AI 辅助 Web UI、CLI、报告、会话、对比和证据工作流分析 Trace。 GitHub
Agent 分析 Perfetto Skills 为 Agent 提供可移植的 Android、Linux、Chromium Perfetto 分析 Skill,并通过固定版本流程同步选定资产。 GitHub
学习 Android Performance Blog 通过文章、系统原理和案例复盘讲解 Perfetto 与 Systrace 分析。 AndroidPerformance.com · GitHub
系统知识 Android Internal Wiki 处于 alpha 阶段的 Android 系统知识库,覆盖 App、Framework、Native 与 Kernel 机制。 GitHub
复现 Trace for Blog (SystraceForBlog) 提供文章使用的 Perfetto、Systrace 及相关案例文件,支持动手复现。 GitHub

怎么读

当前版本为中文。v1.0 之后会提供完整英文版。

内容结构

第一部分:Android 系统运行机制

系统怎么把应用跑起来,画面、输入、内存、调度和存储分别在哪一层等待。

第二部分:性能问题与优化

用户能感觉到的卡、慢、无响应、耗电和网络差,分别对应哪类系统行为。

第三部分:性能工具与方法论

怎么采集证据、读懂工具,以及怎样把一次调查写到能复查。

第四部分:系统与厂商优化

平台和量产设备上还能改什么,以及不能把 AOSP 基线当成某台机器的行为。

第五部分:应用性能实践

应用团队能改的启动、渲染、内存、I/O、功耗和线上观测。

附录:

支持这个项目

提 Issue、提 PR,或给仓库点 Star,都直接有用。

也可以打赏,用来给家里的猫豆豆买猫粮。码在 支持这个项目,支付宝和微信都可以。

支付宝赞赏码
支付宝
微信支付码
微信

贡献

欢迎开 Issue 或 Pull Request。错别字、失效链接、事实勘误可以直接 PR;新章节或大段重写请先开 Issue。

每天 11:40 和 19:40(Asia/Shanghai)会有定时任务读未分流的 Issue/PR:致谢、打标签、缺证据时会在评论里问。它不会改书,也不会合 PR。合并由维护者人工完成。规范见 CONTRIBUTING.md。

正文由 AI 辅助整理结构与初稿,技术判断和定稿由人工完成。

License

正文和电子书可以公开阅读。社区使用按 CC BY-NC-SA 4.0:非商业转载和改编须署名,并保留相同许可。

出版、上架销售、收费培训、把正文打进付费产品,需要版权人高建武(Gracker)的书面授权。说明见 COMMERCIAL-LICENSE.md,书里的摘要见 许可说明。

SmartPerfetto 使用的公开 Knowledge Pack 收录 26 章正文。目录页、导航 README 和生成产物不算正文。构建规则见 knowledge-pack/policy.yaml,再分发边界见 KNOWLEDGE-PACK-LICENSE.md。

注:本书引用的 AOSP 源码遵循 Apache License 2.0。引用他人内容均已标注原始出处,仅用于技术说明目的。

关于作者

高建武。网上多用 Gracker,也有人叫高爷。人在成都。

长期在手机厂商做 Android 系统开发优化,以及应用侧的快、省、稳。主要看 Framework、APM 和系统优化;App 开发和 Linux 也接触。业余时间写在 androidperformance.com,现在还在更新的系列:

这本书把这些题目收进同一套 Android 17 目录。更完整的介绍见书里的 作者简介。

社交网络

android-internals-wiki (Gracker/android-internals-wiki)

memory-management
Searching Database…

What is this?This is a free online book and knowledge wiki about Android system internals, covering App, Framework, Native, and Kernel layers, benchmarked against Android 17 / API 37 with AOSP android-17.0.0r1 source references.
Is this a piece of software or a reading resource?It is a text-based wiki/book, not an app. You read it on a dedicated website (with a Catppuccin theme and light/dark variants) or download a weekly-built EPUB from GitHub Releases.
How do I start reading it?Browse the full table of contents in src/SUMMARY.md, or read the chapters directly on the wiki.androidperformance.com site; a weekly EPUB build is also published on GitHub Releases.
Is the book finished and is there an English version?The wiki is currently in alpha and only available in Chinese; a full English version is planned only after the v1.0 release.
How is the content organized?The book has five parts and 26 chapters, moving from Android system mechanisms (processes, rendering, input, memory, scheduling, I/O) to performance problems, profiling tools/methodology, platform/OEM optimization, and finally app-level optimization practices, plus six appendices.
Is this book part of a bigger project?Yes, it is one of seven linked projects in the 'Android Performance Ecosystem', alongside instrumentation (TraceFix), trace collection (Perfetto Tools), analysis (SmartPerfetto), agent skills (Perfetto Skills), a companion blog, and reproducible case files (SystraceForBlog).
Where should a reader start?Start from src/SUMMARY.md to see the full chapter list, or read Chapter 1 ('System Architecture Overview'), which other chapters reference when diagnosing slow startup, ANRs, or native crashes.
Who writes and maintains this content?The author, Gracker (高建武), a long-time Android system/performance engineer at a phone manufacturer, uses AI assistance for drafting structure and initial text, but all technical judgment and final edits are done by him manually.
Creator
Gracker
Size
63.4 MB
Stars
493
Age
6mo
Commits · 90 Days