Skip to main content

Play Windows games from Steam on an Android phone: Mobox emulator tutorial

·
Categories Smartphones Termux Tutorials
Tags Steam Termux Android
Table of Contents

Note: this project is no longer maintained. Please switch to Winlator or another alternative.

Mobox is an open source exe emulator that lets us play Windows games from Steam on Android phones.

Specifically, what Steam games can Mobox play? As long as a game can be launched on Steam Deck (Proton), Mobox should also be able to run it.

As long as the phone hardware is powerful enough, running any game is not a problem. For example, Youtuber Geek Bay successfully ran Cyberpunk 2077 on a Qualcomm 8 Gen 3 phone:

1. Hardware requirements
#

  • More than 10GB storage space
  • More than 8GB RAM
  • Prepare an external keyboard and mouse

For the principles behind Mobox, see Android轉譯玩Windows exe遊戲的方法一覽

The biggest difference is that Mobox uses Termux’s native packages to run the Linux system. Without container overhead, it runs at almost native performance, much faster than Winlator and Termux Proot, and roughly on par with Termux chroot performance.

The drawback is that Mobox operation is not as intuitive as Winlator’s interface, and requires typing a few commands.

Because Box64 translating Wine consumes a lot of performance, if you plan to play 3D AAA games, the phone processor should preferably be Qualcomm SD 865 or above. Also, considering graphics driver compatibility, Qualcomm processors are preferable; MediaTek may not be able to run at full speed.

My test environment
#

  • Sony Xperia 5 II
  • Lineage OS 21 (Android 14)
  • Qualcomm Snapdragon 865
  • 8GB RAM

2. Install prerequisite packages
#

Refer to the original author olegos2’s Github instructions

  1. Install Termux

  2. Configure Termux X11

  3. In Termux X11’s Preferences, set Display Mode to exact, and Display Resolution to 1280x720 (you can set a higher resolution depending on phone performance). Then uncheck Reseed screen while software keyboard is open. Also check Force Landscape Orientation.

3. Install Mobox
#

  1. In the phone system settings, force stop both the Termux and Termux X11 apps.

  2. Open Termux X11 and leave it waiting in the background

  3. Open Termux

  4. Run the script provided by the Mobox author

curl -s -o ~/x https://raw.githubusercontent.com/olegos2/mobox/main/install && . ~/x
  1. When asked which version of Box86 to install, enter 2 to select the Wow64 version

  2. Wait for Mobox to install packages, then enter the mobox command to start the environment.

  3. Use the on-screen arrow keys to move to Start Wine, then press Enter

  4. Turn the phone sideways and wait for Mobox to initialize the system (pay attention to whether there is a Cannot Open Display: error message)

  5. Next, your screen should automatically switch to the Termux X11 app, and you will see the Wine file manager.

  6. Termux X11 operates in touchpad mode by default: two-finger tap for right click, double tap for left click, and use the back gesture to bring up the phone keyboard

  7. Exit method: go to the Termux terminal, press 1 to exit, enter exit, then force stop the Termux and Termux X11 apps.

4. Modify performance settings
#

  1. Run Mobox
mobox
  1. In Settings -> Dynarecs settings, enter 45 to improve performance and compatibility.

  2. In Wineprefix Settings -> Change Wine esync mode, select Enable esync without root.

  3. Return to the main menu and select Start Wine

  4. Click Start in the lower left corner and install DXVK-dev

  5. For the graphics driver, if you have a Qualcomm processor, choose the latest Turnip. For non-Qualcomm processors, install VirGL Mesa.

5. Enable Chinese font support in Mobox
#

Reference: 一个中文汉字无法显示(显示口口框框)的解决方案 #362

  1. Run the following commands in Termux
unset LD_PRELOAD
export PATH=$PREFIX/glibc/bin:$PATH
  1. Generate Traditional Chinese
sed -i 's/^#zh_TW.UTF-8 UTF-8/zh_TW.UTF-8 UTF-8/' $PREFIX/glibc/etc/locale.gen

locale-gen
  1. Download a Chinese font, such as Microsoft JhengHei.
mkdir ~/.fonts

cd ~/.fonts

wget https://github.com/zanjie1999/windows-fonts/raw/wine/msyh.ttc
  1. Start Mobox
mobox
  1. In Settings -> System Settings -> Change locale, set locale to zh_TW.UTF-8

  2. Then restart Termux.

  3. If characters are still missing after installation, you may need to prepare a Windows computer, copy all ttf files under the C:\Windows\Fonts folder to the phone, and use Mobox’s file manager to move them to Z:/usr/glibc/wine資料夾/share/wine/fonts

6. Install Steam games
#

There is no need to install the Linux version of Steam; the Windows Steam exe is enough.

  1. You can use the phone browser to go to the Steam official site and download SteamSetup.exe. Or get it through this link: https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe

  2. In Mobox’s file manager, you should see files from your phone’s Download folder under the D: drive. Scroll to find SteamSetup.exe and double-click it to run

  3. Follow the instructions to install Steam.

  4. If Steam does not open automatically after installation, click Start in the lower left corner and start Steam

  5. Steam may take some time to open for the first time. You can click Start -> Programs -> tskmgr to open Task Manager and see whether Steam is running.

Note: if Steam keeps crashing like crazy, you can also consider using steamcmd to download games.

7. Play non-Steam games
#

Just put the program’s exe under phone internal storage/Download, then double-click it to open.

For Wine-compatible exe games, see ProtonDB.

Report issues
#

If there are any problems with the Mobox script, please report them to olegos2’s Github.

Related


Thank you for reading. Public comments are not available on this website. I write to explore ideas honestly, not to chase social engagement or traffic. I would be glad to hear your thoughts after reading the article with care. If you found any errors, technical issues, or would like to share feedback, feel free to contact me via the email listed on the About page.