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

AOSP 빌드 시스템에서는 m product-graph 명령어를 통해 제품 간의 의존성 그래프를 생성할 수 있습니다.
어떤 제품이 어떤 모듈에 의존하는지 한눈에 파악할 때 유용합니다.

1. Generate the Dependency Graph

AOSP 루트 디렉토리에서 빌드 환경을 초기화한 후 아래 명령어를 실행합니다.
Generate product dependency graph
sh
명령어가 완료되면 out/product-graph.dot 파일이 생성됩니다.

2. Convert to PDF or SVG using dot

생성된 .dot 파일은 Graphvizdot 커맨드를 사용해 PDF나 SVG 등 다양한 포맷으로 변환할 수 있습니다.
Convert .dot to PDF or SVG
sh
dot 커맨드가 없다면 아래와 같이 설치할 수 있습니다.
Install Graphviz
sh
SVG 포맷은 벡터 이미지이므로 브라우저에서 열거나 확대해도 깔끔하게 볼 수 있어 큰 그래프를 다룰 때 특히 유용합니다.
Jooojub
System S/W engineer
Explore Tags
Series
    Recent Post
    © 2026. jooojub. All right reserved.