We assume you have curl, protoc, and uv installed.
curl https://raw.githubusercontent.com/google/binexport/refs/tags/v12/binexport2.proto -o od2be/binexport2.proto
protoc --proto_path=od2be --python_out=od2be od2be/binexport2.proto
uv syncuv run oatdump2binexport app.odex app.oatdump app.BinExport
- libprotoc: 3.21.12
The shell script "ghidra_export_binexport.sh" provides an easy interface for headlessly converting binary (oat) files to binexport files. It also uses a pre-analysis script to disable Analysis passes as they don't make sense for oats to speed up Ghidra's decompilation.