Dependency Injection Graph is a plugin for Android Studio that allows display graph of dependency injections.
- in Android Studio: go to
Settings → Plugins → Browse repositories
and search forDependency Injection Graph
or
- download it and install via
Preferences → Plugins → Install plugin from disk
- Go to
Settings → Instan Run
in Android Studio and disableEnable Instant Run to hot swap code/resource changes on deploy
- Build Apk with disabled Instant Run
- Click
Tools → Dependency Injection Graph → Generate Dependency Injection Graph
- Select apk file from shown dialog
- Click
Tools → Dependency Injection Graph → Set Package Filter
enterpackage name
(e.g. com.example.package) as a filter so you will avoid unnecessary dependencies in your graph.
- Go to
Tools → Dependency Injection Graph → Show Generated Dependencies
to see last generated dependencies graph of current project in browser. - Select
Tools → Dependency Injection Graph → Disable Inner Classes
to define if you want to skip inner classes on your graph or not.
Thanks to Alex Zaitsev. I have inspired by his project: https://github.com/alexzaitsev/apk-dependency-graph
I used source codes of this project to analyze dependencies of decompiled apk, web scripts to show these dependencies in browser.