Native Source Engine Execution on Android (srceng-android)
While NVIDIA originally ported Half-Life 2 and Portal to 32-bit Android exclusively for Tegra 4 and Tegra K1 Shield devices in 2014, those legacy builds stopped working on modern 64-bit-only phones and lacked support for non-Tegra GPUs. srceng-android (maintained by nillerusr) is a modern, native 64-bit aarch64 C++ port of Valve’s Source Engine that runs directly on Qualcomm Adreno, ARM Mali, and Samsung Xclipse GPUs via OpenGL ES 3.0+ and SDL2.
The engine compiles the full client (libclient.so), server (libserver.so), Havok/VPhysics rigid-body simulation (libvphysics.so), and studio model renderer (libstudiorender.so) natively for Android. In addition to the base Half-Life 2 campaign, modular game launcher APKs support Half-Life 2: Episode One, Half-Life 2: Episode Two, Portal, Half-Life: Source, Counter-Strike: Source, and Day of Defeat: Source.
Preparing Your Steam .vpk Game Files
- Locate Your Steam Installation on PC: In your desktop Steam client, right-click Half-Life 2 (or Portal), choose Manage > Browse local files, and locate the root installation directory (
steamapps/common/Half-Life 2/). - Create Your Source Engine Folder on Android: On your phone or handheld, create a dedicated folder such as
/sdcard/srceng/. - Copy the Required Subdirectories:
- For Half-Life 2: Copy the entire
hl2/folder andplatform/folder into/sdcard/srceng/(verify thathl2_misc_dir.vpk,hl2_textures_dir.vpk,hl2_sound_misc_dir.vpk,hl2_sound_vo_english_dir.vpk, andmaps/are present insidehl2/). - For Episode One & Episode Two: Also copy the
episodic/andep2/folders into/sdcard/srceng/. - For Portal: Copy both the
portal/folder and the basehl2/folder from your Portal Steam directory into/sdcard/srceng/(Portal shares base Source textures and physics sounds fromhl2/).
- For Half-Life 2: Copy the entire
- Configure the Launcher APK: Install both the base Source Engine APK and the specific game launcher APK (e.g., Half-Life 2 Launcher or Portal Launcher). Open the launcher, set Game Path to
/sdcard/srceng, and tap Launch.
Graphics Settings, Console Commands & Portal Recursion
- Portal Stencil Rendering: In Portal, rendering recursive views through linked blue and orange portals uses OpenGL stencil buffer passes. On Tier 2 devices or Mali GPUs, keep Portal Render Depth set to
1or2inOptions > Video > Advancedto prevent frame-rate dips when looking directly through stacked portals. - High Refresh Rate & FOV (
-console): Adding-consoleto the Launcher’s Command Line Arguments box opens the Source developer console (~). You can unlock frame rates on 90Hz/120Hz displays withfps_max 120, display telemetry withcl_showfps 1, and widen your field of view withfov_desired 90.
Gyro Aiming, Gamepad & Touch Customization
The launcher includes a full on-screen button editor for Gravity Gun switches, crouch-jumping, and weapon wheels. Physical Bluetooth and USB-C controllers map natively through SDL2, and enabling Gyroscope in the launcher settings provides responsive 1:1 motion aiming whenever your weapon is drawn.