Xref | Aosp

The Ghost in the Code: What xref AOSP Really Unlocks

To the uninitiated, xref AOSP looks like a typo—a fragment of a forgotten terminal command, a half-remembered build instruction. But to those who live in the deep trenches of mobile development, it’s an invocation. It’s the first step in a digital archeological dig. Typing that into your browser’s address bar (or, more accurately, into the search box of cs.android.com) is like whispering a password to a door that leads to the engine room of the modern world.

// In Android.bp
cc_library 
    name: "libaudioclient",
    shared_libs: ["libutils", "libcutils"]

Technique 4: Navigating C++ Templates and Overloads

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

xref-server --db ./xref_db --port 8080

Your action plan:

Why OpenGrok wins for AOSP:

Try it out — and let me know if you’ve built any custom scripts around xref for AOSP. The Ghost in the Code: What xref AOSP