Static ARMv7-A -> C11 -> MinGW-w64 x86-64 recompilation of Asphalt 6: Adrenaline HD 3.7.0 (libasphalt6.so).
- No copyrighted game assets are included: you must supply your own legal
Asphalt 6 HD 3.7.0.apk. gamedata/andAsphalt 6 HD 3.7.0.apkremain strictly unmodified read-only inputs.- Save data (
profile1.sav,profile1.bak,profileInit.sav) is written to%LOCALAPPDATA%\Asphalt6HD\userdata\in standalone installs (orbuild/userdata/in dev builds).
Download the single standalone Asphalt6_Setup.exe (~26.8 MiB) from GitHub Releases — no compiler, Python, ANGLE DLLs, or extra tools needed:
.\build\Asphalt6_Setup.exe- Select your Asphalt 6 HD 3.7.0 APK (
Asphalt 6 HD 3.7.0.apk). - Choose any Install Location (e.g.,
C:\Games\Asphalt 6 HD). - Click Install — completely offline (~2 seconds) on any Windows x86-64 PC (
-march=x86-64portable binary):- Relocates
libasphalt6.so->guest.binin memory and bundlesguest.bin,res/raw/*,gi_*.png, and ANGLE runtime DLLs inside<InstallDir>\asphalt6_win.exe(A6PAKtrailer). - Your install folder contains only
asphalt6_win.exe(andgamedata/once copied manually or downloaded).
- Relocates
- Launch
asphalt6_win.exe: ifgamedata/isn't placed manually, the in-game Gameloft Installer prompts to download & CRC-verify the official game data from Gameloft servers, then showsTouch OK and start playing!.
Release packaging command (maintainers): python -u tools\pack_setup.py --jobs 8. It also writes build\Asphalt6-Native-<version>-Windows-x64.zip (Asphalt6_Setup.exe with recomplauncher.json on top) for RecompLauncher: attach it to every release next to Asphalt6_Setup.exe.
Verify prerequisites and compile incrementally (pass --download to fetch missing game data from your APK via Gameloft's CDN):
python -u tools\bootstrap.py --jobs 8Or run the standalone downloader CLI (tools/download_gamedata.py / Asphalt6_Installer.exe):
python tools\download_gamedata.py --apk "Asphalt 6 HD 3.7.0.apk"Run the game:
.\build\asphalt6_win.exe- Mouse: Point & click 2D HUD /
gameswfUI and 3D ray-cast menu planes (MainMenu,Career,QuickRace,Options). - Keyboard:
- W / Up Arrow: Menu Up / Accelerate (manual schemes)
- S / Down Arrow: Menu Down / Brake & Drift (all schemes)
- A / Left Arrow, D / Right Arrow: Menu Left/Right / Smooth Progressive Steering
- Space / Shift: Nitro boost (all schemes)
- Enter: Confirm menu selection
- Esc / Backspace: Pause / Back
- XInput / Xbox Controller:
- Left Stick / D-Pad: Analog Steering / Menu Navigation
- RT: Accelerate (manual schemes)
- LT / B: Brake & Drift (in-race); B: Back (menus)
- A / X / RB: Nitro boost (in-race); A: Confirm (menus)
- Start / Back: Pause / Back
ASPHALT6_WIDTH,ASPHALT6_HEIGHT: Override startup window size (default: native borderless fullscreen at desktop resolution, e.g.,1920x1080).ASPHALT6_WINDOWED=1: Start in a bordered1280x720window (or pressAlt+Enterin-game to toggle fullscreen/windowed).ASPHALT6_BORDERLESS=1: Force borderless fullscreen even when custom width/height are specified.ASPHALT6_ANGLE_DIR: Directory containing ANGLElibEGL.dll/libGLESv2.dll.ASPHALT6_MAX_FRAMES: Exit cleanly after N frames (headless/automation testing).ASPHALT6_FPS: Override target refresh/frame rate (default: auto-detected monitor refresh rate viaEnumDisplaySettingsA).ASPHALT6_NO_CAP=1: Disable VSync (eglSwapInterval(0)) and the host frame limiter.ASPHALT6_AUTO_TAPS/ASPHALT6_AUTO_KEYS: Automated tap/key scripts for regression verification.ASPHALT6_AUDIO_TRACE=1,ASPHALT6_VFS_TRACE=1,ASPHALT6_GL_TRACE=1,ASPHALT6_IMPORT_TRACE=1,ASPHALT6_PROFILE=1: Optional diagnostics.ASPHALT6_NO_INSTALLER=1: Skip the startupgamedata/installer check inasphalt6_win.exe.- Optional arguments (used by launchers; without them nothing changes):
asphalt6_win.exe --data <dir>: keep saves in<dir>\userdata, the runtime cache in<dir>\cacheand a log in<dir>\logsinstead of%LOCALAPPDATA%\Asphalt6HD\.--windowed,--fps=<n>and--no-capmatchASPHALT6_WINDOWED=1,ASPHALT6_FPSandASPHALT6_NO_CAP=1.Asphalt6_Setup.exe --prepare --game=<apk> --install-dir=<dir>: install without a window, printingprogress <0-1> <text>lines. It exits right away when<dir>already holds this setup's build, so the APK is only needed when the build changes.
- Loose custom high-res textures can be placed in
hires/(checked beforegamedata/). Runpython tools\gen_hires_ui.pyto generate 2x*_hires.tgaUI textures intohires/from the read-onlygamedata/UI sheets.
recomp/: Ghidra 12.1.4 P-code -> C11 translator (emit_c.py,link_all.py,coverage.py,diff_test.py).runtime/: Native Windows host layer:main_win32.c: Constructor boot, first-launch in-game installer gate (installer_ensure_gamedata_gl()), JNI init sequence, monitor-refresh frame/input loop.setup_win32.c: Standalone Win32 GUI Installer (Asphalt6_Setup.exe, zero build tools, zero internet required during setup) embedding compressed portable-march=x86-64asphalt6_win.exe+ ANGLE DLLs; relocates the user's 3.7.0 APK ->guest.binin RAM and outputs a single self-contained<InstallDir>\asphalt6_win.exe(A6PAKpayload) so<InstallDir>holds onlyasphalt6_win.exeandgamedata/.installer_win32.c:A6PAKpayload reader/builder, APK/disk manifest, ZIP/DEFLATE/PNG/ELF32/WinHTTP CDN downloader & CRC-32 verifier.installer_gl.c: Full-screen ANGLE OpenGL ES Gameloft Game Installer screen insideasphalt6_win.exeusing embeddedgi_*UI assets (Yes/Exit/OK/Cancel) and prompting to download Gameloft game data whengamedata/is missing (Touch OK and start playing!).dispatch.c: O(1) two-level function dispatch page directory compiled at-O3.platform_win32.c: Win32 window, ANGLE EGL context,timeBeginPeriod(1)+ monitor refresh rate detection, mouse, keyboard, and XInput queue.gl_win32.c: GLES2 bridge over ANGLE (libGLESv2.dll) with pre-resolved GL procs + ETC1/ATC software texture decompression + default-FBO resize viewport scaling.vfs.c: Virtual filesystem mapping Gameloft SD/data paths read-only togamedata/(withbuild/userdata/overrides checked first) and writes tobuild/userdata/.imports.c: 289 mapped Bionic/POSIX/C++/zlib/pthread/stdio/wchar imports with O(1) PLT handler cache and AAPCS register/stack varargs & float64 alignment.overrides.c: Targeted hooks forALicenseCheck, WinMM waveOut audio pump (vox::DriverAndroid), andCalcOverlayPixelpaint overlay preservation.thread_win32.c: Win32 pthread/cond/TLS backend with 4096-slot O(1) open-addressed mutex hash table.
tools/: Pipeline and build scripts (bootstrap.py,build_win.py,pack_setup.py,download_gamedata.py,dump_pcode.py,patch_guest.py, etc.).
If you find this project helpful and want to support ongoing preservation & native porting work:
- Ko-fi: https://ko-fi.com/mrbaazzman