Generate Control Flow Graph Using Graphviz
To convert android apk into dot files and do analysis by using soot click here.To generate control flow graph using graphviz, you need dot files which is generated from all methods of android apks. you can find them on sootOutput directory, now you need to go to command line and type following commands if you have already set graph viz path.
To convert into pdf:
> dot Tpdf -o Example.pdf Example.dot
To convert into png:
> dot Tpng -o Example.png Example.dot
Note: if you haven't set path you need to set path (to know how to set path see installation post) or go to bin folder of graph viz installation folder and find dot file from command line and type above commands.
commands:
>dot : executable dot file (also MS word old file format for graph)
> -Tpdf, -Tpng: converting file format
> -o: Optimization
> Example.pdf, .png: Name of Control flow graph you wanna give after conversion.
>Example.dot : Name of dot file you wanna convert
Note: Graphviz not only use dot file format and executable files you can convert various different files into control flow graph. This post is on the context of program analysis of smart phone apps i.e. android apps using Soot as analysis tool.