<?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: rui hao</title>
    <description>The latest articles on DEV Community by rui hao (@rui_hao_9e47ab3e86da7b802).</description>
    <link>https://dev.to/rui_hao_9e47ab3e86da7b802</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3957017%2F40a576e5-c392-474a-b3ca-d4ed20d4aed1.png</url>
      <title>DEV Community: rui hao</title>
      <link>https://dev.to/rui_hao_9e47ab3e86da7b802</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rui_hao_9e47ab3e86da7b802"/>
    <language>en</language>
    <item>
      <title>After burning through tens of billions of tokens, I built an Android-like OS that runs entirely in the browser</title>
      <dc:creator>rui hao</dc:creator>
      <pubDate>Thu, 28 May 2026 17:15:18 +0000</pubDate>
      <link>https://dev.to/rui_hao_9e47ab3e86da7b802/after-burning-through-tens-of-billions-of-tokens-i-built-an-android-like-os-that-runs-entirely-in-3n02</link>
      <guid>https://dev.to/rui_hao_9e47ab3e86da7b802/after-burning-through-tens-of-billions-of-tokens-i-built-an-android-like-os-that-runs-entirely-in-3n02</guid>
      <description>&lt;p&gt;After burning through tens of billions of tokens, I built an Android-like OS that runs entirely in the browser&lt;/p&gt;

&lt;p&gt;The title is a bit clickbaity, but it is not that far from what actually happened.&lt;/p&gt;

&lt;p&gt;Over the past few months, we built MobileGym: a fully browser-based, Android-like simulation environment implemented in TypeScript + React.&lt;/p&gt;

&lt;p&gt;It currently includes 28 simulated apps, including WeChat, Alipay, Xiaohongshu/RED, bilibili, X, Reddit, WeChat Read, China Railway 12306, Tencent Meeting, Spotify, and eBay, plus system apps such as Home, Settings, Contacts, Messages, Photos, Calendar, Files, and Browser.&lt;/p&gt;

&lt;p&gt;The system supports Xiaomi theme packs and custom widgets. We also reimplemented a number of Android-like system mechanisms directly in the browser, including the Activity stack, Intents, gesture navigation, back handling, and soft keyboard behavior.&lt;/p&gt;

&lt;p&gt;MobileGym was originally built for GUI agent research, but it is also open for anyone who wants to play with it, study Android-like UI/system mechanisms, or fork the code and build something else on top of it.&lt;/p&gt;

&lt;p&gt;Online demo: &lt;a href="https://mobilegym.dev" rel="noopener noreferrer"&gt;https://mobilegym.dev&lt;/a&gt;&lt;br&gt;
GitHub: &lt;a href="https://github.com/Purewhiter/mobilegym" rel="noopener noreferrer"&gt;https://github.com/Purewhiter/mobilegym&lt;/a&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.amazonaws.com%2Fuploads%2Farticles%2F5bdteq0oxgttsaefnsb4.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.amazonaws.com%2Fuploads%2Farticles%2F5bdteq0oxgttsaefnsb4.png" alt=" " width="800" height="416"&gt;&lt;/a&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.amazonaws.com%2Fuploads%2Farticles%2Fzs71axnr1khujs8ubgbd.jpg" 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.amazonaws.com%2Fuploads%2Farticles%2Fzs71axnr1khujs8ubgbd.jpg" alt=" " width="800" height="417"&gt;&lt;/a&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.amazonaws.com%2Fuploads%2Farticles%2Fuol0a7v8w33er3dph1rs.jpg" 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.amazonaws.com%2Fuploads%2Farticles%2Fuol0a7v8w33er3dph1rs.jpg" alt=" " width="800" height="414"&gt;&lt;/a&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.amazonaws.com%2Fuploads%2Farticles%2F0fphw2njtwjbvfcdupto.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.amazonaws.com%2Fuploads%2Farticles%2F0fphw2njtwjbvfcdupto.png" alt=" " width="690" height="391"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Features&lt;/p&gt;

&lt;p&gt;⚡ Lightweight and highly concurrent&lt;br&gt;
A single MobileGym instance uses only around 400 MB of memory, compared with roughly 4–10 GB for a typical Android emulator. A single server can run hundreds or even thousands of environment instances in parallel.&lt;/p&gt;

&lt;p&gt;🧪 416 task templates&lt;br&gt;
The task templates are parameterized, so they can generate an effectively unlimited number of task instances. Evaluation is deterministic and finishes in milliseconds, without relying on LLM-as-a-judge.&lt;/p&gt;

&lt;p&gt;🌉 Sim-to-real transfer that actually works&lt;br&gt;
In our tests, models trained with GRPO-style reinforcement learning in the simulated environment transferred more than 95% of their gains to real devices.&lt;/p&gt;

&lt;p&gt;🧩 Easy to extend&lt;br&gt;
MobileGym is designed to be extensible. Adding a new app only requires creating a folder and a manifest file. Adding a new task only requires writing a Python class, and the shortest tasks can be implemented in as little as three lines of code.&lt;/p&gt;

&lt;p&gt;🛡️ Fully sandboxed, with no real-world consequences&lt;br&gt;
MobileGym does not connect to real services, transfer real money, or send real messages. You can safely click around without worrying about side effects.&lt;/p&gt;

&lt;p&gt;Although the project started as infrastructure for GUI agent training and evaluation, it ended up becoming a fairly complete browser-based Android-like playground.&lt;br&gt;
Would love to hear feedback from anyone who finds this useful, interesting, or just fun to play with.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>webdev</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
