Repository navigation
Pocket Foundry 0.9.5
Play your own copy of Factorio on Android: the official Linux ARM64 build, run without emulation on the phone's GPU.
Install: open pocket-foundry-0.9.5.apk on the phone (Android 10 or later) and import the Linux (arm64) .tar.xz from factorio.com/download. Pocket Foundry then asks before downloading a driver for your GPU from pocket-foundry-drivers: Turnip on Adreno 6xx or newer, experimental builds on some Mali and Xclipse GPUs, Phone's OpenGL ES (MobileGlues) or the CPU elsewhere. Without downloads it plays through Phone's OpenGL ES (MobileGlues), which comes with the app, Phone's Vulkan (experimental) or an imported one. The app holds no part of Factorio: you bring your own copy. A new version installs over the last and keeps the game and saves; from 0.8, 0.9 installs as a new app next to the old one and brings its saves, mods and config over.
Updates: Pocket Foundry doesn't check for them itself. Add it to Obtainium with this repository's link, and Obtainium installs each new version. Coming from 0.8, remove the old Pocket Foundry in Obtainium and add it again: 0.9 is a new app.
Signing certificate (SHA-256): 0e301617d64bc294bcc2d1dbee71a8c83f8fcc7b7c3616edc26e9b2e89c7e35f
Since v0.9.4:
- Mouse & keys: Left, Right and Middle click as keys, in the picker and the Add list; while one is held, a finger only moves the cursor, which drags with it (#96)
- Mouse & keys: a key's Press in its options, while touched, stays held, or only after a long press of 0.3, 0.5 or 1 s, a clock on its cap
- Mouse & keys: the editor's Touch sets what the long press, double tap and hold, and two- and three-finger taps send, by default a right click, the left button held, Esc and a middle click; on a trackpad a small move no longer snaps back and clicks (#96)
- Settings -> Edit layout without a game: the editor of the controls chosen there on its own screen, over the newest save's picture; in the game when one runs with them
- Mouse & keys: a mouse key's button filled on its sign, and its name beside it in the Add list and under it in a drawer
- Mouse & keys: double tap and hold holds once the finger has stayed a moment, so a tap on the quickbar and a quick move away no longer puts the item back (#96)
- Phone's Vulkan: the compat layer finds a command by its other name when a driver gives only one, so its routes no longer call a null pointer: the Pixel 11's PowerVR gives push descriptors only their core name (#65)
- Phone's Vulkan: every driver command the compat layer looks up is found by its other name when a driver gives only one, the BC layer's push descriptors among them, the Pixel 10 and 11 crash's (#65)
- Drivers: on a PowerVR the phone's own Vulkan plays first, without the speed test against MobileGlues, which drew a Pixel 10's fastest then failed its textures and crashed (#65)
- Revert "Drivers: on a PowerVR the phone's own Vulkan plays first, without the speed test against MobileGlues, which drew a Pixel 10's fastest then failed its textures and crashed (#65)"
- Logs: a report sends every log whole, and so do shared results of a game that didn't end well; the screen still shows each one's start and end and says Report has the rest (#65)
- MobileGlues on a Pixel 10's PowerVR: the sprites drawn right and no crash on Android 16 (#65)
- Reports and the Logs name the phone as it's sold, where its model is only a code: "Xiaomi 2209116AG (Redmi Note 12 Pro)"
- Games: a swipe from Recents is a quit, a broken mod no longer strands the player on the CPU, the headless server is refused at import, a hung quit is stopped
- Logs: where Factorio crashed, in libraries and offsets, for the frames its trace leaves as bare addresses (#65)
- libhybris: dlopen(NULL) gets the main program's handle instead of a crash, which ANGLE phones hit before their first frame (#65)
- Drivers: MobileGlues is speed-tested before its first game, and one whose test crashes isn't started; with none left, Home and Settings say so
- Drivers: phones whose OpenGL ES is ANGLE don't list Phone's OpenGL ES, which would draw through the same Vulkan driver as Phone's Vulkan (#65)
- Revert "Drivers: phones whose OpenGL ES is ANGLE don't list Phone's OpenGL ES, which would draw through the same Vulkan driver as Phone's Vulkan (#65)"
- Driver check: a crash also says what the driver called last (through its PLT, by name), its registers and the instructions up to the crash, for a driver that read NULL
- Driver check log: each check and speed test adds its part instead of clearing the log, so a report has every driver tried; the speed test says where a crash happened too, as the check does
- libhybris: Android libraries get glibc's environ instead of bionic's empty one, which Samsung's Xclipse Vulkan driver walked and crashed on (Phone's Vulkan, and ANGLE under Phone's OpenGL ES)
- A game Android kills for memory with High sprites lowers them to Medium instead of passing the driver over (a Xiaomi 15 lost Turnip after 136 minutes on it); results of a game with no map drawn say no map, not played
- Driver downloads turned on in Settings or the Driver dialog say they're fetching the list, where you are, instead of nothing for 6 or 7 s
- Phones whose OpenGL ES is ANGLE show their GPU by its own name (Samsung Xclipse 940), the Logs keep ANGLE's; the welcome screen doesn't promise the CPU without the driver list
- High sprites go to Medium on the same driver also when Android closes the whole app for memory, when it closes it loading sprites without saying why (a OnePlus Ace 3 Pro's ColorOS, six times), and when the driver loses the GPU loading them (a Redmi K50i's Phone's Vulkan, 1 GB free)
- Phone's OpenGL ES keeps BC4 and BC5 textures as EAC, half the memory of the R8 and RG8 they were decoded to, and makes empty atlases without a second copy of them (drivers 213a49c)
- Phone's OpenGL ES reuses its texture encoder's GPU buffers, fills empty atlases from one and lets them go once idle, so loading from Fast start's cache no longer piles up GPU memory (drivers 70a5c65)
- A moved cursor no longer redraws the screen at once: it goes with the game's next frame, or every 16 ms when the game isn't drawing; at every move, up to 102 redraws a second against the game's 60 took the GPU from it on a Xiaomi 12T
- Phone's OpenGL ES gets a Low sprites setting, atlases at half their size, a quarter of their memory, and keeps the icon atlas as ASTC
- Sprite quality gets Low, on any driver: Factorio's Medium with its BC atlases kept at half their width and height by a layer in front of the driver's OpenGL, a quarter of their memory
- Phone's OpenGL ES writes the game's copies into its icon atlas kept as ASTC, so the GUI no longer vanishes where it's drawn small, as on a Redmi 12C (#99; drivers 8077bbf)
- A game short of memory goes a sprite quality lower on the same driver, Low after Medium too, and moves on to the next driver only from Low: a 3.7 GB Redmi 12C ran out of memory loading Space Age's Medium sprites on Phone's OpenGL ES
- The overlay's stats, each a module: FPS, the last second's longest frame, the game's CPU and memory, the GPU's load where the phone shares it, the driver's GPU memory and the battery's temperature; SDL's frames file carries the longest frame and the GPU memory (PFF3)
- The FPS counter becomes the overlay: Panel, Strip, Minimal or Graphs, chosen with its stats in Settings -> Interface -> Overlay over a live example; the game's load on each core and each cluster's clock against its highest, RAM with the phone's free memory, rows that keep their place as numbers change; no VRAM, which most drivers don't say
- What the app changes by itself after a game ends badly or a driver can't play, the driver or the sprites, it shows at the launcher with why, from what to what, with Put back and Keep; the memory warning counts the memory available and none of the swap, and Low sprites as a fifth less than Medium
- Short of memory shows once for each save and sprite quality, every time after Android closed the last game for memory, and offers Lower to Low with what Low needs
- drivers: MobileGlues' frames in RGBX buffers holding BGRX, red and blue swapped by the GPU (#102)
- Factorio's own updater finds the game: our glibc answers /proc/self/exe with the program the loader runs, not the loader in the APK, and runs that program again through the loader, as Android won't run it itself. Its Binaries path was the APK's lib folder, so updates failed with "Error opening update package: File .../lib/arm64/factorio not found" (Pocket Foundry #102)
- Resolution offers Half, the screen's pixels halved each way, on every phone, and the screen draws whole-pixel scales (Native, Half) nearest, so Half stays sharp; it takes the place of 1.5 x the default when they're close (#103)
- Termux:X11's version name comes from the commit, its first 7 characters and its own date, instead of git's abbreviation and the day of the build: F-Droid builds each release days after us and ships ours only if its APK comes out the same, and classes.dex differed by that date alone
- Detailed logs' frames line says how often the screen refreshed, as the renderer draws at most once each refresh: a log now tells a phone that slows its screen down from a renderer that can't keep up with the game
- Termux:X11's own settings screen is no longer in Android's App info as "Additional settings in the app", where a realme 9 Pro 5G player found unlabeled switches that can break the game, and its receivers no longer take broadcasts from other apps
- The screen's drawing asks the GPU for high priority where the driver offers it, as Android's own compositor does, so it goes ahead of the game's queued work: a realme 9 Pro 5G (Adreno 619) showed half the game's frames, each drawing longer than a refresh. Detailed logs say what the driver granted and how long the drawings take: waiting for the X server, for the GPU, to swap
Built on GitHub from v0.9.5, GPL-3.0, in this run: the APK and the runtime inside it (glibc, Mesa, libhybris, SDL, MobileGlues, Termux:X11's X server), from the sources and build scripts in runtime/ and third_party/ at that tag. To check a download came from that build: gh attestation verify pocket-foundry-0.9.5.apk -R JulioFerrero/pocket-foundry. SHA-256 of the APK: f9deb536bcea2f71e0292009453500816d99eaf69ab8025b73f51e7dca8f7b0b