Visualizing AOSP Product Dependency Graph

How to generate and visualize the AOSP product dependency graph using m product-graph and the dot command.
April 23, 2026

Visualizing AOSP Product Dependency Graph

In the AOSP build system, you can generate a product dependency graph using the m product-graph command.
It is useful for quickly understanding which products depend on which modules.

1. Generate the Dependency Graph

Initialize the build environment from the AOSP root directory, then run the following command.
Generate product dependency graph
sh
Once the command completes, the out/product-graph.dot file will be generated.

2. Convert to PDF or SVG using dot

The generated .dot file can be converted to various formats such as PDF or SVG using the dot command from Graphviz.
Convert .dot to PDF or SVG
sh
If the dot command is not available, install it as follows.
Install Graphviz
sh
Since SVG is a vector format, it remains crisp when opened in a browser or zoomed in, making it especially useful for large graphs.
Jooojub
System S/W engineer
Explore Tags
Series
    Recent Post
    © 2026. jooojub. All right reserved.