katana.units.apk.apktool — Decompile APK

Decompile an APK file with apktool.

This unit depends on the apktool external dependencies. It must be within your $PATH for Katana to use it properly.

All this unit does is call the command

apktool decode -f <the_target> -o <artifact_path>

It then looks through the results and queues each new file as targets to recurse on.

class katana.units.apk.apktool.Unit(manager: katana.manager.Manager, target: katana.target.Target)

Bases: katana.unit.FileUnit

DEPENDENCIES = ['apktool']
GROUPS = ['apk']
PRIORITY = 40
evaluate(case: Any) → None

This evaluate function calls the command:

apktool decode -f <the_target> -o <artifact_path>

and loops through the results, queuing each new file as a new target to recurse on.

Parameters:case – A case returned by enumerate. For this unit, the enumerate function is not used.
Returns:None. This function should not return any data.