radare2 plugin for the Garlic DEX/Dalvik decompiler.
git clone https://github.com/neocanable/r2garlic.git
cd r2garlic
git submodule init
git submodule update
makemeson setup build-meson
meson compile -C build-mesonr2pm -Uci r2garlicmake user-installWith Meson:
meson install -C build-mesonPass -Dr2_plugindir=/path/to/plugins to meson setup to override the radare2 plugin install directory.
The r2plugin/ directory supports linking r2garlic inside radare2 via libr/xps:
cd radare2
make -C libr/xps EXTERNAL_PLUGINS=r2garlic
make -C libr/coremake user-uninstall| Command | Description |
|---|---|
pd:G |
Decompile the method at current seek |
pd:Gc |
Decompile the full class at current seek |
pd:Ga |
Decompile all classes |
pd:Gi |
Show DEX file info (dexdump) |
pd:Gs |
Output smali for current class |
pd:G? |
Show help |