-
Notifications
You must be signed in to change notification settings - Fork 70
Home
Alex Zaitsev edited this page Jul 16, 2019
·
12 revisions
To build a graph of your dependencies you only need an apk file.
We need to perform the next operations to get the graph:
- decompile apk to smali code
- analyze smali code and build .js file with dependencies
- display the graph
We're using the next technologies to archieve our goals:
- backsmali is used to decompile apk to smali code
- apk-dependency-graph is used to analyze smali code and build .js file with dependencies
- html page with d3 support (this is a js library) is used to display the graph
Now let's understand the structure of this project:
-
src
folder containsapk-dependency-graph
source and test code,build
folder containsapk-dependency-graph.jar
file (build folder needs to be generated, it's not included in source code but can be found in release archives) -
gui
folder contains generatedanalyzed.js
file,index.html
to display the graph and other scripts -
filters
folder containsfiltersets
. Each project can have one or more filtersets. It's very useful and allows to create simple and beautiful graphs so don't ignore them. -
root folder contains
run
scripts,ant
build config andgradle
build config.
I hope that now you have better understanding of what is going on there :) Don't hesitate to create issues with bugs or questions.