Rust powered CLI apk decompiler
Rust is awesome for building CLI
Take a look at this awesome tools:
Let’s be honest, we don’t like doing repetetive boring tasks and going through dex2jar, apktool and Java Decompiler again and again would inevitably lead to everyone of us to try to automate this process.
How to get an apk
You have several ways to do this.
The easiest one is to browse to ApkPure and just download it to your computer.
The more convoluted one would require you to have a
rooted phone and pull the
apk from there. If you’re curious about this process you can just read apk-decompiler readme, it’s succintly detailed there.
How to use it
At the moment, apk-decompiler only supports
You can get the software from the releases page of the project and download it right away.
Once you have downloaded it, you can add it to your path and use it like this:
What you’ll get
You’ll get a new folder called
output with the following folders in it:
- decompiled: This is the output of running dex2jar.
extracted: This folder contains the output of
- xml: This is basically the output of running apktool.
- package-name-error.zip: Optional file that you will get in case there are some errors during the decompilation process.
If you have folders with empty spaces this may be a problem for jd-cli which is one of the dependencies of this project. So… just try to avoid them!
Link to the tool
Feel free to improve it, fork it or raise issues in the Github repository.