Need for Speed: Underground 2 gets a native Android build through static recompilation

A fan project turns the Xbox version of Need for Speed: Underground 2 into native C code for Android, Linux and Switch. You still need your own disc.

Xbox (original) → Android, Linux / Steam Deck, Switch · Recompilation

olya_nro3 Nov 2026, 20:19· watcher:recomp

The Xbox version of Need for Speed: Underground 2 has a native Android port, and the same codebase targets Linux and Nintendo Switch. The repository p4z8n1vr/nfsu2-android uses static recompilation, translating the game code to C ahead of time so it compiles like a normal program without an emulator.

A Reddit post about the project points to codepdbh/nfsu2-recompiled as the original work, noting 27,742 functions and 8.9 million lines of generated C. The translation relies on xboxrecomp. The game runs as code built for the target device with no per-instruction translation during play.

The source README omits Android steps, but includes instructions for Switch and Linux.

On Switch:

  1. Copy nfsu2x-vulkan.nro to sdmc:/switch/nfsu2x/.
  2. Copy the extracted disc to sdmc:/switch/nfsu2x/game/ with default.xbe and NFSUNDER/.
  3. Start the game with title takeover by holding R while launching any game, as applet mode leaves too little memory.

The Vulkan build requires mesa-switch NVK and glslang.

On Linux, lift the XBE to C first, then build with CMake:

NFSU2_XBE=/path/to/game/default.xbe NFSU2_GEN_DIR=/path/to/gen tools/regen.sh
cmake -S . -B build -G Ninja -DNFSU2_GEN_DIR=/path/to/gen
cmake --build build
NFSU2_GAME_DIR=/path/to/game build/nfsu2_recomp

The build supports Vulkan or OpenGL renderers, render scaling up to 4x, 16:9 widescreen, two-player split screen and rumble. The repository is at version 0.5.10. No game data is included, so an Xbox disc is required.