Phoam

What works

Phoam runs older Android and iPhone games in your browser, straight from the original app file.

4,700+Android calls
3,800+Java methods
2,900+iPhone calls
153iPhone classes

Every number here is counted from the engine itself, so this page changes when Phoam does.

How it runs

Phoam doesn’t rewrite games for the web, it gives them a phone.

When a game needs something the phone is missing, the fix goes into the phone, so every game after it gets it too.

1

Read the package

Before anything uploads, your browser reads the package’s own headers: the compiled Android manifest, the iPhone property list, which processor slices the binary carries, and whether it is still App Store encrypted.

It also spots the engine inside, like Unity, Adobe AIR, plain native code or pure Java.

2

Lift the code

The game’s ARM and Thumb machine code is translated ahead of time into WebAssembly, floating point and NEON vector instructions included.

Entry points come from the binary’s symbols, unwind tables, jump tables and pointers, so there are no per-game hint files.

3

Boot it like a phone

Native libraries are linked the way Android’s own loader links them, and the game starts from its own manifest through the same lifecycle a phone runs.

iPhone games start at their own main function and run loop, with every Objective-C class and method read from the binary itself.

4

Java and native, together

The app’s own Java bytecode runs in a second virtual machine beside the native code, and the two call each other through JNI just like on the phone.

151JNI functions
53Java packages
10iPhone frameworks
ARM + ThumbInstruction sets

What you get

Real menus

Menus, buttons and dialogs are real Android widgets, built from the layout files inside the game.

3D graphics

Both OpenGL ES 1.1 and 2.0 run on your graphics card.

3D sound

Positional sound, music streams and sound effects all play through the audio systems the phone had.

Multitouch

Touch works with several fingers at once.

Tilt

Tilt controls read your phone’s real motion sensors, on Android and on iPhone games.

Typing

Text fields take typing straight from your keyboard.

Saves

Settings, saves, keychain items and databases stick, so a reload picks up where you left off.

Game Center

Scores and achievements go through without the game noticing anything missing.

Threads

Games that use several threads get them.

Android libraries

These are the native libraries Android games call, with how many of their functions Phoam answers.

198OpenGL ES
194C library
115Math
91OpenAL
53POSIX threads
42Files
30FMOD
27Network
23zlib
21EGL
19Touch and keys
17Threads and time
16C++ runtime
15Sensors
14Assets and display
10System

Android Java

The biggest Java packages Phoam answers, by method.

android.widget652 methods · 24 classes
java.lang482 methods · 58 classes
java.util463 methods · 41 classes
android.view412 methods · 25 classes
android.app218 methods · 13 classes
java.io125 methods · 19 classes
javax.microedition.khronos.opengles123 methods · 1 classes
android.graphics115 methods · 14 classes
android.content110 methods · 8 classes
android.os93 methods · 14 classes
android.view.animation88 methods · 19 classes
java.nio76 methods · 8 classes
java.util.concurrent66 methods · 8 classes
android.content.res54 methods · 7 classes
android.webkit54 methods · 11 classes
android.text52 methods · 9 classes

Plus 37 more packages across the Java and Android libraries.

iPhone and iPad

Early 32-bit games run on the real Objective-C runtime, with the frameworks they were built against.

1,209Objective-C messages
153Classes
1,599C functions

Frameworks

77Foundation
42UIKit
7Core Animation
6Game Center
3Core Motion
2AVFoundation
2Message UI
2OpenGL ES
2StoreKit
1Media Player

Libraries

252C library
199OpenGL ES
192C++ runtime
174Math
122Core Foundation
119Core Graphics
106Files
91OpenAL
59POSIX threads
56Audio Toolbox
54Objective-C runtime
41SQLite
31Threads and time
27Network
25System
14Interface
8Address Book
8Grand Central Dispatch
7Security
6System Configuration
5Services

Game engines

Cocos2d-x

Cocos2d-x games run, saves included.

Unity on Mono

Mono wants to compile code while the game plays, so Phoam runs the ahead-of-time compiler shipped inside the game first, and the runtime boots without compiling a single method on the fly.

Adobe AIR

AIR support is partial, and its ActionScript engine starts up inside the game and takes touch input.

Check your game

Upload a game and Phoam shows how much of what it needs is supported, before you play.