Skip to content

Mobile app

AcidBoy for Android and iOS is a .NET MAUI app (src/AcidBoy.Mobile) built on the same emulator core as the desktop app. Add your games, play with touch controls or a controller, keep battery saves on the phone, and link games for trades and battles: two games on one phone, over Wi-Fi with another phone or a computer, or over Bluetooth with another phone. AcidBoy Online is not in the mobile app yet.

Platform How
Android 8.0 or newer Download acidboy-android from the latest successful Mobile app run in the repository’s Actions tab, unzip it and open io.barrientos.acidboy-Signed.apk on the phone. Android asks you to allow installing apps from that source once. Or build it yourself (below)
iOS 15 or newer There is no download yet. Build it on a Mac with Xcode and your own signing identity (below)

The APK is signed with the .NET SDK’s debug key. That’s fine for installing it yourself, but it can’t be published to a store, and a future APK signed with another key has to replace it with an uninstall first (which deletes the app’s games and saves, so back them up first).

Tap Add game and pick a .gb or .gbc file. AcidBoy checks the cartridge header, then keeps its own copy of the ROM, so the game stays in your library after the original file is moved or deleted. Adding the same ROM twice keeps one entry. The library lists the most recently played games first.

Each game shows its box art, its name, the console it’s for, the time you’ve played it and when you last played it. Pauses don’t count toward play time.

The library with two test ROMs: cgb-acid2 for Game Boy Color and dmg-acid2 for Game Boy, each with a picture of its screen, its console and its play time
  • Names: AcidBoy recognizes a game by its ROM’s SHA-1 in the No-Intro lists that libretro-database publishes, so a renamed file still gets its name. Region and revision tags are left out: “Legend of Zelda, The - Link’s Awakening (USA, Europe) (Rev 2)” shows as “The Legend of Zelda - Link’s Awakening”. If a game isn’t in the lists, a No-Intro style file name is used, and failing that the title in the cartridge header.
  • Box art: comes from libretro-thumbnails. A game without box art shows the screen as it was when you last left it, or a GB/GBC tile until you’ve played it.
  • Downloads: the two lists (about 1.2 MB) are downloaded once and refreshed monthly. Each box art (a few hundred KB) is downloaded once. Offline, the library tries again the next time it opens. Turn this off in Settings > Library > Find names and covers: only box art requests name a game, but with it off the app makes no internet requests at all.

Tap ••• next to a game for Look up name and cover again (after the lists gain a game, or to retry box art) and to remove it. Remove game keeps its battery save, so adding the game again picks up where you left off. Remove game and its save deletes the save for good, after asking.

Files the emulator can’t run are refused with the reason, such as an unsupported mapper (see the core’s cartridge list).

Portrait Landscape
Screen Top half Middle
D-pad Bottom left Left side
A and B Bottom right Right side
Select and Start Under the D-pad and buttons Bottom corners
  • Touch: several buttons can be held at once. Slide your thumb around the D-pad to change direction; between two arms you press both (diagonals). Touch between A and B to press both.
  • Fast-forward: hold the » button next to pause (or a controller’s right shoulder or trigger). The game runs at the Fast-forward speed setting, 5x by default; the sound keeps its normal pitch.
  • Pause: the round button in the top-right corner, the phone’s back button, or the controller’s home/menu button. The pause menu has Resume, Reset, Link cable, Settings and Quit to library, and shows the link’s status.
  • The picture is scaled by whole numbers when that fills at least twice the Game Boy’s size, so every pixel is the same size. The Super Game Boy border makes the picture 256x224.
  • The game pauses when you leave the app, lock the phone or take a call, and waits on the pause menu when you return.
dmg-acid2 running in portrait, with the D-pad, A, B, Select and Start below the screen and fast-forward and pause above it
Playing
The pause menu: Resume, Reset, Settings and Quit to library
Pause menu

Pause → Link cable opens the link page. The game stays paused there; go back to play.

Choice What happens
Two games on this phone Pick a second game from the library (the same one is fine: its second copy keeps its own save, saves/<sha1>.2.sav). The screen splits: side by side in landscape, stacked in portrait with the top half turned round for a player sitting opposite. Each half has its own buttons; tap a picture to hear that game
Host over Wi-Fi Waits for a player on the Host port (5738). The page shows this phone’s address. If the other player leaves, the phone waits again, so they can rejoin
Found players / Join by address The page lists players hosting on the same Wi-Fi (phones and computers) as it opens; tap one to join, or type an address such as 192.168.1.5 or name:port
Host over Bluetooth Waits for a nearby phone, with no network needed. Like Wi-Fi, it waits again if the other player leaves
Find a phone over Bluetooth Lists phones hosting over Bluetooth; tap one to join
Disconnect Unplugs the cable. On the host it also stops hosting

Android and iPhone link with each other both ways, and a phone links with the desktop app over Wi-Fi. While linked, fast-forward is off. If the other player leaves, a message says so and the game goes on alone; a host adds that it is still hosting.

Two Game Boys with a cable between them run on their own: one can be on the title screen while the other walks around town. Linked games in AcidBoy do the same, so neither slows the other down. Only when both games use the cable (Pokémon’s Cable Club, a Tetris match) do they run in step, a few frames apart at most. Then a banner says why a game waits (“Misty paused the game; waiting…”), and pausing or leaving the app holds up the other player too.

Phones always allow four frames between the games, the desktop’s Network sync: Internet, since a Wi-Fi or Bluetooth round trip is longer than the half frame of the LAN setting. There is no setting for it on the phone, and a desktop on the LAN setting follows the phone. See Lockstep.

  • Same network: both players need to be on the same local network. Searching finds hosts on the same subnet only; otherwise type the host’s address.
  • Phone and computer: some routers, mesh systems in particular, put phones and computers on different subnets and let the phone reach the computer but not the other way round. If joining a phone that hosts fails, let the computer host and join it from the phone.
  • Firewall: a computer that hosts must let AcidBoy through its firewall (Windows asks the first time).
  • Speed: build and install the app in Release (-c Release). A Debug build on Android runs the emulator without optimizations, too slowly for full speed, and the sound breaks up even without a link.

The first time, Bluetooth asks for permission: Nearby devices on Android 12+, location on Android 8-11 (which those versions need to search for Bluetooth devices), and Bluetooth on iOS. iOS also asks to use the local network. On iPhone, finding Wi-Fi players needs a permission Apple grants on request, so if the list stays empty, join by address. iOS stops apps in the background, so a link closes after about 20 seconds away from the app. More in Link cable.

Bluetooth and USB controllers work on both platforms (on iOS: the controllers Apple’s GameController framework supports, such as Xbox, PlayStation, Switch Pro and MFi). Buttons map by position, as in the desktop app:

Game Boy Controller
D-pad D-pad or left stick
A Right face button (Xbox B, Circle, Switch A)
B Bottom or left face button (Xbox A/X, Cross/Square, Switch B/Y)
Start Start / Menu / Options / +
Select Back / View / Share / -
Fast-forward (hold) Right shoulder or right trigger (RB/RT, R1/R2, R/ZR)
Pause Home / Guide, where the system lets the app have it

While a controller is connected the touch buttons are hidden and the picture gets bigger (with two games on one phone, once two controllers are connected; controllers take player 1 and 2 in the order they are first used). Turn that off with Settings > Hide with a controller. Remapping buttons is not possible yet.

Rumble cartridges (MBC5 with rumble) vibrate the phone, unless Rumble is off. Stick sensitivity sets how far the stick or trigger must move to count as pressed.

Settings opens on six categories: Emulation, Picture, Sound, Controls, Library and Link cable. Each shows its current values and opens a page with its settings. They match the desktop app’s settings, apart from those a phone doesn’t need (window size, fullscreen, remapping keys and buttons, online settings), and have the same defaults. Library has the one setting the desktop lacks, since the desktop has no game library.

Page Setting What it does Default
Emulation Hardware model Auto, or a console: DMG, MGB, CGB, AGB, SGB or SGB2. Auto picks the Game Boy Color for color games, the Super Game Boy for SGB-enhanced games, and the original Game Boy otherwise. Applies when a game starts or is reset Auto
Emulation Game Boy colors Green, Gray, Pocket or Light, for original Game Boy games Green
Emulation SGB border The Super Game Boy frame around the screen. Switches at once On
Emulation Fast-forward speed 2x to 10x 5x
Picture Filter None, Scanlines, LCD grid, CRT or Smooth (bilinear), the same effects as the desktop None
Picture Effect strength How strong scanlines, the LCD grid and the CRT look are 60%
Picture Frame blending Blends each frame with the last, like the slow original LCD. Fixes games that flicker sprites Off
Picture GBC color correction Softer colors like the Game Boy Color screen, for color games Off
Sound Sound / Volume Sound on or off, and its volume. On iOS the silent switch also mutes the game On, 100%
Controls Vibrate on press A short tick when a touch button goes down On
Controls Button visibility How visible the touch buttons are 85%
Controls Hide with a controller See Controllers On
Controls Rumble Rumble cartridges vibrate the phone On
Controls Stick sensitivity How far a controller’s stick or trigger must move to count as pressed 50%
Library Find names and covers Look up game names and download box art (see Adding games) On
Link cable Host port The TCP port to wait on when hosting over Wi-Fi 5738

Restore defaults, under the categories, puts every setting back. Your games and saves stay.

The Settings page: Emulation, Picture, Sound, Controls and Library cards, each with its current values
Settings
The Picture page: Filter, Effect strength, Frame blending and GBC color correction
Picture
cgb-acid2 with the CRT filter: curved screen, scanlines and a vignette
Filter: CRT

Everything stays in the app’s private storage: roms/<sha1>.gb, saves/<sha1>.sav (and saves/<sha1>.2.sav for a game’s second copy on one phone), the pictures in covers/<sha1>.png and screenshots/<sha1>.png, the downloaded lists in cache/, and the list of games with their play time in library.json, where <sha1> is the ROM’s SHA-1. Saves are the same .sav format as the desktop app (compatible with VBA-M and BGB, including the MBC3 clock). There is no import or export of saves in the app yet.

A save is written at most every two seconds while the game changes it, when you pause, when the app goes to the background and when you quit the game.

flowchart TB
    subgraph App["AcidBoy.Mobile"]
        Lib["LibraryPage"]
        UI["PlayPage<br/>(UI thread)"]
        Updater["GameInfoUpdater"]
        Sink["Audio sink<br/>AudioTrack / AVAudioEngine"]
        Screen["Screen + touch controls<br/>(SkiaSharp, ScreenEffects)"]
        LinkUi["LinkPage + LinkManager"]
        Ble["IBleLink<br/>Android GATT / CoreBluetooth"]
    end
    subgraph Client["AcidBoy.Client"]
        Library["GameLibrary<br/>roms/ · saves/ · library.json"]
        Db["GameDatabase"]
        Session["EmulatorSession<br/>(ROM + .sav)"]
        Host["EmulatorHost<br/>(emulation thread)"]
        Ring["AudioRingBuffer"]
        Net["Link/<br/>NetworkLink · LinkDiscovery · PacketStream"]
    end
    subgraph Core["AcidBoy.Core"]
        GB["GameBoy"]
    end
    Web["libretro on GitHub<br/>No-Intro lists · box art"]

    Lib -- "add / open a game" --> Library
    Library -- "opens" --> Session
    Lib --> Updater --> Db -. HTTPS .-> Web
    Updater -- "names, covers" --> Library
    Lib -- "starts" --> UI
    UI -- "touch / controller<br/>buttons" --> Host
    Host -- "RunFrame()" --> Session --> GB
    Host -- "samples" --> Ring --> Sink
    Host -- "newest frame" --> UI
    UI --> Screen
    UI -- "play time" --> Library
    UI --> LinkUi
    LinkUi -- "second game / network link" --> Host
    LinkUi --> Net
    Ble -- "PacketStream" --> Net
    Host -- "link" --> Net
  • AcidBoy.Client (src/AcidBoy.Client) holds what the desktop and mobile apps share: EmulatorSession (a ROM and its save), GameLibrary, GameDatabase (names and box art), EmulatorHost, AudioRingBuffer, FrameBlender, DmgPalettes and the link cable (Link/: NetworkLink, LinkStepping, LinkDiscovery, PacketStream).
  • Link cable: EmulatorHost runs a second game interleaved with the first (AttachPartner), or runs with a NetworkLink (AttachNetwork): freely while the cable is idle, in lockstep while both games use it. It calls the link only on its emulation thread. Buttons are kept per player. LinkManager (in the app) opens the links, always with the 4-frame lead, and hosts again when a guest leaves (HostAgain); Wi-Fi uses TCP, and Bluetooth uses IBleLink, which wraps each platform’s GATT code in a PacketStream.
  • EmulatorHost runs the console on its own thread. With sound on, the audio device sets the pace, as on the desktop: the host keeps about 50 ms of sound queued and runs frames only when the queue drops below that. With sound off it runs at the console’s 59.73 frames per second. Buttons from touch and from controllers are kept apart and combined, so releasing one doesn’t cancel the other.
  • Audio: Android streams 48 kHz float samples to an AudioTrack; iOS pulls them from an AVAudioEngine source node in the Ambient category.
  • Effects: ScreenEffects is the desktop’s video-effects shader ported to SkSL (a SkiaSharp runtime effect), so the filters and color correction look the same in both apps. VideoFilter and the hardware model choices (HardwareModels) live in AcidBoy.Client, shared by both.
  • Drawing: PlayPage redraws a GPU-backed SkiaSharp view (SKGLView) when a new frame is ready, scaling the picture with nearest-neighbor sampling. TouchControls lays out and draws the buttons and turns touch points into buttons.

To build and run the app, see Development › Mobile app.