<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: skywalker</title>
    <description>The latest articles on DEV Community by skywalker (@skywalker512).</description>
    <link>https://dev.to/skywalker512</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F359341%2Fd6949a52-c534-45cb-9190-c13ba9d7d031.png</url>
      <title>DEV Community: skywalker</title>
      <link>https://dev.to/skywalker512</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/skywalker512"/>
    <language>en</language>
    <item>
      <title>Using Kiro Specs, Hooks &amp; Custom MCP to Build a Zero-X11 Android PC-Game Engine</title>
      <dc:creator>skywalker</dc:creator>
      <pubDate>Fri, 04 Dec 2026 20:33:30 +0000</pubDate>
      <link>https://dev.to/skywalker512/using-kiro-specs-hooks-custom-mcp-to-build-a-zero-x11-android-pc-game-engine-3bme</link>
      <guid>https://dev.to/skywalker512/using-kiro-specs-hooks-custom-mcp-to-build-a-zero-x11-android-pc-game-engine-3bme</guid>
      <description>&lt;p&gt;Written for &lt;strong&gt;Kiroween 2026&lt;/strong&gt; (Frankenstein category): how we used &lt;strong&gt;Kiro IDE&lt;/strong&gt;, &lt;strong&gt;&lt;code&gt;kiro-cli&lt;/code&gt;&lt;/strong&gt;, EARS Specs, &lt;code&gt;PostFileSave&lt;/code&gt; Hooks, and a custom Python MCP server to build &lt;strong&gt;&lt;a href="https://github.com/amphora-dev/amphora" rel="noopener noreferrer"&gt;Amphora&lt;/a&gt;&lt;/strong&gt; — a lightweight Android PC-game app and parallel embeddable SDK powered by Valve's Proton 11, FEX-Emu, DXVK, vkd3d-proton, and Mesa Turnip.*&lt;/p&gt;




&lt;p&gt;Running real Windows PC games locally on Android is no longer a niche party trick. Community launchers like &lt;strong&gt;Winlator&lt;/strong&gt;, &lt;strong&gt;GameNative&lt;/strong&gt;, and &lt;strong&gt;DroidDeck&lt;/strong&gt; have surged in popularity, and hardware makers are investing too — from &lt;strong&gt;Xiaomi's WinPlay Engine&lt;/strong&gt; on the Pad 6S Pro and &lt;strong&gt;RedMagic's 10S Pro&lt;/strong&gt; Game Space to &lt;strong&gt;Valve's Snapdragon-powered Steam Frame&lt;/strong&gt; ARM64 headset.&lt;/p&gt;

&lt;p&gt;Yet today's options sit at two extremes: vendor engines locked to a single device, or monolithic community launchers that usually eat 3.6–7.0 GB of storage, bounce frames through an X11 or Wayland desktop server, duplicate hundreds of megabytes per game, and cannot be reused by other apps.&lt;/p&gt;

&lt;p&gt;When we built &lt;strong&gt;&lt;a href="https://github.com/amphora-dev/amphora" rel="noopener noreferrer"&gt;Amphora&lt;/a&gt;&lt;/strong&gt;, we built two things in parallel on one native Bionic core: a ready-to-play &lt;strong&gt;Android app&lt;/strong&gt; (&lt;code&gt;3.5 MB&lt;/code&gt; APK) for players, and a standalone &lt;strong&gt;Apache-2.0 Android SDK&lt;/strong&gt; (&lt;code&gt;1.1 MB&lt;/code&gt; AAR) so any launcher, handheld shell, or game client can embed the exact same Windows runtime in four lines of Kotlin:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="kd"&gt;val&lt;/span&gt; &lt;span class="n"&gt;sdk&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;AmphoraSdk&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;applicationContext&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;sdk&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;runtime&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;install&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="c1"&gt;// async download &amp;amp; verify; await Ready&lt;/span&gt;
&lt;span class="kd"&gt;val&lt;/span&gt; &lt;span class="n"&gt;game&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;sdk&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;library&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;games&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;firstOrNull&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;
&lt;span class="n"&gt;sdk&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sessions&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;launch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;LaunchTarget&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Play&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;game&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Both share an &lt;code&gt;82 MB&lt;/code&gt; reproducible CI runtime (&lt;code&gt;0.59 GB&lt;/code&gt; total on disk, &lt;code&gt;~5 MB&lt;/code&gt; per isolated game) — no root, no &lt;code&gt;proot&lt;/code&gt;, no X11, and no PulseAudio.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/18p47EUd5jU" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Pulling that off in four weeks meant juggling &lt;strong&gt;four repositories and four languages&lt;/strong&gt; — Kotlin/Compose (&lt;code&gt;amphora&lt;/code&gt;), C/Wine/NDK (&lt;code&gt;proton-wine&lt;/code&gt;), BuildStream (&lt;code&gt;amphora-engine&lt;/code&gt;), and TypeScript/Cloudflare Workers (&lt;code&gt;amphora-cache&lt;/code&gt;). Here is how &lt;strong&gt;Kiro&lt;/strong&gt; kept that multi-repo architecture from falling apart, the three real blind spots it caught, and the Android engine we shipped underneath those guardrails.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Why Four Repos Need More Than Unit Tests — And How We Wired Kiro
&lt;/h2&gt;

&lt;p&gt;Late one night while testing a 32-bit Windows installer on our tablet, a dialog popped up:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Expected:  File not found
Actual:    Hile not fpund
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two letters off. FEX's reduced-precision x87 mode was subtly corrupting Delphi/Inno Setup string copies. Worse, our FEX &lt;code&gt;Config.json&lt;/code&gt; &lt;em&gt;already&lt;/em&gt; had a per-app override disabling that mode for &lt;code&gt;setup*.exe&lt;/code&gt; — but our own Kotlin settings builder was emitting an environment variable that silently outranked it.&lt;/p&gt;

&lt;p&gt;That is the real danger of shipping a systems project across four repos at hackathon speed: every repo passes its own build, while a tiny cross-layer mismatch silently breaks user behavior.&lt;/p&gt;

&lt;p&gt;To keep those boundaries intact, we wired &lt;strong&gt;Kiro IDE&lt;/strong&gt; and &lt;strong&gt;&lt;code&gt;kiro-cli&lt;/code&gt;&lt;/strong&gt; into a &lt;strong&gt;four-layer automated safety net&lt;/strong&gt; plus a read-only audit pass:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4q8h88ftvbau691tn5iy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4q8h88ftvbau691tn5iy.png" alt="How Amphora uses Kiro: 4 layers of automated guardrails — Steering &amp;amp; Skills, EARS Specs &amp;amp; PBT, PostFileSave Hooks, and Custom Agents + Python MCP" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Steering &amp;amp; Skills (Rules + Domain Playbooks):&lt;/strong&gt; Three scoped Steering files automatically inject our architecture red lines whenever we touch code (no X11, no &lt;code&gt;DXVK_ASYNC&lt;/code&gt;, no &lt;code&gt;libandroid.so&lt;/code&gt; inside Wine). Three Skills act as on-demand engineering playbooks — covering Android Bionic porting, SurfaceFlinger debugging, and BuildStream releases — loaded only when a task hits that domain.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Specs (Spec-Driven Development for Two Core Modules):&lt;/strong&gt; Instead of jumping straight into code, we wrote formal requirements, design, and task lists in Kiro for two areas where subtle bugs hide:

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;settings-pbt&lt;/code&gt;&lt;/strong&gt;: Defined the exact rules for how settings override each other (recipe default → global → per-game fix → user per-game) and how paths/args parse, driving 33 randomized property tests (&lt;code&gt;0.86s&lt;/code&gt;) to catch edge-case conflicts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;bilingual-i18n&lt;/code&gt;&lt;/strong&gt;: Defined English + Simplified Chinese support across the whole app — so switching languages updates both the main UI and the in-game overlay/notifications running in the game process, with automated checks ensuring none of our 800+ strings or format placeholders go missing.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;PostFileSave&lt;/code&gt; Hooks (Automatic Save-Time Checks):&lt;/strong&gt; Three hooks trigger the moment we save a file in Kiro IDE: saving &lt;code&gt;.kt&lt;/code&gt; code runs Spotless formatting and SDK unit tests, saving shell scripts runs &lt;code&gt;shellcheck&lt;/code&gt;, and editing &lt;code&gt;recipe.json&lt;/code&gt; or the settings catalog wakes up a Kiro review — directly inspired by that &lt;code&gt;Hile not fpund&lt;/code&gt; bug — to verify every toggle and FEX default rule stays intact.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Custom Python MCP Server (&lt;code&gt;amphora-inspector&lt;/code&gt;) + Two Read-Only Agents (Zero-Guesswork Audits):&lt;/strong&gt; We built a zero-dependency Python MCP toolbox called &lt;code&gt;amphora-inspector&lt;/code&gt; (&lt;a href="https://github.com/amphora-dev/amphora/blob/main/tools/mcp/amphora_mcp.py" rel="noopener noreferrer"&gt;&lt;code&gt;amphora_mcp.py&lt;/code&gt;&lt;/a&gt;, &lt;code&gt;6/6&lt;/code&gt; tests) and attached it to two specialized &lt;code&gt;kiro-cli&lt;/code&gt; agents:

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;recipe-auditor&lt;/code&gt;&lt;/strong&gt; scans &lt;code&gt;recipe.json&lt;/code&gt;, all 53 settings, all 800+ EN/ZH strings, and our docs to catch config mismatches or version drift.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;device-diagnostician&lt;/code&gt;&lt;/strong&gt; reads real Windows &lt;code&gt;.exe&lt;/code&gt; binaries to inspect their architecture and required DLLs, and parses frame-pacing, GPU, audio-underrun, and thermal logs captured from physical phones — diagnosing from real data instead of guessing.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  2. Three Real Blind Spots Kiro Caught — And What We Learned About Using Kiro
&lt;/h2&gt;

&lt;p&gt;Independent &lt;code&gt;kiro-cli&lt;/code&gt; and MCP audits caught three concrete blind spots before release:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl3i4m9n5it33fauqsab3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl3i4m9n5it33fauqsab3.png" alt="Three real issues caught by Kiro audits: Gradle PBT seed forwarding, stale skill doc facts, and 104.6 °C CPU thermal spike" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The one that surprised us most was the Gradle bug. All 325 tests at the time were green, so we thought &lt;code&gt;settings-pbt&lt;/code&gt; was done. When we ran &lt;code&gt;kiro-cli&lt;/code&gt; to check the spec, it refused to tick Task 4.3: &lt;code&gt;sdk/build.gradle.kts&lt;/code&gt; had never forwarded &lt;code&gt;-Damphora.pbt.seed&lt;/code&gt; to the forked test JVM, so seed replay from the command line had been silently ignored the whole time. One line in Gradle fixed it. On the MCP side, &lt;code&gt;recipe-auditor&lt;/code&gt; caught two stale facts in our own BuildStream skill doc, and &lt;code&gt;device-diagnostician&lt;/code&gt; spotted a &lt;code&gt;104.6 °C&lt;/code&gt; CPU spike in a 120 FPS capture our own script had labeled healthy, so we added an automatic &lt;code&gt;&amp;gt;= 95 °C&lt;/code&gt; check to &lt;code&gt;amphora_mcp.py&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;In practice, Kiro worked best when we split it in two. In the IDE, Steering files and &lt;code&gt;PostFileSave&lt;/code&gt; hooks caught formatting and catalog mistakes as we edited. Outside the IDE, running &lt;code&gt;kiro-cli&lt;/code&gt; in read-only mode against &lt;code&gt;amphora-inspector&lt;/code&gt; gave us a separate pass that didn't trust our assumptions. It still can't look at a phone screen — debugging GPU visual glitches (like the Galaxy S23 black-tile bug below) or reading a &lt;code&gt;SurfaceFlinger&lt;/code&gt; dump is still hands-on work — but once we found a fix, writing it into &lt;code&gt;.kiro/&lt;/code&gt; stopped us from breaking it again two days later.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. What We Built Under Those Guardrails: Amphora's Native Android Stack
&lt;/h2&gt;

&lt;p&gt;Valve, CodeWeavers, FEX-Emu, DXVK, vkd3d-proton, and Mesa already solved the core translation problem — turning x86 instructions and Direct3D calls into ARM64 and Vulkan — and Twaik Yont laid the 35-commit process-split foundation for &lt;code&gt;wineandroid.drv&lt;/code&gt;. We did not reinvent any of that.&lt;/p&gt;

&lt;p&gt;Yet bringing that desktop stack onto phones still leaves a massive engineering gap. Getting the full toolchain to cross-compile reproducibly against Android's Bionic libc and stay in step with upstream takes real build infrastructure. More importantly, &lt;strong&gt;Android is not a Linux desktop&lt;/strong&gt; — out of the box, Wine on Android hits four immediate walls:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Graphics:&lt;/strong&gt; Once Wine runs in a separate process from the Android UI, its built-in display path stops working.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Thread sync:&lt;/strong&gt; Android's app security sandbox blocks the Linux kernel calls that Proton relies on for fast synchronization.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Storage:&lt;/strong&gt; Android's &lt;code&gt;/data&lt;/code&gt; partition forbids hard links and overlayfs, so isolating each game normally duplicates hundreds of megabytes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hardware I/O:&lt;/strong&gt; Gamepads, low-latency audio, and DNS have no native Android backends unless you pull in desktop daemons or &lt;code&gt;LD_PRELOAD&lt;/code&gt; hacks.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Over four weeks, we wrote roughly &lt;strong&gt;9,600 lines of native Android platform drivers&lt;/strong&gt; inside Wine, 11 patches across Mesa, FEX, and Fossilize, a Jetpack Compose Android app alongside its embeddable SDK, and a small open-source cloud shader cache — all guided by one rule codified into our &lt;code&gt;.kiro/steering/architecture-decisions.md&lt;/code&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Remove layers and fix root causes instead of stacking workarounds.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffytzn93g8fspxfvgxww4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffytzn93g8fspxfvgxww4.png" alt="Amphora 3-layer architecture: Upstream open source, Amphora native Android SDK &amp;amp; drivers, Android OS primitives" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Zero-X11 Direct Scanout (&lt;code&gt;+54–62%&lt;/code&gt; Faster)
&lt;/h3&gt;

&lt;p&gt;Most Android PC game launchers pretend your phone is a Linux desktop, rendering into an X11 server or Wayland compositor and copying frames into an Android view. Amphora skips the desktop compositor altogether. We wrote a cross-process Vulkan display path inside Wine's Android driver that renders straight into hardware-compressed Android GPU buffers (&lt;code&gt;AHardwareBuffer&lt;/code&gt;) and hands them to Android's hardware display compositor (&lt;code&gt;SurfaceControl&lt;/code&gt;). &lt;code&gt;SurfaceFlinger&lt;/code&gt; confirms zero GPU compositing overhead (an invariant we encoded into our &lt;code&gt;android-wine-debugging&lt;/code&gt; Kiro skill and &lt;code&gt;amphora-inspector&lt;/code&gt; MCP parser).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flzuy33es2m17obsfwga8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flzuy33es2m17obsfwga8.png" alt="Typical 5-hop X11/Wayland desktop detour vs Amphora 2-hop direct hardware scanout" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;On the exact same Lenovo Legion Y700 tablet running &lt;strong&gt;Unigine Heaven 4.0&lt;/strong&gt; (720p DX11 High, full 260-second benchmark, shipped defaults):&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flwnulxatvm67rny5quyb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flwnulxatvm67rny5quyb.png" alt="4-stack Unigine Heaven 4.0 head-to-head on Y700: Amphora 72.0 FPS warm / 75.6 FPS cold peak vs DroidDeck 56.5, WinNative 45.6, GameNative 44.5" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Amphora runs &lt;strong&gt;54–62% faster&lt;/strong&gt; than X11-based stacks and &lt;strong&gt;25–28% faster&lt;/strong&gt; than DroidDeck — and even when forced onto GameNative's driver flags, it still holds &lt;code&gt;68.0&lt;/code&gt; vs &lt;code&gt;44.5 FPS&lt;/code&gt;. On the same tablet, it also runs Unreal Engine 5.7 (DX12 + Lumen), Unity 6 (&lt;code&gt;116 FPS&lt;/code&gt;), Godot 4.7 + .NET 8 (&lt;code&gt;72 FPS&lt;/code&gt;), SuperTuxKart (locked &lt;code&gt;120 FPS&lt;/code&gt; with zero drops while recording), and Factorio (locked &lt;code&gt;60 FPS&lt;/code&gt;).&lt;/p&gt;

&lt;h3&gt;
  
  
  Fast Thread Sync Inside Android's Security Sandbox (&lt;code&gt;+104.5%&lt;/code&gt; Score)
&lt;/h3&gt;

&lt;p&gt;Modern Windows games synchronize dozens of threads thousands of times per second. On desktop Linux, Proton accelerates this with &lt;code&gt;fsync&lt;/code&gt;, but Android's &lt;code&gt;seccomp&lt;/code&gt; security sandbox kills &lt;code&gt;futex_waitv&lt;/code&gt; on sight and blocks robust cross-process mutexes too. Without fast sync, every thread wait queues through single-threaded &lt;code&gt;wineserver&lt;/code&gt;, which climbed to &lt;strong&gt;42.8% CPU&lt;/strong&gt; in &lt;em&gt;FFXIV: Dawntrail&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;We kept Proton's &lt;code&gt;fsync&lt;/code&gt;, moved shared memory onto Android's &lt;code&gt;memfd&lt;/code&gt;, and replaced the blocked kernel wait with a &lt;strong&gt;640 KB lock-free shared-memory wait table&lt;/strong&gt; (&lt;code&gt;fsync_wtab.h&lt;/code&gt;). Because no lock is ever held across processes, a crashed game thread can never freeze the app (and our &lt;code&gt;proton-bionic-porting&lt;/code&gt; Kiro skill permanently documents Android's seccomp syscall rules so regressions can't sneak back in).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flp799hepz5cfp18h8udi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flp799hepz5cfp18h8udi.png" alt="Android fsync architecture: seccomp SIGSYS block on futex_waitv vs Amphora 640 KB lock-free memfd wait table" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After passing Wine's &lt;code&gt;kernel32:sync&lt;/code&gt; suite (344,774 checks) and a 64-thread crash-stress test, &lt;code&gt;WaitForSingleObject(0)&lt;/code&gt; dropped from &lt;code&gt;30.8 µs&lt;/code&gt; to &lt;code&gt;0.10 µs&lt;/code&gt; (~296× faster), 4-thread mutexes ran 31× faster, and in &lt;em&gt;FFXIV: Dawntrail&lt;/em&gt;, &lt;code&gt;wineserver&lt;/code&gt; CPU fell from &lt;strong&gt;42.8% to 0–3.8%&lt;/strong&gt; while the benchmark score &lt;strong&gt;more than doubled (+104.5%)&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frmse1nrs247gqhdp23hk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frmse1nrs247gqhdp23hk.png" alt="Measured Android fsync result: wineserver CPU drops from 42.8% to 0-3.8% and 120s DX11 score rises +104.5%" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  5 MB Per-Game Sandboxes &amp;amp; Lossless Slimming (&lt;code&gt;0.59 GB&lt;/code&gt; Total)
&lt;/h3&gt;

&lt;p&gt;Android PC-game apps typically eat &lt;strong&gt;3.6 to 7.0 GB&lt;/strong&gt; before you install a single game, plus &lt;code&gt;~400 MB&lt;/code&gt; per isolated prefix thanks to that &lt;code&gt;/data&lt;/code&gt; deduplication restriction. Amphora builds one template per runtime, symlinks 1,699 identical files into the read-only runtime, and adds &lt;strong&gt;copy-on-write directly inside &lt;code&gt;wineserver&lt;/code&gt;&lt;/strong&gt; so every game gets its own clean sandbox for about &lt;strong&gt;5 MB&lt;/strong&gt; while saves stay separate in &lt;code&gt;userdata/&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fscm4tjxiue5zq8pg5kex.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fscm4tjxiue5zq8pg5kex.png" alt="Storage comparison: 399 MB standard isolated Proton prefix vs 4.3-6.7 MB Amphora thin COW prefix" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We also audited both the runtime and the Android SDK megabyte by megabyte without removing a single Windows DLL: 16 KB alignment, symbol stripping, unused software-renderer removal, and &lt;code&gt;.tar.xz&lt;/code&gt; cut the runtime download by &lt;strong&gt;61%&lt;/strong&gt; (&lt;code&gt;212 MB → 82.3 MB&lt;/code&gt;) and unpacked size by &lt;strong&gt;43%&lt;/strong&gt; (&lt;code&gt;1.0 GB → 576 MB&lt;/code&gt;). On Android, replacing a &lt;code&gt;34 MB&lt;/code&gt; icon pack with the five icons our overlay uses and trimming 83 unused locales brought the release APK to &lt;strong&gt;3.5 MB&lt;/strong&gt; and &lt;code&gt;:sdk&lt;/code&gt; AAR to &lt;strong&gt;1.1 MB&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fundmwmevsuizslho3svn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fundmwmevsuizslho3svn.png" alt="Same-tablet 4-app disk footprint comparison: Amphora 0.59 GB vs WinNative 3.6 GB, GameNative 4.1 GB, DroidDeck 7.0 GB" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;On the same Y700 tablet (clean install plus one isolated prefix, excluding games), Amphora's &lt;strong&gt;0.59 GB&lt;/strong&gt; footprint is &lt;strong&gt;6.1× to 11.9× smaller&lt;/strong&gt; than existing stacks, with an &lt;code&gt;≈86 MB&lt;/code&gt; first-time download.&lt;/p&gt;

&lt;h3&gt;
  
  
  Cross-GPU Shader Pre-Warming with Fossilize
&lt;/h3&gt;

&lt;p&gt;Anyone who has run PC games on mobile knows the first-run stutter: every new area or visual effect pauses the frame while the phone compiles shaders on the fly. Sharing raw compiled Mesa shader caches only gets you partway — in our tests, a raw cache transferred cleanly between identical GPUs (100% hit), but dropped straight to &lt;strong&gt;0%&lt;/strong&gt; on a different GPU generation, and invalidated again the moment Mesa Turnip updated. Maintaining separate binaries for every GPU generation times every driver release does not scale.&lt;/p&gt;

&lt;p&gt;That is why Valve open-sourced &lt;strong&gt;Fossilize&lt;/strong&gt; for Steam Deck: instead of sharing GPU-specific binaries, one device records a small hardware-neutral &lt;code&gt;.foz&lt;/code&gt; pipeline archive that any other device compiles locally before launch. We brought that two-part workflow to Android — wiring Fossilize directly into Amphora's Turnip driver path for local recording and automatic re-warming on driver updates (&lt;code&gt;0.8s&lt;/code&gt;), and building a lightweight, opt-in open cloud cache (&lt;a href="https://github.com/amphora-dev/amphora-cache" rel="noopener noreferrer"&gt;&lt;code&gt;amphora-cache&lt;/code&gt;&lt;/a&gt;) to merge and serve archives across devices.&lt;/p&gt;

&lt;p&gt;The cross-generation payoff is immediate: a single &lt;code&gt;1.1 MB&lt;/code&gt; archive recorded on an &lt;strong&gt;Adreno 830&lt;/strong&gt; (Lenovo Y700) pre-warmed all &lt;strong&gt;315/315 pipelines in 1–1.5 seconds&lt;/strong&gt; on cold &lt;strong&gt;Adreno 750&lt;/strong&gt; (Galaxy S24) and &lt;strong&gt;Adreno 730&lt;/strong&gt; (Tab S8 Ultra) devices, with &lt;strong&gt;0 bytes of new shader compilation&lt;/strong&gt; during play.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx70d3izus0g0116iheup.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx70d3izus0g0116iheup.png" alt="Cross-generation Fossilize pre-warming and open Cloudflare R2 shader pool: Adreno 830 to Adreno 750 and 730 with 100% cache hit" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Open Reproducible Builds, 9 Physical Devices &amp;amp; Root-Cause Fixes
&lt;/h3&gt;

&lt;p&gt;Most community runtimes ship as opaque &lt;code&gt;.wcp&lt;/code&gt; tarballs built on one laptop and tested on one phone. Every Amphora runtime in &lt;a href="https://github.com/amphora-dev/amphora-engine" rel="noopener noreferrer"&gt;&lt;code&gt;amphora-engine&lt;/code&gt;&lt;/a&gt; is built in public GitHub Actions via &lt;strong&gt;BuildStream&lt;/strong&gt;, pinned by SHA-256, audited by our Kiro &lt;code&gt;recipe-auditor&lt;/code&gt; agent and &lt;code&gt;buildstream-runtime-release&lt;/code&gt; skill, and verified across three automated gates: &lt;strong&gt;351+ JVM and property tests&lt;/strong&gt; plus a &lt;strong&gt;31/31 public cloud Arm Android 15 CI suite&lt;/strong&gt;, a &lt;strong&gt;41-probe headless smoke suite&lt;/strong&gt; on our local Lenovo Y700 tablet (zero &lt;code&gt;sleep&lt;/code&gt; timers), and automated Firebase Test Lab runs across &lt;strong&gt;8 cloud physical devices&lt;/strong&gt; — &lt;strong&gt;9 physical devices across 5 OEMs&lt;/strong&gt; (Lenovo, Samsung, Xiaomi, Motorola, and Google) spanning five Snapdragon GPU generations (&lt;code&gt;A730–A830&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj6m37n0jmtnftcz9rzyn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj6m37n0jmtnftcz9rzyn.png" alt="Amphora 4-stage open BuildStream CI and 3-gate automated verification architecture" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Testing across real brands paid off immediately. On a physical &lt;strong&gt;Galaxy S23 (Adreno 740, Android 15 / One UI 7)&lt;/strong&gt;, Heaven rendered with flickering black tiles because Qualcomm's system UI driver and Mesa Turnip were fighting over the same GPU compression (&lt;code&gt;UBWC&lt;/code&gt;) flag bit. The usual workaround is disabling UBWC compression (&lt;code&gt;TU_DEBUG=noubwc&lt;/code&gt;), which clears the artifacts at the cost of roughly a third of your frame rate, or maintaining per-device overrides. Instead, we wrote a 4-line hardware read-modify-write patch in Turnip that preserves whatever flag the phone's firmware sets. Black tiles vanished, and in the same airship scene the S23 jumped from &lt;strong&gt;27.8 FPS (&lt;code&gt;noubwc&lt;/code&gt;) to 41.9 FPS (+50.7%)&lt;/strong&gt; — with zero regressions on older Android 13 phones.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiibhjosjctcjo7smm9si.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiibhjosjctcjo7smm9si.png" alt="Real Galaxy S23 before and after: Turnip CP_REG_RMW eliminates black-tile UBWC corruption at 41.9 FPS (+50.7% in same scene)" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That same root-cause mindset carries through the rest of the stack: native HID gamepads (&lt;code&gt;winebus&lt;/code&gt;) with zero &lt;code&gt;LD_PRELOAD&lt;/code&gt; tricks, native AAudio with zero underruns, and native Android DNS + Conscrypt HTTPS.&lt;/p&gt;




&lt;h2&gt;
  
  
  Try Amphora, Inspect &lt;code&gt;.kiro/&lt;/code&gt;, or Embed the SDK
&lt;/h2&gt;

&lt;p&gt;Whether you want to inspect our &lt;code&gt;.kiro/&lt;/code&gt; harness and MCP server offline (&lt;code&gt;python3 -m unittest discover -s tools/mcp&lt;/code&gt; and &lt;code&gt;kiro-cli agent validate&lt;/code&gt; run in under a second with no Android device), try the Android app on an Adreno 7xx/8xx device, or embed &lt;code&gt;:sdk&lt;/code&gt; into your own launcher, everything is open source and reproducible:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Amphora Android App, &lt;code&gt;:sdk&lt;/code&gt;, Compose UI &amp;amp; &lt;code&gt;.kiro/&lt;/code&gt; Suite (Apache-2.0):&lt;/strong&gt; &lt;a href="https://github.com/amphora-dev/amphora" rel="noopener noreferrer"&gt;github.com/amphora-dev/amphora&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Public BuildStream CI Runtime Recipes:&lt;/strong&gt; &lt;a href="https://github.com/amphora-dev/amphora-engine" rel="noopener noreferrer"&gt;github.com/amphora-dev/amphora-engine&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Patched Proton 11 Fork (LGPL-2.1):&lt;/strong&gt; &lt;a href="https://github.com/amphora-dev/proton-wine" rel="noopener noreferrer"&gt;github.com/amphora-dev/proton-wine&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open Fossilize Cloud Shader Cache (Apache-2.0):&lt;/strong&gt; &lt;a href="https://github.com/amphora-dev/amphora-cache" rel="noopener noreferrer"&gt;github.com/amphora-dev/amphora-cache&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Signed Release APK:&lt;/strong&gt; &lt;a href="https://github.com/amphora-dev/amphora/releases" rel="noopener noreferrer"&gt;github.com/amphora-dev/amphora/releases&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Full Benchmarks &amp;amp; Multi-Device Hardware Logs:&lt;/strong&gt; &lt;a href="https://github.com/amphora-dev/amphora/blob/main/docs/TRACKING.md" rel="noopener noreferrer"&gt;&lt;code&gt;docs/TRACKING.md&lt;/code&gt;&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>programming</category>
      <category>android</category>
      <category>ai</category>
      <category>kiro</category>
    </item>
  </channel>
</rss>
