Xref Aosp [repack] Jun 2026

AIDL (Android Interface Definition Language) generates both server and client code. When you xref a method defined in .aidl :

Online XRef platforms are convenient, but they have limitations. AOSP source code changes rapidly, and public sites may not stay perfectly synchronized with the latest internal builds your organization uses. Additionally, if you're working with proprietary device vendor code alongside AOSP, the public sites cannot index your private modifications.

For example, to find all native (C++) callers of android::IBinder::transact , filter the path to *.cpp and *.h . xref aosp

“Analyzing Inter-Application Communication in Android” (M. Nauman et al., 2011)

In the field, type frameworks/base to filter out unrelated device-specific code. Nauman et al

OpenGrok is the de facto standard for cross-referencing large codebases, widely used in the Java ecosystem and by internal teams at Google and Sun Microsystems before it. It is a fast, usable source code search and cross-reference engine.

For those preferring manual control, install OpenGrok with Tomcat: If you need to work offline

For engineers building custom AOSP distributions (automotive, wearables, TV), the industry standard for local xref is . Created by Sun Microsystems, OpenGrok is a fast, searchable source code indexer.

It is slow for deep dives. If you need to work offline, or if you are integrating navigation into an IDE (VS Code, Android Studio, or Vim), you need a local solution.

Download the desired AOSP branch using repo: