r2garlic

June 3, 2026 ยท View on GitHub

radare2 plugin for the Garlic DEX/Dalvik decompiler.

CI

Build

git clone https://github.com/neocanable/r2garlic.git
cd r2garlic
git submodule init
git submodule update
make

Meson

meson setup build-meson
meson compile -C build-meson

Install

r2pm -Uci r2garlic

From source

make user-install

With Meson:

meson install -C build-meson

Pass -Dr2_plugindir=/path/to/plugins to meson setup to override the radare2 plugin install directory.

radare2 XPS

The r2plugin/ directory supports linking r2garlic inside radare2 via libr/xps:

cd radare2
make -C libr/xps EXTERNAL_PLUGINS=r2garlic
make -C libr/core

Uninstall

make user-uninstall

Usage

Commands

CommandDescription
pd:GDecompile the method at current seek
pd:GcDecompile the full class at current seek
pd:GaDecompile all classes
pd:GiShow DEX file info (dexdump)
pd:GsOutput smali for current class
pd:G?Show help