Click on any function, variable, or class to jump directly to its definition or see every location where it is used.
The xref tool automatically follows references across repository boundaries because it indexes the entire superproject. —it’s far more complete than any local grep across repo clones.
mkdir -p /var/opengrok/data,etc,logs,src # Link your AOSP source (avoid copying 100GB) ln -s /path/to/aosp /var/opengrok/src/aosp xref aosp
Eliminates the need to manually iterate through stack frames or search for call addresses by hand.
For developers in mainland China, use domestic mirrors such as Tsinghua University's AOSP mirror for faster downloads. Click on any function, variable, or class to
AIDL (Android Interface Definition Language) generates both server and client code. When you xref a method defined in .aidl :
You want to understand how Android's PowerManager service acquires a wake lock. When you xref a method defined in
He didn't have the entire 200GB AOSP source tree indexed on his local machine; his laptop would have melted. Instead, he did what every Android dev does when they’re lost. He opened a browser tab and typed it in like a prayer: androidxref.com Navigating the Labyrinth
The official tool at cs.android.com includes several high-level features designed for deep code analysis:
performs case-insensitive full-text searching across every indexed file, including comments and strings. This is ideal when you recall a log message, error text, or partial code snippet.
The screen stayed black for a terrifying five seconds, then the boot animation began—the four spinning dots of pure, "un-Googled" Android . He opened the camera app. The shutter clicked. Elias closed the