Because AOSP is huge, run xref from the root of your AOSP checkout:
cd ~/aosp
xref -f . --recursive --output ./xref_db
Note: This will take a while (30–60 minutes on a fast machine) and eat ~10–15 GB of disk. You can limit directories:
xref -f frameworks/base system/core --recursive --output ./xref_db
Now that you know the basics, let's move to advanced workflows that separate casual browsers from power users.
One of the most common AOSP debugging tasks is solving SELinux "avc: denied" errors. Using xref AOSP:
Because AOSP is huge, run xref from the root of your AOSP checkout:
cd ~/aosp
xref -f . --recursive --output ./xref_db
Note: This will take a while (30–60 minutes on a fast machine) and eat ~10–15 GB of disk. You can limit directories:
xref -f frameworks/base system/core --recursive --output ./xref_db
Now that you know the basics, let's move to advanced workflows that separate casual browsers from power users.
One of the most common AOSP debugging tasks is solving SELinux "avc: denied" errors. Using xref AOSP: