Abhi 125c5fd516 Add r2pm binary package support with triplet-named bindists
- make bindist: plugins/ zip named r2garlic-$(r2 -qv)-os-arch-bits.zip
  with uname fallbacks for r2pm 6.2.4 and older (no R2PM_* vars)
- ci: bindist job for linux x64/arm64 and macos, windows meson job
  packing the triplet zip (radare2 -qv naming), release job attaching
  the zips to tag releases; action installs the latest radare2 release
- src: fix the windows ucrt build (stdout is not assignable; missing
  ws2_32 for garlic endian shim) and pick up garlic fixes from upstream
- meson: r2 -H based dependency fallback when pkg-config cannot find
  r_core (relocatable windows installs), drop -Wno-format to coexist
  with nix hardening wrappers
2026-10-18 11:06:16 +05:30
2026-06-03 12:52:24 +02:00
2026-05-13 01:47:54 +05:30
2026-05-13 01:47:54 +05:30
2026-06-03 12:31:18 +02:00
2026-06-03 13:48:35 +02:00

r2garlic

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

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
S
Description
The world's fastest Android/DEX decompiler meets radare2
Readme MIT
66 KiB
0 Stars 1 Watchers 0 Forks
0.1.3
Latest
2026-11-07 06:22:37 -10:00
Languages
C 46.8%
Meson 36.8%
Makefile 16.4%