[home] [packages] [docs] [apt] [links] [mirrors] [lists] [misc] [about]

Xref Aosp !new! Official

| 特性维度 | | AOSPXRef (第三方) | AndroidXRef (第三方) | | :--- | :--- | :--- | :--- | | 核心搜索引擎 | Kythe (Google 语义分析) | OpenGrok 2.0+ | OpenGrok 1.0 | | 支持版本范围 | 极广 (Android 2.2 ~ 最新) | 较新 (Android 7.1 ~ 15/16) | 较老 (Android 1.6 ~ 9.0) | | 交叉引用深度 | 极高 (Java ↔ Native 无缝) | 中等 (基础语法级别) | 中等 (基础语法级别) | | 典型响应速度 | ~200-300ms | ~200-300ms | ~500-1000ms | | 额外仓库支持 | 支持 AndroidX/CameraX 等 | 仅 AOSP 平台源码 | 仅 AOSP 平台源码 | | 适用人群 | 所有开发者 | 国内开发者、新版本查阅者 | 老版本维护者 |

Use blame to see the history.

The difference between a junior and a senior AOSP engineer isn't just knowing the code—it's knowing how to navigate the code. Mastering xref AOSP transforms a terrifying 600GB monolith into a manageable, searchable graph of symbols. xref aosp

Understanding Xref AOSP: The Ultimate Guide to Navigating Android Source Code

AOSP generates massive amounts of code (AIDL, protobuf, R.java). This code is often not in your index. Solution: Build the code first ( make ), then explicitly index the out/ directory. Warning: This doubles the index size but is essential for xref-ing R.id.button . | 特性维度 | | AOSPXRef (第三方) | AndroidXRef

The Kythe index (the backend of cs.android.com) handles C++ very well. For a template function std::vector<T>::push_back :

Android 开源项目(AOSP)的代码量极其庞大,由数百个 Git 仓库组成,总代码量超过 100GB。对于开发者而言,理解 Android 系统的运作原理,几乎不可避免地需要深入阅读源代码。然而,本地下载如此庞大的代码库不仅耗时,而且对硬盘空间提出了严苛的要求。 Understanding Xref AOSP: The Ultimate Guide to Navigating

: A long-standing community favorite based on OpenGrok. It is valued for its simple interface and ability to specify particular Android branches, though it primarily covers older versions up to Android 9.0. XRefAndroid