Forgotten Sands Android Recomp

Forgotten Sands Android Recomp is a native Android port of Prince of Persia: The Forgotten Sands built with Vulkan and SDL, featuring touch controls and controller support.

README

Forgotten Sands Android Recomp

Version 1.4.4 - see the changelog.

An unofficial native Android port of Prince of Persia: The Forgotten Sands (Xbox 360), made by static recompilation. The game's Xbox 360 program was translated into native ARM64 code, and the console's graphics, sound, file and system calls were rebuilt with Vulkan and SDL. It is not an emulator: the game runs as a normal Android app.

No game files are included. You need your own Xbox 360 disc of the game, dumped to a disc image (.iso).

Tested only on the AYN Odin 3 and the Samsung Galaxy S26. Other devices may not work.

The Windows PC port is a separate project: Forgotten-Sands-Recompiled.

This project is not affiliated with or endorsed by Ubisoft. Prince of Persia is a trademark of Ubisoft Entertainment.

Tested devices

DeviceResult
AYN Odin 3 (Snapdragon 8 Elite, Adreno 830)60 fps in the levels, built-in controls
Samsung Galaxy S26 (Exynos 2600, Xclipse 960)60 fps; a phone that has been played hot for several minutes can dip to the mid-50s in heavy scenes

Requirements

  • Android 11 or newer, 64-bit ARM, a Vulkan GPU with 64-bit shader integers and buffer device address (the Adreno 740 and newer, Adreno 8xx and Samsung Xclipse GPUs have them; if yours does not, the game says so at start)
  • About 6 GB of free space (about 13 GB during the first setup while the .iso is also on the device)
  • Your own disc image of the Xbox 360 disc release of Prince of Persia: The Forgotten Sands (title ID 5553083E). The app checks that the game's executable is exactly the version it was made from.

Installing

  1. Download ForgottenSandsRecompiled-Android-arm64.apk from the Releases page and install it (allow installing from your browser or file manager when Android asks). The SHA-256 of the download is on the release page.
  2. Copy your disc image (.iso) to the device (for example into Download).
  3. Start Forgotten Sands and choose the .iso with the file picker. It is unpacked once into the app's own folder (Android/data/com.fsrecomp.forgottensands/files/game, about 5 GB, a minute or two). After that the .iso is no longer needed and can be deleted. (You can also copy the .iso, or an already unpacked game folder, into Android/data/com.fsrecomp.forgottensands/files from a PC instead of using the file picker.)
  4. The start screen has Play, Achievements, Settings and Quit.

The first minutes of every new area stutter a little while its shaders are built; they are kept in a cache, so this only happens once. Saves are kept in the app's user folder; uninstalling the app removes them together with the unpacked game.

Settings (start screen)

SettingChoices
ResolutionAutomatic (up to 1600x900, default), screen size, 1280x720
Frame rate60 (default), 30, 120, no limit
Smooth edgesBest (default), Fast, Off
Button picturesOdin (A right, B bottom), Xbox, PlayStation - the on-screen buttons use the same letters
Touch controlsWhen no controller is used (default), Always, Off
Touch camera speedNormal (default), Slow, Fast
Touch camera invertOff (default), Up-down, Left-right, Both
VibrationOn / Off
Show frame rateOff / On (top left corner)

They are kept in settings.toml in the app's folder and apply at the next start. Settings also has Reset achievements, which clears all achievements after a confirmation; your game saves are not touched.

Achievements

The game's own 40 Xbox 360 achievements unlock as you play, with a short notice at the top of the screen. Achievements on the start screen lists them all with icons, gamerscore and unlock dates (the list appears after the game has been started once). They are kept in the app's user/achievements folder, separate from the saves. Achievements unlocked on a console or before version 1.4 are not carried over.

Adreno 6xx and 730 devices (Retroid Pocket 5, Poco F3, OnePlus 11R and others): custom Turnip driver

The Qualcomm drivers of Adreno 6xx GPUs and the Adreno 730 (Snapdragon 8 Gen 1 / 8+ Gen 1) lack 64-bit shader integers, which the game needs; the game then stops at start with a message saying so. Such devices can try a custom Vulkan driver instead: a Mesa "Turnip" driver package (a .zip with a meta.json and the driver library), the same kind Android emulators load. Get one you trust (for example the Turnip builds made for emulators), then in the app: Settings > "Choose a custom GPU driver (.zip)", and set "GPU driver" to Custom. The game uses it from the next start; if it cannot be loaded, the game tells you and uses the device's own driver. Settings > GPU driver > System switches back.

This is experimental and not tested by us on Adreno 6xx / 730 hardware (we tested on the AYN Odin 3 and the Samsung Galaxy S26 only). A driver that does not suit your GPU can show a black picture or freeze the device (restart it); the game then goes back to the device's own driver by itself. Custom drivers only work on Adreno GPUs.

AYN Odin 3

  • Uses its built-in controls. The default Odin button pictures match the Odin's buttons (A right, B bottom).
  • The touch controls stay hidden while the built-in controls are used.

Samsung Galaxy S26 (and other phones)

  • Touch controls: left lower half = move (a stick appears where your thumb lands), right lower corner = the four face buttons, swipe anywhere else on the right half = camera (the faster you swipe, the faster it turns; it stops when your finger stops), left middle = d-pad, top corners = shoulder buttons and triggers, top middle = START and SELECT/BACK.
  • Controllers: any controller Android recognises (Xbox, DualSense / DualShock, 8BitDo...). Pair it in the phone's Bluetooth settings before starting the game, and pick Xbox or PlayStation button pictures to match it. (Bluetooth controllers have not been tested on the S26 yet.)
  • Heat: Samsung phones lower their CPU speed when they get warm. For the steadiest 60 fps play unplugged (charging heats the phone) and without a thick case. Lower resolution does not help here (the limit is the CPU); the frame rate counter (Show frame rate) shows what you get.

Changelog

The full history is in CHANGELOG.md. Latest version:

1.4.4 (2026-11-30) - the Adreno 730 (Snapdragon 8 Gen 1 / 8+ Gen 1, e.g. OnePlus 11R) is now listed with the devices that need a custom Turnip driver, in the README and in the message the game shows at start.

1.4.3 (2026-11-28) - fixes stuttering sound on phones that use their normal (not low-latency) sound output, such as the iQOO Neo 10R.

1.4.2 (2026-11-28) - fixes stuttering sound on phones where the game runs below 60 fps (the game's sound mixing now gets audio priority).

1.4.1 (2026-11-27) - fixes crackling sound on slower devices such as the Retroid Pocket 5 (the sound buffer grows by itself when needed).

1.4 (2026-11-27) - achievements: the game's 40 achievements unlock with an on-screen notice, an Achievements list on the start screen and Settings > Reset achievements; the Uplay "Action completed" popup is gone.

1.3 (2026-11-27) - fixes enemies not attacking and jars not breaking (a side effect of the 1.1 memory change).

1.2 (2026-11-27) - experimental custom GPU driver support (Settings > GPU driver) for devices whose own driver lacks what the game needs, such as Adreno 6xx (Retroid Pocket 5, Poco F3): load a Mesa Turnip driver package (.zip).

1.1 (2026-11-26) - fixes invisible walls and floors in later rooms, fixes the game running out of memory as you play on, shows a clear message instead of a black screen when a GPU or driver is not supported, and handles an interrupted disc unpack.

1.0 (2026-11-25) - first Android release: native ARM64 / Vulkan port that runs from your own disc image, 60 fps on the AYN Odin 3 and the Samsung Galaxy S26, on-screen touch controls with a swipe camera (speed and invert settings), controller support with Odin / Xbox / PlayStation button pictures, a settings screen, no stretching on wide phone screens, and a shader cache for smooth later starts.

Making a disc image

Dump the disc with an Xbox 360 that can read discs to a USB drive or network (for example with a dashboard file manager), or with a compatible PC DVD drive and a dumping tool for Xbox 360 discs. The image should be a full disc image (about 7.3 GB) or a trimmed XISO; both are supported. Downloaded copies are not supported and must not be used.

Known issues

  • Only tested on the two devices above.
  • A few seconds of stutter the first time a new area loads (shader building, see above).
  • On a hot phone the frame rate can drop below 60 in the heaviest scenes.
  • Online features of the original are not available. Movies play at their original frame rate.
  • Only the Xbox 360 disc version above is supported (no title updates, no other platforms).

How it works

  • CPU: the game's PowerPC program (default.xex) was translated function by function into C++ with XenonRecomp and compiled for ARM64. The app contains that translated code; it only runs together with the game executable from your own disc, which is loaded at start for its data and checked against the version the code was made from.
  • Graphics: the game's Direct3D 9-style calls are rebuilt on Vulkan (based on the runtime of UnleashedRecomp), its Xenos shaders are translated to SPIR-V with XenosRecomp and DirectXShaderCompiler.
  • Sound and video: XMA audio and Bink movies are decoded with FFmpeg.
  • System: the Xbox 360 kernel and XAM calls the game uses (files, threads, memory, saves, controller) are implemented natively; SDL provides the window, controllers and audio output on Android.

The full source code is in source/ (the runtime, the Android app in source/android and this project's patches to the upstream tools in source/patches); BUILDING.md explains how to build it from your own game files (see its Android section).

Licence

The source code in this repository is released under the GNU General Public License v3.0 (see LICENSE), because the runtime is derived from UnleashedRecomp's (GPL-3.0). Third-party components and their licences are listed in THIRD_PARTY.md. No part of the game itself is included.